Repository navigation
Add inputs for BOLT12 invoice and invoice request targets - #70
Open
usefahmed07 wants to merge 1 commit into
Open
usefahmed07 wants to merge 1 commit into
usefahmed07 wants to merge 1 commit into
Conversation
…uest Valid, signed BOLT12 invoices (lni) and invoice requests (lnr), generated with a small script using different keys. The invoices cover one and two blinded paths and an expiry. Each input decodes to the same output on CLN, LDK, Eclair and lightning-kmp (invoices) and on CLN and LDK (invoice requests). For bitcoinfuzz/bitcoinfuzz#671 and #672.
usefahmed07
force-pushed
the
bolt12-invoice-corpora
branch
from
October 9, 2026 20:39
c4a7396 to
625b794
Compare
This was referenced Oct 9, 2026
Contributor
|
Just approved the workflow. |
Author
Thanks, LGTM! |
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.
As discussed on Discord, this adds a few valid inputs for the two new BOLT12 targets.
deserialize_bolt12_invoice_clean(4 inputs,lni): signed invoices, with one blinded path, two blinded paths, a relative expiry, and a different pair of keys. Each one decodes to the same output on CLN, LDK, Eclair and lightning-kmp.deserialize_invoice_request_clean(3 inputs,lnr): signed invoice requests with different keys. Each one decodes to the same output on CLN and LDK.The inputs are plain bech32 strings with no trailing newline, named by their sha1, like the other folders. I generated them with a small script that signs with BIP340 and follows the BOLT12 merkle rules, and I ran each one through the modules before adding it.
I did not add entries to
.github/workflows/workflow.yml: the build there usesbitcoinfuzzv2, which does not have these targets until bitcoinfuzz/bitcoinfuzz#671 and #672 are merged. I can open a follow-up for the workflow after that, or add it here if you prefer.The targets are in bitcoinfuzz/bitcoinfuzz#672 (invoice) and #671 (invoice request).