@sphereon/ssi-sdk.credential-vcdm-jsonld-provider 0.34.1-next.3 → 0.34.1-next.322

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sphereon/ssi-sdk.credential-vcdm-jsonld-provider",
3
- "version": "0.34.1-next.3+6c49ea2f",
3
+ "version": "0.34.1-next.322+78f8dd31",
4
4
  "source": "src/index.ts",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -24,7 +24,7 @@
24
24
  },
25
25
  "scripts": {
26
26
  "build": "tsup --config ../../tsup.config.ts --tsconfig ../../tsconfig.tsup.json",
27
- "generate-plugin-schema.old": "ts-node ../../packages/dev/bin/sphereon.js dev generate-plugin-schema"
27
+ "generate-plugin-schema.old": "tsx ../../packages/dev/bin/sphereon.js dev generate-plugin-schema"
28
28
  },
29
29
  "dependencies": {
30
30
  "@digitalbazaar/ed25519-signature-2018": "^4.1.0",
@@ -40,14 +40,15 @@
40
40
  "@digitalcredentials/vc": "^9.0.1",
41
41
  "@digitalcredentials/x25519-key-agreement-2020-context": "^1.0.0",
42
42
  "@noble/hashes": "1.6.1",
43
- "@sphereon/ssi-sdk-ext.did-utils": "0.29.1-next.3",
44
- "@sphereon/ssi-sdk-ext.key-utils": "0.29.1-next.3",
45
- "@sphereon/ssi-sdk.agent-config": "0.34.1-next.3+6c49ea2f",
46
- "@sphereon/ssi-sdk.core": "0.34.1-next.3+6c49ea2f",
47
- "@sphereon/ssi-sdk.credential-vcdm": "0.34.1-next.3+6c49ea2f",
48
- "@sphereon/ssi-sdk.data-store": "0.34.1-next.3+6c49ea2f",
49
- "@sphereon/ssi-sdk.vc-status-list": "0.34.1-next.3+6c49ea2f",
50
- "@sphereon/ssi-types": "0.34.1-next.3+6c49ea2f",
43
+ "@sphereon/ssi-sdk-ext.did-utils": "0.34.1-next.322+78f8dd31",
44
+ "@sphereon/ssi-sdk-ext.key-utils": "0.34.1-next.322+78f8dd31",
45
+ "@sphereon/ssi-sdk.agent-config": "0.34.1-next.322+78f8dd31",
46
+ "@sphereon/ssi-sdk.core": "0.34.1-next.322+78f8dd31",
47
+ "@sphereon/ssi-sdk.credential-vcdm": "0.34.1-next.322+78f8dd31",
48
+ "@sphereon/ssi-sdk.data-store": "0.34.1-next.322+78f8dd31",
49
+ "@sphereon/ssi-sdk.data-store-types": "0.34.1-next.322+78f8dd31",
50
+ "@sphereon/ssi-sdk.vc-status-list": "0.34.1-next.322+78f8dd31",
51
+ "@sphereon/ssi-types": "0.34.1-next.322+78f8dd31",
51
52
  "@veramo-community/lds-ecdsa-secp256k1-recovery2020": "github:uport-project/EcdsaSecp256k1RecoverySignature2020",
52
53
  "@veramo/core": "4.2.0",
53
54
  "@veramo/utils": "4.2.0",
@@ -60,17 +61,17 @@
60
61
  },
61
62
  "devDependencies": {
62
63
  "@sphereon/did-uni-client": "^0.6.3",
63
- "@sphereon/ssi-sdk-ext.did-provider-key": "0.29.1-next.3",
64
+ "@sphereon/ssi-sdk-ext.did-provider-key": "0.34.1-next.322+78f8dd31",
64
65
  "@sphereon/ssi-sdk-ext.did-provider-lto": "0.23.0",
65
- "@sphereon/ssi-sdk-ext.identifier-resolution": "0.29.1-next.3",
66
- "@sphereon/ssi-sdk-ext.key-manager": "0.29.1-next.3",
67
- "@sphereon/ssi-sdk-ext.kms-local": "0.29.1-next.3",
66
+ "@sphereon/ssi-sdk-ext.identifier-resolution": "0.34.1-next.322+78f8dd31",
67
+ "@sphereon/ssi-sdk-ext.key-manager": "0.34.1-next.322+78f8dd31",
68
+ "@sphereon/ssi-sdk-ext.kms-local": "0.34.1-next.322+78f8dd31",
68
69
  "@sphereon/ssi-sdk.agent-config": "workspace:*",
69
70
  "@transmute/lds-ecdsa-secp256k1-recovery2020": "^0.0.7",
70
71
  "@types/nock": "^11.1.0",
71
72
  "@types/node": "^20.17.1",
72
- "@typescript-eslint/eslint-plugin": "^4.33.0",
73
- "@typescript-eslint/parser": "^4.33.0",
73
+ "@typescript-eslint/eslint-plugin": "^8.9.0",
74
+ "@typescript-eslint/parser": "^8.9.0",
74
75
  "@veramo/credential-ld": "4.2.0",
75
76
  "@veramo/credential-w3c": "4.2.0",
76
77
  "@veramo/data-store": "4.2.0",
@@ -118,5 +119,5 @@
118
119
  "peerDependencies": {
119
120
  "react-native-securerandom": "^1.0.1"
120
121
  },
121
- "gitHead": "6c49ea2f9c1bc61641ca2c98e3aa0a5b48018d91"
122
+ "gitHead": "78f8dd3157066ae8cf11d2ae50c8c3d8f43b8ed0"
122
123
  }
@@ -1,5 +1,5 @@
1
1
  import { describe } from 'vitest'
2
- import 'cross-fetch/polyfill'
2
+ import fetch from 'cross-fetch'
3
3
  import { Server } from 'http'
4
4
 
5
5
  import { createObjects, getConfig } from '@sphereon/ssi-sdk.agent-config'
@@ -12,19 +12,11 @@ import {
12
12
  IVerifyCredentialVcdmArgs,
13
13
  IVerifyPresentationLDArgs,
14
14
  preProcessCredentialPayload,
15
- preProcessPresentation
15
+ preProcessPresentation,
16
16
  } from '@sphereon/ssi-sdk.credential-vcdm'
17
17
  import { vcLibCheckStatusFunction } from '@sphereon/ssi-sdk.vc-status-list'
18
18
  import { IVerifyResult } from '@sphereon/ssi-types'
19
- import type {
20
- DIDDocument,
21
- IAgentContext,
22
- IDIDManager,
23
- IIdentifier,
24
- IKey,
25
- IResolver,
26
- VerifiableCredential
27
- } from '@veramo/core'
19
+ import type { DIDDocument, IAgentContext, IDIDManager, IIdentifier, IKey, IResolver, VerifiableCredential } from '@veramo/core'
28
20
  import { AbstractPrivateKeyStore } from '@veramo/key-manager'
29
21
  import { type _ExtendedIKey, type OrPromise, type RecordLike } from '@veramo/utils'
30
22
  import Debug from 'debug'
@@ -203,7 +195,13 @@ export class CredentialProviderJsonld implements IVcdmCredentialProvider {
203
195
  verifyStatusListCredential: false /*todo: enable. Needs calling this method first and not rely on @digiticalcredentials*/,
204
196
  }) // todo: Probably should be moved to the module to have access to the loaders
205
197
  }
206
- return this.ldCredentialModule.verifyCredential(credential as VerifiableCredentialSP, context, args.fetchRemoteContexts, args.purpose, checkStatus)
198
+ return this.ldCredentialModule.verifyCredential(
199
+ credential as VerifiableCredentialSP,
200
+ context,
201
+ args.fetchRemoteContexts,
202
+ args.purpose,
203
+ checkStatus,
204
+ )
207
205
  }
208
206
 
209
207
  /** {@inheritdoc ICredentialHandlerLDLocal.verifyPresentation} */
@@ -1,22 +1,23 @@
1
- const contextCredentialV1 = require('./contexts/www.w3.org_2018_credentials_v1.json') // assert { type: 'json' }
2
- const contextCredentialV2 = require('./contexts/www.w3.org_ns_credentials_v2.json') // assert { type: 'json' }
3
1
  import contextBBSV1 from './contexts/bbs-bls-signature-2020-v1.json'
4
- import contextDidV1 from './contexts/www.w3.org_ns_did_v1.json' //assert { type: 'json' }
2
+ import contextCitizenshipV1 from './contexts/citizenship-v1.json' // assert { type: 'json' }
3
+ import contextSuitesEd25519_2020 from './contexts/ed25519-signature-2020-v1.json' //assert { type: 'json' }
4
+ import contextSuiteEip712 from './contexts/eip712.json' // assert { type: 'json' }
5
+ import contextSuitesJws_2020 from './contexts/json-web-signature-2020-v1.json' // assert { type: 'json' }
6
+ import contextLdsEcdsaSecpRecovery2020_0 from './contexts/lds-ecdsa-secp256k1-recovery2020-0.0.json' // assert { type: 'json' }
7
+ import contextProfile from './contexts/veramo.io_contexts_profile_v1.json' //assert { type: 'json' }
8
+ import contextSuitesEd25519_2018 from './contexts/w3id.org_security_suites_ed25519-2018_v1.json' //assert { type: 'json' }
5
9
  import contextSecurityV1 from './contexts/w3id.org_security_v1.json' //assert { type: 'json' }
6
10
  import contextSecurityV2 from './contexts/w3id.org_security_v2.json' //assert { type: 'json' }
7
11
  import contextSecurityV3 from './contexts/w3id.org_security_v3-unstable.json' //assert { type: 'json' }
8
- import contextSuitesEd25519_2018 from './contexts/w3id.org_security_suites_ed25519-2018_v1.json' //assert { type: 'json' }
9
12
  import contextSuitesX25519 from './contexts/w3id.org_security_suites_x25519-2019_v1.json' //assert { type: 'json' }
10
- import contextProfile from './contexts/veramo.io_contexts_profile_v1.json' //assert { type: 'json' }
11
- import contextLdsEcdsaSecpRecovery2020_0 from './contexts/lds-ecdsa-secp256k1-recovery2020-0.0.json' // assert { type: 'json' }
12
13
  import contextLdsEcdsaSecpRecovery2020_2 from './contexts/w3id.org_security_suites_secp256k1recovery-2020_v2.json' //assert { type: 'json' }
13
14
  import contextSuitesSecp from './contexts/w3id.org_security_suites_secp256k1recovery-2020_v2.json' //assert { type: 'json' }
14
- import contextSuitesEd25519_2020 from './contexts/ed25519-signature-2020-v1.json' //assert { type: 'json' }
15
- import contextSuitesJws_2020 from './contexts/json-web-signature-2020-v1.json' // assert { type: 'json' }
16
- import contextSuiteEip712 from './contexts/eip712.json' // assert { type: 'json' }
17
- import contextCitizenshipV1 from './contexts/citizenship-v1.json' // assert { type: 'json' }
18
15
  import contextVCRevocationList2020 from './contexts/vc-revocation-list-2020-v1.json' // assert { type: 'json' }
19
16
  import contextVCStatusList2021 from './contexts/vc-status-list-2021-v1.json' // assert { type: 'json' }
17
+ import contextDidV1 from './contexts/www.w3.org_ns_did_v1.json' //assert { type: 'json' }
18
+
19
+ const contextCredentialV1 = require('./contexts/www.w3.org_2018_credentials_v1.json') // assert { type: 'json' }
20
+ const contextCredentialV2 = require('./contexts/www.w3.org_ns_credentials_v2.json') // assert { type: 'json' }
20
21
 
21
22
  /**
22
23
  * Provides a hardcoded map of common context definitions
@@ -1,7 +1,7 @@
1
1
  import sigpkg from '@digitalcredentials/jsonld-signatures'
2
2
  import * as vc from '@digitalcredentials/vc'
3
3
  import type { CredentialPayload, DIDDocument, IAgentContext, PresentationPayload, VerifiableCredential, VerifiablePresentation } from '@veramo/core'
4
- import { fetch } from 'cross-fetch'
4
+ import fetch from 'cross-fetch'
5
5
  import Debug from 'debug'
6
6
 
7
7
  import { LdContextLoader } from './ld-context-loader'