Skip to main content

CircuitValue

o1js / Modules / CircuitValue

Class: CircuitValue

Deprecated

CircuitValue is deprecated in favor of Struct, which features a simpler API and better typing.

Hierarchy

Table of contents

Constructors

Methods

Constructors

constructor

new CircuitValue(...props)

Parameters

NameType
...propsany[]

Defined in

lib/circuit_value.ts:78

Methods

assertEquals

assertEquals(x): void

Parameters

NameType
xCircuitValue

Returns

void

Defined in

lib/circuit_value.ts:166


equals

equals(x): Bool

Parameters

NameType
xCircuitValue

Returns

Bool

Defined in

lib/circuit_value.ts:162


isConstant

isConstant(): boolean

Returns

boolean

Defined in

lib/circuit_value.ts:170


toConstant

toConstant(): CircuitValue

Returns

CircuitValue

Defined in

lib/circuit_value.ts:158


toFields

toFields(): Field[]

Returns

Field[]

Defined in

lib/circuit_value.ts:150


toJSON

toJSON(): any

Returns

any

Defined in

lib/circuit_value.ts:154


check

Static check\<T>(this, v): void

Type parameters

NameType
Textends AnyConstructor

Parameters

NameType
thisT
vInstanceType\<T>

Returns

void

Defined in

lib/circuit_value.ts:199


empty

Static empty\<T>(): InstanceType\<T>

Type parameters

NameType
Textends AnyConstructor

Returns

InstanceType\<T>

Defined in

lib/circuit_value.ts:254


fromFields

Static fromFields\<T>(this, xs): InstanceType\<T>

Type parameters

NameType
Textends AnyConstructor

Parameters

NameType
thisT
xsField[]

Returns

InstanceType\<T>

Defined in

lib/circuit_value.ts:174


fromJSON

Static fromJSON\<T>(this, value): InstanceType\<T>

Type parameters

NameType
Textends AnyConstructor

Parameters

NameType
thisT
valueany

Returns

InstanceType\<T>

Defined in

lib/circuit_value.ts:232


fromObject

Static fromObject\<T>(this, value): InstanceType\<T>

Type parameters

NameType
Textends AnyConstructor

Parameters

NameType
thisT
valueNonMethods\<InstanceType\<T>>

Returns

InstanceType\<T>

Defined in

lib/circuit_value.ts:95


sizeInFields

Static sizeInFields(): number

Returns

number

Defined in

lib/circuit_value.ts:102


toAuxiliary

Static toAuxiliary(): []

Returns

[]

Defined in

lib/circuit_value.ts:124


toConstant

Static toConstant\<T>(this, t): InstanceType\<T>

Type parameters

NameType
Textends AnyConstructor

Parameters

NameType
thisT
tInstanceType\<T>

Returns

InstanceType\<T>

Defined in

lib/circuit_value.ts:213


toFields

Static toFields\<T>(this, v): Field[]

Type parameters

NameType
Textends AnyConstructor

Parameters

NameType
thisT
vInstanceType\<T>

Returns

Field[]

Defined in

lib/circuit_value.ts:107


toInput

Static toInput\<T>(this, v): HashInput

Type parameters

NameType
Textends AnyConstructor

Parameters

NameType
thisT
vInstanceType\<T>

Returns

HashInput

Defined in

lib/circuit_value.ts:128


toJSON

Static toJSON\<T>(this, v): any

Type parameters

NameType
Textends AnyConstructor

Parameters

NameType
thisT
vInstanceType\<T>

Returns

any

Defined in

lib/circuit_value.ts:221