Skip to main content

Class: VerificationKey

Hierarchy

  • { data: string = String; hash: Field = Field }

    VerificationKey

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new VerificationKey(value)

Parameters

NameTypeDefault value
valueObjectundefined
value.datastringString
value.hashFieldField

Inherited from

Struct({ ...provable({ data: String, hash: Field }), toJSON({ data }: { data: string }) { return data; }, }).constructor

Defined in

lib/circuit_value.ts:728

Properties

data

data: string = String

Inherited from

Struct({ ...provable({ data: String, hash: Field }), toJSON({ data }: { data: string }) { return data; }, }).data

Defined in

lib/zkapp.ts:1303


hash

hash: Field = Field

Inherited from

Struct({ ...provable({ data: String, hash: Field }), toJSON({ data }: { data: string }) { return data; }, }).hash

Defined in

lib/zkapp.ts:1303


check

Static check: (x: { data: string = String; hash: Field = Field }) => void

Type declaration

▸ (x): void

Parameters
NameTypeDefault value
xObjectundefined
x.datastringString
x.hashFieldField
Returns

void

Inherited from

Struct({ ...provable({ data: String, hash: Field }), toJSON({ data }: { data: string }) { return data; }, }).check

Defined in

snarky.d.ts:29


fromFields

Static fromFields: (x: Field[], aux: any[]) => { data: string = String; hash: Field = Field }

Type declaration

▸ (x, aux): Object

Parameters
NameType
xField[]
auxany[]
Returns

Object

NameType
datastring
hashField

Inherited from

Struct({ ...provable({ data: String, hash: Field }), toJSON({ data }: { data: string }) { return data; }, }).fromFields

Defined in

snarky.d.ts:27


fromJSON

Static fromJSON: (x: string) => { data: string = String; hash: Field = Field }

Type declaration

▸ (x): Object

Parameters
NameType
xstring
Returns

Object

NameType
datastring
hashField

Inherited from

Struct({ ...provable({ data: String, hash: Field }), toJSON({ data }: { data: string }) { return data; }, }).fromJSON

Defined in

lib/circuit_value.ts:735


toAuxiliary

Static toAuxiliary: (x?: { data: string = String; hash: Field = Field }) => any[]

Type declaration

▸ (x?): any[]

Parameters
NameTypeDefault value
x?Objectundefined
x.datastringString
x.hashFieldField
Returns

any[]

Inherited from

Struct({ ...provable({ data: String, hash: Field }), toJSON({ data }: { data: string }) { return data; }, }).toAuxiliary

Defined in

snarky.d.ts:26


toFields

Static toFields: (x: { data: string = String; hash: Field = Field }) => Field[]

Type declaration

▸ (x): Field[]

Parameters
NameTypeDefault value
xObjectundefined
x.datastringString
x.hashFieldField
Returns

Field[]

Inherited from

Struct({ ...provable({ data: String, hash: Field }), toJSON({ data }: { data: string }) { return data; }, }).toFields

Defined in

snarky.d.ts:25


toInput

Static toInput: (x: { data: string = String; hash: Field = Field }) => { fields?: Field[] ; packed?: [Field, number][] }

Type declaration

▸ (x): Object

Parameters
NameTypeDefault value
xObjectundefined
x.datastringString
x.hashFieldField
Returns

Object

NameType
fields?Field[]
packed?[Field, number][]

Inherited from

Struct({ ...provable({ data: String, hash: Field }), toJSON({ data }: { data: string }) { return data; }, }).toInput

Defined in

lib/circuit_value.ts:730


toJSON

Static toJSON: (x: { data: string = String; hash: Field = Field }) => string

Type declaration

▸ (x): string

Parameters
NameTypeDefault value
xObjectundefined
x.datastringString
x.hashFieldField
Returns

string

Inherited from

Struct({ ...provable({ data: String, hash: Field }), toJSON({ data }: { data: string }) { return data; }, }).toJSON

Defined in

lib/circuit_value.ts:734

Methods

sizeInFields

Static sizeInFields(): number

Returns

number

Inherited from

Struct({ ...provable({ data: String, hash: Field }), toJSON({ data }: { data: string }) { return data; }, }).sizeInFields

Defined in

snarky.d.ts:28