[][src]Struct lightning_invoice::Signature

pub struct Signature(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 Signature[src]

impl Debug for Signature[src]

impl Deref for Signature[src]

type Target = RecoverableSignature

The resulting type after dereferencing.

impl Eq for Signature[src]

impl FromBase32 for Signature[src]

type Err = ParseError

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

impl PartialEq<Signature> for Signature[src]

impl StructuralEq for Signature[src]

impl StructuralPartialEq for Signature[src]

impl ToBase32 for Signature[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.