SchemeSigner

Trait SchemeSigner 

Source
pub trait SchemeSigner<A: Address<Network = <Self::Scheme as Scheme>::Network>> {
    type Scheme: Scheme;
    type Error: Error;

    // Required method
    fn sign(
        &self,
        payment: &PaymentSelection<A>,
    ) -> impl Future<Output = Result<<Self::Scheme as Scheme>::Payload, Self::Error>>;
}
Expand description

Signer for a given payment scheme.

Required Associated Types§

Required Methods§

Source

fn sign( &self, payment: &PaymentSelection<A>, ) -> impl Future<Output = Result<<Self::Scheme as Scheme>::Payload, Self::Error>>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§