ssz-json
A human readable ssz format using json.
Format
The format is a subset of JSON and follows most of the conventions closely. The two biggest deviations are appending the integer type at the end of the number using a string and declaring the type array (list / vector) in the first element.
Type | Representation |
---|---|
null | null |
bool | `true |
number | `"N:{u8 |
string | "string" |
vector (fixed length) | ["vector", "0:u8", "1:u8"] |
list (variable length) | ["list", "0:u8", "1:u8"] |
object | { "key1": "123u32", "key2": ["vector", "456u32"] } |
Examples
ssz encoding: 5c0000005000000001000000000000000000000000000000000000000000000000000000000000000000000000000000020000000000000000010101010101010101010101010101010101010101010101010101010101010400000000000000
--
ssz encoding: 5c0000005000000001000000000000000000000000000000000000000000000000000000000000000000000000000000020000000000000001010101010101010101010101010101010101010101010101010101010101010400000000000000
--
ssz encoding: 0001020304100020000000
Maintainer
License
Apache 2.0