pub struct LocalSigner { /* private fields */ }Implementations§
Source§impl LocalSigner
impl LocalSigner
pub fn new(private_key: PrivateKey) -> Self
Trait Implementations§
Source§impl BtcTxSigner for LocalSigner
impl BtcTxSigner for LocalSigner
Source§fn schnorr_public_key<'life0, 'life1, 'async_trait>(
&'life0 self,
derivation_path: &'life1 DerivationPath,
) -> Pin<Box<dyn Future<Output = OrdResult<XOnlyPublicKey>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn schnorr_public_key<'life0, 'life1, 'async_trait>(
&'life0 self,
derivation_path: &'life1 DerivationPath,
) -> Pin<Box<dyn Future<Output = OrdResult<XOnlyPublicKey>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Returns the schnorr public key.
Source§fn ecdsa_public_key<'life0, 'life1, 'async_trait>(
&'life0 self,
derivation_path: &'life1 DerivationPath,
) -> Pin<Box<dyn Future<Output = OrdResult<PublicKey>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn ecdsa_public_key<'life0, 'life1, 'async_trait>(
&'life0 self,
derivation_path: &'life1 DerivationPath,
) -> Pin<Box<dyn Future<Output = OrdResult<PublicKey>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Retrieves the ECDSA public key at the given derivation path.
Source§fn sign_with_ecdsa<'life0, 'life1, 'async_trait>(
&'life0 self,
message: Message,
derivation_path: &'life1 DerivationPath,
) -> Pin<Box<dyn Future<Output = Result<Signature, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn sign_with_ecdsa<'life0, 'life1, 'async_trait>(
&'life0 self,
message: Message,
derivation_path: &'life1 DerivationPath,
) -> Pin<Box<dyn Future<Output = Result<Signature, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Signs a message with an ECDSA key and returns the signature.
Source§fn sign_with_schnorr<'life0, 'life1, 'async_trait>(
&'life0 self,
message: Message,
derivation_path: &'life1 DerivationPath,
) -> Pin<Box<dyn Future<Output = Result<Signature, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn sign_with_schnorr<'life0, 'life1, 'async_trait>(
&'life0 self,
message: Message,
derivation_path: &'life1 DerivationPath,
) -> Pin<Box<dyn Future<Output = Result<Signature, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Signs a message with a Schnorr key and returns the signature.
Auto Trait Implementations§
impl Freeze for LocalSigner
impl RefUnwindSafe for LocalSigner
impl Send for LocalSigner
impl Sync for LocalSigner
impl Unpin for LocalSigner
impl UnsafeUnpin for LocalSigner
impl UnwindSafe for LocalSigner
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