pub struct Bolt11InvoiceSignature(pub RecoverableSignature);
Expand description
Recoverable signature
Tuple Fields§
§0: RecoverableSignature
Methods from Deref<Target = RecoverableSignature>§
sourcepub fn as_ptr(&self) -> *const RecoverableSignature
pub fn as_ptr(&self) -> *const RecoverableSignature
Obtains a raw pointer suitable for use with FFI functions.
sourcepub fn serialize_compact(&self) -> (RecoveryId, [u8; 64])
pub fn serialize_compact(&self) -> (RecoveryId, [u8; 64])
Serializes the recoverable signature in compact format.
sourcepub fn to_standard(&self) -> Signature
pub fn to_standard(&self) -> Signature
Converts a recoverable signature to a non-recoverable one (this is needed for verification).
Trait Implementations§
source§impl Clone for Bolt11InvoiceSignature
impl Clone for Bolt11InvoiceSignature
source§fn clone(&self) -> Bolt11InvoiceSignature
fn clone(&self) -> Bolt11InvoiceSignature
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for Bolt11InvoiceSignature
impl Debug for Bolt11InvoiceSignature
source§impl Deref for Bolt11InvoiceSignature
impl Deref for Bolt11InvoiceSignature
§type Target = RecoverableSignature
type Target = RecoverableSignature
The resulting type after dereferencing.
source§fn deref(&self) -> &RecoverableSignature
fn deref(&self) -> &RecoverableSignature
Dereferences the value.
source§impl FromBase32 for Bolt11InvoiceSignature
impl FromBase32 for Bolt11InvoiceSignature
§type Err = Bolt11ParseError
type Err = Bolt11ParseError
The associated error which can be returned from parsing (e.g. because of bad padding).
source§impl Hash for Bolt11InvoiceSignature
impl Hash for Bolt11InvoiceSignature
source§impl Ord for Bolt11InvoiceSignature
impl Ord for Bolt11InvoiceSignature
source§impl PartialEq<Bolt11InvoiceSignature> for Bolt11InvoiceSignature
impl PartialEq<Bolt11InvoiceSignature> for Bolt11InvoiceSignature
source§fn eq(&self, other: &Bolt11InvoiceSignature) -> bool
fn eq(&self, other: &Bolt11InvoiceSignature) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<Bolt11InvoiceSignature> for Bolt11InvoiceSignature
impl PartialOrd<Bolt11InvoiceSignature> for Bolt11InvoiceSignature
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl ToBase32 for Bolt11InvoiceSignature
impl ToBase32 for Bolt11InvoiceSignature
source§fn write_base32<W: WriteBase32>(
&self,
writer: &mut W
) -> Result<(), <W as WriteBase32>::Err>
fn write_base32<W: WriteBase32>( &self, writer: &mut W ) -> Result<(), <W as WriteBase32>::Err>
Encode as base32 and write it to the supplied writer
Implementations shouldn’t allocate.
impl Eq for Bolt11InvoiceSignature
impl StructuralEq for Bolt11InvoiceSignature
impl StructuralPartialEq for Bolt11InvoiceSignature
Auto Trait Implementations§
impl RefUnwindSafe for Bolt11InvoiceSignature
impl Send for Bolt11InvoiceSignature
impl Sync for Bolt11InvoiceSignature
impl Unpin for Bolt11InvoiceSignature
impl UnwindSafe for Bolt11InvoiceSignature
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