Keypair
Class: Keypair
Table of contents
Constructors
Properties
Methods
Constructors
constructor
• new Keypair(value
)
Parameters
Name | Type |
---|---|
value | unknown |
Defined in
Properties
value
• value: unknown
Defined in
Methods
constraintSystem
▸ constraintSystem(): Gate
[]
Returns a low-level JSON representation of the Circuit from its Keypair: a list of gates, each of which represents a row in a table, with certain coefficients and wires to other (row, column) pairs
Example
const keypair = await MyCircuit.generateKeypair();
const json = MyProvable.witnessFromKeypair(keypair);
Returns
Gate
[]
Defined in
verificationKey
▸ verificationKey(): VerificationKey
Returns
VerificationKey