pub struct Ledger<T: Transport> {
pub client: LiquidClient<T>,
}
Fields§
§client: LiquidClient<T>
Ledger Liquid Client
Implementations§
Trait Implementations§
Source§impl<T: Transport> Signer for &Ledger<T>
impl<T: Transport> Signer for &Ledger<T>
Source§type Error = LiquidClientError<TransportTcp>
type Error = LiquidClientError<TransportTcp>
The user defined error type returned by the signer.
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 fingerprint(&self) -> Result<Fingerprint, Self::Error>
fn fingerprint(&self) -> Result<Fingerprint, Self::Error>
Return the fingerprint of the signer (4 bytes)
Source§fn sign_message(
&self,
_message: &str,
_path: &DerivationPath,
) -> Result<MessageSignature, Self::Error>
fn sign_message( &self, _message: &str, _path: &DerivationPath, ) -> Result<MessageSignature, Self::Error>
Sign a message using Bitcoin’s message signing format
Source§fn identifier(&self) -> Result<XKeyIdentifier, Self::Error>
fn identifier(&self) -> Result<XKeyIdentifier, Self::Error>
Return the full identifier of the signer
Source§impl<T: Transport> Signer for Ledger<T>
impl<T: Transport> Signer for Ledger<T>
Source§type Error = LiquidClientError<TransportTcp>
type Error = LiquidClientError<TransportTcp>
The user defined error type returned by the signer.
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 fingerprint(&self) -> Result<Fingerprint, Self::Error>
fn fingerprint(&self) -> Result<Fingerprint, Self::Error>
Return the fingerprint of the signer (4 bytes)
Source§fn sign_message(
&self,
message: &str,
path: &DerivationPath,
) -> Result<MessageSignature, Self::Error>
fn sign_message( &self, message: &str, path: &DerivationPath, ) -> Result<MessageSignature, Self::Error>
Sign a message using Bitcoin’s message signing format
Source§fn identifier(&self) -> Result<XKeyIdentifier, Self::Error>
fn identifier(&self) -> Result<XKeyIdentifier, Self::Error>
Return the full identifier of the signer
Auto Trait Implementations§
impl<T> Freeze for Ledger<T>where
T: Freeze,
impl<T> RefUnwindSafe for Ledger<T>where
T: RefUnwindSafe,
impl<T> Send for Ledger<T>where
T: Send,
impl<T> Sync for Ledger<T>where
T: Sync,
impl<T> Unpin for Ledger<T>where
T: Unpin,
impl<T> UnwindSafe for Ledger<T>where
T: UnwindSafe,
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