pub trait Sign<MSG> {
    type Signature;
    type Error;

    // Required method
    fn sign(&self, m: MSG) -> Result<Self::Signature, Self::Error>;
}
Available on crate feature testutils only.
Expand description

Sign implementations produce signatures for types that can be represented as the MSG.

Required Associated Types§

Required Methods§

source

fn sign(&self, m: MSG) -> Result<Self::Signature, Self::Error>

Sign produces a signature for MSGs.

Implementors§

source§

impl<S, M> Sign<M> for S
where S: Signer<Signature>, M: TryInto<ScVal>, <M as TryInto<ScVal>>::Error: Error,

§

type Error = Error<<M as TryInto<ScVal>>::Error>

§

type Signature = [u8; 64]