Skip to main content
Version: 5.19.5

Namespace: constants

Utils

Enumerations​

Variables​

IS_BROWSER​

• Const IS_BROWSER: boolean

Defined in​

src/utils/encode.ts:2


HEX_STR_TRANSACTION_VERSION_1​

• Const HEX_STR_TRANSACTION_VERSION_1: "0x1"

Defined in​

src/constants.ts:3


HEX_STR_TRANSACTION_VERSION_2​

• Const HEX_STR_TRANSACTION_VERSION_2: "0x2"

Defined in​

src/constants.ts:4


ZERO​

• Const ZERO: 0n

Defined in​

src/constants.ts:6


MASK_250​

• Const MASK_250: bigint

Defined in​

src/constants.ts:7


MASK_251​

• Const MASK_251: bigint

Defined in​

src/constants.ts:8


API_VERSION​

• Const API_VERSION: 0n

Defined in​

src/constants.ts:9


UDC​

• Const UDC: Object

Type declaration​

NameType
ADDRESSstring
ENTRYPOINTstring

Defined in​

src/constants.ts:37


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


FIELD_GEN​

• Const FIELD_GEN: "3"

Defined in​

src/constants.ts:47


FIELD_SIZE​

• Const FIELD_SIZE: 251

Defined in​

src/constants.ts:48


EC_ORDER​

• Const EC_ORDER: "800000000000010FFFFFFFFFFFFFFFFB781126DCAE7B2321E66A241ADC64D2F"

Defined in​

src/constants.ts:49


ALPHA​

• Const ALPHA: "1"

Defined in​

src/constants.ts:50


BETA​

• Const BETA: "6F21413EFBE40DE150E596D72F7A8C5609AD26C15C915C1F4CDFCB99CEE9E89"

Defined in​

src/constants.ts:51


MAX_ECDSA_VAL​

• Const MAX_ECDSA_VAL: "800000000000000000000000000000000000000000000000000000000000000"

Defined in​

src/constants.ts:52


CONSTANT_POINTS​

• Const CONSTANT_POINTS: string[][]

Defined in​

src/constants.ts:53