pub trait MessageSigner<A: SignatureAlgorithmType>: Sized {
    // Required method
    async fn sign(
        self,
        algorithm: A::Instance,
        message: &[u8],
    ) -> Result<Vec<u8>, MessageSignatureError>;

    // Provided method
    async fn sign_multi(
        self,
        algorithm: A::Instance,
        messages: &[Vec<u8>],
    ) -> Result<Vec<u8>, MessageSignatureError> { ... }
}

Required Methods§

source

async fn sign( self, algorithm: A::Instance, message: &[u8], ) -> Result<Vec<u8>, MessageSignatureError>

Provided Methods§

source

async fn sign_multi( self, algorithm: A::Instance, messages: &[Vec<u8>], ) -> Result<Vec<u8>, MessageSignatureError>

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<A: SignatureAlgorithmType> MessageSigner<A> for JWK

source§

async fn sign( self, algorithm: A::Instance, message: &[u8], ) -> Result<Vec<u8>, MessageSignatureError>

source§

async fn sign_multi( self, algorithm: <A as SignatureAlgorithmType>::Instance, messages: &[Vec<u8>], ) -> Result<Vec<u8>, MessageSignatureError>

Implementors§