pub struct LnurlAuthSignerAdapter { /* private fields */ }Expand description
Adapter that implements LnurlAuthSigner by delegating to BreezSigner
Implementations§
Source§impl LnurlAuthSignerAdapter
impl LnurlAuthSignerAdapter
pub fn new(signer: Arc<dyn BreezSigner>) -> 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 !UnwindSafe for LnurlAuthSignerAdapter
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>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> 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