Trait MapAuth

Source
pub trait MapAuth<A: Authorization, B: Authorization> {
    // Required methods
    fn map_spend_proof(&mut self, p: A::SpendProof) -> B::SpendProof;
    fn map_output_proof(&mut self, p: A::OutputProof) -> B::OutputProof;
    fn map_auth_sig(&mut self, s: A::AuthSig) -> B::AuthSig;
    fn map_authorization(&mut self, a: A) -> B;
}
Expand description

A map from one bundle authorization to another.

For use with TransactionData::map_authorization.

Required Methods§

Source

fn map_spend_proof(&mut self, p: A::SpendProof) -> B::SpendProof

Source

fn map_output_proof(&mut self, p: A::OutputProof) -> B::OutputProof

Source

fn map_auth_sig(&mut self, s: A::AuthSig) -> B::AuthSig

Source

fn map_authorization(&mut self, a: A) -> B

Implementations on Foreign Types§

Source§

impl MapAuth<Authorized, Authorized> for ()

The identity map.

This can be used with TransactionData::map_authorization when you want to map the authorization of a subset of a transaction’s bundles.

Source§

fn map_spend_proof( &mut self, p: <Authorized as Authorization>::SpendProof, ) -> <Authorized as Authorization>::SpendProof

Source§

fn map_output_proof( &mut self, p: <Authorized as Authorization>::OutputProof, ) -> <Authorized as Authorization>::OutputProof

Source§

fn map_auth_sig( &mut self, s: <Authorized as Authorization>::AuthSig, ) -> <Authorized as Authorization>::AuthSig

Source§

fn map_authorization(&mut self, a: Authorized) -> Authorized

Implementors§