/// Calculate the sum of the outputs - inputs
Calculate the sum of the outputs - inputs
Calculate the sum of the outputs - inputs
fn sum_commitments(&self) -> Commitment {
        let sum_inputs = &self.inputs.iter().map(|i| &i.commitment).sum::<Commitment>();
        let sum_outputs = &self.outputs.iter().map(|o| &o.commitment).sum::<Commitment>();
        sum_outputs - sum_inputs
    }
fn sum_commitments ( & self ) -> Commitment { let sum_inputs = & self . inputs . iter ( ) . map ( | i | & i . commitment ) . sum :: < Commitment > ( ) ; let sum_outputs = & self . outputs . iter ( ) . map ( | o | & o . commitment ) . sum :: < Commitment > ( ) ; sum_outputs - sum_inputs }
Calculate the sum of the outputs - inputs
Calculate the sum of the outputs - inputs
&self