@succinctlabs/sp1-wasm-verifier 5.0.1 → 5.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +35 -25
- package/sp1_wasm_verifier_bg.wasm +0 -0
- package/README.md +0 -19
package/package.json
CHANGED
|
@@ -1,27 +1,37 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
"
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
2
|
+
"name": "@succinctlabs/sp1-wasm-verifier",
|
|
3
|
+
"version": "5.0.2",
|
|
4
|
+
"description": "A rust verifier for BN254 curve",
|
|
5
|
+
"main": "./sp1_wasm_verifier.js",
|
|
6
|
+
"module": "./sp1_wasm_verifier.js",
|
|
7
|
+
"types": "./sp1_wasm_verifier.d.ts",
|
|
8
|
+
"type": "module",
|
|
9
|
+
"react-native": "./sp1_wasm_verifier.rn.js",
|
|
10
|
+
"sideEffects": false,
|
|
11
|
+
"author": "Bhargav Annem, Yuwen Zhang",
|
|
12
|
+
"license": "MIT OR Apache-2.0",
|
|
13
|
+
"repository": {
|
|
14
|
+
"type": "git",
|
|
15
|
+
"url": "git+https://github.com/succinctlabs/example-sp1-wasm-verifier"
|
|
16
|
+
},
|
|
17
|
+
"bugs": {
|
|
18
|
+
"url": "https://github.com/succinctlabs/example-sp1-wasm-verifier/issues"
|
|
19
|
+
},
|
|
20
|
+
"homepage": "https://github.com/succinctlabs/example-sp1-wasm-verifier#readme",
|
|
21
|
+
"readme": "README.md",
|
|
22
|
+
"keywords": [
|
|
23
|
+
"zero-knowledge",
|
|
24
|
+
"cryptography",
|
|
25
|
+
"zkSNARK",
|
|
26
|
+
"SNARK",
|
|
27
|
+
"gnark",
|
|
28
|
+
"bn254",
|
|
29
|
+
"verifier",
|
|
30
|
+
"wasm"
|
|
31
|
+
],
|
|
32
|
+
"files": [
|
|
33
|
+
"sp1_wasm_verifier.js",
|
|
34
|
+
"sp1_wasm_verifier_bg.wasm",
|
|
35
|
+
"sp1_wasm_verifier.d.ts"
|
|
36
|
+
]
|
|
27
37
|
}
|
|
Binary file
|
package/README.md
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
# SP1 Wasm verification
|
|
2
|
-
|
|
3
|
-
This repo wraps the [`sp1-verifier`](https://github.com/succinctlabs/sp1) crate in Wasm bindings, and invoke it from JavaScript (Node.js).
|
|
4
|
-
|
|
5
|
-
## Usage
|
|
6
|
-
|
|
7
|
-
Install the node module with the following command:
|
|
8
|
-
|
|
9
|
-
```bash
|
|
10
|
-
npm install sp1-wasm-verifier
|
|
11
|
-
```
|
|
12
|
-
|
|
13
|
-
`sp1-wasm-verifier` declare the following functions:
|
|
14
|
-
|
|
15
|
-
```js
|
|
16
|
-
function verify_groth16(proof: Uint8Array, public_inputs: Uint8Array, sp1_vk_hash: string): boolean;
|
|
17
|
-
function verify_plonk(proof: Uint8Array, public_inputs: Uint8Array, sp1_vk_hash: string): boolean
|
|
18
|
-
function verify_compressed(proof: Uint8Array, public_inputs: Uint8Array, sp1_vk_hash: Uint8Array): boolean;
|
|
19
|
-
```
|