Struct lightning_invoice::InvoiceSignature[][src]

pub struct InvoiceSignature(pub RecoverableSignature);

Recoverable signature

Methods from Deref<Target = RecoverableSignature>

pub fn as_ptr(&self) -> *const RecoverableSignature[src]

Obtains a raw pointer suitable for use with FFI functions

pub fn serialize_compact(&self) -> (RecoveryId, [u8; 64])[src]

Serializes the recoverable signature in compact format

pub fn to_standard(&self) -> Signature[src]

Converts a recoverable signature to a non-recoverable one (this is needed for verification

Trait Implementations

impl Clone for InvoiceSignature[src]

impl Debug for InvoiceSignature[src]

impl Deref for InvoiceSignature[src]

type Target = RecoverableSignature

The resulting type after dereferencing.

impl Eq for InvoiceSignature[src]

impl FromBase32 for InvoiceSignature[src]

type Err = ParseError

The associated error which can be returned from parsing (e.g. because of bad padding).

impl PartialEq<InvoiceSignature> for InvoiceSignature[src]

impl StructuralEq for InvoiceSignature[src]

impl StructuralPartialEq for InvoiceSignature[src]

impl ToBase32 for InvoiceSignature[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.