Struct lightning_invoice::InvoiceSignature
source · pub struct InvoiceSignature(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 InvoiceSignature
impl Clone for InvoiceSignature
source§fn clone(&self) -> InvoiceSignature
fn clone(&self) -> InvoiceSignature
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 InvoiceSignature
impl Debug for InvoiceSignature
source§impl Deref for InvoiceSignature
impl Deref for InvoiceSignature
§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 InvoiceSignature
impl FromBase32 for InvoiceSignature
§type Err = ParseError
type Err = ParseError
The associated error which can be returned from parsing (e.g. because of bad padding).
source§impl Hash for InvoiceSignature
impl Hash for InvoiceSignature
source§impl PartialEq<InvoiceSignature> for InvoiceSignature
impl PartialEq<InvoiceSignature> for InvoiceSignature
source§fn eq(&self, other: &InvoiceSignature) -> bool
fn eq(&self, other: &InvoiceSignature) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl ToBase32 for InvoiceSignature
impl ToBase32 for InvoiceSignature
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 InvoiceSignature
impl StructuralEq for InvoiceSignature
impl StructuralPartialEq for InvoiceSignature
Auto Trait Implementations§
impl RefUnwindSafe for InvoiceSignature
impl Send for InvoiceSignature
impl Sync for InvoiceSignature
impl Unpin for InvoiceSignature
impl UnwindSafe for InvoiceSignature
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