Skip to content

Version byte #4

Open
Open
@jdonszelmann

Description

@jdonszelmann

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
    • 0x01and everything after will be new rust-ipv8 messages with slightly different architecture.
  • Option 3:
    • Use a proper magic byte like 0b00101010.

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

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions