Skip to main content

Keypair

SnarkyJS / Modules / Keypair

Class: Keypair

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new Keypair(value)

Parameters

NameType
valueunknown

Defined in

lib/circuit.ts:144

Properties

value

value: unknown

Defined in

lib/circuit.ts:142

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

lib/circuit.ts:163


verificationKey

verificationKey(): VerificationKey

Returns

VerificationKey

Defined in

lib/circuit.ts:148