Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade to 2021 edition #358

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"] }
Expand Down
1 change: 1 addition & 0 deletions src/inner_product_proof.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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}\\),
Expand Down
2 changes: 1 addition & 1 deletion tests/r1cs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down