Skip to main content

Class: CircuitValue

Hierarchy

Table of contents

Constructors

Methods

Constructors

constructor

new CircuitValue(...props)

Parameters

NameType
...propsany[]

Defined in

lib/circuit_value.ts:43

Methods

assertEquals

assertEquals(x): void

Parameters

NameType
xCircuitValue

Returns

void

Defined in

lib/circuit_value.ts:127


equals

equals(x): Bool

Parameters

NameType
xCircuitValue

Returns

Bool

Defined in

lib/circuit_value.ts:123


isConstant

isConstant(): boolean

Returns

boolean

Defined in

lib/circuit_value.ts:131


toConstant

toConstant(): CircuitValue

Returns

CircuitValue

Defined in

lib/circuit_value.ts:119


toFields

toFields(): Field[]

Returns

Field[]

Defined in

lib/circuit_value.ts:111


toJSON

toJSON(): JSONValue

Returns

JSONValue

Defined in

lib/circuit_value.ts:115


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:157


fromJSON

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

Type parameters

NameType
Textends AnyConstructor

Parameters

NameType
thisT
valueJSONValue

Returns

null | InstanceType<T>

Defined in

lib/circuit_value.ts:193


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:60


ofFields

Static ofFields<T>(this, xs): InstanceType<T>

Type parameters

NameType
Textends AnyConstructor

Parameters

NameType
thisT
xsField[]

Returns

InstanceType<T>

Defined in

lib/circuit_value.ts:135


sizeInFields

Static sizeInFields(): number

Returns

number

Defined in

lib/circuit_value.ts:67


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:171


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:72


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:89


toJSON

Static toJSON<T>(this, v): JSONValue

Type parameters

NameType
Textends AnyConstructor

Parameters

NameType
thisT
vInstanceType<T>

Returns

JSONValue

Defined in

lib/circuit_value.ts:179