Skip to content

Latest commit

 

History

History
18 lines (12 loc) · 591 Bytes

index.md

File metadata and controls

18 lines (12 loc) · 591 Bytes

Currently, this is just a compendium of design ideas for mesh.

Atoms

Atoms are the canonical byte-stream representation of byte strings. Nouns are trees of atoms.

<atom> := <single_byte_atom> | <short_atom> | <long_atom>
<single_byte_atom> := [0x00 - 0x7F](=content_byte)
<long_atom> := 0x80 <atom>(+0x80=length) <content_byte>{length}
<dot> := 0x81
<short_atom> := [0x82 - 0xFF](-0x80=length) <content_byte>{length}
<noun> := <atom> | <noun> <noun> <dot>

Packets

Packets sent over the wire take the form

<packet> := <context> <signature> <payload>