Skip to main content

Crate bolt12_common

Crate bolt12_common 

Source
Expand description

Decode and verify BOLT 12 offers, invoices, and payer proofs.

Structs§

BlindedHop
BlindedPath
Blinded message or payment path without onion ciphertext.
BlindedPayInfo
Check
Error
Machine-readable failure from decode or argument validation.
Invoice
Offer
PayerProof
UnknownTlv
Unknown TLV in the invoice type range (160–239).
VerifyReport

Enums§

Amount
Decoded
Curated decode of a BOLT 12 string.
ErrorKind
IntroductionNode
VerifyKind

Functions§

decode
Decode a BOLT 12 bech32 string by HRP (lno / lni / lnp).
verify_payer_proof
Verify an official BOLT 12 payer proof (lnp1...) against an offer.
verify_payment
Verify an Ocean-style offer + invoice + preimage triple.