Skip to content

Commit

Permalink
feat: update veramo
Browse files Browse the repository at this point in the history
  • Loading branch information
martines3000 committed Jul 2, 2024
1 parent a2a5274 commit 63d2a26
Show file tree
Hide file tree
Showing 5 changed files with 6,542 additions and 3,283 deletions.
22 changes: 11 additions & 11 deletions apps/issuer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"test": "pnpm vitest"
},
"dependencies": {
"@blockchain-lab-um/did-provider-key": "1.0.8-beta.0",
"@blockchain-lab-um/did-provider-key": "1.1.0-beta.1",
"@blockchain-lab-um/oidc-rp-plugin": "0.0.8",
"@blockchain-lab-um/oidc-types": "0.0.8",
"@blockchain-lab-um/utils": "1.3.7",
Expand All @@ -27,16 +27,16 @@
"@nestjs/core": "^10.1.3",
"@nestjs/platform-fastify": "^10.1.3",
"@nestjs/schedule": "^3.0.2",
"@veramo/core": "5.4.1",
"@veramo/credential-ld": "5.4.1",
"@veramo/credential-w3c": "5.4.1",
"@veramo/data-store": "5.4.1",
"@veramo/did-manager": "5.4.1",
"@veramo/did-provider-ethr": "5.4.1",
"@veramo/did-resolver": "5.4.1",
"@veramo/key-manager": "5.4.1",
"@veramo/kms-local": "5.4.1",
"@veramo/utils": "5.4.1",
"@veramo/core": "6.0.0",
"@veramo/credential-ld": "6.0.0",
"@veramo/credential-w3c": "6.0.0",
"@veramo/data-store": "6.0.0",
"@veramo/did-manager": "6.0.0",
"@veramo/did-provider-ethr": "6.0.0",
"@veramo/did-resolver": "6.0.0",
"@veramo/key-manager": "6.0.0",
"@veramo/kms-local": "6.0.0",
"@veramo/utils": "6.0.0",
"better-sqlite3": "^8.5.0",
"class-transformer": "^0.5.1",
"did-resolver": "^4.1.0",
Expand Down
24 changes: 12 additions & 12 deletions apps/verifier/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,18 +27,18 @@
"@nestjs/schedule": "^3.0.2",
"@types/qs": "^6.9.7",
"@types/uuid": "9.0.2",
"@veramo/core": "5.4.1",
"@veramo/credential-eip712": "5.4.1",
"@veramo/credential-ld": "5.4.1",
"@veramo/credential-w3c": "5.4.1",
"@veramo/data-store": "5.4.1",
"@veramo/did-manager": "5.4.1",
"@veramo/did-provider-ethr": "5.4.1",
"@veramo/did-provider-key": "5.4.1",
"@veramo/did-resolver": "5.4.1",
"@veramo/key-manager": "5.4.1",
"@veramo/kms-local": "5.4.1",
"@veramo/utils": "5.4.1",
"@veramo/core": "6.0.0",
"@veramo/credential-eip712": "6.0.0",
"@veramo/credential-ld": "6.0.0",
"@veramo/credential-w3c": "6.0.0",
"@veramo/data-store": "6.0.0",
"@veramo/did-manager": "6.0.0",
"@veramo/did-provider-ethr": "6.0.0",
"@veramo/did-provider-key": "6.0.0",
"@veramo/did-resolver": "6.0.0",
"@veramo/key-manager": "6.0.0",
"@veramo/kms-local": "6.0.0",
"@veramo/utils": "6.0.0",
"better-sqlite3": "^8.5.0",
"did-resolver": "^4.1.0",
"elliptic": "6.5.4",
Expand Down
17 changes: 11 additions & 6 deletions libs/rp-plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,12 @@
"module": "./dist/index.js",
"source": "./src/index.ts",
"types": "./dist/index.d.ts",
"files": ["dist/", "README.md", "CHANGELOG.md", "package.json"],
"files": [
"dist/",
"README.md",
"CHANGELOG.md",
"package.json"
],
"scripts": {
"build": "pnpm clean && pnpm compile",
"clean": "rimraf dist",
Expand All @@ -18,10 +23,10 @@
"dependencies": {
"@blockchain-lab-um/oidc-types": "0.0.8",
"@sphereon/pex": "2.0.1",
"@veramo/core": "5.4.1",
"@veramo/credential-eip712": "5.4.1",
"@veramo/credential-ld": "5.4.1",
"@veramo/utils": "5.4.1",
"@veramo/core": "6.0.0",
"@veramo/credential-eip712": "6.0.0",
"@veramo/credential-ld": "6.0.0",
"@veramo/utils": "6.0.0",
"ajv": "^8.12.0",
"ajv-formats": "^2.1.1",
"did-resolver": "^4.1.0",
Expand All @@ -33,7 +38,7 @@
"@sphereon/ssi-types": "^0.11.0",
"@types/elliptic": "6.4.16",
"@types/qs": "^6.9.7",
"@veramo/cli": "5.4.1",
"@veramo/cli": "6.0.0",
"tsup": "^7.2.0"
},
"veramo": {
Expand Down
6 changes: 4 additions & 2 deletions libs/rp-plugin/src/agent/oidc-rp-plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -333,10 +333,12 @@ export class OIDCRPPlugin implements IAgentPlugin {
};
}

publicKeyHex = extractPublicKeyHex(
const { publicKeyHex: _publicKeyHex } = extractPublicKeyHex(
fragment as _ExtendedVerificationMethod,
);

publicKeyHex = _publicKeyHex;

if (publicKeyHex === '') {
return {
success: false,
Expand Down Expand Up @@ -1239,7 +1241,7 @@ export class OIDCRPPlugin implements IAgentPlugin {
if (fragment.publicKeyJwk) {
publicKey = await importJWK(fragment.publicKeyJwk, protectedHeader.alg);
} else {
const publicKeyHex = extractPublicKeyHex(
const { publicKeyHex } = extractPublicKeyHex(
fragment as _ExtendedVerificationMethod,
);

Expand Down
Loading

0 comments on commit 63d2a26

Please sign in to comment.