mirror of
https://github.com/logos-blockchain/logos-blockchain-rust-rapidsnark.git
synced 2026-06-07 03:39:29 +00:00
v0.1.1
This commit is contained in:
parent
bc0e6fa351
commit
8e7614d256
2
Cargo.lock
generated
2
Cargo.lock
generated
@ -82,7 +82,7 @@ checksum = "57c0d7b74b563b49d38dae00a0c37d4d6de9b432382b2892f0574ddcae73fd0a"
|
||||
|
||||
[[package]]
|
||||
name = "rust-rapidsnark"
|
||||
version = "0.1.0"
|
||||
version = "0.1.1"
|
||||
dependencies = [
|
||||
"anyhow",
|
||||
"cc",
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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"
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user