@interop/did-web-resolver 2.0.0 → 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -4
- package/dist/DidWebResolver.js +2 -2
- package/package.json +7 -7
- package/src/DidWebResolver.js +2 -2
- package/CHANGELOG.md +0 -39
package/README.md
CHANGED
|
@@ -21,7 +21,7 @@ TBD
|
|
|
21
21
|
## Background
|
|
22
22
|
|
|
23
23
|
A `did:web` method driver for use with in-browser and server-side on Node.js
|
|
24
|
-
with the [`did-io`](https://github.com/
|
|
24
|
+
with the [`did-io`](https://github.com/digitalcredentials/did-io) resolver library.
|
|
25
25
|
|
|
26
26
|
Draft spec (W3C CCG Work Item):
|
|
27
27
|
|
|
@@ -37,9 +37,9 @@ Other implementations:
|
|
|
37
37
|
|
|
38
38
|
```js
|
|
39
39
|
import { Ed25519VerificationKey2020 }
|
|
40
|
-
from '@
|
|
40
|
+
from '@digitalcredentials/ed25519-verification-key-2020'
|
|
41
41
|
import { X25519KeyAgreementKey2020 }
|
|
42
|
-
from '@
|
|
42
|
+
from '@digitalcredentials/x25519-key-agreement-key-2020'
|
|
43
43
|
import { CryptoLD } from 'crypto-ld'
|
|
44
44
|
|
|
45
45
|
import * as didWeb from '@interop/did-web-resolver'
|
|
@@ -51,7 +51,7 @@ cryptoLd.use(X25519KeyAgreementKey2020)
|
|
|
51
51
|
const didWebDriver = didWeb.driver({ cryptoLd })
|
|
52
52
|
|
|
53
53
|
// Optionally use it with the CachedResolver from did-io
|
|
54
|
-
import {CachedResolver} from '@
|
|
54
|
+
import {CachedResolver} from '@digitalcredentials/did-io';
|
|
55
55
|
const resolver = new CachedResolver()
|
|
56
56
|
resolver.use(didWebDriver)
|
|
57
57
|
```
|
package/dist/DidWebResolver.js
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var httpClient = require('@
|
|
6
|
-
var didIo = require('@
|
|
5
|
+
var httpClient = require('@digitalcredentials/http-client');
|
|
6
|
+
var didIo = require('@digitalcredentials/did-io');
|
|
7
7
|
var ed25519Context = require('ed25519-signature-2020-context');
|
|
8
8
|
var x25519Context = require('x25519-key-agreement-2020-context');
|
|
9
9
|
var didContext = require('did-context');
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@interop/did-web-resolver",
|
|
3
3
|
"description": "A did:web method Decentralized Identifier (DID) resolver for the did-io library.",
|
|
4
|
-
"version": "2.
|
|
4
|
+
"version": "2.1.0",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Dmitri Zagidulin",
|
|
7
7
|
"url": "https://github.com/dmitrizagidulin/"
|
|
@@ -42,11 +42,11 @@
|
|
|
42
42
|
}
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@
|
|
46
|
-
"@
|
|
47
|
-
"did-context": "
|
|
45
|
+
"@digitalcredentials/did-io": "^1.0.2",
|
|
46
|
+
"@digitalcredentials/http-client": "^1.2.2",
|
|
47
|
+
"did-context": "^3.1.1",
|
|
48
48
|
"ed25519-signature-2020-context": "^1.1.0",
|
|
49
|
-
"x25519-key-agreement-2020-context": "
|
|
49
|
+
"x25519-key-agreement-2020-context": "^1.0.0"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"@babel/core": "^7.16.7",
|
|
@@ -54,8 +54,8 @@
|
|
|
54
54
|
"@babel/plugin-transform-runtime": "^7.16.7",
|
|
55
55
|
"@babel/preset-env": "^7.16.7",
|
|
56
56
|
"@babel/runtime": "^7.16.7",
|
|
57
|
-
"@
|
|
58
|
-
"@
|
|
57
|
+
"@digitalcredentials/ed25519-verification-key-2020": "^3.2.2",
|
|
58
|
+
"@digitalcredentials/x25519-key-agreement-key-2020": "^2.0.2",
|
|
59
59
|
"babel-loader": "^8.2.3",
|
|
60
60
|
"chai": "^4.3.4",
|
|
61
61
|
"cross-env": "^7.0.3",
|
package/src/DidWebResolver.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { httpClient } from '@
|
|
2
|
-
import * as didIo from '@
|
|
1
|
+
import { httpClient } from '@digitalcredentials/http-client'
|
|
2
|
+
import * as didIo from '@digitalcredentials/did-io'
|
|
3
3
|
import ed25519Context from 'ed25519-signature-2020-context'
|
|
4
4
|
import x25519Context from 'x25519-key-agreement-2020-context'
|
|
5
5
|
import didContext from 'did-context'
|
package/CHANGELOG.md
DELETED
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
# did-web-driver ChangeLog
|
|
2
|
-
|
|
3
|
-
## 2.0.0 - 2022-01-01
|
|
4
|
-
|
|
5
|
-
### Changed
|
|
6
|
-
- Use rollup for build-time transpile instead of esm.
|
|
7
|
-
- Use "no ESM" branches for all other deps.
|
|
8
|
-
- `.get()` now also resolves keys (to match other did-io drivers).
|
|
9
|
-
- **BREAKING**: Update ed25519 and X25519 dependencies to latest. You will have
|
|
10
|
-
to re-generate your `did:web` DID documents for this version, as the
|
|
11
|
-
key serialization formats have changed.
|
|
12
|
-
|
|
13
|
-
## 1.1.0 - 2021-04-25
|
|
14
|
-
|
|
15
|
-
### Added
|
|
16
|
-
- Add `didWebDriver.publicMethodFor()`.
|
|
17
|
-
|
|
18
|
-
## 1.0.1 - 2021-04-25
|
|
19
|
-
|
|
20
|
-
### Fixed
|
|
21
|
-
- Fix handling of hash fragments by `urlFromDid()`.
|
|
22
|
-
- Add logger to constructor.
|
|
23
|
-
|
|
24
|
-
## 1.0.0 - 2021-04-24
|
|
25
|
-
|
|
26
|
-
### Changed
|
|
27
|
-
- **BREAKING** Update to latest DID Core context
|
|
28
|
-
- **BREAKING** Update to use crypto-ld v5 API, latest crypto suites
|
|
29
|
-
- Add support for X25519KeyAgreementKey suite
|
|
30
|
-
|
|
31
|
-
## 0.2.0 - 2020-08-01
|
|
32
|
-
|
|
33
|
-
### Changed
|
|
34
|
-
- **BREAKING**: Update to use crypto-ld v4 API
|
|
35
|
-
|
|
36
|
-
## 0.0.1
|
|
37
|
-
|
|
38
|
-
### Added
|
|
39
|
-
- Initial implementation.
|