Skip to main content

Class: UInt32

Hierarchy

Table of contents

Constructors

Properties

Accessors

Methods

Constructors

constructor

new UInt32(...props)

Parameters

NameType
...propsany[]

Inherited from

CircuitValue.constructor

Defined in

lib/circuit_value.ts:43

Properties

value

value: Field

Defined in

lib/int.ts:198


NUM_BITS

Static NUM_BITS: number = 32

Defined in

lib/int.ts:199

Accessors

one

Static get one(): UInt32

Returns

UInt32

Defined in

lib/int.ts:205


zero

Static get zero(): UInt32

Returns

UInt32

Defined in

lib/int.ts:201

Methods

add

add(y): UInt32

Parameters

NameType
ynumber | UInt32

Returns

UInt32

Defined in

lib/int.ts:309


assertEquals

assertEquals(x): void

Parameters

NameType
xUInt32

Returns

void

Inherited from

CircuitValue.assertEquals

Defined in

lib/circuit_value.ts:127


assertGt

assertGt(y): void

Parameters

NameType
yUInt32

Returns

void

Defined in

lib/int.ts:355


assertGte

assertGte(y): void

Parameters

NameType
yUInt32

Returns

void

Defined in

lib/int.ts:363


assertLt

assertLt(y): void

Parameters

NameType
yUInt32

Returns

void

Defined in

lib/int.ts:347


assertLte

assertLte(y): void

Parameters

NameType
yUInt32

Returns

void

Defined in

lib/int.ts:338


div

div(y): UInt32

Parameters

NameType
ynumber | UInt32

Returns

UInt32

Defined in

lib/int.ts:295


divMod

divMod(y): Object

Parameters

NameType
ystring | number | UInt32

Returns

Object

NameType
quotientUInt32
restUInt32

Defined in

lib/int.ts:259


equals

equals(x): Bool

Parameters

NameType
xUInt32

Returns

Bool

Inherited from

CircuitValue.equals

Defined in

lib/circuit_value.ts:123


gt

gt(y): Bool

Parameters

NameType
yUInt32

Returns

Bool

Defined in

lib/int.ts:351


gte

gte(y): Bool

Parameters

NameType
yUInt32

Returns

Bool

Defined in

lib/int.ts:359


isConstant

isConstant(): boolean

Returns

boolean

Inherited from

CircuitValue.isConstant

Defined in

lib/circuit_value.ts:131


lt

lt(y): Bool

Parameters

NameType
yUInt32

Returns

Bool

Defined in

lib/int.ts:343


lte

lte(y): Bool

Parameters

NameType
yUInt32

Returns

Bool

Defined in

lib/int.ts:321


mod

mod(y): UInt32

Parameters

NameType
ynumber | UInt32

Returns

UInt32

Defined in

lib/int.ts:299


mul

mul(y): UInt32

Parameters

NameType
ynumber | UInt32

Returns

UInt32

Defined in

lib/int.ts:303


sub

sub(y): UInt32

Parameters

NameType
ynumber | UInt32

Returns

UInt32

Defined in

lib/int.ts:315


toConstant

toConstant(): UInt32

Returns

UInt32

Inherited from

CircuitValue.toConstant

Defined in

lib/circuit_value.ts:119


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


toUInt64

toUInt64(): UInt64

Returns

UInt64

Defined in

lib/int.ts:213


MAXINT

Static MAXINT(): UInt32

Returns

UInt32

Defined in

lib/int.ts:255


check

Static check(x): void

Parameters

NameType
xUInt32

Returns

void

Overrides

CircuitValue.check

Defined in

lib/int.ts:218


checkConstant

Static Private checkConstant(x): Field

Parameters

NameType
xField

Returns

Field

Defined in

lib/int.ts:229


from

Static from(x): UInt32

Parameters

NameType
xstring | number | bigint | Field | UInt32

Returns

UInt32

Defined in

lib/int.ts:241


fromBigInt

Static fromBigInt(x): UInt32

Parameters

NameType
xbigint

Returns

UInt32

Defined in

lib/int.ts:251


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): UInt32

Parameters

NameType
xnumber

Returns

UInt32

Defined in

lib/int.ts:245


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): UInt32

Parameters

NameType
xstring

Returns

UInt32

Defined in

lib/int.ts:248


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(x): HashInput

Parameters

NameType
xUInt32

Returns

HashInput

Overrides

CircuitValue.toInput

Defined in

lib/int.ts:222


toJSON

Static toJSON(x): string

Parameters

NameType
xUInt32

Returns

string

Overrides

CircuitValue.toJSON

Defined in

lib/int.ts:225