Struct lightning_invoice::PayeePubKey
source · [−]pub struct PayeePubKey(pub PublicKey);
Expand description
Payee public key
Tuple Fields
0: PublicKey
Methods from Deref<Target = PublicKey>
sourcepub fn as_ptr(&self) -> *const PublicKey
pub fn as_ptr(&self) -> *const PublicKey
Obtains a raw const pointer suitable for use with FFI functions
sourcepub fn serialize(&self) -> [u8; 33]
pub fn serialize(&self) -> [u8; 33]
Serialize the key as a byte-encoded pair of values. In compressed form the y-coordinate is represented by only a single bit, as x determines it up to one bit.
sourcepub fn serialize_uncompressed(&self) -> [u8; 65]
pub fn serialize_uncompressed(&self) -> [u8; 65]
Serialize the key as a byte-encoded pair of values, in uncompressed form
Trait Implementations
sourceimpl Base32Len for PayeePubKey
impl Base32Len for PayeePubKey
sourcefn base32_len(&self) -> usize
fn base32_len(&self) -> usize
Calculate the base32 serialized length
sourceimpl Clone for PayeePubKey
impl Clone for PayeePubKey
sourcefn clone(&self) -> PayeePubKey
fn clone(&self) -> PayeePubKey
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 PayeePubKey
impl Debug for PayeePubKey
sourceimpl Deref for PayeePubKey
impl Deref for PayeePubKey
sourceimpl From<PublicKey> for PayeePubKey
impl From<PublicKey> for PayeePubKey
sourceimpl FromBase32 for PayeePubKey
impl FromBase32 for PayeePubKey
type Err = ParseError
type Err = ParseError
The associated error which can be returned from parsing (e.g. because of bad padding).
sourcefn from_base32(field_data: &[u5]) -> Result<PayeePubKey, ParseError>
fn from_base32(field_data: &[u5]) -> Result<PayeePubKey, ParseError>
Convert a base32 slice to Self
.
sourceimpl Hash for PayeePubKey
impl Hash for PayeePubKey
sourceimpl PartialEq<PayeePubKey> for PayeePubKey
impl PartialEq<PayeePubKey> for PayeePubKey
sourcefn eq(&self, other: &PayeePubKey) -> bool
fn eq(&self, other: &PayeePubKey) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &PayeePubKey) -> bool
fn ne(&self, other: &PayeePubKey) -> bool
This method tests for !=
.
sourceimpl ToBase32 for PayeePubKey
impl ToBase32 for PayeePubKey
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 PayeePubKey
impl StructuralEq for PayeePubKey
impl StructuralPartialEq for PayeePubKey
Auto Trait Implementations
impl RefUnwindSafe for PayeePubKey
impl Send for PayeePubKey
impl Sync for PayeePubKey
impl Unpin for PayeePubKey
impl UnwindSafe for PayeePubKey
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