pub struct SdkSigner { /* private fields */ }
Implementations§
Trait Implementations§
source§impl Signer for SdkSigner
impl Signer for SdkSigner
source§fn xpub(&self) -> Result<Vec<u8>, SignerError>
fn xpub(&self) -> Result<Vec<u8>, SignerError>
The master xpub encoded as 78 bytes length as defined in bip32 specification.
For reference: https://github.com/bitcoin/bips/blob/master/bip-0032.mediawiki#user-content-Serialization_format
source§fn derive_xpub(&self, derivation_path: String) -> Result<Vec<u8>, SignerError>
fn derive_xpub(&self, derivation_path: String) -> Result<Vec<u8>, SignerError>
The derived xpub encoded as 78 bytes length as defined in bip32 specification.
The derivation path is a string represents the shorter notation of the key tree to derive. For example:
m/49’/1’/0’/0/0
m/48’/1’/0’/0/0
For reference: https://github.com/bitcoin/bips/blob/master/bip-0032.mediawiki#user-content-The_key_tree
source§fn sign_ecdsa(
&self,
msg: Vec<u8>,
derivation_path: String,
) -> Result<Vec<u8>, SignerError>
fn sign_ecdsa( &self, msg: Vec<u8>, derivation_path: String, ) -> Result<Vec<u8>, SignerError>
Sign an ECDSA message using the private key derived from the given derivation path
source§fn slip77_master_blinding_key(&self) -> Result<Vec<u8>, SignerError>
fn slip77_master_blinding_key(&self) -> Result<Vec<u8>, SignerError>
Return the master blinding key for SLIP77: https://github.com/satoshilabs/slips/blob/master/slip-0077.md
source§fn sign_ecdsa_recoverable(&self, msg: Vec<u8>) -> Result<Vec<u8>, SignerError>
fn sign_ecdsa_recoverable(&self, msg: Vec<u8>) -> Result<Vec<u8>, SignerError>
Sign an ECDSA message using the private key derived from the master key
source§fn hmac_sha256(
&self,
msg: Vec<u8>,
derivation_path: String,
) -> Result<Vec<u8>, SignerError>
fn hmac_sha256( &self, msg: Vec<u8>, derivation_path: String, ) -> Result<Vec<u8>, SignerError>
HMAC-SHA256 using the private key derived from the given derivation path
This is used to calculate the linking key of lnurl-auth specification: https://github.com/lnurl/luds/blob/luds/05.md
Auto Trait Implementations§
impl Freeze for SdkSigner
impl RefUnwindSafe for SdkSigner
impl Send for SdkSigner
impl Sync for SdkSigner
impl Unpin for SdkSigner
impl UnwindSafe for SdkSigner
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request