Skip to main content

Namespace: Encoding

Table of contents

Variables

Functions

Variables

Bijective

Const Bijective: Object

Type declaration

NameType
Fp{ fromBytes: (bytes: Uint8Array) => Field[] ; toBytes: (fields: Field[]) => Uint8Array ; fromString: (message: string) => Field[] ; toString: (fields: Field[]) => string }
Fp.fromBytes(bytes: Uint8Array) => Field[]
Fp.toBytes(fields: Field[]) => Uint8Array
Fp.fromString[object Object]
Fp.toString[object Object]
Fq{ fromBytes: (bytes: Uint8Array) => Field[] ; toBytes: (fields: Field[]) => Uint8Array ; fromString: (message: string) => Field[] ; toString: (fields: Field[]) => string }
Fq.fromBytes(bytes: Uint8Array) => Field[]
Fq.toBytes(fields: Field[]) => Uint8Array
Fq.fromString[object Object]
Fq.toString[object Object]

Defined in

lib/encoding.ts:88


EpochSeed

Const EpochSeed: Object

Type declaration

NameType
fromBase58(base58: string) => Field
toBase58(field: Field) => string

Defined in

lib/encoding.ts:317


LedgerHash

Const LedgerHash: Object

Type declaration

NameType
fromBase58(base58: string) => Field
toBase58(field: Field) => string

Defined in

lib/encoding.ts:313


ReceiptChainHash

Const ReceiptChainHash: Object

Type declaration

NameType
fromBase58(base58: string) => Field
toBase58(field: Field) => string

Defined in

lib/encoding.ts:309


StateHash

Const StateHash: Object

Type declaration

NameType
fromBase58(base58: string) => Field
toBase58(field: Field) => string

Defined in

lib/encoding.ts:321


TokenId

Const TokenId: Object

Type declaration

NameType
fromBase58(base58: string) => Field
toBase58(field: Field) => string

Defined in

lib/encoding.ts:308

Functions

bytesFromFields

bytesFromFields(fields): Uint8Array

Parameters

NameType
fieldsField[]

Returns

Uint8Array

Defined in

lib/encoding.ts:57


bytesToFields

bytesToFields(bytes): Field[]

Parameters

NameType
bytesUint8Array

Returns

Field[]

Defined in

lib/encoding.ts:37


stringFromFields

stringFromFields(fields): string

Parameters

NameType
fieldsField[]

Returns

string

Defined in

lib/encoding.ts:30


stringToFields

stringToFields(message): Field[]

Parameters

NameType
messagestring

Returns

Field[]

Defined in

lib/encoding.ts:25