Skip to content

Commit

Permalink
Merge branch 'master' into pae-encoding
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkLodato committed Dec 3, 2020
2 parents b25be06 + 492b18d commit 539868e
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions specification.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ either, and verifiers must accept either.
To convert existing signatures from the current format to the new format,
`"backwards-compatible-json"` must be added to the payload type URI to indicate
that the signature is over the raw payload. This allows the signatures to remain
valid while avoiding the verifier from having to use CanonicalJson.
valid while avoiding the verifier from having to use [Canonical JSON].

```json
{
Expand All @@ -119,7 +119,7 @@ Support for this backwards compatibility mode is optional.
To sign:

- BODY **must** be an object type (`{...}`).
- Serialize BODY as Canonical JSON; call this SERIALIZED_BODY.
- Serialize BODY as [Canonical JSON]; call this SERIALIZED_BODY.
- Sign SERIALIZED_BODY, base64-encode the result, and store it in `sig`.
- Base64-encode SERIALIZED_BODY and store it in `payload`.
- Store `"<URI>/backwards-compatible-json"` in `payloadType`.
Expand Down Expand Up @@ -351,6 +351,10 @@ Signed wrapper:

## References

- [Canonical JSON](http://wiki.laptop.org/go/Canonical_JSON)
- [JWS](https://tools.ietf.org/html/rfc7515)
- [PASETO](https://github.com/paragonie/paseto/blob/master/docs/01-Protocol-Versions/Version2.md#sig)
- [Canonical JSON]
- [JWS]
- [PASETO]

[Canonical JSON]: http://wiki.laptop.org/go/Canonical_JSON
[JWS]: https://tools.ietf.org/html/rfc7515
[PASETO]: https://github.com/paragonie/paseto/blob/master/docs/01-Protocol-Versions/Version2.md#sig

0 comments on commit 539868e

Please sign in to comment.