pub struct Signer { /* private fields */ }
Expand description
A Software signer, wrapper of lwk_signer::SwSigner
Implementations§
Source§impl Signer
impl Signer
Sourcepub fn sign(&self, pset: Pset) -> Result<Pset, Error>
pub fn sign(&self, pset: Pset) -> Result<Pset, Error>
Sign and consume the given PSET, returning the signed one
Sourcepub fn sign_message(&self, message: &str) -> Result<String, Error>
pub fn sign_message(&self, message: &str) -> Result<String, Error>
Sign a message with the master key, return the signature as a base64 string
pub fn wpkh_slip77_descriptor(&self) -> Result<WolletDescriptor, Error>
pub fn get_master_xpub(&self) -> Result<Xpub, Error>
pub fn keyorigin_xpub(&self, bip: &Bip) -> Result<String, Error>
pub fn mnemonic(&self) -> Mnemonic
Trait Implementations§
Source§impl FromWasmAbi for Signer
impl FromWasmAbi for Signer
Source§impl IntoWasmAbi for Signer
impl IntoWasmAbi for Signer
Source§impl LongRefFromWasmAbi for Signer
impl LongRefFromWasmAbi for Signer
Source§impl OptionFromWasmAbi for Signer
impl OptionFromWasmAbi for Signer
Source§impl OptionIntoWasmAbi for Signer
impl OptionIntoWasmAbi for Signer
Source§impl RefFromWasmAbi for Signer
impl RefFromWasmAbi for Signer
Source§impl RefMutFromWasmAbi for Signer
impl RefMutFromWasmAbi for Signer
Source§impl TryFromJsValue for Signer
impl TryFromJsValue for Signer
Source§impl VectorFromWasmAbi for Signer
impl VectorFromWasmAbi for Signer
Source§impl VectorIntoWasmAbi for Signer
impl VectorIntoWasmAbi for Signer
impl SupportsConstructor for Signer
impl SupportsInstanceProperty for Signer
impl SupportsStaticProperty for Signer
Auto Trait Implementations§
impl Freeze for Signer
impl RefUnwindSafe for Signer
impl Send for Signer
impl Sync for Signer
impl Unpin for Signer
impl UnwindSafe for Signer
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
Source§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
Same as
IntoWasmAbi::Abi
Source§fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
Same as
IntoWasmAbi::into_abi
, except that it may throw and never
return in the case of Err
.