[−][src]Struct lightning_invoice::RawInvoice
Represents an syntactically correct Invoice for a payment on the lightning network, but without the signature information. De- and encoding should not lead to information loss but may lead to different hashes.
For methods without docs see the corresponding methods in Invoice
.
Fields
hrp: RawHrp
human readable part
data: RawDataPart
data part
Methods
impl RawInvoice
[src]
impl RawInvoice
pub fn hash(&self) -> [u8; 32] | [src] |
Calculate the hash of the encoded RawInvoice
pub fn sign<F, E>(self, sign_method: F) -> Result<SignedRawInvoice, E> where | [src] |
Signs the invoice using the supplied sign_function
. This function MAY fail with an error
of type E
. Since the signature of a SignedRawInvoice
is not required to be valid there
are no constraints regarding the validity of the produced signature.
pub fn known_tagged_fields( | [src] |
Returns an iterator over all tagged fields with known semantics.
pub fn payment_hash(&self) -> Option<&Sha256> | [src] |
pub fn description(&self) -> Option<&Description> | [src] |
pub fn payee_pub_key(&self) -> Option<&PayeePubKey> | [src] |
pub fn description_hash(&self) -> Option<&Sha256> | [src] |
pub fn expiry_time(&self) -> Option<&ExpiryTime> | [src] |
pub fn min_final_cltv_expiry(&self) -> Option<&MinFinalCltvExpiry> | [src] |
pub fn fallbacks(&self) -> Vec<&Fallback> | [src] |
pub fn routes(&self) -> Vec<&Route> | [src] |
pub fn amount_pico_btc(&self) -> Option<u64> | [src] |
pub fn currency(&self) -> Currency | [src] |
Trait Implementations
impl Eq for RawInvoice
[src]
impl Eq for RawInvoice
impl PartialEq<RawInvoice> for RawInvoice
[src]
impl PartialEq<RawInvoice> for RawInvoice
fn eq(&self, other: &RawInvoice) -> bool | [src] |
fn ne(&self, other: &RawInvoice) -> bool | [src] |
impl Clone for RawInvoice
[src]
impl Clone for RawInvoice
fn clone(&self) -> RawInvoice | [src] |
fn clone_from(&mut self, source: &Self) | 1.0.0 [src] |
Performs copy-assignment from source
. Read more
impl Debug for RawInvoice
[src]
impl Debug for RawInvoice
Auto Trait Implementations
impl Send for RawInvoice
impl Send for RawInvoice
impl Sync for RawInvoice
impl Sync for RawInvoice
Blanket Implementations
impl<T> From for T
[src]
impl<T> From for T
impl<T, U> Into for T where
U: From<T>,
[src]
impl<T, U> Into for T where
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
impl<T, U> TryFrom for T where
T: From<U>,
[src]
impl<T, U> TryFrom for T where
T: From<U>,
type Error = !
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error> | [src] |
impl<T> Borrow for T where
T: ?Sized,
[src]
impl<T> Borrow for T where
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
impl<T> BorrowMut for T where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T | [src] |
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error> | [src] |
impl<T> Any for T where
T: 'static + ?Sized,
[src]
impl<T> Any for T where
T: 'static + ?Sized,
fn get_type_id(&self) -> TypeId | [src] |