Skip to content

Commit 53411c0

Browse files
committed
fix
1 parent 48d3120 commit 53411c0

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

rust/signed_doc/README.md

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -42,15 +42,19 @@ protected_header = {
4242
1 => -8, ; "alg": EdDSA
4343
3 => 30, ; "content type": Json
4444
"content encoding" => "br", ; payload content encoding, brotli compression
45-
"type" => #6.37(bytes), ; UUID
46-
"id" => #6.32780(bytes), ; ULID
47-
"ver" => #6.32780(bytes), ; ULID
48-
? "ref" => #6.32780(bytes) / [#6.32780(bytes), #6.32780(bytes)], ; either ULID or [ULID, ULID]
49-
? "template" => #6.32780(bytes) / [#6.32780(bytes), #6.32780(bytes)], ; either ULID or [ULID, ULID]
50-
? "reply" => #6.32780(bytes) / [#6.32780(bytes), #6.32780(bytes)], ; either ULID or [ULID, ULID]
45+
"type" => UUID
46+
"id" => ULID
47+
"ver" => ULID
48+
? "ref" => reference_type
49+
? "template" => reference_type
50+
? "reply" => reference_type
5151
? "section" => text,
5252
? "collabs" => [+any],
5353
}
54+
55+
UUID = #6.37(bytes)
56+
ULID = #6.32780(bytes)
57+
reference_type = ULID / [ULID, ULID] ; either ULID or [ULID, ULID]
5458
```
5559

5660
### COSE payload

0 commit comments

Comments
 (0)