Skip to content

Commit

Permalink
fix: VP did resolution from agent
Browse files Browse the repository at this point in the history
  • Loading branch information
nklomp committed Jul 7, 2023
1 parent 7aa2bd3 commit aa3f3f1
Show file tree
Hide file tree
Showing 37 changed files with 1,481 additions and 1,558 deletions.
7 changes: 1 addition & 6 deletions packages/agent-config/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,9 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline

# [0.13.0](https://github.com/Sphereon-Opensource/SSI-SDK/compare/v0.12.0...v0.13.0) (2023-06-24)


### Features

* Allow setting SIOP RP default opts also after construction, as sometimes you need to agent which is not available yet at construction time ([bf871da](https://github.com/Sphereon-Opensource/SSI-SDK/commit/bf871dab0dc670c4e072d177998c6890f28b8fa7))




- Allow setting SIOP RP default opts also after construction, as sometimes you need to agent which is not available yet at construction time ([bf871da](https://github.com/Sphereon-Opensource/SSI-SDK/commit/bf871dab0dc670c4e072d177998c6890f28b8fa7))

# [0.12.0](https://github.com/Sphereon-Opensource/SSI-SDK/compare/v0.11.0...v0.12.0) (2023-06-21)

Expand Down
7 changes: 1 addition & 6 deletions packages/contact-manager/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,9 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline

# [0.13.0](https://github.com/Sphereon-Opensource/SSI-SDK/compare/v0.12.0...v0.13.0) (2023-06-24)


### Features

* Allow setting SIOP RP default opts also after construction, as sometimes you need to agent which is not available yet at construction time ([bf871da](https://github.com/Sphereon-Opensource/SSI-SDK/commit/bf871dab0dc670c4e072d177998c6890f28b8fa7))




- Allow setting SIOP RP default opts also after construction, as sometimes you need to agent which is not available yet at construction time ([bf871da](https://github.com/Sphereon-Opensource/SSI-SDK/commit/bf871dab0dc670c4e072d177998c6890f28b8fa7))

# [0.12.0](https://github.com/Sphereon-Opensource/SSI-SDK/compare/v0.11.0...v0.12.0) (2023-06-21)

Expand Down
7 changes: 1 addition & 6 deletions packages/data-store/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,9 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline

# [0.13.0](https://github.com/Sphereon-Opensource/SSI-SDK/compare/v0.12.0...v0.13.0) (2023-06-24)


### Features

* Allow setting SIOP RP default opts also after construction, as sometimes you need to agent which is not available yet at construction time ([bf871da](https://github.com/Sphereon-Opensource/SSI-SDK/commit/bf871dab0dc670c4e072d177998c6890f28b8fa7))




- Allow setting SIOP RP default opts also after construction, as sometimes you need to agent which is not available yet at construction time ([bf871da](https://github.com/Sphereon-Opensource/SSI-SDK/commit/bf871dab0dc670c4e072d177998c6890f28b8fa7))

# [0.12.0](https://github.com/Sphereon-Opensource/SSI-SDK/compare/v0.11.0...v0.12.0) (2023-06-21)

Expand Down
7 changes: 1 addition & 6 deletions packages/dev/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,9 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline

# [0.13.0](https://github.com/Sphereon-Opensource/SSI-SDK/compare/v0.12.0...v0.13.0) (2023-06-24)


### Features

* Allow setting SIOP RP default opts also after construction, as sometimes you need to agent which is not available yet at construction time ([bf871da](https://github.com/Sphereon-Opensource/SSI-SDK/commit/bf871dab0dc670c4e072d177998c6890f28b8fa7))




- Allow setting SIOP RP default opts also after construction, as sometimes you need to agent which is not available yet at construction time ([bf871da](https://github.com/Sphereon-Opensource/SSI-SDK/commit/bf871dab0dc670c4e072d177998c6890f28b8fa7))

# [0.12.0](https://github.com/Sphereon-Opensource/SSI-SDK/compare/v0.11.0...v0.12.0) (2023-06-21)

Expand Down
4 changes: 0 additions & 4 deletions packages/issuance-branding/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,6 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline

**Note:** Version bump only for package @sphereon/ssi-sdk.issuance-branding





# [0.12.0](https://github.com/Sphereon-Opensource/SSI-SDK/compare/v0.11.0...v0.12.0) (2023-06-21)

**Note:** Version bump only for package @sphereon/ssi-sdk.issuance-branding
7 changes: 1 addition & 6 deletions packages/kv-store/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,9 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline

# [0.13.0](https://github.com/uport-project/veramo/compare/v0.12.0...v0.13.0) (2023-06-24)


### Features

* Allow setting SIOP RP default opts also after construction, as sometimes you need to agent which is not available yet at construction time ([bf871da](https://github.com/uport-project/veramo/commit/bf871dab0dc670c4e072d177998c6890f28b8fa7))




- Allow setting SIOP RP default opts also after construction, as sometimes you need to agent which is not available yet at construction time ([bf871da](https://github.com/uport-project/veramo/commit/bf871dab0dc670c4e072d177998c6890f28b8fa7))

# [0.12.0](https://github.com/uport-project/veramo/compare/v0.11.0...v0.12.0) (2023-06-21)

Expand Down
7 changes: 1 addition & 6 deletions packages/ms-authenticator/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,9 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline

# [0.13.0](https://github.com/Sphereon-Opensource/SSI-SDK/compare/v0.12.0...v0.13.0) (2023-06-24)


### Features

* Allow setting SIOP RP default opts also after construction, as sometimes you need to agent which is not available yet at construction time ([bf871da](https://github.com/Sphereon-Opensource/SSI-SDK/commit/bf871dab0dc670c4e072d177998c6890f28b8fa7))




- Allow setting SIOP RP default opts also after construction, as sometimes you need to agent which is not available yet at construction time ([bf871da](https://github.com/Sphereon-Opensource/SSI-SDK/commit/bf871dab0dc670c4e072d177998c6890f28b8fa7))

# [0.12.0](https://github.com/Sphereon-Opensource/SSI-SDK/compare/v0.11.0...v0.12.0) (2023-06-21)

Expand Down
7 changes: 1 addition & 6 deletions packages/ms-request-api/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,9 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline

# [0.13.0](https://github.com/Sphereon-Opensource/SSI-SDK/compare/v0.12.0...v0.13.0) (2023-06-24)


### Features

* Allow setting SIOP RP default opts also after construction, as sometimes you need to agent which is not available yet at construction time ([bf871da](https://github.com/Sphereon-Opensource/SSI-SDK/commit/bf871dab0dc670c4e072d177998c6890f28b8fa7))




- Allow setting SIOP RP default opts also after construction, as sometimes you need to agent which is not available yet at construction time ([bf871da](https://github.com/Sphereon-Opensource/SSI-SDK/commit/bf871dab0dc670c4e072d177998c6890f28b8fa7))

# [0.12.0](https://github.com/Sphereon-Opensource/SSI-SDK/compare/v0.11.0...v0.12.0) (2023-06-21)

Expand Down
11 changes: 3 additions & 8 deletions packages/oid4vci-issuer-rest-api/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,11 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline

# [0.13.0](https://github.com/Sphereon-Opensource/SSI-SDK/compare/v0.12.0...v0.13.0) (2023-06-24)


### Features

* allow default opts to be set when OID4VCI is running ([7142273](https://github.com/Sphereon-Opensource/SSI-SDK/commit/71422737036c01c095459676858b754b7b10ddfd))
* allow instance opts to be set when OID4VCI is running but only when having access to the object directly ([51f873e](https://github.com/Sphereon-Opensource/SSI-SDK/commit/51f873e34dec7ddca92cae6d625c1694a483b2cb))
* Allow setting SIOP RP default opts also after construction, as sometimes you need to agent which is not available yet at construction time ([bf871da](https://github.com/Sphereon-Opensource/SSI-SDK/commit/bf871dab0dc670c4e072d177998c6890f28b8fa7))




- allow default opts to be set when OID4VCI is running ([7142273](https://github.com/Sphereon-Opensource/SSI-SDK/commit/71422737036c01c095459676858b754b7b10ddfd))
- allow instance opts to be set when OID4VCI is running but only when having access to the object directly ([51f873e](https://github.com/Sphereon-Opensource/SSI-SDK/commit/51f873e34dec7ddca92cae6d625c1694a483b2cb))
- Allow setting SIOP RP default opts also after construction, as sometimes you need to agent which is not available yet at construction time ([bf871da](https://github.com/Sphereon-Opensource/SSI-SDK/commit/bf871dab0dc670c4e072d177998c6890f28b8fa7))

# [0.12.0](https://github.com/Sphereon-Opensource/SSI-SDK/compare/v0.11.0...v0.12.0) (2023-06-21)

Expand Down
68 changes: 34 additions & 34 deletions packages/oid4vci-issuer-rest-api/__tests__/agent.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import {IonPublicKeyPurpose} from '@decentralized-identity/ion-sdk'
import {getUniResolver} from '@sphereon/did-uni-client'
import {CredentialIssuerMetadata} from '@sphereon/oid4vci-common'
import {JwkDIDProvider} from '@sphereon/ssi-sdk-ext.did-provider-jwk'
import {SphereonKeyManager} from '@sphereon/ssi-sdk-ext.key-manager'
import {toJwk} from '@sphereon/ssi-sdk-ext.key-utils'
import {SphereonKeyManagementSystem} from '@sphereon/ssi-sdk-ext.kms-local'
import {OID4VCIIssuer} from '@sphereon/ssi-sdk.oid4vci-issuer'
import {OID4VCIStore} from '@sphereon/ssi-sdk.oid4vci-issuer-store'
import { IonPublicKeyPurpose } from '@decentralized-identity/ion-sdk'
import { getUniResolver } from '@sphereon/did-uni-client'
import { CredentialIssuerMetadata } from '@sphereon/oid4vci-common'
import { JwkDIDProvider } from '@sphereon/ssi-sdk-ext.did-provider-jwk'
import { SphereonKeyManager } from '@sphereon/ssi-sdk-ext.key-manager'
import { toJwk } from '@sphereon/ssi-sdk-ext.key-utils'
import { SphereonKeyManagementSystem } from '@sphereon/ssi-sdk-ext.kms-local'
import { OID4VCIIssuer } from '@sphereon/ssi-sdk.oid4vci-issuer'
import { OID4VCIStore } from '@sphereon/ssi-sdk.oid4vci-issuer-store'
import {
CredentialHandlerLDLocal,
LdDefaultContexts,
Expand All @@ -16,22 +16,22 @@ import {
SphereonEd25519Signature2020,
SphereonJsonWebSignature2020,
} from '@sphereon/ssi-sdk.vc-handler-ld-local'
import {createAgent} from '@veramo/core'
import {CredentialPlugin} from '@veramo/credential-w3c'
import {DataStore, DataStoreORM, DIDStore, KeyStore, PrivateKeyStore} from '@veramo/data-store'
import {DIDManager} from '@veramo/did-manager'
import {EthrDIDProvider} from '@veramo/did-provider-ethr'
import {getDidIonResolver, IonDIDProvider} from '@veramo/did-provider-ion'
import {getDidKeyResolver, KeyDIDProvider} from '@veramo/did-provider-key'
import {WebDIDProvider} from '@veramo/did-provider-web'
import {DIDResolverPlugin} from '@veramo/did-resolver'
import {SecretBox} from '@veramo/kms-local'
import { createAgent } from '@veramo/core'
import { CredentialPlugin } from '@veramo/credential-w3c'
import { DataStore, DataStoreORM, DIDStore, KeyStore, PrivateKeyStore } from '@veramo/data-store'
import { DIDManager } from '@veramo/did-manager'
import { EthrDIDProvider } from '@veramo/did-provider-ethr'
import { getDidIonResolver, IonDIDProvider } from '@veramo/did-provider-ion'
import { getDidKeyResolver, KeyDIDProvider } from '@veramo/did-provider-key'
import { WebDIDProvider } from '@veramo/did-provider-web'
import { DIDResolverPlugin } from '@veramo/did-resolver'
import { SecretBox } from '@veramo/kms-local'
import Debug from 'debug'
import {Resolver} from 'did-resolver'
import {getResolver as getDidWebResolver} from 'web-did-resolver'
import {IPlugins} from '../src'
import {DB_CONNECTION_NAME, DB_ENCRYPTION_KEY, getDbConnection} from './database'
import {start} from './RestAPI'
import { Resolver } from 'did-resolver'
import { getResolver as getDidWebResolver } from 'web-did-resolver'
import { IPlugins } from '../src'
import { DB_CONNECTION_NAME, DB_ENCRYPTION_KEY, getDbConnection } from './database'
import { start } from './RestAPI'
// import {toJwk} from "@sphereon/ssi-sdk-ext.key-utils";

const debug = Debug('ssi-sdk-siopv2-oid4vp-rp-rest-api')
Expand Down Expand Up @@ -188,7 +188,7 @@ let importMetadatas = [
logo: {
url: 'https://dutchblockchaincoalition.org/assets/images/icons/Logo-DBC.png',
alt_text:
'An orange block shape, with the text Dutch Blockchain Coalition next to it, portraying the logo of the Dutch Blockchain Coalition.',
'An orange block shape, with the text Dutch Blockchain Coalition next to it, portraying the logo of the Dutch Blockchain Coalition.',
},
background_image: {
url: 'https://i.ibb.co/CHqjxrJ/dbc-card-hig-res.png',
Expand All @@ -204,7 +204,7 @@ let importMetadatas = [
logo: {
url: 'https://dutchblockchaincoalition.org/assets/images/icons/Logo-DBC.png',
alt_text:
'An orange block shape, with the text Dutch Blockchain Coalition next to it, portraying the logo of the Dutch Blockchain Coalition.',
'An orange block shape, with the text Dutch Blockchain Coalition next to it, portraying the logo of the Dutch Blockchain Coalition.',
},
background_image: {
url: 'https://i.ibb.co/CHqjxrJ/dbc-card-hig-res.png',
Expand All @@ -220,7 +220,7 @@ let importMetadatas = [
logo: {
url: 'https://dutchblockchaincoalition.org/assets/images/icons/Logo-DBC.png',
alt_text:
'Aaneengesloten open blokken in de kleur blauw, met een blok in de kleur oranje, die tesamen de achtergrond van de kaart vormen.',
'Aaneengesloten open blokken in de kleur blauw, met een blok in de kleur oranje, die tesamen de achtergrond van de kaart vormen.',
},
background_image: {
url: 'https://i.ibb.co/CHqjxrJ/dbc-card-hig-res.png',
Expand Down Expand Up @@ -316,7 +316,7 @@ let importMetadatas = [
logo: {
url: 'https://i.ibb.co/vkfZCvr/FMDM-card-logo.png',
alt_text:
'A green and blue circle shape, with the text Future Mobility Data Marketplace next to it, portraying the logo of the Future Mobility Alliance.',
'A green and blue circle shape, with the text Future Mobility Data Marketplace next to it, portraying the logo of the Future Mobility Alliance.',
},
},
{
Expand All @@ -332,7 +332,7 @@ let importMetadatas = [
logo: {
url: 'https://i.ibb.co/vkfZCvr/FMDM-card-logo.png',
alt_text:
'A green and blue circle shape, with the text Future Mobility Data Marketplace next to it, portraying the logo of the Future Mobility Alliance.',
'A green and blue circle shape, with the text Future Mobility Data Marketplace next to it, portraying the logo of the Future Mobility Alliance.',
},
},
{
Expand All @@ -348,7 +348,7 @@ let importMetadatas = [
logo: {
url: 'https://i.ibb.co/vkfZCvr/FMDM-card-logo.png',
alt_text:
'An green and blue circle shape, with the text Future Mobility Data Marketplace next to it, portraying the logo of the Future Mobility Alliance.',
'An green and blue circle shape, with the text Future Mobility Data Marketplace next to it, portraying the logo of the Future Mobility Alliance.',
},
},
],
Expand Down Expand Up @@ -456,7 +456,7 @@ let importMetadatas = [
logo: {
url: 'https://i.ibb.co/WV6Rmsj/triall-White.png',
alt_text:
'9 white circles of which 5 are connected in a rectangular shape, with the text Triall next to it, portraying the logo of Triall.',
'9 white circles of which 5 are connected in a rectangular shape, with the text Triall next to it, portraying the logo of Triall.',
},
},
{
Expand All @@ -472,7 +472,7 @@ let importMetadatas = [
logo: {
url: 'https://i.ibb.co/WV6Rmsj/triall-White.png',
alt_text:
'9 white circles of which 5 are connected in a rectangular shape, with the text Triall next to it, portraying the logo of Triall.',
'9 white circles of which 5 are connected in a rectangular shape, with the text Triall next to it, portraying the logo of Triall.',
},
},
{
Expand All @@ -488,7 +488,7 @@ let importMetadatas = [
logo: {
url: 'https://i.ibb.co/WV6Rmsj/triall-White.png',
alt_text:
'9 white circles of which 5 are connected in a rectangular shape, with the text Triall next to it, portraying the logo of Triall.',
'9 white circles of which 5 are connected in a rectangular shape, with the text Triall next to it, portraying the logo of Triall.',
},
},
],
Expand Down Expand Up @@ -568,7 +568,7 @@ let importMetadatas = [
],
} as CredentialIssuerMetadata,
},
];
]

console.log(JSON.stringify(importMetadatas, null, 2))

Expand Down
8 changes: 4 additions & 4 deletions packages/oid4vci-issuer-rest-api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@
"@sphereon/did-uni-client": "^0.6.0",
"@sphereon/pex": "^2.0.1",
"@sphereon/pex-models": "^2.0.2",
"@sphereon/ssi-sdk-ext.did-provider-jwk": "0.12.1-next.9",
"@sphereon/ssi-sdk-ext.key-manager": "0.12.1-next.9",
"@sphereon/ssi-sdk-ext.key-utils": "0.12.1-next.9",
"@sphereon/ssi-sdk-ext.kms-local": "0.12.1-next.9",
"@sphereon/ssi-sdk-ext.did-provider-jwk": "0.12.2-next.3",
"@sphereon/ssi-sdk-ext.key-manager": "0.12.2-next.3",
"@sphereon/ssi-sdk-ext.key-utils": "0.12.2-next.3",
"@sphereon/ssi-sdk-ext.kms-local": "0.12.2-next.3",
"@sphereon/ssi-sdk.data-store": "workspace:*",
"@sphereon/ssi-sdk.vc-handler-ld-local": "workspace:*",
"@types/body-parser": "^1.19.2",
Expand Down
7 changes: 1 addition & 6 deletions packages/oid4vci-issuer-rest-client/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,9 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline

# [0.13.0](https://github.com/Sphereon-OpenSource/ssi-sdk/compare/v0.12.0...v0.13.0) (2023-06-24)


### Features

* Allow setting SIOP RP default opts also after construction, as sometimes you need to agent which is not available yet at construction time ([bf871da](https://github.com/Sphereon-OpenSource/ssi-sdk/commit/bf871dab0dc670c4e072d177998c6890f28b8fa7))




- Allow setting SIOP RP default opts also after construction, as sometimes you need to agent which is not available yet at construction time ([bf871da](https://github.com/Sphereon-OpenSource/ssi-sdk/commit/bf871dab0dc670c4e072d177998c6890f28b8fa7))

# [0.12.0](https://github.com/Sphereon-OpenSource/ssi-sdk/compare/v0.11.0...v0.12.0) (2023-06-21)

Expand Down
11 changes: 3 additions & 8 deletions packages/oid4vci-issuer-store/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,11 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline

# [0.13.0](https://github.com/Sphereon-Opensource/SSI-SDK/compare/v0.12.0...v0.13.0) (2023-06-24)


### Features

* allow default opts to be set when OID4VCI is running ([7142273](https://github.com/Sphereon-Opensource/SSI-SDK/commit/71422737036c01c095459676858b754b7b10ddfd))
* allow instance opts to be set when OID4VCI is running but only when having access to the object directly ([51f873e](https://github.com/Sphereon-Opensource/SSI-SDK/commit/51f873e34dec7ddca92cae6d625c1694a483b2cb))
* Allow setting SIOP RP default opts also after construction, as sometimes you need to agent which is not available yet at construction time ([bf871da](https://github.com/Sphereon-Opensource/SSI-SDK/commit/bf871dab0dc670c4e072d177998c6890f28b8fa7))




- allow default opts to be set when OID4VCI is running ([7142273](https://github.com/Sphereon-Opensource/SSI-SDK/commit/71422737036c01c095459676858b754b7b10ddfd))
- allow instance opts to be set when OID4VCI is running but only when having access to the object directly ([51f873e](https://github.com/Sphereon-Opensource/SSI-SDK/commit/51f873e34dec7ddca92cae6d625c1694a483b2cb))
- Allow setting SIOP RP default opts also after construction, as sometimes you need to agent which is not available yet at construction time ([bf871da](https://github.com/Sphereon-Opensource/SSI-SDK/commit/bf871dab0dc670c4e072d177998c6890f28b8fa7))

# [0.12.0](https://github.com/Sphereon-Opensource/SSI-SDK/compare/v0.11.0...v0.12.0) (2023-06-21)

Expand Down
2 changes: 1 addition & 1 deletion packages/oid4vci-issuer-store/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
},
"dependencies": {
"@sphereon/oid4vci-common": "0.6.0",
"@sphereon/ssi-sdk-ext.did-utils": "0.12.1-next.9",
"@sphereon/ssi-sdk-ext.did-utils": "0.12.2-next.3",
"@sphereon/ssi-sdk.kv-store-temp": "workspace:*",
"@types/uuid": "^9.0.1",
"@veramo/core": "4.2.0",
Expand Down
Loading

0 comments on commit aa3f3f1

Please sign in to comment.