lnwire: add onion message type

This message type is a message that carries an onion-encrypted payload
used for BOLT12 messages.
This commit is contained in:
Gijs van Dam authored and yyforyongyu committed 2025-11-12 22:54:03 +08:00
1 parent c08f918ffc
commit cb2d8abe40
4 files changed
+114

No files matched your search

+6
View File
@@ -498,6 +498,12 @@ func FuzzCustomMessage(f *testing.F) {
})
}
func FuzzOnionMessage(f *testing.F) {
f.Fuzz(func(t *testing.T, data []byte) {
wireMsgHarness(t, data, MsgOnionMessage)
})
}
// FuzzParseRawSignature tests that our DER-encoded signature parsing does not
// panic for arbitrary inputs and that serializing and reparsing the signatures
// does not mutate them.