File tree Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -29,16 +29,13 @@ the following form, called the "JSON envelope":
29
29
30
30
See [ Protocol] ( protocol.md ) for a definition of parameters and functions.
31
31
32
- Empty fields may be omitted. [ Multiple signatures] ( #multiple-signatures ) are
33
- allowed.
34
-
35
32
Base64() is [ Base64 encoding] ( https://tools.ietf.org/html/rfc4648 ) , transforming
36
33
a byte sequence to a unicode string. Either standard or URL-safe encoding is
37
34
allowed.
38
35
39
36
### Multiple signatures
40
37
41
- An envelope may have more than one signature, which is equivalent to separate
38
+ An envelope MAY have more than one signature, which is equivalent to separate
42
39
envelopes with individual signatures.
43
40
44
41
``` json
@@ -55,6 +52,15 @@ envelopes with individual signatures.
55
52
}
56
53
```
57
54
55
+ ### Parsing rules
56
+
57
+ * The following fields are REQUIRED and MUST be set, even if empty: ` payload ` ,
58
+ ` payloadType ` , ` signature ` , ` signature.sig ` .
59
+ * The following fields are OPTIONAL and MAY be unset: ` signature.keyid ` .
60
+ An unset field MUST be treated the same as set-but-empty.
61
+ * Producers, or future versions of the spec, MAY add additional fields.
62
+ Consumers MUST ignore unrecognized fields.
63
+
58
64
## Other data structures
59
65
60
66
The standard envelope is JSON message with an explicit ` payloadType ` .
You can’t perform that action at this time.
0 commit comments