Skip to main content

Keypair

o1js / Modules / Keypair

Class: Keypair

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new Keypair(value)

Parameters

NameType
valueunknown

Defined in

lib/circuit.ts:145

Properties

value

value: unknown

Defined in

lib/circuit.ts:143

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

Returns

Gate[]

Example

const keypair = await MyCircuit.generateKeypair();
const json = MyProvable.witnessFromKeypair(keypair);

Defined in

lib/circuit.ts:164


verificationKey

verificationKey(): VerificationKey

Returns

VerificationKey

Defined in

lib/circuit.ts:149