interface IBackendApi {
    bech32_prefix: string;
    canonical_address(human): Uint8Array;
    curve_hash(input, curve): Uint8Array;
    groth16_verify(input, proof, vk, curve): boolean;
    human_address(canonical): string;
    keccak_256(input): Uint8Array;
    poseidon_hash(left_input, right_input, curve): Uint8Array;
    sha256(input): Uint8Array;
}

Implemented by

Properties

bech32_prefix: string

Methods

  • Parameters

    • human: string

    Returns Uint8Array

  • Parameters

    • input: Uint8Array
    • curve: number

    Returns Uint8Array

  • Parameters

    • input: Uint8Array
    • proof: Uint8Array
    • vk: Uint8Array
    • curve: number

    Returns boolean

  • Parameters

    • canonical: Uint8Array

    Returns string

  • Parameters

    • input: Uint8Array

    Returns Uint8Array

  • Parameters

    • left_input: Uint8Array
    • right_input: Uint8Array
    • curve: number

    Returns Uint8Array

  • Parameters

    • input: Uint8Array

    Returns Uint8Array

Generated using TypeDoc