Skip to content

Add inputs for BOLT12 invoice and invoice request targets - #70

Open
usefahmed07 wants to merge 1 commit into
bitcoinfuzz:mainfrom
usefahmed07:bolt12-invoice-corpora
Open

usefahmed07 wants to merge 1 commit into
bitcoinfuzz:mainfrom
usefahmed07:bolt12-invoice-corpora

Conversation

@usefahmed07

@usefahmed07 usefahmed07 commented Oct 9, 2026 •

Copy link
Copy Markdown

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 uses bitcoinfuzz v2, 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).

…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.
@brunoerg

Copy link
Copy Markdown
Contributor

Just approved the workflow.

@usefahmed07

Copy link
Copy Markdown
Author

Just approved the workflow.

Thanks, LGTM!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants