pub trait ProofsMethods {
// Required methods
fn count_by_keyset(&self) -> HashMap<Id, u64>;
fn sum_by_keyset(&self) -> HashMap<Id, Amount>;
fn total_amount(&self) -> Result<Amount, Error>;
fn ys(&self) -> Result<Vec<PublicKey>, Error>;
fn without_dleqs(&self) -> Vec<Proof>;
}
Expand description
Utility methods for Proofs
Required Methods§
Sourcefn count_by_keyset(&self) -> HashMap<Id, u64>
fn count_by_keyset(&self) -> HashMap<Id, u64>
Count proofs by keyset
Sourcefn sum_by_keyset(&self) -> HashMap<Id, Amount>
fn sum_by_keyset(&self) -> HashMap<Id, Amount>
Sum proofs by keyset
Sourcefn without_dleqs(&self) -> Vec<Proof>
fn without_dleqs(&self) -> Vec<Proof>
Create a copy of proofs without dleqs