Properties
bech32_prefix
bech32_prefix: string
Methods
canonical_address
- canonical_address(human): Uint8Array
Returns Uint8Array
curve_hash
- curve_hash(input, curve): Uint8Array
Parameters
input: Uint8Array
curve: number
Returns Uint8Array
groth16_verify
- groth16_verify(input, proof, vk, curve): boolean
Parameters
input: Uint8Array
proof: Uint8Array
vk: Uint8Array
curve: number
Returns boolean
human_address
- human_address(canonical): string
Returns string
keccak_256
- keccak_256(input): Uint8Array
Returns Uint8Array
poseidon_hash
- poseidon_hash(left_input, right_input, curve): Uint8Array
Parameters
left_input: Uint8Array
right_input: Uint8Array
curve: number
Returns Uint8Array
sha256
- sha256(input): Uint8Array
Returns Uint8Array