Bolt12InvoiceExt

Trait Bolt12InvoiceExt 

Source
pub trait Bolt12InvoiceExt: Sized {
    // Required methods
    fn payment_hash(&self) -> PaymentHash;
    fn amount_milli_satoshis(&self) -> Option<u64>;
    fn check_signature(&self) -> Result<(), CheckSignatureError>;
    fn bytes(&self) -> Vec<u8> ;
    fn from_bytes(bytes: &[u8]) -> Result<Self, Bolt12ParseError>;
    fn validate_issuance(&self, offer: Offer) -> Result<(), CheckSignatureError>;
    fn from_str(s: &str) -> Result<Bolt12Invoice, Bolt12ParseError>;
}

Required Methods§

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§