Bolt12 offers support
👋🏼 I wrote a minimal support for bolt12 offers.
What's going on here
As bolt12 was merged and part of the lightning specs I thought that would be fun to decode offers in this page. I had few options to do this changes:
- Writing a decoding functions of bolt12 TLVs
- Use LDK wasm
- Use custom wasm
Then I thought that BoltzExchange probably had the same dilemma when implementing bolt12 on their webpage. So They solved bringing Offer and Invoice from LDK and building their own wasm.
Said so, I tried using LDK and Boltz one but Webpack version was a bit deprecated. So I went to upgrade react scripts, adding and removing packages so project could use newer webpack (with native support of wasm).
After upgrading, added a bolt12 decoding from the wasm and expose it minimally into the UI.
What to check?
- I didn't break stuff upgrading (I think not, tried building and running it in local)
- using offers to be decoded
What else could be added?
- Maybe BIP353?
- Other fields or better parsing? idk
The latest updates on your projects. Learn more about Vercel for Git ↗︎
| Name | Status | Preview | Comments | Updated (UTC) |
|---|---|---|---|---|
| lightning-decoder | ❌ Failed (Inspect) | Mar 21, 2025 11:09am |