]> git.bitcoin.ninja Git - rust-lightning/commit
[invoice] Fix non-recoverable sig handling and bogus SI prefix err
authorMatt Corallo <git@bluematt.me>
Sun, 22 Aug 2021 19:36:01 +0000 (19:36 +0000)
committerMatt Corallo <git@bluematt.me>
Tue, 31 Aug 2021 21:29:51 +0000 (21:29 +0000)
commit181cb1103d0a1f21aa1f2e44e2f36a6c68663b2f
tree7e6bbfa7e5796c9ecf8ed5945d9e0be821770e08
parenta80819c9c2562fdf93a835cd30d42d955863c861
[invoice] Fix non-recoverable sig handling and bogus SI prefix err

This adds two additional tests from the BOLT 11 invalid invoice
tests, fixing the two errors that broke them. It fixes a panic on
the "nonrecoverable signature" test and makes the error variant
more sensible on the bogus SI prefix test.
lightning-invoice/src/de.rs
lightning-invoice/src/lib.rs
lightning-invoice/tests/ser_de.rs