sync libbolt with latest version of curve25519-dalek and bulletproofs

This commit is contained in:
J. Ayo Akinyele 2018-08-10 03:13:57 -04:00
parent ffbc8d8830
commit ca4f790cee
2 changed files with 2 additions and 2 deletions

View File

@ -21,7 +21,7 @@ time = "*"
rustc-serialize = "0.3"
#secp256k1 = { version = "0.9.2", features = ["rand"] }
secp256k1 = { git = "https://github.com/jakinyele/rust-secp256k1", branch = "master", features = ["rand"] }
curve25519-dalek = "^0.18"
curve25519-dalek = "^0.19"
bulletproofs = { git = "https://github.com/dalek-cryptography/bulletproofs", branch = "main" }
sha2 = "0.7.1"

View File

@ -883,7 +883,7 @@ pub mod bidirectional {
&mut osrng, value, &val_blinding,
pp.range_proof_bits).unwrap();
let pg = &pp.range_proof_gens.pedersen_gens;
let value_cm = pg.commit(Scalar::from_u64(value), val_blinding);
let value_cm = pg.commit(Scalar::from(value), val_blinding);
let proof_rp = ProofVB { range_proof: range_proof, value_commitment: value_cm };