Description

MessageError describes an issue with a message. An example of some potential issues are messages from the wrong bitcoin network, invalid commands, mismatched checksums, and exceeding max payloads.

This provides a mechanism for the caller to type assert the error to differentiate between general io errors such as io.EOF and issues that resulted from malformed messages.

MessageError is referenced in 3 repositories

github.com/btcsuite/btcd github.com/CIRCL/pbtc

...