Skip to content

Commit 7fe1eeb

Browse files
authored
Merge pull request #210 from Sphereon-Opensource/feature/DIIPv4
feature/DIIPv4
2 parents 4c0450e + e4b2942 commit 7fe1eeb

196 files changed

Lines changed: 12539 additions & 22068 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
[![CI](https://github.com/Sphereon-Opensource/OID4VC/actions/workflows/build-test-on-pr.yml/badge.svg)](https://github.com/Sphereon-Opensource/OID4VC/actions/workflows/build-test-on-pr.yml) [![codecov](https://codecov.io/gh/Sphereon-Opensource/OID4VC/branch/develop/graph/badge.svg)](https://codecov.io/gh/Sphereon-Opensource/OID4VC) [![NPM Version](https://img.shields.io/npm/v/@sphereon/oid4vci-client.svg)](https://npm.im/@sphereon/oid4vci-client)
99

10-
_IMPORTANT the packages are still in an early development stage, which means that breaking changes are to be expected_
10+
_IMPORTANT the packages are still in an early development stage, which means that breaking changes are to be expected The current branch only supports OID4VCI draft v15, for draft v13 and lower use branch archive/draft-v13-support_
1111

1212
# Background
1313

package.json

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@
1313
"fix:lint": "biome lint --error-on-warnings",
1414
"fix:prettier": "biome format --write",
1515
"build": "turbo run build",
16-
"test:ci": "vitest run --config ./vitest.config.ts --coverage",
16+
"test:ci": "vitest run --config vitest.config.mts --coverage",
1717
"test": "turbo run test:vitest",
18-
"test:vitest": "vitest run --config ./vitest.config.ts --coverage",
18+
"test:vitest": "vitest run --config vitest.config.mts --coverage",
1919
"clean": "rimraf --glob **/dist **/.turbo **/.tsup **/coverage **/pnpm-lock.yaml packages/**/node_modules node_modules packages/**/tsconfig.tsbuildinfo",
2020
"publish:latest": "lerna publish --conventional-commits --include-merged-tags --create-release github --yes --dist-tag latest --registry https://registry.npmjs.org",
2121
"publish:next": "lerna publish --conventional-prerelease --force-publish --canary --no-git-tag-version --include-merged-tags --preid next --pre-dist-tag next --yes --registry https://registry.npmjs.org",
@@ -26,8 +26,8 @@
2626
"pnpm": ">=10"
2727
},
2828
"resolutions": {
29-
"@sphereon/ssi-types": "0.34.1-next.3",
30-
"dcql": "0.2.22",
29+
"@sphereon/ssi-types": "0.34.1-feature.DIIPv4.245",
30+
"dcql": "1.0.1",
3131
"node-fetch": "2.6.12",
3232
"typescript": "5.8.3"
3333
},
@@ -51,6 +51,12 @@
5151
"typescript": "5.8.3",
5252
"vitest": "^3.1.1"
5353
},
54+
"pnpm": {
55+
"patchedDependencies": {
56+
"did-jwt@6.11.6": "patches/did-jwt@6.11.6.patch",
57+
"dcql@1.0.1": "patches/dcql@1.0.1.patch"
58+
}
59+
},
5460
"keywords": [
5561
"Sphereon",
5662
"Verifiable Credentials",

packages/callback-example/lib/IssuerCallback.ts

Lines changed: 2 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { Ed25519Signature2020 } from '@digitalcredentials/ed25519-signature-2020
33
import { Ed25519VerificationKey2020 } from '@digitalcredentials/ed25519-verification-key-2020'
44
import { securityLoader } from '@digitalcredentials/security-document-loader'
55
import vc from '@digitalcredentials/vc'
6-
import { CredentialRequest, CredentialRequestV1_0_11 } from '@sphereon/oid4vci-common'
6+
import { CredentialRequest } from '@sphereon/oid4vci-common'
77
import { CredentialIssuanceInput } from '@sphereon/oid4vci-issuer'
88
import { CompactSdJwtVc, W3CVerifiableCredential } from '@sphereon/ssi-types'
99

@@ -14,27 +14,7 @@ export const generateDid = async () => {
1414
return { didDocument, keyPairs, methodFor }
1515
}
1616

17-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
18-
export const getIssuerCallbackV1_0_11 = (credential: CredentialIssuanceInput, keyPair: any, verificationMethod: string) => {
19-
if (!credential) {
20-
throw new Error('A credential needs to be provided')
21-
}
22-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
23-
return async (_opts: {
24-
credentialRequest?: CredentialRequestV1_0_11
25-
credential?: CredentialIssuanceInput
26-
}): Promise<W3CVerifiableCredential | CompactSdJwtVc> => {
27-
const documentLoader = securityLoader().build()
28-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
29-
const verificationKey: any = Array.from(keyPair.values())[0]
30-
const keys = await Ed25519VerificationKey2020.from({ ...verificationKey })
31-
const suite = new Ed25519Signature2020({ key: keys })
32-
suite.verificationMethod = verificationMethod
33-
return await vc.issue({ credential, suite, documentLoader })
34-
}
35-
}
36-
37-
export const getIssuerCallbackV1_0_13 = (
17+
export const getIssuerCallbackV1_0_15 = (
3818
credential: CredentialIssuanceInput,
3919
credentialRequest: CredentialRequest,
4020
keyPair: any,

0 commit comments

Comments
 (0)