diff --git a/README.md b/README.md index 5c60c15..e52fb04 100644 --- a/README.md +++ b/README.md @@ -45,7 +45,7 @@ A minimal DID Document might contain the following information: { "id": "did:web:example.com#owner", "type": "Secp256k1VerificationKey2018", - "owner": "did:web:example.com", + "controller": "did:web:example.com", "publicKeyHex": "04ab0102bcae6c7c3a90b01a3879d9518081bc06123038488db9cb109b082a77d97ea3373e3dfde0eccd9adbdce11d0302ea5c098dbb0b310234c8689501749274" } ], diff --git a/package-lock.json b/package-lock.json index a1f6434..6c8c38d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -3574,9 +3574,9 @@ "dev": true }, "did-resolver": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/did-resolver/-/did-resolver-2.0.1.tgz", - "integrity": "sha512-NomJQaRiu0izKFFerYGrca48YxWtMOtOoqG3JUTLJtET8n2T1i8WlQz500zesnioZWi5RVNsUS/eMQfRWy7bbg==" + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/did-resolver/-/did-resolver-2.1.1.tgz", + "integrity": "sha512-FYLTkNWofjYNDGV1HTQlyVu1OqZiFxR4I8KM+oxGVOkbXva15NfWzbzciqdXUDqOhe6so5aroAdrVip6gSAYSA==" }, "diff": { "version": "4.0.2", diff --git a/package.json b/package.json index 52b9554..ba3eb2b 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,7 @@ "repository": "git@github.com:decentralized-identity/web-did-resolver.git", "dependencies": { "cross-fetch": "^3.0.4", - "did-resolver": "2.0.1" + "did-resolver": "2.1.1" }, "scripts": { "build": "tsc", diff --git a/src/__tests__/resolver.test.ts b/src/__tests__/resolver.test.ts index 0929c38..7d11e1e 100644 --- a/src/__tests__/resolver.test.ts +++ b/src/__tests__/resolver.test.ts @@ -16,7 +16,7 @@ describe('web did resolver', () => { { id: `${did}#owner`, type: 'Secp256k1VerificationKey2018', - owner: did, + controller: did, ethereumAddress: identity } ], diff --git a/src/__tests__/uport.test.ts b/src/__tests__/uport.test.ts index e438f59..1f03275 100644 --- a/src/__tests__/uport.test.ts +++ b/src/__tests__/uport.test.ts @@ -25,7 +25,7 @@ describe('web did resolver', () => { publicKey: [ { id: 'did:web:uport.me#owner', - owner: 'did:web:uport.me', + controller: 'did:web:uport.me', publicKeyHex: '042b0af9b3ae6c7c3a90b01a3879d9518081bc0dcdf038488db9cb109b082a77d97ea3373e3dfde0eccd9adbdce11d0302ea5c098dbb0b310234c86895c8641622', type: 'Secp256k1VerificationKey2018'