Skip to main content

BreezSigner

Trait BreezSigner 

Source
pub trait BreezSigner: Send + Sync {
    // Required methods
    fn sign_ecdsa<'life0, 'life1, 'async_trait>(
        &'life0 self,
        message: Message,
        path: &'life1 DerivationPath,
    ) -> Pin<Box<dyn Future<Output = Result<Signature, SdkError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn sign_ecdsa_recoverable<'life0, 'life1, 'async_trait>(
        &'life0 self,
        message: Message,
        path: &'life1 DerivationPath,
    ) -> Pin<Box<dyn Future<Output = Result<RecoverableSignature, SdkError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn sign_hash_schnorr<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        hash: &'life1 [u8],
        path: &'life2 DerivationPath,
    ) -> Pin<Box<dyn Future<Output = Result<Signature, SdkError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
    fn derive_public_key<'life0, 'life1, 'async_trait>(
        &'life0 self,
        path: &'life1 DerivationPath,
    ) -> Pin<Box<dyn Future<Output = Result<PublicKey, SdkError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}
Expand description

Core signing capability: key derivation and ECDSA/Schnorr signatures. Every signer provides this. ECIES and HMAC are separate, optional capabilities (see EciesSigner, HmacSigner): a policy-restricted signer that can’t release key material provides signing only.

Required Methods§

Source

fn sign_ecdsa<'life0, 'life1, 'async_trait>( &'life0 self, message: Message, path: &'life1 DerivationPath, ) -> Pin<Box<dyn Future<Output = Result<Signature, SdkError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Signs a pre-hashed message using ECDSA at the given derivation path.

The caller must create the Message from a 32-byte hash digest before calling this method.

Source

fn sign_ecdsa_recoverable<'life0, 'life1, 'async_trait>( &'life0 self, message: Message, path: &'life1 DerivationPath, ) -> Pin<Box<dyn Future<Output = Result<RecoverableSignature, SdkError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Signs a pre-hashed message using recoverable ECDSA at the given derivation path.

The caller must create the Message from a 32-byte hash digest before calling.

Source

fn sign_hash_schnorr<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, hash: &'life1 [u8], path: &'life2 DerivationPath, ) -> Pin<Box<dyn Future<Output = Result<Signature, SdkError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Source

fn derive_public_key<'life0, 'life1, 'async_trait>( &'life0 self, path: &'life1 DerivationPath, ) -> Pin<Box<dyn Future<Output = Result<PublicKey, SdkError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Implementors§