diff --git a/Cargo.lock b/Cargo.lock index 679a94e..656be4d 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -82,7 +82,7 @@ checksum = "57c0d7b74b563b49d38dae00a0c37d4d6de9b432382b2892f0574ddcae73fd0a" [[package]] name = "rust-rapidsnark" -version = "0.1.0" +version = "0.1.1" dependencies = [ "anyhow", "cc", diff --git a/README.md b/README.md index d547453..7203eef 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/crates/Cargo.toml b/crates/Cargo.toml index 9a0d8cd..5494ef3 100644 --- a/crates/Cargo.toml +++ b/crates/Cargo.toml @@ -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" diff --git a/crates/README.md b/crates/README.md index 64c9efb..16c7451 100644 --- a/crates/README.md +++ b/crates/README.md @@ -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