File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -5,22 +5,30 @@ package io.intoto;
5
5
// An authenticated message of arbitrary type.
6
6
message Envelope {
7
7
// Message to be signed. (In JSON, this is encoded as base64.)
8
+ // REQUIRED.
8
9
bytes payload = 1 ;
9
10
10
11
// String unambiguously identifying how to interpret payload.
12
+ // REQUIRED.
11
13
string payloadType = 2 ;
12
14
13
15
// Signature over:
14
16
// le64(2) || le64(len(utf8(payloadType))) || utf8(payloadType) ||
15
17
// le64(len(payload)) || payload
16
- // At least one signature must be present.
18
+ // where:
19
+ // le64(n) := 64-bit little-endian encoding of integer `n`, 0 <= n < 2^63
20
+ // len(s) := number of octets in byte sequence `s`
21
+ // utf8(s) := UTF-8 encoding of unicode string `s`
22
+ // REQUIRED (length >= 1).
17
23
repeated Signature signatures = 3 ;
18
24
}
19
25
20
26
message Signature {
21
27
// Signature itself. (In JSON, this is encoded as base64.)
28
+ // REQUIRED.
22
29
bytes sig = 1 ;
23
30
24
31
// *Unauthenticated* hint identifying which public key was used.
32
+ // OPTIONAL.
25
33
string keyid = 2 ;
26
34
}
You can’t perform that action at this time.
0 commit comments