Skip to content

Commit

Permalink
fix(deps): remove deprecated ethr networks
Browse files Browse the repository at this point in the history
BREAKING CHANGE: ethereum testnets rinkeby, kovan and ropsten are no longer usable for did:ethr

The following DID prefixes are no longer valid:
did:ethr:rinkeby
did:ethr:ropsten
did:ethr:kovan
did:ethr:0x3
did:ethr:0x4
did:ethr:0x2a
  • Loading branch information
mirceanis committed Oct 19, 2022
1 parent c97cf65 commit 68d4178
Show file tree
Hide file tree
Showing 4 changed files with 1,267 additions and 1,539 deletions.
6 changes: 0 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,16 +32,10 @@ curl -X GET http://localhost:8081/1.0/identifiers/did:nacl:Md8JiMIwsapml_FtQ2ngn
* `did:ethr:0x3b0BC51Ab9De1e5B7B6E34E5b960285805C41736`
* `did:ethr:0x02b97c30de767f084ce3080168ee293053ba33b235d7116a3263d29f1450936b71`
* `did:ethr:mainnet:0x3b0BC51Ab9De1e5B7B6E34E5b960285805C41736`
* `did:ethr:ropsten:0x3b0BC51Ab9De1e5B7B6E34E5b960285805C41736`
* `did:ethr:rinkeby:0x3b0BC51Ab9De1e5B7B6E34E5b960285805C41736`
* `did:ethr:goerli:0x3b0BC51Ab9De1e5B7B6E34E5b960285805C41736`
* `did:ethr:kovan:0x3b0BC51Ab9De1e5B7B6E34E5b960285805C41736`
* `did:ethr:rsk:0x3b0BC51Ab9De1e5B7B6E34E5b960285805C41736`
* `did:ethr:0x1:0x3b0BC51Ab9De1e5B7B6E34E5b960285805C41736`
* `did:ethr:0x3:0x3b0BC51Ab9De1e5B7B6E34E5b960285805C41736`
* `did:ethr:0x4:0x3b0BC51Ab9De1e5B7B6E34E5b960285805C41736`
* `did:ethr:0x5:0x3b0BC51Ab9De1e5B7B6E34E5b960285805C41736`
* `did:ethr:0x2a:0x3b0BC51Ab9De1e5B7B6E34E5b960285805C41736`
* `did:ethr:0x1e:0x3b0BC51Ab9De1e5B7B6E34E5b960285805C41736`
* `did:web:pulsar.veramo.io`
* `did:web:did.actor:alice`
Expand Down
14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@
},
"license": "Apache-2.0",
"dependencies": {
"did-resolver": "4.0.0",
"ethr-did-resolver": "^6.0.1",
"express": "4.18.1",
"nacl-did": "1.0.1",
"web-did-resolver": "^2.0.18"
"did-resolver": "^4.0.1",
"ethr-did-resolver": "^7.0.1",
"express": "^4.18.2",
"nacl-did": "^1.0.1",
"web-did-resolver": "^2.0.21"
},
"devDependencies": {
"@semantic-release/changelog": "6.0.1",
Expand All @@ -37,9 +37,9 @@
"@semantic-release/github": "8.0.6",
"@semantic-release/npm": "9.0.1",
"@semantic-release/release-notes-generator": "10.0.3",
"jest": "29.0.3",
"jest": "29.2.1",
"semantic-release": "19.0.5",
"supertest": "6.2.4"
"supertest": "6.3.0"
},
"jest": {
"testEnvironment": "node",
Expand Down
46 changes: 2 additions & 44 deletions src/__tests__/ethr.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -136,48 +136,6 @@ describe('did:ethr driver', () => {
expect(response.body.didDocument).toHaveProperty('verificationMethod')
})

it('did:ethr:ropsten:0x3b0BC51Ab9De1e5B7B6E34E5b960285805C41736', async () => {
expect.assertions(1)
const did = 'did:ethr:ropsten:0x3b0BC51Ab9De1e5B7B6E34E5b960285805C41736'
const response = await request(app).get(`/1.0/identifiers/${did}`)
expect(response.body.didDocument).toHaveProperty('verificationMethod')
})

it('did:ethr:0x3:0x3b0BC51Ab9De1e5B7B6E34E5b960285805C41736', async () => {
expect.assertions(1)
const did = 'did:ethr:0x3:0x3b0BC51Ab9De1e5B7B6E34E5b960285805C41736'
const response = await request(app).get(`/1.0/identifiers/${did}`)
expect(response.body.didDocument).toHaveProperty('verificationMethod')
})

it('did:ethr:rinkeby:0x3b0BC51Ab9De1e5B7B6E34E5b960285805C41736', async () => {
expect.assertions(1)
const did = 'did:ethr:rinkeby:0x3b0BC51Ab9De1e5B7B6E34E5b960285805C41736'
const response = await request(app).get(`/1.0/identifiers/${did}`)
expect(response.body.didDocument).toHaveProperty('verificationMethod')
})

it('did:ethr:0x4:0x3b0BC51Ab9De1e5B7B6E34E5b960285805C41736', async () => {
expect.assertions(1)
const did = 'did:ethr:0x4:0x3b0BC51Ab9De1e5B7B6E34E5b960285805C41736'
const response = await request(app).get(`/1.0/identifiers/${did}`)
expect(response.body.didDocument).toHaveProperty('verificationMethod')
})

it('did:ethr:kovan:0x3b0BC51Ab9De1e5B7B6E34E5b960285805C41736', async () => {
expect.assertions(1)
const did = 'did:ethr:kovan:0x3b0BC51Ab9De1e5B7B6E34E5b960285805C41736'
const response = await request(app).get(`/1.0/identifiers/${did}`)
expect(response.body.didDocument).toHaveProperty('verificationMethod')
})

it('0did:ethr:0x2a:0x3b0BC51Ab9De1e5B7B6E34E5b960285805C41736x2a', async () => {
expect.assertions(1)
const did = 'did:ethr:0x2a:0x3b0BC51Ab9De1e5B7B6E34E5b960285805C41736'
const response = await request(app).get(`/1.0/identifiers/${did}`)
expect(response.body.didDocument).toHaveProperty('verificationMethod')
})

it('did:ethr:goerli:0x3b0BC51Ab9De1e5B7B6E34E5b960285805C41736', async () => {
expect.assertions(1)
const did = 'did:ethr:goerli:0x3b0BC51Ab9De1e5B7B6E34E5b960285805C41736'
Expand Down Expand Up @@ -255,7 +213,7 @@ describe('did:ethr driver', () => {
const response = await request(app).get(`/1.0/identifiers/${did}`)
expect(response.body.didDocument).toHaveProperty('verificationMethod')
})

it('did:ethr:0x12047:0x3b0BC51Ab9De1e5B7B6E34E5b960285805C41736', async () => {
expect.assertions(1)
const did = 'did:ethr:0x12047:0x3b0BC51Ab9De1e5B7B6E34E5b960285805C41736'
Expand All @@ -268,7 +226,7 @@ describe('did:ethr driver', () => {
const response = await request(app).get(`/1.0/identifiers/${did}`)
expect(response.body.didDocument).toHaveProperty('verificationMethod')
})

it('did:ethr:0xf6:0x3b0BC51Ab9De1e5B7B6E34E5b960285805C41736', async () => {
expect.assertions(1)
const did = 'did:ethr:0xf6:0x3b0BC51Ab9De1e5B7B6E34E5b960285805C41736'
Expand Down
Loading

0 comments on commit 68d4178

Please sign in to comment.