Posted by Dhruv M
Feb 16, 2023/17:43 UTC
A proposal has been put forward on Bitcoin-dev to address the problem of 1 byte message type IDs lacking a co-ordination mechanism when multiple in-flight BIPs are proposing new message types, as well as the issue of allocating scarce 1 byte IDs judiciously. One solution proposed is uniform encoding using the high-bit which increases the available ID space drastically. However, there is still the issue of ensuring that the most frequent message types get the shorter IDs. Another proposed solution is making type IDs negotiable per direction per connection, which solves the issue at the cost of increased complexity. The proposal suggests restricting type IDs to [1, 127], removing 1 byte allocations for messages sent at most once per connection per direction, and possibly moving the type id mapping to the p2p layer away from the transport layer. The discussion also includes various technical details such as the current implementation for 324, serialization tables, and negotiation mechanisms, among others.
TLDR
We’ll email you summaries of the latest discussions from authoritative bitcoin sources, like bitcoin-dev, lightning-dev, and Delving Bitcoin.
We'd love to hear your feedback on this project?
Give Feedback