Add Lightning Network BOLT11 invoice parser#9
Draft
Claude wants to merge 5 commits intocodex/setup-openclaw-project-structure-and-codefrom
Draft
Add Lightning Network BOLT11 invoice parser#9Claude wants to merge 5 commits intocodex/setup-openclaw-project-structure-and-codefrom
Claude wants to merge 5 commits intocodex/setup-openclaw-project-structure-and-codefrom
Conversation
Comprehensive search for crypto-related code and Ethereum addresses. Results: No blockchain integration detected in codebase. Co-authored-by: EvezArt <129563238+EvezArt@users.noreply.github.com>
- Add parser utility to decode Lightning invoices - Support mainnet, testnet, regtest, and simnet networks - Parse amounts in various denominations (pico, nano, micro, milli, BTC) - Add comprehensive test suite with 30+ test cases - Update crypto audit report with Lightning findings Co-authored-by: EvezArt <129563238+EvezArt@users.noreply.github.com>
Complete documentation covering: - Lightning address support (LUD-16) - BOLT11 invoice parser API reference - Invoice format and structure - Security considerations - Testing instructions - Future enhancement suggestions Co-authored-by: EvezArt <129563238+EvezArt@users.noreply.github.com>
Complete summary of the BOLT11 invoice parser implementation including problem analysis, features, testing, and future enhancements. Co-authored-by: EvezArt <129563238+EvezArt@users.noreply.github.com>
EvezArt
approved these changes
Feb 16, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Implements BOLT11 invoice parsing in response to a Lightning Network payment request (
lnbc13863u1...for 1,386,300 sats).Changes
Core Implementation
src/infra/lightning-invoice.ts: Parser supporting mainnet, testnet, regtest, and simnet networksTesting
src/infra/lightning-invoice.test.ts: 30+ test cases covering:Documentation
docs/lightning-network.md: API reference, usage examples, security considerationsCRYPTO_AUDIT_REPORT.md: Updated with Lightning findings, noting existing LUD-16 support in Nostr extensionUsage
Limitations
Parser validates structure and extracts amounts but does not verify:
These remain future enhancements for full BOLT11 compliance.
Original prompt