Skip to content

Commit

Permalink
fix(did-provider-key): use compressed keys for creating Secp256k1 did…
Browse files Browse the repository at this point in the history
…:key (#1217)

fixes #1213
  • Loading branch information
mirceanis authored Aug 15, 2023
1 parent 75048ce commit ba8f6f5
Show file tree
Hide file tree
Showing 39 changed files with 4,618 additions and 2,795 deletions.
6 changes: 3 additions & 3 deletions __tests__/shared/credentialStatus.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ import { jest } from '@jest/globals'
type ConfiguredAgent = TAgent<IDIDManager & ICredentialPlugin & IDataStore & IDataStoreORM>

// Constant used to simulate exception flows
const simulateStatusVerificationFailure = 'Any unexpected failure during status verification.'
const simulateStatusVerificationFailure = 'Any_unexpected_failure_during_status_verification.'

// Constant used to simulate revoked credentials
const simulateRevokedCredential = 'A revoked credential.'
const simulateRevokedCredential = 'A_revoked_credential.'

// Constant used to simulate revoked credentials
const simulateNotRevokedCredential = 'A NOT revoked credential.'
const simulateNotRevokedCredential = 'A_NOT_revoked_credential.'

const callsCounter = jest.fn()

Expand Down
18 changes: 9 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,16 +33,16 @@
"@ethersproject/wallet": "^5.7.0",
"@jest/globals": "29.6.2",
"@metamask/eth-sig-util": "6.0.0",
"@microsoft/api-documenter": "7.22.16",
"@microsoft/api-documenter": "7.22.32",
"@microsoft/api-extractor": "7.36.4",
"@microsoft/api-extractor-model": "7.27.2",
"@microsoft/api-extractor-model": "7.27.5",
"@microsoft/tsdoc": "0.14.2",
"@noble/hashes": "1.3.1",
"@stablelib/ed25519": "1.0.3",
"@transmute/credentials-context": "0.7.0-unstable.81",
"@types/express": "4.17.17",
"@types/fs-extra": "11.0.1",
"@types/jest": "29.5.2",
"@types/jest": "29.5.3",
"@types/node": "20.4.9",
"@types/uuid": "9.0.2",
"caip": "1.1.0",
Expand All @@ -63,15 +63,15 @@
"lerna-changelog": "2.2.0",
"oas-resolver": "2.5.6",
"openapi-types": "12.1.3",
"prettier": "3.0.0",
"prettier": "3.0.1",
"rimraf": "5.0.1",
"semantic-release": "21.0.5",
"ts-jest": "29.1.0",
"semantic-release": "21.0.7",
"ts-jest": "29.1.1",
"ts-json-schema-generator": "1.2.0",
"ts-node": "10.9.1",
"typeorm": "0.3.16",
"typescript": "5.1.3",
"uint8arrays": "4.0.4",
"typeorm": "0.3.17",
"typescript": "5.1.6",
"uint8arrays": "4.0.6",
"uuid": "9.0.0",
"web-did-resolver": "2.0.27"
},
Expand Down
22 changes: 11 additions & 11 deletions packages/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@
"update-veramo-latest": "pnpm add @veramo/core@latest @veramo/discovery@latest @veramo/remote-client@latest @veramo/remote-server@latest @veramo/did-provider-key@latest @veramo/did-resolver@latest @veramo/did-jwt@latest @veramo/credential-w3c@latest @veramo/did-provider-ethr@latest @veramo/did-provider-web@latest @veramo/did-comm@latest @veramo/kms-local@latest @veramo/selective-disclosure@latest @veramo/data-store@latest @veramo/key-manager@latest @veramo/message-handler@latest @veramo/did-manager@latest @veramo/url-handler@latest @veramo/credential-eip712@latest @veramo/utils@latest"
},
"dependencies": {
"@microsoft/api-extractor": "^7.35.2",
"@microsoft/api-extractor-model": "^7.27.2",
"@microsoft/api-extractor": "^7.36.3",
"@microsoft/api-extractor-model": "^7.27.5",
"@transmute/credentials-context": "^0.7.0-unstable.81",
"@types/blessed": "^0.1.22",
"@types/swagger-ui-express": "^4.1.3",
Expand Down Expand Up @@ -64,18 +64,18 @@
"@veramo/utils": "workspace:^",
"blessed": "^0.1.81",
"commander": "^11.0.0",
"console-table-printer": "^2.11.1",
"console-table-printer": "^2.11.2",
"cors": "^2.8.5",
"cross-fetch": "^4.0.0",
"date-fns": "^2.30.0",
"debug": "^4.3.4",
"did-resolver": "^4.1.0",
"dotenv": "^16.1.4",
"ethr-did-resolver": "^8.0.0",
"dotenv": "^16.3.1",
"ethr-did-resolver": "^8.1.2",
"express": "^4.18.2",
"express-handlebars": "^7.0.7",
"express-handlebars": "^7.1.1",
"fuzzy": "^0.1.3",
"handlebars": "^4.7.7",
"handlebars": "^4.7.8",
"inquirer": "^9.2.7",
"inquirer-autocomplete-prompt": "^3.0.0",
"json-schema": "^0.4.0",
Expand All @@ -85,14 +85,14 @@
"openapi-types": "^12.1.3",
"passport": "^0.6.0",
"passport-http-bearer": "^1.0.1",
"pg": "^8.11.0",
"pg": "^8.11.2",
"qrcode-terminal": "^0.12.0",
"sqlite3": "^5.1.6",
"swagger-ui-express": "^5.0.0",
"ts-json-schema-generator": "^1.2.0",
"typeorm": "^0.3.10",
"typeorm": "^0.3.17",
"url-parse": "^1.5.10",
"web-did-resolver": "^2.0.24",
"web-did-resolver": "^2.0.27",
"ws": "^8.13.0",
"yaml": "^2.3.1"
},
Expand All @@ -106,7 +106,7 @@
"@types/qrcode-terminal": "0.12.0",
"@types/url-parse": "1.4.8",
"@types/ws": "8.5.5",
"typescript": "5.1.3"
"typescript": "5.1.6"
},
"files": [
"bin/**/*",
Expand Down
4 changes: 2 additions & 2 deletions packages/core-types/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,12 @@
"dependencies": {
"credential-status": "^2.0.5",
"debug": "^4.3.3",
"did-jwt-vc": "^3.2.3",
"did-jwt-vc": "^3.2.5",
"did-resolver": "^4.1.0"
},
"devDependencies": {
"@types/debug": "4.1.8",
"typescript": "5.1.3"
"typescript": "5.1.6"
},
"files": [
"build/**/*",
Expand Down
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"devDependencies": {
"@types/debug": "4.1.8",
"@types/events": "3.0.0",
"typescript": "5.1.3"
"typescript": "5.1.6"
},
"files": [
"build/**/*",
Expand Down
2 changes: 1 addition & 1 deletion packages/credential-eip712/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
},
"devDependencies": {
"@types/debug": "4.1.8",
"typescript": "5.1.3"
"typescript": "5.1.6"
},
"files": [
"build/**/*",
Expand Down
4 changes: 2 additions & 2 deletions packages/credential-ld/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"@digitalcredentials/ed25519-signature-2020": "^3.0.2",
"@digitalcredentials/ed25519-verification-key-2020": "^4.0.0",
"@digitalcredentials/jsonld": "^6.0.0",
"@digitalcredentials/jsonld-signatures": "^9.3.1",
"@digitalcredentials/jsonld-signatures": "^9.3.2",
"@digitalcredentials/vc": "^6.0.0",
"@transmute/credentials-context": "^0.7.0-unstable.81",
"@transmute/ed25519-signature-2018": "^0.7.0-unstable.81",
Expand All @@ -40,7 +40,7 @@
"devDependencies": {
"@types/debug": "4.1.8",
"borc": "3.0.0",
"typescript": "5.1.3"
"typescript": "5.1.6"
},
"files": [
"build/**/*",
Expand Down
4 changes: 2 additions & 2 deletions packages/credential-status/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@
"@veramo/core-types": "workspace:^",
"@veramo/utils": "workspace:^",
"credential-status": "^2.0.5",
"did-jwt": "^7.2.0",
"did-jwt": "^7.2.5",
"did-resolver": "^4.1.0"
},
"devDependencies": {
"@types/debug": "4.1.8",
"typescript": "5.1.3"
"typescript": "5.1.6"
},
"files": [
"build/**/*",
Expand Down
6 changes: 3 additions & 3 deletions packages/credential-w3c/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
"@veramo/utils": "workspace:^",
"canonicalize": "^2.0.0",
"debug": "^4.3.3",
"did-jwt": "^7.2.0",
"did-jwt-vc": "^3.2.3",
"did-jwt": "^7.2.5",
"did-jwt-vc": "^3.2.5",
"did-resolver": "^4.1.0",
"uuid": "^9.0.0"
},
Expand All @@ -29,7 +29,7 @@
"devDependencies": {
"@types/debug": "4.1.8",
"@types/uuid": "9.0.2",
"typescript": "5.1.3"
"typescript": "5.1.6"
},
"files": [
"build/**/*",
Expand Down
4 changes: 2 additions & 2 deletions packages/data-store-json/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@
"@veramo/key-manager": "workspace:^",
"@veramo/utils": "workspace:^",
"debug": "^4.3.3",
"did-jwt-vc": "^3.2.3",
"did-jwt-vc": "^3.2.5",
"uuid": "^9.0.0"
},
"devDependencies": {
"@types/debug": "4.1.8",
"@types/ungap__structured-clone": "0.3.0",
"@types/uuid": "9.0.2",
"typescript": "5.1.3"
"typescript": "5.1.6"
},
"files": [
"build/**/*",
Expand Down
6 changes: 3 additions & 3 deletions packages/data-store/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@
"@veramo/key-manager": "workspace:^",
"@veramo/utils": "workspace:^",
"debug": "^4.3.3",
"did-jwt-vc": "^3.2.3",
"typeorm": "^0.3.10",
"did-jwt-vc": "^3.2.5",
"typeorm": "^0.3.17",
"uuid": "^9.0.0"
},
"devDependencies": {
"@types/debug": "4.1.8",
"@types/uuid": "9.0.2",
"sqlite3": "5.1.6",
"typescript": "5.1.3"
"typescript": "5.1.6"
},
"files": [
"build/**/*",
Expand Down
4 changes: 2 additions & 2 deletions packages/did-comm/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,15 @@
"@veramo/utils": "workspace:^",
"cross-fetch": "^4.0.0",
"debug": "^4.3.3",
"did-jwt": "^7.2.2",
"did-jwt": "^7.2.5",
"did-resolver": "^4.1.0",
"isomorphic-webcrypto": "^2.3.8",
"uuid": "^9.0.0"
},
"devDependencies": {
"@types/debug": "4.1.8",
"@types/uuid": "9.0.2",
"typescript": "5.1.3"
"typescript": "5.1.6"
},
"files": [
"build/**/*",
Expand Down
2 changes: 1 addition & 1 deletion packages/did-discovery/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
},
"devDependencies": {
"@types/debug": "4.1.8",
"typescript": "5.1.3"
"typescript": "5.1.6"
},
"files": [
"build/**/*",
Expand Down
4 changes: 2 additions & 2 deletions packages/did-jwt/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@
"@veramo/core-types": "workspace:^",
"@veramo/message-handler": "workspace:^",
"debug": "^4.3.3",
"did-jwt": "^7.2.0",
"did-jwt": "^7.2.5",
"did-resolver": "^4.1.0"
},
"devDependencies": {
"@types/debug": "4.1.8",
"typescript": "5.1.3"
"typescript": "5.1.6"
},
"files": [
"build/**/*",
Expand Down
2 changes: 1 addition & 1 deletion packages/did-manager/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"@veramo/did-discovery": "workspace:^"
},
"devDependencies": {
"typescript": "5.1.3"
"typescript": "5.1.6"
},
"files": [
"build/**/*",
Expand Down
4 changes: 2 additions & 2 deletions packages/did-provider-ethr/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@
"@veramo/core-types": "workspace:^",
"@veramo/did-manager": "workspace:^",
"debug": "^4.3.3",
"ethr-did": "^2.3.14"
"ethr-did": "^2.3.18"
},
"devDependencies": {
"@types/debug": "4.1.8",
"typescript": "5.1.3"
"typescript": "5.1.6"
},
"files": [
"build/**/*",
Expand Down
4 changes: 2 additions & 2 deletions packages/did-provider-ion/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"extract-api": "node ../cli/bin/veramo.js dev extract-api"
},
"dependencies": {
"@decentralized-identity/ion-sdk": "^1.0.0",
"@decentralized-identity/ion-sdk": "^1.0.1",
"@ethersproject/random": "^5.7.0",
"@ethersproject/signing-key": "^5.7.0",
"@noble/curves": "^1.1.0",
Expand All @@ -31,7 +31,7 @@
},
"devDependencies": {
"@types/debug": "4.1.8",
"typescript": "5.1.3"
"typescript": "5.1.6"
},
"peerDependencies": {
"@sphereon/react-native-argon2": "^2.0.7"
Expand Down
2 changes: 1 addition & 1 deletion packages/did-provider-jwk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"@veramo/core": "workspace:*",
"@veramo/key-manager": "workspace:*",
"@veramo/kms-local": "workspace:*",
"typescript": "5.1.3"
"typescript": "5.1.6"
},
"author": "Tadej Podrekar",
"keywords": [],
Expand Down
Loading

0 comments on commit ba8f6f5

Please sign in to comment.