Use correct amount in EcdhInfo

This commit is contained in:
Thomas Eizinger 2021-05-14 14:54:10 +10:00
parent 523ee6088c
commit 3f0f97b9ba
No known key found for this signature in database
GPG Key ID: 651AC83A6C6C8B96

View File

@ -152,7 +152,7 @@ async fn monerod_integration_test() {
let (ecdh_info_0, out_blinding_0) = EcdhInfo::new_bulletproof(spend_amount, ecdh_key_0.scalar); let (ecdh_info_0, out_blinding_0) = EcdhInfo::new_bulletproof(spend_amount, ecdh_key_0.scalar);
let ecdh_key_1 = PrivateKey::random(&mut rng); let ecdh_key_1 = PrivateKey::random(&mut rng);
let (ecdh_info_1, out_blinding_1) = EcdhInfo::new_bulletproof(spend_amount, ecdh_key_1.scalar); let (ecdh_info_1, out_blinding_1) = EcdhInfo::new_bulletproof(0, ecdh_key_1.scalar);
let (bulletproof, out_pk) = monero::make_bulletproof( let (bulletproof, out_pk) = monero::make_bulletproof(
&mut rng, &mut rng,