Namespace: Encoding
Table of contents
Variables
Functions
Variables
Bijective
• Const
Bijective: Object
Type declaration
Name | Type |
---|---|
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
EpochSeed
• Const
EpochSeed: Object
Type declaration
Name | Type |
---|---|
fromBase58 | (base58 : string ) => Field |
toBase58 | (field : Field ) => string |
Defined in
LedgerHash
• Const
LedgerHash: Object
Type declaration
Name | Type |
---|---|
fromBase58 | (base58 : string ) => Field |
toBase58 | (field : Field ) => string |
Defined in
ReceiptChainHash
• Const
ReceiptChainHash: Object
Type declaration
Name | Type |
---|---|
fromBase58 | (base58 : string ) => Field |
toBase58 | (field : Field ) => string |
Defined in
StateHash
• Const
StateHash: Object
Type declaration
Name | Type |
---|---|
fromBase58 | (base58 : string ) => Field |
toBase58 | (field : Field ) => string |
Defined in
TokenId
• Const
TokenId: Object
Type declaration
Name | Type |
---|---|
fromBase58 | (base58 : string ) => Field |
toBase58 | (field : Field ) => string |
Defined in
Functions
bytesFromFields
▸ bytesFromFields(fields
): Uint8Array
Parameters
Name | Type |
---|---|
fields | Field [] |
Returns
Uint8Array
Defined in
bytesToFields
▸ bytesToFields(bytes
): Field
[]
Parameters
Name | Type |
---|---|
bytes | Uint8Array |
Returns
Field
[]
Defined in
stringFromFields
▸ stringFromFields(fields
): string
Parameters
Name | Type |
---|---|
fields | Field [] |
Returns
string
Defined in
stringToFields
▸ stringToFields(message
): Field
[]
Parameters
Name | Type |
---|---|
message | string |
Returns
Field
[]