pub struct Bolt11InvoiceSignature(pub RecoverableSignature);
Expand description
Recoverable signature
Tuple Fields§
§0: RecoverableSignature
Methods from Deref<Target = RecoverableSignature>§
sourcepub fn as_ptr(&self) -> *const RecoverableSignature
👎Deprecated since 0.25.0: Use Self::as_c_ptr if you need to access the FFI layer
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 Bolt11InvoiceSignature
impl Clone for Bolt11InvoiceSignature
source§fn clone(&self) -> Bolt11InvoiceSignature
fn clone(&self) -> Bolt11InvoiceSignature
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 Bolt11InvoiceSignature
impl Debug for Bolt11InvoiceSignature
source§impl Deref for Bolt11InvoiceSignature
impl Deref for Bolt11InvoiceSignature
source§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 Bolt11InvoiceSignature
impl FromBase32 for Bolt11InvoiceSignature
source§type Err = Bolt11ParseError
type Err = Bolt11ParseError
The associated error which can be returned from parsing (e.g. because of bad padding).
source§impl Hash for Bolt11InvoiceSignature
impl Hash for Bolt11InvoiceSignature
source§impl Ord for Bolt11InvoiceSignature
impl Ord for Bolt11InvoiceSignature
source§impl PartialEq for Bolt11InvoiceSignature
impl PartialEq for Bolt11InvoiceSignature
source§impl PartialOrd for Bolt11InvoiceSignature
impl PartialOrd for Bolt11InvoiceSignature
source§impl ToBase32 for Bolt11InvoiceSignature
impl ToBase32 for Bolt11InvoiceSignature
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 Bolt11InvoiceSignature
impl StructuralPartialEq for Bolt11InvoiceSignature
Auto Trait Implementations§
impl Freeze for Bolt11InvoiceSignature
impl RefUnwindSafe for Bolt11InvoiceSignature
impl Send for Bolt11InvoiceSignature
impl Sync for Bolt11InvoiceSignature
impl Unpin for Bolt11InvoiceSignature
impl UnwindSafe for Bolt11InvoiceSignature
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)