SchemeSigner

Trait SchemeSigner 

Source
pub trait SchemeSigner<A>
where 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§

Source

type Scheme: Scheme

The payment scheme this signer supports.

Source

type Error: Error

The error type for signing failures.

Required Methods§

Source

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

Sign the given payment selection, producing a payload.

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§