Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New release #129

Merged
merged 125 commits into from
Sep 28, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
125 commits
Select commit Hold shift + click to select a range
40da447
DPP-1 WIP
Brummos Jul 30, 2023
728be58
DPP-1 WIP
Brummos Jul 30, 2023
203d050
DPP-1 WIP
Brummos Aug 1, 2023
34aa250
DPP-1 WIP
Brummos Aug 1, 2023
b105d31
DPP-1 migrations WIP
Brummos Aug 2, 2023
31c67ef
DPP-1 WIP
Brummos Aug 3, 2023
7c2d544
DPP-1 WIP
Brummos Aug 3, 2023
f82ebb2
DPP-1 added index name
Brummos Aug 3, 2023
e3d3df7
feat: Add web3 signer/wallet support directly using KMS, so you can u…
nklomp Aug 3, 2023
19139b2
chore(ci): merge main into develop (next)
github-actions[bot] Aug 10, 2023
8f4e551
chore(ci): merge main into develop (next)
github-actions[bot] Aug 10, 2023
5cd9216
chore: update deps
nklomp Aug 11, 2023
2c3d16e
Merge remote-tracking branch 'origin/develop' into develop
nklomp Aug 11, 2023
554c231
chore: vci rest API did not pass in opts correctly
nklomp Aug 11, 2023
e9fb5ee
feat: Add static header support to siop rest client
nklomp Aug 11, 2023
17a5ed1
chore: Fix static auth header
nklomp Aug 11, 2023
c55098b
Merge remote-tracking branch 'origin/develop' into feature/web3
nklomp Aug 11, 2023
1aeb37b
chore: web work
nklomp Aug 14, 2023
d4e082c
feat: Add support for an OIDC BFF Passport based solution to express.…
nklomp Aug 17, 2023
781e250
fix: Make sure we do not throw an error when the IDP does not have an…
nklomp Aug 17, 2023
a72f103
chore: remove response_type for SRAM
nklomp Aug 17, 2023
7c72d31
feat: Allow VCI issuer to also supply the issuer DID when the credent…
nklomp Aug 17, 2023
e6f534c
chore: express-support was an esm module. Moved back to commonjs unti…
nklomp Aug 17, 2023
b6d8cca
chore: update VCI deps
nklomp Aug 18, 2023
990bad5
chore: update VCI deps
nklomp Aug 18, 2023
706baff
fix: Create a issuer.id in a uniform credential in case the issuer is…
nklomp Aug 18, 2023
86a90b6
chore: reformat
nklomp Aug 18, 2023
d9e75fb
chore: Do not remove VC field for JWTs
nklomp Aug 18, 2023
845734a
chore: Update deps
nklomp Aug 19, 2023
b7e7ca8
Merge branch 'feature/oidc_backend' into feature/web3
nklomp Aug 19, 2023
6658ea3
feature: (WIP) created rest endpoints for ContactManagerRestAPI
sksadjad Aug 21, 2023
62dc7df
feat: web3 headless provider and wallet
nklomp Aug 22, 2023
409d4df
feature: (WIP) modified cm rest api to include auth and activated fea…
sksadjad Aug 22, 2023
08c898a
Merge branch 'develop' into feature/VDX-247
sksadjad Aug 22, 2023
f12191d
feature: (WIP) modified and fixed the dependencies and added test files
sksadjad Aug 24, 2023
7ed0006
feature: (WIP) added save contacts back
sksadjad Aug 24, 2023
23d3ea7
feature: fixed adding contact functionality
sksadjad Aug 24, 2023
c69cf9e
feat: web3 headless provider and wallet
nklomp Aug 25, 2023
00fc40a
feat: web3 headless provider and wallet
nklomp Aug 25, 2023
438949d
chore: change hostname for web3 provider
nklomp Aug 25, 2023
0f96f40
chore: change hostname for web3 provider
nklomp Aug 25, 2023
92571a9
chore: update deps
nklomp Aug 29, 2023
cae27d0
chore: update deps
nklomp Aug 29, 2023
2e88c00
chore: downgrade noble/hashes in ssi-express-support
nklomp Aug 29, 2023
ff03e38
DPP-1 refactor work
Brummos Aug 30, 2023
8e37954
DPP-1 cleanup
Brummos Aug 30, 2023
4354927
fix: Fix multibase/codec code
nklomp Sep 2, 2023
80dd076
chore: update deps, remove cycle from tests
nklomp Sep 2, 2023
1408e15
chore: update deps, remove cycle from tests
nklomp Sep 2, 2023
61729f3
feat: statuslist2021 functions
nklomp Sep 2, 2023
a939ff5
DPP-1 sqlite up migrations
Brummos Sep 4, 2023
1d54145
DPP-1 postgres migration constraint name fix
Brummos Sep 4, 2023
02cc4f3
DPP-1 postgres migration WIP
Brummos Sep 4, 2023
750b78f
DPP-1 postgres migration WIP
Brummos Sep 4, 2023
1a29516
DPP-1 postgres migration WIP
Brummos Sep 4, 2023
8843354
DPP-1 postgres migration WIP
Brummos Sep 4, 2023
8069fe9
DPP-1 postgres migration WIP
Brummos Sep 4, 2023
deb73c7
DPP-1 postgres migration WIP
Brummos Sep 4, 2023
576bf9b
DPP-1 postgres migration WIP
Brummos Sep 4, 2023
76dcce2
DPP-1 migration WIP
Brummos Sep 4, 2023
ad889d8
DPP-1 sqlite migration constraint names
Brummos Sep 4, 2023
f52c2ec
DPP-1 postgres migration constraint names
Brummos Sep 4, 2023
49fccef
DPP-1 postgres identity relation migration fix
Brummos Sep 4, 2023
60decd8
DPP-1 migration nameing fix
Brummos Sep 5, 2023
aa38fc1
DPP-1 test cleanup
Brummos Sep 5, 2023
05d6cc5
DPP-1 cleanup
Brummos Sep 5, 2023
4c4216b
DPP-1 cleanup
Brummos Sep 5, 2023
78b58e5
DPP-1 cleanup
Brummos Sep 5, 2023
7f34679
DPP-1 cleanup
Brummos Sep 5, 2023
fc3949b
Merge branch 'develop' into feature/DPP-1
Brummos Sep 5, 2023
321ea76
DPP-1 lock file update
Brummos Sep 5, 2023
46986dd
feat: statuslist2021 support
nklomp Sep 6, 2023
2649b95
feat: statuslist2021 support
nklomp Sep 6, 2023
5fe8f46
chore: Disable did-issuer tests for now because of an issue with the …
nklomp Sep 6, 2023
19afb42
chore: Enable did-issuer tests again. Has to do with including the pg…
nklomp Sep 6, 2023
ba7adc5
chore: cleanups
nklomp Sep 6, 2023
fe2c566
chore: cleanups
nklomp Sep 6, 2023
e16f68d
Merge branch 'feature/DPP-1' into feature/VDX-247
sksadjad Sep 8, 2023
9537598
feature: changes in accordance with recent changes in ContactManager
sksadjad Sep 8, 2023
33351d0
chore: refactors requested in the pr
sksadjad Sep 12, 2023
aa8a44f
chore: updated the readme
sksadjad Sep 12, 2023
6109ded
Merge branch 'develop' into feature/DPP-1
Brummos Sep 12, 2023
28ee8b2
DPP-1 migration uuid fix
Brummos Sep 12, 2023
c485e7f
DPP-1 pnpm lock
Brummos Sep 12, 2023
8422945
DPP-1 formatting fix
Brummos Sep 12, 2023
1edaee5
Update README.md
nklomp Sep 12, 2023
dd09f38
DPP-1 test fix
Brummos Sep 12, 2023
a721853
Merge branch 'develop' into feature/VDX-247
sksadjad Sep 12, 2023
7ed1d99
DPP-1 test fixes
Brummos Sep 12, 2023
c0242ee
Merge branch 'feature/DPP-1' into feature/VDX-247
sksadjad Sep 12, 2023
3198a44
chore: addressed pr comments
sksadjad Sep 12, 2023
f5d47de
Merge remote-tracking branch 'origin/feature/VDX-247' into feature/VD…
sksadjad Sep 12, 2023
7991347
Merge pull request #119 from Sphereon-Opensource/feature/DPP-1
BtencateSphereon Sep 12, 2023
9eb5811
chore: addressed pr comments
sksadjad Sep 12, 2023
20ca9d0
chore: disabled authentication for contact-manager-rest-api test
sksadjad Sep 12, 2023
56c584c
Merge pull request #123 from Sphereon-Opensource/feature/VDX-247
sksadjad Sep 12, 2023
a177c52
chore: Add cors for Contacts API test
nklomp Sep 12, 2023
daeb87d
feat: added contact test data
sksadjad Sep 13, 2023
2706a7e
chore: changed the test contact data
sksadjad Sep 14, 2023
51861fd
fix: fixed partyId property in rest api
sksadjad Sep 14, 2023
c541b23
feat: Add auth support to VCI REST client
nklomp Sep 14, 2023
4de2a64
Merge pull request #126 from Sphereon-Opensource/feature/DPP-22
nklomp Sep 15, 2023
1ec75ed
chore: Update web3 config
nklomp Sep 17, 2023
2e89d22
Merge remote-tracking branch 'origin/develop' into feature/DPP-22
nklomp Sep 17, 2023
5c45dbe
chore: Update web3 config
nklomp Sep 17, 2023
d0ffa26
DPP-42: add identities to contacts
sanderPostma Sep 19, 2023
2466e61
DPP-42: did:ion in contacts and typeorm fix
sanderPostma Sep 20, 2023
a415926
DPP-42: reformat
sanderPostma Sep 20, 2023
582fc67
DPP-42: lockfile change
sanderPostma Sep 20, 2023
1a69153
Merge pull request #128 from Sphereon-Opensource/DPP-42
sanderPostma Sep 20, 2023
c15b257
chore:Update dev/demo identities for contacts
nklomp Sep 22, 2023
f6465cf
feat: Add initial versions of VC API clients back
nklomp Sep 24, 2023
31a14c7
chore: update dep
nklomp Sep 24, 2023
541625a
chore: update dep
nklomp Sep 24, 2023
0388f11
fix: Internally alg needs uppercase
nklomp Sep 24, 2023
8be1da2
fix: Secp256k recovery 2020 fix
nklomp Sep 25, 2023
196ad4c
fix: Secp256k recovery 2020 fix
nklomp Sep 25, 2023
46adf05
chore: fork vc-status list because of esm issues and v7 not being pub…
nklomp Sep 25, 2023
617cad6
chore: fork vc-status list because of esm issues and v7 not being pub…
nklomp Sep 26, 2023
14125e5
fix: Ed25519 2018 handling for verification
nklomp Sep 27, 2023
b858710
fix: Ed25519 2018 handling for verification
nklomp Sep 27, 2023
6889396
chore: workflow change to trigger build
nklomp Sep 27, 2023
fcf628f
chore: update deps
nklomp Sep 28, 2023
d0048cb
chore: remove excessive logging of DB queries
nklomp Sep 28, 2023
82791b3
chore: remove excessive logging of DB queries
nklomp Sep 28, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .github/workflows/build-test-publish-on-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,8 @@ jobs:

# npm whoami

- run: git diff -u
- name: show diff to track issues with lock file
run: git diff -u

- name: publish @latest when on main
if: github.ref == 'refs/heads/main'
Expand Down
7 changes: 5 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ test/*.js
*~

/packages/mnemonic-seed-manager/plugin.schema.json
/packages/vc-api-issuer/plugin.schema.json
/packages/vc-api-verifier/plugin.schema.json
/packages/w3c-vc-api-issuer-rest-client/plugin.schema.json
/packages/w3c-vc-api-verifier-rest-client/plugin.schema.json
/packages/contact-manager/plugin.schema.json
/packages/bls-key-manager/plugin.schema.json
/packages/ms-request-api/plugin.schema.json
Expand All @@ -70,3 +70,6 @@ test/*.js
/packages/issuance-branding/plugin.schema.json
/packages/oid4vci-issuer-rest-client/plugin.schema.json

**/.env.energyshr
**/.env.local
/packages/web3-provider-headless/__tests__/config.json
11 changes: 7 additions & 4 deletions jest.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,17 +27,20 @@
"coverageDirectory": "./coverage",
"transform": {
"\\.jsx?$": "babel-jest",
"\\.tsx?$": ["ts-jest", {
"tsconfig": "./packages/tsconfig-base.json"
}]
"\\.tsx?$": [
"ts-jest",
{
"tsconfig": "./packages/tsconfig-base.json"
}
]
},
"modulePathIgnorePatterns": [
"<rootDir>/packages/presentation-exchange/.yalc/",
"<rootDir>/packages/siopv2-oid4vp-rp-auth/.yalc/",
"<rootDir>/packages/siopv2-oid4vp-rp-rest-api/.yalc/"
],
"transformIgnorePatterns": [
"node_modules/(?!(?:.pnpm/)?(nist-weierstrauss|multiformatsgggggg))"
"<rootDir>/node_modules/.pnpm/(?!(nist-weierstrauss|multiformatsgggggg|@digitalcredentials\\+vc-status-list)@)"
],
"testMatch": [
"**/__tests__/**/*.test.*",
Expand Down
14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{
"name": "@sphereon/sphereon-sdk.workspace",
"private": true,
"version": "0.12.2",
"version": "0.15.1",
"description": "Sphereon SSI SDK (Workspace)",
"repository": "[email protected]:Sphereon-Opensource/SSI-SDK.git",
"author": "Sphereon <[email protected]>",
"license": "Apache-2.0",
"scripts": {
"preinstall": "npx only-allow pnpm",
"build": "pnpm build:js && pnpm build:copyfiles && pnpm build:api && pnpm build:schema",
"build": "rimraf --glob ./packages/*/tsconfig.tsbuildinfo && pnpm build:js && pnpm build:copyfiles && pnpm build:api && pnpm build:schema",
"build:clean": "lerna clean -y && pnpm install && lerna run build:clean --concurrency 1 && pnpm build:copyfiles && pnpm build:schema",
"build:js": "pnpm -r --stream build",
"build:api": "pnpm -r --stream extract-api",
Expand Down Expand Up @@ -51,7 +51,7 @@
"@typescript-eslint/eslint-plugin": "^5.59.2",
"@typescript-eslint/parser": "^5.59.2",
"codecov": "^3.8.3",
"cross-fetch": "^3.1.5",
"cross-fetch": "^3.1.8",
"did-jwt": "6.11.6",
"eslint": "^8.35.0",
"eslint-config-prettier": "^8.7.0",
Expand Down Expand Up @@ -109,15 +109,15 @@
"@veramo/remote-server": "4.2.0",
"@veramo/selective-disclosure": "4.2.0",
"@veramo/url-handler": "4.2.0",
"@sphereon/ssi-types": "workspace:^",
"@sphereon/ssi-sdk.core": "workspace:^",
"@sphereon/ssi-sdk-ext.did-provider-key": "0.14.0",
"@sphereon/ssi-types": "workspace:*",
"@sphereon/ssi-sdk.core": "workspace:*",
"@noble/hashes": "1.2.0",
"did-jwt": "6.11.6",
"did-jwt-vc": "3.1.3",
"ethr-did": "2.3.9",
"typeorm": "0.3.17",
"@mattrglobal/[email protected]>jsonld": "4.0.1",
"jsonld": "link:./node_modules/.pnpm/@digitalcredentials+jsonld@5.2.1/node_modules/@digitalcredentials/jsonld",
"jsonld": "link:./node_modules/.pnpm/@digitalcredentials+jsonld@6.0.0/node_modules/@digitalcredentials/jsonld",
"isomorphic-webcrypto": "link:./node_modules/@sphereon/isomorphic-webcrypto"
},
"patchedDependencies": {
Expand Down
8 changes: 0 additions & 8 deletions packages/agent-config/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,10 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline

**Note:** Version bump only for package @sphereon/ssi-sdk.agent-config





# [0.15.0](https://github.com/Sphereon-Opensource/SSI-SDK/compare/v0.14.1...v0.15.0) (2023-08-10)

**Note:** Version bump only for package @sphereon/ssi-sdk.agent-config





## [0.14.1](https://github.com/Sphereon-Opensource/SSI-SDK/compare/v0.14.0...v0.14.1) (2023-07-31)

**Note:** Version bump only for package @sphereon/ssi-sdk.agent-config
Expand Down
5 changes: 4 additions & 1 deletion packages/agent-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,14 @@
"@veramo/core": "4.2.0",
"jsonpointer": "^5.0.1",
"typeorm": "^0.3.12",
"debug": "^4.3.4",
"url-parse": "^1.5.10",
"yaml": "^2.2.2"
},
"devDependencies": {
"@types/url-parse": "^1.4.8"
"@types/url-parse": "^1.4.8",
"@types/debug": "^4.1.8",
"typescript": "4.9.5"
},
"files": [
"dist/**/*",
Expand Down
79 changes: 79 additions & 0 deletions packages/agent-config/src/dataSources.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
import Debug from 'debug'
import { DataSource } from 'typeorm'
import { BaseDataSourceOptions } from 'typeorm/data-source/BaseDataSourceOptions'
import { DataSourceOptions } from 'typeorm/data-source/DataSourceOptions'

const debug = Debug(`demo:databaseService`)

export class DataSources {
private dataSources = new Map<string, DataSource>()
private configs

private static singleton: DataSources

public static singleInstance() {
if (!DataSources.singleton) {
DataSources.singleton = new DataSources()
}
return DataSources.singleton
}

public static newInstance(configs?: Map<string, DataSourceOptions>) {
return new DataSources(configs)
}

private constructor(configs?: Map<string, DataSourceOptions>) {
this.configs = configs ?? new Map<string, BaseDataSourceOptions>()
}

addConfig(dbName: string, config: DataSourceOptions): this {
this.configs.set(dbName, config)
return this
}

deleteConfig(dbName: string): this {
this.configs.delete(dbName)
return this
}

getConfig(dbName: string): BaseDataSourceOptions {
const config = this.configs.get(dbName)
if (!config) {
throw Error(`No DB config found for ${dbName}`)
}
return config
}

public getDbNames(): string[] {
return [...this.configs.keys()]
}

async getDbConnection(dbName: string): Promise<DataSource> {
const config = this.getConfig(dbName)
/*if (config.synchronize) {
return Promise.reject(
`WARNING: Automatic migrations need to be disabled in this app! Adjust the database configuration and set synchronize to false`
)
}*/

let dataSource = this.dataSources.get(dbName)
if (dataSource) {
return dataSource
}

dataSource = await new DataSource({ ...(config as DataSourceOptions), name: dbName }).initialize()
this.dataSources.set(dbName, dataSource)
if (config.synchronize) {
debug(`WARNING: Automatic migrations need to be disabled in this app! Adjust the database configuration and set synchronize to false`)
} else if (config.migrationsRun) {
debug(
`Migrations are currently managed from config. Please set migrationsRun and synchronize to false to get consistent behaviour. We run migrations from code explicitly`
)
} else {
debug(`Running ${dataSource.migrations.length} migration(s) from code if needed...`)
await dataSource.runMigrations()
debug(`${dataSource.migrations.length} migration(s) from code were inspected and applied`)
}
return dataSource
}
}
1 change: 1 addition & 0 deletions packages/agent-config/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/**
* @public
*/
export * from './dataSources'
export * from './agentCreator'
export * from './objectCreator'
export * from './generic'
1 change: 1 addition & 0 deletions packages/agent-config/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"extends": "../tsconfig-base.json",
"compilerOptions": {
"experimentalDecorators": true,
"rootDir": "src",
"outDir": "dist",
"declarationDir": "dist",
Expand Down
1 change: 1 addition & 0 deletions packages/contact-manager-rest-api/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Change Log
Loading
Loading