1
0
Fork 0
mirror of https://github.com/ACINQ/eclair.git synced 2025-02-23 06:35:11 +01:00
eclair/eclair-core/src
Bastien Teinturier 00de49f750
Better handling of invalid public keys in codecs (#3012)
Codecs shouldn't throw exceptions and should rather return an explicit
`Attempt.Failure` when decoding invalid input. We fix a few codecs that
create public keys to do avoid throwing.

We also wrap onion TLV streams into a `Try`: even though in theory none
of our codecs should throw, since we don't have good enough fuzzing in
place to guarantee that it, it's safer to catch exceptions in case a
codec isn't correctly implemented.
2025-02-21 14:54:13 +01:00
..
main Better handling of invalid public keys in codecs (#3012) 2025-02-21 14:54:13 +01:00
test Better handling of invalid public keys in codecs (#3012) 2025-02-21 14:54:13 +01:00