Struct breez_sdk_core::lightning::util::test_utils::TestNodeSigner
pub struct TestNodeSigner { /* private fields */ }
Implementations§
§impl TestNodeSigner
impl TestNodeSigner
pub fn new(node_secret: SecretKey) -> TestNodeSigner
Trait Implementations§
§impl NodeSigner for TestNodeSigner
impl NodeSigner for TestNodeSigner
§fn get_inbound_payment_key_material(&self) -> KeyMaterial
fn get_inbound_payment_key_material(&self) -> KeyMaterial
Get secret key material as bytes for use in encrypting and decrypting inbound payment data. Read more
§fn ecdh(
&self,
recipient: Recipient,
other_key: &PublicKey,
tweak: Option<&Scalar>,
) -> Result<SharedSecret, ()>
fn ecdh( &self, recipient: Recipient, other_key: &PublicKey, tweak: Option<&Scalar>, ) -> Result<SharedSecret, ()>
Gets the ECDH shared secret of our node secret and
other_key
, multiplying by tweak
if
one is provided. Note that this tweak can be applied to other_key
instead of our node
secret, though this is less efficient. Read more§fn sign_invoice(
&self,
_: &[u8],
_: &[u5],
_: Recipient,
) -> Result<RecoverableSignature, ()>
fn sign_invoice( &self, _: &[u8], _: &[u5], _: Recipient, ) -> Result<RecoverableSignature, ()>
Sign an invoice. Read more
§fn sign_bolt12_invoice_request(
&self,
_invoice_request: &UnsignedInvoiceRequest,
) -> Result<Signature, ()>
fn sign_bolt12_invoice_request( &self, _invoice_request: &UnsignedInvoiceRequest, ) -> Result<Signature, ()>
Signs the
TaggedHash
of a BOLT 12 invoice request. Read more§fn sign_bolt12_invoice(
&self,
_invoice: &UnsignedBolt12Invoice,
) -> Result<Signature, ()>
fn sign_bolt12_invoice( &self, _invoice: &UnsignedBolt12Invoice, ) -> Result<Signature, ()>
Signs the
TaggedHash
of a BOLT 12 invoice. Read more§fn sign_gossip_message(
&self,
_msg: UnsignedGossipMessage<'_>,
) -> Result<Signature, ()>
fn sign_gossip_message( &self, _msg: UnsignedGossipMessage<'_>, ) -> Result<Signature, ()>
Sign a gossip message. Read more
Auto Trait Implementations§
impl Freeze for TestNodeSigner
impl RefUnwindSafe for TestNodeSigner
impl Send for TestNodeSigner
impl Sync for TestNodeSigner
impl Unpin for TestNodeSigner
impl UnwindSafe for TestNodeSigner
Blanket Implementations§
§impl<T> AnySync for T
impl<T> AnySync for T
§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> Downcast for Twhere
T: AsAny + ?Sized,
impl<T> Downcast for Twhere
T: AsAny + ?Sized,
§fn downcast_ref<T>(&self) -> Option<&T>where
T: AsAny,
fn downcast_ref<T>(&self) -> Option<&T>where
T: AsAny,
Forward to the method defined on the type
Any
.§fn downcast_mut<T>(&mut self) -> Option<&mut T>where
T: AsAny,
fn downcast_mut<T>(&mut self) -> Option<&mut T>where
T: AsAny,
Forward to the method defined on the type
Any
.§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