From: Sergey Matveev Date: Mon, 14 Apr 2025 06:45:40 +0000 (+0300) Subject: Less JSON in examples X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=e76de330e3457c08289a74f13c6139882b54d4b82fc7ba65947e1333439d6f34;p=keks.git Less JSON in examples --- diff --git a/spec/cm/pub.texi b/spec/cm/pub.texi index 9a1ab94..a9bdfae 100644 --- a/spec/cm/pub.texi +++ b/spec/cm/pub.texi @@ -74,23 +74,39 @@ datetime (no nanoseconds). Example minimal certified public key may look like: @verbatim -{ - "load": { - "t": "pub", - "v": { - "id": hash(pub), - "pub": [{"a": "gost3410-256A", "v"}], - "sub": {"n": "test"}, - }, - }, - "sigs": [{ - "tbs": { - "cid": UUID(certification id), - "sid": signer's pkid, - "exp": [TAI64, TAI64], - }, - "sign": {"a": "gost3410-256A", "v": 'signature'}, - }], +MAGIC cm/pub +MAP { + load {MAP { + t {STR pub} + v {MAP { + id {BIN "6aee..."} + pub {LIST { + {MAP { + a {STR ed25519-blake2b} + v {BIN "c1bf..."} + }} + }} + sub {MAP { + N {STR test} + }} + }} + }} + sigs {LIST { + {MAP { + tbs {MAP { + cid {HEXLET 01963308-1033-75a7-bfb6-7d3ab3db6d63} + exp {LIST { + {TAI64 "2025-04-14 06:41:28"} + {TAI64 "2026-04-14 06:41:28"} + }} + sid {BIN "0087..."} + }} + sign {MAP { + a {STR ed25519-blake2b} + v {BIN "7450..."} + }} + }} + }} } @end verbatim