Example representations:
-BLOB(5, "") | 0B 0000000000000004 80
-BLOB(5, "12345") | 0B 0000000000000004 85 3132333435 80
-BLOB(5, "123456") | 0B 0000000000000004 85 3132333435 81 36
-BLOB(500, "123") | 0B 00000000000001F3 83 313233
-BLOB(2, "12345") | 0B 0000000000000001 82 3132 82 3334 81 35
+BLOB {5 ""} | 0B 0000000000000004 80
+BLOB {5 "12345"} | 0B 0000000000000004 85 3132333435 80
+BLOB {5 "123456"} | 0B 0000000000000004 85 3132333435 81 36
+BLOB {500 "123"} | 0B 00000000000001F3 83 313233
+BLOB {2 "12345"} | 0B 0000000000000001 82 3132 82 3334 81 35
Example representations:
-LIST[] | 08 00
-LIST[INT(123) FALSE] | 08 0C817B 02 00
+LIST {} | 08 00
+LIST {{INT 123} FALSE} | 08 0C817B 02 00
Example representations:
-MAGIC(cm/pub) | 4B454B53 636D2F707562 000000000000
-MAGIC(cm/signed) | 4B454B53 636D2F7369676E6564 000000
-MAGIC(cm/encrypted) | 4B454B53 636D2F656E63727970746564
+MAGIC cm/pub | 4B454B53 636D2F707562 000000000000
+MAGIC cm/signed | 4B454B53 636D2F7369676E6564 000000
+MAGIC cm/encrypted | 4B454B53 636D2F656E63727970746564
MAP contains concatenation of string(key)-value pairs.
Keys *must* be non-empty, unique and length-first bytewise ascending ordered.
- MAP [STR(KEY0) || ITEM0 || STR(KEY1) || ITEM1 || ... ] EOC
+ MAP [STR(KEY0) || ITEM0 || STR(KEY1) || ITEM1 || ...] EOC
Hint: Encoding code for known format can be ordered itself to emit
values in an already properly sorted way.
Example representations:
-MAP[foo: LIST["bar"]] | 09 C3666F6F 08 C3626172 00 00
-SET[sig, dh] | 09 C26468 01 C3736967 01 00
+MAP {foo {LIST {{STR "bar"}}}} | 09 C3666F6F 08 C3626172 00 00
+SET {sig dh} | 09 C26468 01 C3736967 01 00