@succinctlabs/sp1-wasm-verifier
v6.0.0
Published
A rust verifier for BN254 curve
Readme
SP1 Wasm verification
This repo wraps the sp1-verifier crate in Wasm bindings, and invoke it from JavaScript (Node.js).
Usage
Install the node module with the following command:
npm install sp1-wasm-verifiersp1-wasm-verifier declare the following functions:
function verify_groth16(proof: Uint8Array, public_inputs: Uint8Array, sp1_vk_hash: string): boolean;
function verify_plonk(proof: Uint8Array, public_inputs: Uint8Array, sp1_vk_hash: string): boolean
function verify_compressed(proof: Uint8Array, public_inputs: Uint8Array, sp1_vk_hash: Uint8Array): boolean;