sync libbolt with latest version of curve25519-dalek and bulletproofs
This commit is contained in:
parent
ffbc8d8830
commit
ca4f790cee
|
@ -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"
|
||||
|
||||
|
|
|
@ -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 };
|
||||
|
||||
|
|
Loading…
Reference in New Issue