diff --git a/Cargo.toml b/Cargo.toml index e81e9881..387660f9 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -15,7 +15,7 @@ repository = "https://github.com/dalek-cryptography/bulletproofs" categories = ["cryptography"] keywords = ["cryptography", "crypto", "ristretto", "zero-knowledge", "bulletproofs"] description = "A pure-Rust implementation of Bulletproofs using Ristretto" -edition = "2018" +edition = "2021" [dependencies] curve25519-dalek = { version = "3", default-features = false, features = ["u64_backend", "serde"] } diff --git a/src/inner_product_proof.rs b/src/inner_product_proof.rs index bcc56588..be2da34a 100644 --- a/src/inner_product_proof.rs +++ b/src/inner_product_proof.rs @@ -334,6 +334,7 @@ impl InnerProductProof { (self.L_vec.len() * 2 + 2) * 32 } + #[allow(dead_code)] /// Serializes the proof into a byte array of \\(2n+2\\) 32-byte elements. /// The layout of the inner product proof is: /// * \\(n\\) pairs of compressed Ristretto points \\(L_0, R_0 \dots, L_{n-1}, R_{n-1}\\), diff --git a/tests/r1cs.rs b/tests/r1cs.rs index d34775a0..97910b2b 100644 --- a/tests/r1cs.rs +++ b/tests/r1cs.rs @@ -257,7 +257,7 @@ fn example_gadget_proof( // 2. Commit high-level variables let (commitments, vars): (Vec<_>, Vec<_>) = [a1, a2, b1, b2, c1] .into_iter() - .map(|x| prover.commit(Scalar::from(*x), Scalar::random(&mut thread_rng()))) + .map(|x| prover.commit(Scalar::from(x), Scalar::random(&mut thread_rng()))) .unzip(); // 3. Build a CS