bitcoinjs / bolt11

A library for encoding and decoding lightning network payment requests as defined in BOLT #11.
MIT License
92 stars 64 forks source link

Is it possible to add custom tags to the invoice #65

Closed PatrickGeyer closed 1 year ago

PatrickGeyer commented 1 year ago

Would like to encode an invoice and include the "h" tag

PatrickGeyer commented 1 year ago

Or is that an alias for the "purpose_commit_hash"? https://github.com/lightning/bolts/blob/master/11-payment-encoding.md

junderw commented 1 year ago

Yes.

purpose_commit_hash is for longer descriptions, and only includes the hash of the long message in the invoice.