You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-`veriKey` adds a `<key algorithm>VerificationKey2018` to the `publicKey` section of document
155
+
-`sigAuth` adds a `<key algorithm>SignatureAuthentication2018` to the `publicKey` section of document. An entry is also added to the `authentication` section of document.
156
+
-`enc` adds a `<key algorithm>KeyAgreementKey2019` to the `publicKey` section.
157
+
This is used to perform a Diffie-Hellman key exchange and derive a secret key for encrypting messages to the DID that lists such a key.
158
+
159
+
> **Note** The `<encoding>` only refers to the key encoding in the resolved DID document.
160
+
> Attribute values should always be hex encoded.
151
161
152
-
A `DIDAttributeChanged` event for the identity `0xf3beac30c498d9e26865f34fcaa57dbb935b0d74` with the name `did/pub/Secp256k1/veriKey/hex` and the value of `0x02b97c30de767f084ce3080168ee293053ba33b235d7116a3263d29f1450936b71` generates a `PublicKey` entry like this:
162
+
#### Example hex encoded Secp256k1 Verification Key
163
+
164
+
A `DIDAttributeChanged` event for the identity `0xf3beac30c498d9e26865f34fcaa57dbb935b0d74` with the name
165
+
`did/pub/Secp256k1/veriKey/hex` and the value of `0x02b97c30de767f084ce3080168ee293053ba33b235d7116a3263d29f1450936b71`
166
+
generates a `PublicKey` entry like this:
153
167
154
168
```javascript
155
169
{
@@ -162,7 +176,9 @@ A `DIDAttributeChanged` event for the identity `0xf3beac30c498d9e26865f34fcaa57d
162
176
163
177
#### Base64 encoded Ed25519 Verification Key
164
178
165
-
A `DIDAttributeChanged` event for the identity `0xf3beac30c498d9e26865f34fcaa57dbb935b0d74` with the name `did/pub/Ed25519/veriKey/base64` and the value of `0xb97c30de767f084ce3080168ee293053ba33b235d7116a3263d29f1450936b71` generates a `PublicKey` entry like this:
179
+
A `DIDAttributeChanged` event for the identity `0xf3beac30c498d9e26865f34fcaa57dbb935b0d74` with the name
180
+
`did/pub/Ed25519/veriKey/base64` and the value of
181
+
`0xb97c30de767f084ce3080168ee293053ba33b235d7116a3263d29f1450936b71` generates a `PublicKey` entry like this:
166
182
167
183
```javascript
168
184
{
@@ -173,6 +189,22 @@ A `DIDAttributeChanged` event for the identity `0xf3beac30c498d9e26865f34fcaa57d
173
189
}
174
190
```
175
191
192
+
#### Base64 encoded X25519 Encryption Key
193
+
194
+
A `DIDAttributeChanged` event for the identity `0xf3beac30c498d9e26865f34fcaa57dbb935b0d74` with the name
We are looking for people to submit support for `pem`, `base58` and `jwk` key formats as well.
177
209
178
210
### Service Endpoints
@@ -183,7 +215,9 @@ The name of the attribute should follow this format:
183
215
184
216
#### Hex encoded Secp256k1 Verification Key
185
217
186
-
A `DIDAttributeChanged` event for the identity `0xf3beac30c498d9e26865f34fcaa57dbb935b0d74` with the name `did/svc/HubService` and value of the url `https://hubs.uport.me` hex encoded as `0x68747470733a2f2f687562732e75706f72742e6d65` generates a `Service` entry like this:
218
+
A `DIDAttributeChanged` event for the identity `0xf3beac30c498d9e26865f34fcaa57dbb935b0d74` with the name
219
+
`did/svc/HubService` and value of the url `https://hubs.uport.me` hex encoded as
220
+
`0x68747470733a2f2f687562732e75706f72742e6d65` generates a `Service` entry like this:
187
221
188
222
```javascript
189
223
{
@@ -195,7 +229,8 @@ A `DIDAttributeChanged` event for the identity `0xf3beac30c498d9e26865f34fcaa57d
195
229
## Resolving a DID document
196
230
197
231
The library presents a `resolver()` function that returns a ES6 Promise returning the DID document.
198
-
It is not meant to be used directly but through the [`did-resolver`](https://github.com/decentralized-identity/did-resolver) aggregator.
232
+
It is not meant to be used directly but through the
0 commit comments