Trait ProofsMethods

Source
pub trait ProofsMethods {
    // Required methods
    fn total_amount(&self) -> Result<Amount, Error>;
    fn ys(&self) -> Result<Vec<PublicKey>, Error>;
}
Expand description

Utility methods for Proofs

Required Methods§

Source

fn total_amount(&self) -> Result<Amount, Error>

Try to sum up the amounts of all Proofs

Source

fn ys(&self) -> Result<Vec<PublicKey>, Error>

Try to fetch the pubkeys of all Proofs

Implementations on Foreign Types§

Source§

impl ProofsMethods for Vec<Proof>

Implementors§