Trait MapAuth

Source
pub trait MapAuth<A: Authorization, B: Authorization> {
    // Required methods
    fn map_spend_auth(&self, s: A::SpendAuth) -> B::SpendAuth;
    fn map_authorization(&self, a: A) -> B;
}

Required Methods§

Source

fn map_spend_auth(&self, s: A::SpendAuth) -> B::SpendAuth

Source

fn map_authorization(&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 the transaction’s bundles.

Source§

fn map_spend_auth( &self, s: <Authorized as Authorization>::SpendAuth, ) -> <Authorized as Authorization>::SpendAuth

Source§

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

Implementors§