[][src]Trait radicle_keystore::sign::ed25519::Signer

pub trait Signer {
    type Error;
    fn public_key(&self) -> PublicKey;
#[must_use] fn sign<'life0, 'life1, 'async_trait>(
        &'life0 self,
        data: &'life1 [u8]
    ) -> Pin<Box<dyn Future<Output = Result<Signature, Self::Error>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; }

Associated Types

type Error

Loading content...

Required methods

fn public_key(&self) -> PublicKey

Obtain the PublicKey used for signing

#[must_use]fn sign<'life0, 'life1, 'async_trait>(
    &'life0 self,
    data: &'life1 [u8]
) -> Pin<Box<dyn Future<Output = Result<Signature, Self::Error>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    'life1: 'async_trait,
    Self: 'async_trait, 

Sign the supplied data with the secret key corresponding to Signer::public_key

Loading content...

Implementations on Foreign Types

impl Signer for SigningKey[src]

type Error = Infallible

Loading content...

Implementors

Loading content...