Skip to main content
Version: 5.14.1

Namespace: constants

Utils

Enumerations​

Variables​

IS_BROWSER​

• Const IS_BROWSER: boolean

Defined in​

src/utils/encode.ts:2


ZERO​

• Const ZERO: 0n

Defined in​

src/constants.ts:3


MASK_250​

• Const MASK_250: bigint

Defined in​

src/constants.ts:4


MASK_251​

• Const MASK_251: bigint

Defined in​

src/constants.ts:5


API_VERSION​

• Const API_VERSION: 0n

Defined in​

src/constants.ts:6


UDC​

• Const UDC: Object

Type declaration​

NameType
ADDRESSstring
ENTRYPOINTstring

Defined in​

src/constants.ts:34


FIELD_PRIME​

• Const FIELD_PRIME: "800000000000011000000000000000000000000000000000000000000000001"

The following is taken from https://github.com/starkware-libs/starkex-resources/blob/master/crypto/starkware/crypto/signature/pedersen_params.json but converted to hex, because JS is very bad handling big integers by default Please do not edit until the JSON changes.

Defined in​

src/constants.ts:43


FIELD_GEN​

• Const FIELD_GEN: "3"

Defined in​

src/constants.ts:44


FIELD_SIZE​

• Const FIELD_SIZE: 251

Defined in​

src/constants.ts:45


EC_ORDER​

• Const EC_ORDER: "800000000000010FFFFFFFFFFFFFFFFB781126DCAE7B2321E66A241ADC64D2F"

Defined in​

src/constants.ts:46


ALPHA​

• Const ALPHA: "1"

Defined in​

src/constants.ts:47


BETA​

• Const BETA: "6F21413EFBE40DE150E596D72F7A8C5609AD26C15C915C1F4CDFCB99CEE9E89"

Defined in​

src/constants.ts:48


MAX_ECDSA_VAL​

• Const MAX_ECDSA_VAL: "800000000000000000000000000000000000000000000000000000000000000"

Defined in​

src/constants.ts:49


CONSTANT_POINTS​

• Const CONSTANT_POINTS: string[][]

Defined in​

src/constants.ts:50