Skip to content

Commit 30e68b7

Browse files
AdamZWuMarkLodato
andauthored
Update envelope.md
Co-authored-by: Mark Lodato <[email protected]>
1 parent e23088f commit 30e68b7

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

envelope.md

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,10 @@ the following form, called the "JSON envelope":
1818

1919
```jsonc
2020
{
21-
// Arbitrary binary data can be encode in base64.
22-
"payload": "<Base64(byte sequence)>",
23-
// If the SERIALIZED_BODY is a text string,
24-
// it can *instead* be encoded in UTF-8.
25-
// "payloadUtf8": "<Utf-8 encoded text>",
26-
21+
// Exactly one of the following must be set:
22+
"payload": "<Base64Encode(SERIALIZED_BODY)>",
23+
"payloadUtf8": "<Utf8Decode(SERIALIZED_BODY)>",
24+
// End oneof
2725
"payloadType": "<PAYLOAD_TYPE>",
2826
"signatures": [{
2927
"keyid": "<KEYID>",

0 commit comments

Comments
 (0)