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§
Sourcefn get_public_key<C: Signing>(
&self,
secp: &Secp256k1<C>,
) -> Result<PublicKey, Error>
fn get_public_key<C: Signing>( &self, secp: &Secp256k1<C>, ) -> Result<PublicKey, Error>
Get the public key associated with the ContractSigner.
Sourcefn get_secret_key(&self) -> Result<SecretKey, Error>
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".