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).