ContractSigner

Trait ContractSigner 

Source
pub trait ContractSigner: Clone {
    // Required methods
    fn get_public_key<C: Signing>(
        &self,
        secp: &Secp256k1<C>,
    ) -> Result<PublicKey, Error>;
    fn get_secret_key(&self) -> Result<SecretKey, Error>;
}
Expand description

Provides signing related functionalities.

Required Methods§

Source

fn get_public_key<C: Signing>( &self, secp: &Secp256k1<C>, ) -> Result<PublicKey, Error>

Get the public key associated with the ContractSigner.

Source

fn get_secret_key(&self) -> Result<SecretKey, Error>

Returns the secret key associated with the ContractSigner.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl ContractSigner for SecretKey

Implementors§