Answer TODO

This commit is contained in:
Thomas Eizinger 2021-05-14 18:36:02 +10:00
parent 19efd376da
commit d1b00f6ee2
No known key found for this signature in database
GPG Key ID: 651AC83A6C6C8B96

View File

@ -126,7 +126,7 @@ impl ConfidentialTransactionBuilder {
fn compute_pseudo_out(&mut self, commitments: Vec<EdwardsPoint>) -> EdwardsPoint { fn compute_pseudo_out(&mut self, commitments: Vec<EdwardsPoint>) -> EdwardsPoint {
let sum_commitments = commitments let sum_commitments = commitments
.iter() .iter()
.map(|p| p * Scalar::from(8u8)) // TODO: Should this happen inside the bulletproof module? .map(|p| p * Scalar::from(8u8)) // TODO: Should this happen inside the bulletproof module? => yes
.sum::<EdwardsPoint>(); .sum::<EdwardsPoint>();
let fee = self.compute_fee(); let fee = self.compute_fee();