pub struct BreezSignerImpl { /* private fields */ }Expand description
SDK-layer signer for non-Spark operations (LNURL-auth, real-time sync, message signing, ECIES). It holds a single master key and derives every key from it by BIP32 path; the Spark layer decides which master to hand it.
Implementations§
Trait Implementations§
Source§impl BreezSigner for BreezSignerImpl
impl BreezSigner for BreezSignerImpl
fn derive_public_key<'life0, 'life1, 'async_trait>(
&'life0 self,
path: &'life1 DerivationPath,
) -> Pin<Box<dyn Future<Output = Result<PublicKey, SdkError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Source§fn sign_ecdsa<'life0, 'life1, 'async_trait>(
&'life0 self,
message: Message,
path: &'life1 DerivationPath,
) -> Pin<Box<dyn Future<Output = Result<Signature, SdkError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn sign_ecdsa<'life0, 'life1, 'async_trait>(
&'life0 self,
message: Message,
path: &'life1 DerivationPath,
) -> Pin<Box<dyn Future<Output = Result<Signature, SdkError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Signs a pre-hashed message using ECDSA at the given derivation path. Read more
Source§fn sign_ecdsa_recoverable<'life0, 'life1, 'async_trait>(
&'life0 self,
message: Message,
path: &'life1 DerivationPath,
) -> Pin<Box<dyn Future<Output = Result<RecoverableSignature, SdkError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn sign_ecdsa_recoverable<'life0, 'life1, 'async_trait>(
&'life0 self,
message: Message,
path: &'life1 DerivationPath,
) -> Pin<Box<dyn Future<Output = Result<RecoverableSignature, SdkError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Signs a pre-hashed message using recoverable ECDSA at the given derivation path. Read more
fn sign_hash_schnorr<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
hash: &'life1 [u8],
path: &'life2 DerivationPath,
) -> Pin<Box<dyn Future<Output = Result<Signature, SdkError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Source§impl EciesSigner for BreezSignerImpl
impl EciesSigner for BreezSignerImpl
fn encrypt_ecies<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
message: &'life1 [u8],
path: &'life2 DerivationPath,
) -> Pin<Box<dyn Future<Output = Result<Vec<u8>, SdkError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn decrypt_ecies<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
message: &'life1 [u8],
path: &'life2 DerivationPath,
) -> Pin<Box<dyn Future<Output = Result<Vec<u8>, SdkError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Source§impl HmacSigner for BreezSignerImpl
impl HmacSigner for BreezSignerImpl
Source§fn hmac_sha256<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
key_path: &'life1 DerivationPath,
input: &'life2 [u8],
) -> Pin<Box<dyn Future<Output = Result<Hmac<Hash>, SdkError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn hmac_sha256<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
key_path: &'life1 DerivationPath,
input: &'life2 [u8],
) -> Pin<Box<dyn Future<Output = Result<Hmac<Hash>, SdkError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Computes HMAC-SHA256 using a key derived at the given path.
Auto Trait Implementations§
impl Freeze for BreezSignerImpl
impl RefUnwindSafe for BreezSignerImpl
impl Send for BreezSignerImpl
impl Sync for BreezSignerImpl
impl Unpin for BreezSignerImpl
impl UnsafeUnpin for BreezSignerImpl
impl UnwindSafe for BreezSignerImpl
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§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