V0.7.0 Arroyo Toad
This commit is contained in:
52
Asset/MessageBytes.md
Normal file
52
Asset/MessageBytes.md
Normal file
@@ -0,0 +1,52 @@
|
||||
# Message Structure
|
||||
```
|
||||
+-+ 64 - bits---+----------------+-------------+----------------+-----------------------+
|
||||
|0| Version 7 | Message Type 8 | Dev Type 8 | RESERVED 8 | Sign Type 32 |
|
||||
+-+-------------+----------------+-------------+----------------+-----------------------+
|
||||
| Timestamp 64 |
|
||||
+---------------------------------------------------------------------------------------+
|
||||
| DevID 128 bits |
|
||||
| |
|
||||
+---------------------------------------------------------------------------------------+
|
||||
| Location 192 bits |
|
||||
| |
|
||||
| |
|
||||
+---------------------------------------------------------------------------------------+
|
||||
\ /
|
||||
| Fields -----------------------------------------------------------------------------|
|
||||
/ \
|
||||
+---------------------------------------------------------------------------------------+
|
||||
| 0 Padding 64 - n |
|
||||
+---------------------------------------------------------------------------------------+
|
||||
| Signature up to-512 bits |
|
||||
| |
|
||||
| |
|
||||
| |
|
||||
| |
|
||||
| |
|
||||
| |
|
||||
| |
|
||||
+---------------------------------------------------------------------------------------+
|
||||
```
|
||||
|
||||
# Fields
|
||||
each field can be at most 8 * 2^32 bits of length:
|
||||
- 34359738368 bits
|
||||
- 4294967296 Bytes
|
||||
|
||||
## Key
|
||||
**MUST** be a `String`
|
||||
|
||||
## Value
|
||||
It's up to the Application to decide whether the value is
|
||||
a string or another type of datum
|
||||
|
||||
```
|
||||
+-- 64 - bits--------------------------+----------------------------------------+
|
||||
| Key-Length 32 | Value-Length 32 |
|
||||
+--------------------------------------+----------------------------------------+
|
||||
\ Key /
|
||||
|-----------------------------------------------------------------------------|
|
||||
/ Value \
|
||||
+-------------------------------------------------------------------------------+
|
||||
```
|
||||
Reference in New Issue
Block a user