RAILGUN Reloaded
    Preparing search index...

    Type Alias MoproBindings

    Initialized Mopro WASM bindings supplied by the application.

    type MoproBindings = {
        prove(zkey: Uint8Array, witness: Uint8Array): string;
        verify(vkey: string, publicSignals: string, proof: string): boolean;
    }
    Index
    • Generate proof JSON from authenticated zkey bytes and a WTNS witness.

      Parameters

      • zkey: Uint8Array
      • witness: Uint8Array

      Returns string

    • Verify proof JSON against the expected key JSON and public signal JSON.

      Parameters

      • vkey: string
      • publicSignals: string
      • proof: string

      Returns boolean