Skip to content

Commit fc56b2b

Browse files
committed
Fix keyid for backwards compatible signatures.
1 parent 3f05225 commit fc56b2b

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

specification.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -115,9 +115,9 @@ valid while avoiding the verifier from having to use [Canonical JSON].
115115
"payload": "<Base64(CanonicalJson(BODY))>",
116116
"payloadType": "<URI>/backwards-compatible-json",
117117
"signatures" : [{
118-
,
119-
"sig" : "<Base64(Sign(CanonicalJson(BODY)))>"
120-
}, …]
118+
"keyid": "<KEYID>",
119+
"sig": "<Base64(Sign(CanonicalJson(BODY)))>"
120+
}]
121121
}
122122
```
123123

@@ -128,6 +128,7 @@ To sign:
128128
- BODY **must** be an object type (`{...}`).
129129
- Serialize BODY as [Canonical JSON]; call this SERIALIZED_BODY.
130130
- Sign SERIALIZED_BODY, base64-encode the result, and store it in `sig`.
131+
- Optionally, compute a KEYID and store it in `keyid`.
131132
- Base64-encode SERIALIZED_BODY and store it in `payload`.
132133
- Store `"<URI>/backwards-compatible-json"` in `payloadType`.
133134

0 commit comments

Comments
 (0)