pub struct SimpleSigner { /* private fields */ }Expand description
Simple sample implementation of ContractSigner.
Implementations§
Source§impl SimpleSigner
 
impl SimpleSigner
Sourcepub fn new(secret_key: SecretKey) -> Self
 
pub fn new(secret_key: SecretKey) -> Self
Creates a new SimpleSigner from the provided secret key.
Trait Implementations§
Source§impl Clone for SimpleSigner
 
impl Clone for SimpleSigner
Source§fn clone(&self) -> SimpleSigner
 
fn clone(&self) -> SimpleSigner
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
 
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from 
source. Read moreSource§impl ContractSigner for SimpleSigner
 
impl ContractSigner for SimpleSigner
Source§fn 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.Source§fn get_secret_key(&self) -> Result<SecretKey, Error>
 
fn get_secret_key(&self) -> Result<SecretKey, Error>
Returns the secret key associated with the 
ContractSigner.Source§impl Debug for SimpleSigner
 
impl Debug for SimpleSigner
impl Copy for SimpleSigner
Auto Trait Implementations§
impl Freeze for SimpleSigner
impl RefUnwindSafe for SimpleSigner
impl Send for SimpleSigner
impl Sync for SimpleSigner
impl Unpin for SimpleSigner
impl UnwindSafe for SimpleSigner
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
    T: ?Sized,
 
impl<T> BorrowMut<T> for Twhere
    T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
 
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more