This commit is contained in:
Ya-wen, Jeng 2025-03-07 11:36:43 +08:00
parent bc0e6fa351
commit 8e7614d256
4 changed files with 10 additions and 10 deletions

2
Cargo.lock generated
View File

@ -82,7 +82,7 @@ checksum = "57c0d7b74b563b49d38dae00a0c37d4d6de9b432382b2892f0574ddcae73fd0a"
[[package]]
name = "rust-rapidsnark"
version = "0.1.0"
version = "0.1.1"
dependencies = [
"anyhow",
"cc",

View File

@ -10,10 +10,10 @@ Include the crate in your `Cargo.toml`:
```toml
[dependencies]
rust-rapidsnark = "0.1.0"
rust-rapidsnark = "0.1"
[build-dependencies]
rust-rapidsnark = "0.1.0"
rust-rapidsnark = "0.1"
```
It doesn't include the witness generation functions, you need to use one of the following crates to generate the witness:
@ -37,8 +37,8 @@ Calculate the proof by using the `groth16_prover_zkey_file_wrapper` function.
It will take a `wtns` bytes array like the output of [witnesscalc](https://github.com/0xPolygonID/witnesscalc) or [snarkjs](https://github.com/iden3/snarkjs).
```rust
let zkey_path = "./test-vectors/multiplier2_final.zkey".to_string();
let proof = rust_rapidsnark::groth16_prover_zkey_file_wrapper(&zkey_path, wtns_buffer).unwrap();
let zkey_path = "./test-vectors/multiplier2_final.zkey";
let proof = rust_rapidsnark::groth16_prover_zkey_file_wrapper(zkey_path, wtns_buffer).unwrap();
```
### Verify the proof

View File

@ -1,6 +1,6 @@
[package]
name = "rust-rapidsnark"
version = "0.1.0"
version = "0.1.1"
edition = "2021"
license = "MIT OR Apache-2.0"
repository = "https://github.com/zkmopro/rust-rapidsnark"

View File

@ -10,10 +10,10 @@ Include the crate in your `Cargo.toml`:
```toml
[dependencies]
rust-rapidsnark = "0.1.0"
rust-rapidsnark = "0.1"
[build-dependencies]
rust-rapidsnark = "0.1.0"
rust-rapidsnark = "0.1"
```
It doesn't include the witness generation functions, you need to use one of the following crates to generate the witness:
@ -37,8 +37,8 @@ Calculate the proof by using the `groth16_prover_zkey_file_wrapper` function.
It will take a `wtns` bytes array like the output of [witnesscalc](https://github.com/0xPolygonID/witnesscalc) or [snarkjs](https://github.com/iden3/snarkjs).
```rust
let zkey_path = "./test-vectors/multiplier2_final.zkey".to_string();
let proof = rust_rapidsnark::groth16_prover_zkey_file_wrapper(&zkey_path, wtns_buffer).unwrap();
let zkey_path = "./test-vectors/multiplier2_final.zkey";
let proof = rust_rapidsnark::groth16_prover_zkey_file_wrapper(zkey_path, wtns_buffer).unwrap();
```
### Verify the proof