Compute a hash of serialized type, apply other transformations if needed, and use it as [message type](https://github.com/lightningnetwork/lightning-rfc/blob/master/01-messaging.md#type-length-value-format) Then if we change the type of messages, the type code automatically changes. This has interesting properties for backward incompatible changes.
Compute a hash of serialized type, apply other transformations if needed, and use it as message type
Then if we change the type of messages, the type code automatically changes. This has interesting properties for backward incompatible changes.