Enum lwk_signer::AnySigner
source · pub enum AnySigner {
Software(SwSigner),
Jade(Jade, XKeyIdentifier),
}
Expand description
A signer that can be a software signer SwSigner
or a lwk_jade::Jade
Variants§
Trait Implementations§
source§impl Signer for &AnySigner
impl Signer for &AnySigner
type Error = SignerError
source§fn sign(
&self,
pset: &mut PartiallySignedTransaction
) -> Result<u32, Self::Error>
fn sign( &self, pset: &mut PartiallySignedTransaction ) -> Result<u32, Self::Error>
Try to sign the given pset, mutating it in place.
returns how many signatures were added or overwritten
source§fn derive_xpub(&self, path: &DerivationPath) -> Result<Xpub, Self::Error>
fn derive_xpub(&self, path: &DerivationPath) -> Result<Xpub, Self::Error>
Derive an xpub from the master, path can contains hardened derivations
source§fn slip77_master_blinding_key(&self) -> Result<MasterBlindingKey, Self::Error>
fn slip77_master_blinding_key(&self) -> Result<MasterBlindingKey, Self::Error>
Return the slip77 master blinding key
source§fn identifier(&self) -> Result<XKeyIdentifier, Self::Error>
fn identifier(&self) -> Result<XKeyIdentifier, Self::Error>
Return the full identifier of the signer
source§fn fingerprint(&self) -> Result<Fingerprint, Self::Error>
fn fingerprint(&self) -> Result<Fingerprint, Self::Error>
Return the fingerprint of the signer (4 bytes)
source§fn keyorigin_xpub(
&self,
bip: Bip,
is_mainnet: bool
) -> Result<String, Self::Error>
fn keyorigin_xpub( &self, bip: Bip, is_mainnet: bool ) -> Result<String, Self::Error>
Return keyorigin and xpub, like “[73c5da0a/84h/1h/0h]tpub…”
fn is_mainnet(&self) -> Result<bool, Self::Error>
source§impl Signer for AnySigner
impl Signer for AnySigner
type Error = SignerError
source§fn sign(
&self,
pset: &mut PartiallySignedTransaction
) -> Result<u32, Self::Error>
fn sign( &self, pset: &mut PartiallySignedTransaction ) -> Result<u32, Self::Error>
Try to sign the given pset, mutating it in place.
returns how many signatures were added or overwritten
source§fn derive_xpub(&self, path: &DerivationPath) -> Result<Xpub, Self::Error>
fn derive_xpub(&self, path: &DerivationPath) -> Result<Xpub, Self::Error>
Derive an xpub from the master, path can contains hardened derivations
source§fn slip77_master_blinding_key(&self) -> Result<MasterBlindingKey, Self::Error>
fn slip77_master_blinding_key(&self) -> Result<MasterBlindingKey, Self::Error>
Return the slip77 master blinding key
source§fn identifier(&self) -> Result<XKeyIdentifier, Self::Error>
fn identifier(&self) -> Result<XKeyIdentifier, Self::Error>
Return the full identifier of the signer
source§fn fingerprint(&self) -> Result<Fingerprint, Self::Error>
fn fingerprint(&self) -> Result<Fingerprint, Self::Error>
Return the fingerprint of the signer (4 bytes)
source§fn keyorigin_xpub(
&self,
bip: Bip,
is_mainnet: bool
) -> Result<String, Self::Error>
fn keyorigin_xpub( &self, bip: Bip, is_mainnet: bool ) -> Result<String, Self::Error>
Return keyorigin and xpub, like “[73c5da0a/84h/1h/0h]tpub…”
fn is_mainnet(&self) -> Result<bool, Self::Error>
Auto Trait Implementations§
impl !Freeze for AnySigner
impl RefUnwindSafe for AnySigner
impl Send for AnySigner
impl Sync for AnySigner
impl Unpin for AnySigner
impl UnwindSafe for AnySigner
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