Class ArkworksProvingManagerThread

Hierarchy

  • ArkworksProvingManagerThread

Constructors

Properties

Accessors

Methods

Constructors

Properties

ctx: "worker" | "direct-call" = 'worker'

Context of the Proving manager Defaults to worker mode assuming that the Proving manager is running in the browser if it's set to direct-call which is done in nodejs then this is running without worker

Accessors

  • get wasmBlob(): Promise<{
        ExtData: any;
        JsLeaf: any;
        JsNote: any;
        JsNoteBuilder: any;
        JsProofInput: any;
        JsProofInputBuilder: any;
        JsProofOutput: any;
        JsProvingKeys: any;
        JsUtxo: any;
        LeavesMapInput: any;
        MTBn254X5: any;
        MixerProof: any;
        OperationError: any;
        VAnchorProof: any;
        generate_proof_js: any;
        js_note_of_jsval: any;
        js_utxo_of_jsval: any;
        main: any;
        setupKeys: any;
        verify_js_proof: any;
        default: any;
    }>
  • Getter for wasm blob for worker wasm it will resolve the browser build of wasm-utils,and Nodejs build for direct-call

    Returns Promise<{
        ExtData: any;
        JsLeaf: any;
        JsNote: any;
        JsNoteBuilder: any;
        JsProofInput: any;
        JsProofInputBuilder: any;
        JsProofOutput: any;
        JsProvingKeys: any;
        JsUtxo: any;
        LeavesMapInput: any;
        MTBn254X5: any;
        MixerProof: any;
        OperationError: any;
        VAnchorProof: any;
        generate_proof_js: any;
        js_note_of_jsval: any;
        js_utxo_of_jsval: any;
        main: any;
        setupKeys: any;
        verify_js_proof: any;
        default: any;
    }>

Methods

  • Generate the Zero-knowledge proof from the proof input

    Type Parameters

    Parameters

    • protocol: T
    • pmSetupInput: WorkerProvingManagerSetupInput<T>

    Returns Promise<WorkerProofInterface<T>>

Generated using TypeDoc