Struct Bolt11InvoiceSignature
pub struct Bolt11InvoiceSignature(pub RecoverableSignature);
Expand description
Recoverable signature
Tuple Fields§
§0: RecoverableSignature
Methods from Deref<Target = RecoverableSignature>§
pub fn as_ptr(&self) -> *const RecoverableSignature
pub fn as_ptr(&self) -> *const RecoverableSignature
Obtains a raw pointer suitable for use with FFI functions.
pub fn serialize_compact(&self) -> (RecoveryId, [u8; 64])
pub fn serialize_compact(&self) -> (RecoveryId, [u8; 64])
Serializes the recoverable signature in compact format.
pub 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§
§impl Clone for Bolt11InvoiceSignature
impl Clone for Bolt11InvoiceSignature
§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 more§impl Debug for Bolt11InvoiceSignature
impl Debug for Bolt11InvoiceSignature
§impl Deref for Bolt11InvoiceSignature
impl Deref for Bolt11InvoiceSignature
§type Target = RecoverableSignature
type Target = RecoverableSignature
The resulting type after dereferencing.
§fn deref(&self) -> &RecoverableSignature
fn deref(&self) -> &RecoverableSignature
Dereferences the value.
§impl FromBase32 for Bolt11InvoiceSignature
impl FromBase32 for Bolt11InvoiceSignature
§type Err = Bolt11ParseError
type Err = Bolt11ParseError
The associated error which can be returned from parsing (e.g. because of bad padding).
§fn from_base32(
signature: &[u5],
) -> Result<Bolt11InvoiceSignature, <Bolt11InvoiceSignature as FromBase32>::Err>
fn from_base32( signature: &[u5], ) -> Result<Bolt11InvoiceSignature, <Bolt11InvoiceSignature as FromBase32>::Err>
Convert a base32 slice to
Self
.§impl Hash for Bolt11InvoiceSignature
impl Hash for Bolt11InvoiceSignature
§impl Ord for Bolt11InvoiceSignature
impl Ord for Bolt11InvoiceSignature
§fn cmp(&self, other: &Bolt11InvoiceSignature) -> Ordering
fn cmp(&self, other: &Bolt11InvoiceSignature) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
§impl PartialEq for Bolt11InvoiceSignature
impl PartialEq for Bolt11InvoiceSignature
§impl PartialOrd for Bolt11InvoiceSignature
impl PartialOrd for Bolt11InvoiceSignature
§impl ToBase32 for Bolt11InvoiceSignature
impl ToBase32 for Bolt11InvoiceSignature
§fn write_base32<W>(&self, writer: &mut W) -> Result<(), <W as WriteBase32>::Err>where
W: WriteBase32,
fn write_base32<W>(&self, writer: &mut W) -> Result<(), <W as WriteBase32>::Err>where
W: WriteBase32,
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§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
)§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request