Skip to main content

Class: Int64

Hierarchy

Implements

  • BalanceChange

Table of contents

Constructors

Properties

Accessors

Methods

Constructors

constructor

new Int64(magnitude, sgn?)

Parameters

NameTypeDefault value
magnitudeUInt64undefined
sgnSignSign.one

Overrides

CircuitValue.constructor

Defined in

lib/int.ts:432

Properties

magnitude

magnitude: UInt64

Implementation of

BalanceChange.magnitude

Defined in

lib/int.ts:409


sgn

sgn: Sign

Implementation of

BalanceChange.sgn

Defined in

lib/int.ts:410

Accessors

minusOne

Static get minusOne(): Int64

Returns

Int64

Defined in

lib/int.ts:492


one

Static get one(): Int64

Returns

Int64

Defined in

lib/int.ts:489


zero

Static get zero(): Int64

Returns

Int64

Defined in

lib/int.ts:486

Methods

add

add(y): Int64

Parameters

NameType
ystring | number | bigint | UInt64 | UInt32 | Int64

Returns

Int64

Defined in

lib/int.ts:514


assertEquals

assertEquals(y): void

Parameters

NameType
ystring | number | bigint | UInt64 | UInt32 | Int64

Returns

void

Overrides

CircuitValue.assertEquals

Defined in

lib/int.ts:543


div

div(y): Int64

Parameters

NameType
ystring | number | bigint | UInt64 | UInt32 | Int64

Returns

Int64

Defined in

lib/int.ts:526


equals

equals(y): Bool

Parameters

NameType
ystring | number | bigint | UInt64 | UInt32 | Int64

Returns

Bool

Overrides

CircuitValue.equals

Defined in

lib/int.ts:539


isConstant

isConstant(): boolean

Returns

boolean

Overrides

CircuitValue.isConstant

Defined in

lib/int.ts:477


isPositive

isPositive(): Bool

Returns

Bool

Defined in

lib/int.ts:547


mod

mod(y): Int64

Parameters

NameType
ystring | number | bigint | UInt64 | UInt32

Returns

Int64

Defined in

lib/int.ts:532


mul

mul(y): Int64

Parameters

NameType
ystring | number | bigint | UInt64 | UInt32 | Int64

Returns

Int64

Defined in

lib/int.ts:522


neg

neg(): Int64

Returns

Int64

Defined in

lib/int.ts:509


sub

sub(y): Int64

Parameters

NameType
ystring | number | bigint | UInt64 | UInt32 | Int64

Returns

Int64

Defined in

lib/int.ts:518


toConstant

toConstant(): Int64

Returns

Int64

Inherited from

CircuitValue.toConstant

Defined in

lib/circuit_value.ts:119


toField

toField(): Field

Returns

Field

Defined in

lib/int.ts:496


toFields

toFields(): Field[]

Returns

Field[]

Inherited from

CircuitValue.toFields

Defined in

lib/circuit_value.ts:111


toJSON

toJSON(): JSONValue

Returns

JSONValue

Inherited from

CircuitValue.toJSON

Defined in

lib/circuit_value.ts:115


toString

toString(): string

Returns

string

Defined in

lib/int.ts:471


check

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

Type parameters

NameType
Textends AnyConstructor

Parameters

NameType
thisT
vInstanceType<T>

Returns

void

Inherited from

CircuitValue.check

Defined in

lib/circuit_value.ts:157


from

Static from(x): Int64

Parameters

NameType
xstring | number | bigint | Field | UInt64 | UInt32 | Int64

Returns

Int64

Defined in

lib/int.ts:454


fromBigInt

Static fromBigInt(x): Int64

Parameters

NameType
xbigint

Returns

Int64

Defined in

lib/int.ts:467


fromField

Static fromField(x): Int64

Parameters

NameType
xField

Returns

Int64

Defined in

lib/int.ts:500


fromFieldUnchecked

Static Private fromFieldUnchecked(x): Int64

Parameters

NameType
xField

Returns

Int64

Defined in

lib/int.ts:436


fromJSON

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

Type parameters

NameType
Textends AnyConstructor

Parameters

NameType
thisT
valueJSONValue

Returns

null | InstanceType<T>

Inherited from

CircuitValue.fromJSON

Defined in

lib/circuit_value.ts:193


fromNumber

Static fromNumber(x): Int64

Parameters

NameType
xnumber

Returns

Int64

Defined in

lib/int.ts:461


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


fromString

Static fromString(x): Int64

Parameters

NameType
xstring

Returns

Int64

Defined in

lib/int.ts:464


fromUnsigned

Static fromUnsigned(x): Int64

Parameters

NameType
xUInt64 | UInt32

Returns

Int64

Defined in

lib/int.ts:449


ofFields

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

Type parameters

NameType
Textends AnyConstructor

Parameters

NameType
thisT
xsField[]

Returns

InstanceType<T>

Inherited from

CircuitValue.ofFields

Defined in

lib/circuit_value.ts:135


sizeInFields

Static sizeInFields(): number

Returns

number

Inherited from

CircuitValue.sizeInFields

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>

Inherited from

CircuitValue.toConstant

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[]

Inherited from

CircuitValue.toFields

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

Inherited from

CircuitValue.toInput

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

Inherited from

CircuitValue.toJSON

Defined in

lib/circuit_value.ts:179