Struct lightning_invoice::PayeePubKey [−][src]
pub struct PayeePubKey(pub PublicKey);
Expand description
Payee public key
Tuple Fields
0: PublicKey
Methods from Deref<Target = PublicKey>
Obtains a raw const pointer suitable for use with FFI functions
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.
Serialize the key as a byte-encoded pair of values, in uncompressed form
Trait Implementations
Calculate the base32 serialized length
type Err = ParseError
type Err = ParseError
The associated error which can be returned from parsing (e.g. because of bad padding).
Convert a base32 slice to Self
.
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Encode as base32 and write it to the supplied writer Implementations shouldn’t allocate. Read more
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
Mutably borrows from an owned value. Read more