Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
BOLT11 additional and negative tests #736
This tests various forms of malformed invoices (it's not exhaustive though). Signed-off-by: Rusty Russell <firstname.lastname@example.org>
We added a requirement on the writer, not the reader. We can't really add a test vector without a new requirement, though. Signed-off-by: Rusty Russell <email@example.com>
t-bast left a comment
Thanks for doing this!
* Ignore fields with invalid length As per the spec: > A reader: > * MUST skip over unknown fields, OR an f field with unknown version, OR p, h, s or n fields that do NOT have data_lengths of 52, 52, 52 or 53, respectively. * Add more Bolt 11 tests See lightningnetwork/lightning-rfc#699 and lightningnetwork/lightning-rfc#736 Co-authored-by: Bastien Teinturier <firstname.lastname@example.org>