forked from decentralized-identity/did-jwt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
template.hbs
33 lines (25 loc) · 1.42 KB
/
template.hbs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
---
title: "did-jwt"
index: 3
category: "reference"
type: "content"
---
## Algorithms supported
- `ES256K` the [secp256k1 ECDSA curve](https://en.bitcoin.it/wiki/Secp256k1)
- `ES256K-R` the [secp256k1 ECDSA curve](https://en.bitcoin.it/wiki/Secp256k1) with recovery parameter
## DID PublicKey Types
The `PublicKey` section of a DID document contains one or more Public Keys. We support the following types:
Name | Encoding | Algorithm's
---- | -------- | -----------
`Secp256k1SignatureVerificationKey2018` | `publicKeyHex` | `ES256K`, `ES256K-R`
`Secp256k1VerificationKey2018` | `publicKeyHex` | `ES256K`, `ES256K-R`
`Secp256k1VerificationKey2018` | `ethereumAddress` | `ES256K-R`
## Claims
Name | Description | Required
---- | ----------- | --------
[`iss`](https://tools.ietf.org/html/rfc7519#section-4.1.1) | The [DID](https://w3c-ccg.github.io/did-spec/) of the signing identity| yes
[`sub`](https://tools.ietf.org/html/rfc7519#section-4.1.2) | The [DID](https://w3c-ccg.github.io/did-spec/) of the subject of the JWT| no
[`aud`](https://tools.ietf.org/html/rfc7519#section-4.1.3) | The [DID](https://w3c-ccg.github.io/did-spec/) or URL of the audience of the JWT. Our libraries or app will not accept any JWT that has someone else as the audience| no
[`iat`](https://tools.ietf.org/html/rfc7519#section-4.1.6) | The time of issuance | yes
[`exp`](https://tools.ietf.org/html/rfc7519#section-4.1.4) | Expiration time of JWT | no
{{>main}}