/// Returns the sum of all UTXO commitments
Returns the sum of all UTXO commitments
Returns the sum of all UTXO commitments
pub fn fetch_utxo_commitment_sum(&self) -> Result<Commitment, ChainStorageError> {
        let db = self.db_read_access()?;
        let mut sum = Commitment::from_public_key(&PublicKey::default());
        db.for_each_utxo(|utxo| {
            if let Ok((_, output)) = utxo {
                sum = &sum + output.commitment();
            }
        })?;
        Ok(sum)
    }
pub fn fetch_utxo_commitment_sum ( & self ) -> Result < Commitment , ChainStorageError > { let db = self . db_read_access ( ) ? ; let mut sum = Commitment :: from_public_key ( & PublicKey :: default ( ) ) ; db . for_each_utxo ( | utxo | { if let Ok ( ( _ , output ) ) = utxo { sum = & sum + output . commitment ( ) ; } } ) ? ; Ok ( sum ) }
Returns the sum of all UTXO commitments
Returns the sum of all UTXO commitments
&self