Open
Description
We have a couple of options for the first byte in the ipv8 packet.
Right now the header looks like
0x00 0x02
where as far as we know 0x02
is the version and the first byte is hardcoded to 0.
There are a few logical options for a new header:
- Option 1: extend the scheme
0x00 0x03
for rust-ipv8 messages
- Option 2: reduce the byte count. start the message with
0x01
and everything after will be new rust-ipv8 messages with slightly different architecture.
- Option 3:
- Use a proper magic byte like
0b00101010
.
- Use a proper magic byte like
Advantages of this kind of proper magic byte is that few other protocols use it so it is very easily detectable. If this is actually an advantage is debatable.
We should decide upon this soon as this it is rather important to distinguish the two kinds of messages. By then legacy py-ipv8 messages will be interpreted by rust and converted to a rust-readable standard.
Metadata
Metadata
Assignees
Labels
No labels