Trait ssi_verification_methods::Signer

source ·
pub trait Signer<M>{
    type MessageSigner;

    // Required method
    async fn for_method(
        &self,
        method: Cow<'_, M>,
    ) -> Result<Option<Self::MessageSigner>, SignatureError>;
}
Expand description

Verification method signer.

Required Associated Types§

Required Methods§

source

async fn for_method( &self, method: Cow<'_, M>, ) -> Result<Option<Self::MessageSigner>, SignatureError>

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<'s, M, S> Signer<M> for &'s S
where M: VerificationMethod, S: Signer<M>,

§

type MessageSigner = <S as Signer<M>>::MessageSigner

source§

async fn for_method( &self, method: Cow<'_, M>, ) -> Result<Option<<&'s S as Signer<M>>::MessageSigner>, SignatureError>

Implementors§