Skip to main content

Class: Sign

Deprecated

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

Hierarchy

Table of contents

Constructors

Properties

Accessors

Methods

Constructors

constructor

new Sign(...props)

Parameters

NameType
...propsany[]

Inherited from

CircuitValue.constructor

Defined in

lib/circuit_value.ts:87

Properties

value

value: Field

Defined in

lib/int.ts:711

Accessors

minusOne

Static get minusOne(): Sign

Returns

Sign

Defined in

lib/int.ts:716


one

Static get one(): Sign

Returns

Sign

Defined in

lib/int.ts:713

Methods

assertEquals

assertEquals(x): void

Parameters

NameType
xSign

Returns

void

Inherited from

CircuitValue.assertEquals

Defined in

lib/circuit_value.ts:175


equals

equals(x): Bool

Parameters

NameType
xSign

Returns

Bool

Inherited from

CircuitValue.equals

Defined in

lib/circuit_value.ts:171


isConstant

isConstant(): boolean

Returns

boolean

Inherited from

CircuitValue.isConstant

Defined in

lib/circuit_value.ts:179


isPositive

isPositive(): Bool

Returns

Bool

Defined in

lib/int.ts:745


mul

mul(y): Sign

Parameters

NameType
ySign

Returns

Sign

Defined in

lib/int.ts:742


neg

neg(): Sign

Returns

Sign

Defined in

lib/int.ts:739


toConstant

toConstant(): Sign

Returns

Sign

Inherited from

CircuitValue.toConstant

Defined in

lib/circuit_value.ts:167


toFields

toFields(): Field[]

Returns

Field[]

Inherited from

CircuitValue.toFields

Defined in

lib/circuit_value.ts:159


toJSON

toJSON(): any

Returns

any

Inherited from

CircuitValue.toJSON

Defined in

lib/circuit_value.ts:163


toString

toString(): string

Returns

string

Defined in

lib/int.ts:748


check

Static check(x): void

Parameters

NameType
xSign

Returns

void

Overrides

CircuitValue.check

Defined in

lib/int.ts:719


emptyValue

Static emptyValue(): Sign

Returns

Sign

Defined in

lib/int.ts:723


fromFields

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

Type parameters

NameType
Textends AnyConstructor

Parameters

NameType
thisT
xsField[]

Returns

InstanceType<T>

Inherited from

CircuitValue.fromFields

Defined in

lib/circuit_value.ts:183


fromJSON

Static fromJSON<T>(x): InstanceType<T>

Type parameters

NameType
Textends AnyConstructor

Parameters

NameType
x"Positive" | "Negative"

Returns

InstanceType<T>

Overrides

CircuitValue.fromJSON

Defined in

lib/int.ts:734


fromObject

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

Type parameters

NameType
Textends AnyConstructor

Parameters

NameType
thisT
valueNonMethods<InstanceType<T>>

Returns

InstanceType<T>

Inherited from

CircuitValue.fromObject

Defined in

lib/circuit_value.ts:104


sizeInFields

Static sizeInFields(): number

Returns

number

Inherited from

CircuitValue.sizeInFields

Defined in

lib/circuit_value.ts:111


toAuxiliary

Static toAuxiliary(): []

Returns

[]

Inherited from

CircuitValue.toAuxiliary

Defined in

lib/circuit_value.ts:133


toConstant

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

Type parameters

NameType
Textends AnyConstructor

Parameters

NameType
thisT
tInstanceType<T>

Returns

InstanceType<T>

Inherited from

CircuitValue.toConstant

Defined in

lib/circuit_value.ts:222


toFields

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

Type parameters

NameType
Textends AnyConstructor

Parameters

NameType
thisT
vInstanceType<T>

Returns

Field[]

Inherited from

CircuitValue.toFields

Defined in

lib/circuit_value.ts:116


toInput

Static toInput(x): HashInput

Parameters

NameType
xSign

Returns

HashInput

Overrides

CircuitValue.toInput

Defined in

lib/int.ts:726


toJSON

Static toJSON(x): "Positive" | "Negative"

Parameters

NameType
xSign

Returns

"Positive" | "Negative"

Overrides

CircuitValue.toJSON

Defined in

lib/int.ts:729