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
sourceimpl Clone for InvoiceSignature
impl Clone for InvoiceSignature
sourcefn clone(&self) -> InvoiceSignature
fn clone(&self) -> InvoiceSignature
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for InvoiceSignature
impl Debug for InvoiceSignature
sourceimpl Deref for InvoiceSignature
impl Deref for InvoiceSignature
type Target = RecoverableSignature
type Target = RecoverableSignature
The resulting type after dereferencing.
sourcefn deref(&self) -> &RecoverableSignature
fn deref(&self) -> &RecoverableSignature
Dereferences the value.
sourceimpl 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).
sourceimpl PartialEq<InvoiceSignature> for InvoiceSignature
impl PartialEq<InvoiceSignature> for InvoiceSignature
sourcefn 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 ==
. Read more
sourcefn ne(&self, other: &InvoiceSignature) -> bool
fn ne(&self, other: &InvoiceSignature) -> bool
This method tests for !=
.
sourceimpl ToBase32 for InvoiceSignature
impl ToBase32 for InvoiceSignature
sourcefn 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. Read more
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more