pub struct LnurlAuthSignerAdapter { /* private fields */ }Expand description
Adapter that implements LnurlAuthSigner by delegating signing to
BreezSigner and the HMAC step to HmacSigner.
Implementations§
Source§impl LnurlAuthSignerAdapter
impl LnurlAuthSignerAdapter
pub fn new(signer: Arc<dyn BreezSigner>, hmac: Arc<dyn HmacSigner>) -> Self
Trait Implementations§
Source§impl LnurlAuthSigner for LnurlAuthSignerAdapter
impl LnurlAuthSigner for LnurlAuthSignerAdapter
fn derive_public_key<'life0, 'life1, 'async_trait>(
&'life0 self,
derivation_path: &'life1 [ChildNumber],
) -> Pin<Box<dyn Future<Output = LnurlResult<PublicKey>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn sign_ecdsa<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
msg: &'life1 [u8],
derivation_path: &'life2 [ChildNumber],
) -> Pin<Box<dyn Future<Output = LnurlResult<Vec<u8>>> + 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_derivation_path: &'life1 [ChildNumber],
input: &'life2 [u8],
) -> Pin<Box<dyn Future<Output = LnurlResult<Vec<u8>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Auto Trait Implementations§
impl Freeze for LnurlAuthSignerAdapter
impl !RefUnwindSafe for LnurlAuthSignerAdapter
impl Send for LnurlAuthSignerAdapter
impl Sync for LnurlAuthSignerAdapter
impl Unpin for LnurlAuthSignerAdapter
impl UnsafeUnpin for LnurlAuthSignerAdapter
impl !UnwindSafe for LnurlAuthSignerAdapter
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