soroban_sdk::testutils::ed25519

Trait Sign

Source
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,