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§
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
Implementations on Foreign Types§
Source§impl MapAuth<Authorized, Authorized> for ()
The identity map.
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.