@veramo/credential-ld 6.0.1-next.9 → 6.0.2-next.57

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.
@@ -1,20 +1,20 @@
1
- import contextCredentialV1 from './contexts/www.w3.org_2018_credentials_v1.json' assert { type: 'json' };
2
- import contextCredentialExamplesV1 from './contexts/www.w3.org_2018_credentials_examples_v1.json' assert { type: 'json' };
3
- import contextDidV1 from './contexts/www.w3.org_ns_did_v1.json' assert { type: 'json' };
4
- import contextSecurityV1 from './contexts/w3id.org_security_v1.json' assert { type: 'json' };
5
- import contextSecurityV2 from './contexts/w3id.org_security_v2.json' assert { type: 'json' };
6
- import contextSecurityV3 from './contexts/w3id.org_security_v3-unstable.json' assert { type: 'json' };
7
- import contextSecurityBBSV1 from './contexts/w3id.org_security_bbs_v1.json' assert { type: 'json' };
8
- import contextSuitesEd25519 from './contexts/w3id.org_security_suites_ed25519-2018_v1.json' assert { type: 'json' };
9
- import contextSuitesX25519 from './contexts/w3id.org_security_suites_x25519-2019_v1.json' assert { type: 'json' };
10
- import contextVeramoProfile 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
- import contextSuitesSecp256k1Recovery2020 from './contexts/w3id.org_security_suites_secp256k1recovery-2020_v2.json' assert { type: 'json' };
13
- import contextSuitesEd25519_2020 from './contexts/w3id.org_security_suites_ed25519-2020-v1.json' assert { type: 'json' };
14
- import contextSuitesX25519_2020 from './contexts/w3id.org_security_suites_x25519-2020_v1.json' assert { type: 'json' };
15
- import contextSuitesJws_2020 from './contexts/w3id.org_security_suites_jws-2020_v1.json' assert { type: 'json' };
16
- import contextSuiteEip712 from './contexts/w3id.org_security_suites_eip712sig-2021_v1.json' assert { type: 'json' };
17
- import schema_org from './contexts/schema.org.json' assert { type: 'json' };
1
+ import contextCredentialV1 from './contexts/www.w3.org_2018_credentials_v1.json' with { type: 'json' };
2
+ import contextCredentialExamplesV1 from './contexts/www.w3.org_2018_credentials_examples_v1.json' with { type: 'json' };
3
+ import contextDidV1 from './contexts/www.w3.org_ns_did_v1.json' with { type: 'json' };
4
+ import contextSecurityV1 from './contexts/w3id.org_security_v1.json' with { type: 'json' };
5
+ import contextSecurityV2 from './contexts/w3id.org_security_v2.json' with { type: 'json' };
6
+ import contextSecurityV3 from './contexts/w3id.org_security_v3-unstable.json' with { type: 'json' };
7
+ import contextSecurityBBSV1 from './contexts/w3id.org_security_bbs_v1.json' with { type: 'json' };
8
+ import contextSuitesEd25519 from './contexts/w3id.org_security_suites_ed25519-2018_v1.json' with { type: 'json' };
9
+ import contextSuitesX25519 from './contexts/w3id.org_security_suites_x25519-2019_v1.json' with { type: 'json' };
10
+ import contextVeramoProfile from './contexts/veramo.io_contexts_profile_v1.json' with { type: 'json' };
11
+ import contextLdsEcdsaSecpRecovery2020_0 from './contexts/lds-ecdsa-secp256k1-recovery2020-0.0.json' with { type: 'json' };
12
+ import contextSuitesSecp256k1Recovery2020 from './contexts/w3id.org_security_suites_secp256k1recovery-2020_v2.json' with { type: 'json' };
13
+ import contextSuitesEd25519_2020 from './contexts/w3id.org_security_suites_ed25519-2020-v1.json' with { type: 'json' };
14
+ import contextSuitesX25519_2020 from './contexts/w3id.org_security_suites_x25519-2020_v1.json' with { type: 'json' };
15
+ import contextSuitesJws_2020 from './contexts/w3id.org_security_suites_jws-2020_v1.json' with { type: 'json' };
16
+ import contextSuiteEip712 from './contexts/w3id.org_security_suites_eip712sig-2021_v1.json' with { type: 'json' };
17
+ import schema_org from './contexts/schema.org.json' with { type: 'json' };
18
18
  /**
19
19
  * Provides a hardcoded map of common Linked Data `@context` definitions.
20
20
  *
@@ -1 +1 @@
1
- {"version":3,"file":"ld-default-contexts.js","sourceRoot":"","sources":["../src/ld-default-contexts.ts"],"names":[],"mappings":"AAAA,OAAO,mBAAmB,MAAM,gDAAgD,CA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AAC,MAAM,iBAAiB,GAAG,IAAI,GAAG,CAAC;IACvC,CAAC,wCAAwC,EAAE,mBAAmB,CAAC;IAC/D,CAAC,iDAAiD,EAAE,2BAA2B,CAAC;IAChF,CAAC,8BAA8B,EAAE,YAAY,CAAC;IAC9C,CAAC,yBAAyB,EAAE,YAAY,CAAC,EAAE,QAAQ;IACnD,CAAC,8BAA8B,EAAE,iBAAiB,CAAC;IACnD,CAAC,8BAA8B,EAAE,iBAAiB,CAAC;IACnD,CAAC,uCAAuC,EAAE,iBAAiB,CAAC;IAC5D,CAAC,kCAAkC,EAAE,oBAAoB,CAAC;IAC1D,CAAC,kDAAkD,EAAE,oBAAoB,CAAC;IAC1E,CAAC,iDAAiD,EAAE,mBAAmB,CAAC;IACxE,CAAC,kDAAkD,EAAE,yBAAyB,CAAC;IAC/E,CAAC,iDAAiD,EAAE,wBAAwB,CAAC;IAC7E,CAAC,8CAA8C,EAAE,qBAAqB,CAAC;IACvE,CAAC,uCAAuC,EAAE,oBAAoB,CAAC;IAC/D;QACE,6GAA6G,EAAE,QAAQ;QACvH,iCAAiC;KAClC;IACD;QACE,6GAA6G;QAC7G,kCAAkC;KACnC;IACD,CAAC,4DAA4D,EAAE,kCAAkC,CAAC;IAClG,CAAC,iDAAiD,EAAE,kBAAkB,CAAC;IACvE,CAAC,gEAAgE,EAAE,kBAAkB,CAAC;IACtF,CAAC,oDAAoD,EAAE,kBAAkB,CAAC;IAC1E,CAAC,oBAAoB,EAAE,UAAU,CAAC;CACnC,CAAC,CAAA"}
@@ -5,7 +5,7 @@
5
5
  "toolPackages": [
6
6
  {
7
7
  "packageName": "@microsoft/api-extractor",
8
- "packageVersion": "7.40.6"
8
+ "packageVersion": "7.49.1"
9
9
  }
10
10
  ]
11
11
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@veramo/credential-ld",
3
3
  "description": "Veramo plugin for working with W3C JSON-LD Verifiable Credentials & Presentations.",
4
- "version": "6.0.1-next.9+85cc1ce1d",
4
+ "version": "6.0.2-next.57+fa4fc3217",
5
5
  "main": "build/index.js",
6
6
  "exports": {
7
7
  ".": "./build/index.js"
@@ -21,21 +21,21 @@
21
21
  "@transmute/ed25519-signature-2018": "^0.7.0-unstable.81",
22
22
  "@transmute/json-web-signature": "^0.7.0-unstable.81",
23
23
  "@veramo-community/lds-ecdsa-secp256k1-recovery2020": "uport-project/EcdsaSecp256k1RecoverySignature2020",
24
- "@veramo/core-types": "^6.0.1-next.9+85cc1ce1d",
25
- "@veramo/credential-w3c": "^6.0.1-next.9+85cc1ce1d",
26
- "@veramo/utils": "^6.0.1-next.9+85cc1ce1d",
24
+ "@veramo/core-types": "^6.0.2-next.57+fa4fc3217",
25
+ "@veramo/credential-w3c": "^6.0.2-next.57+fa4fc3217",
26
+ "@veramo/utils": "^6.0.2-next.57+fa4fc3217",
27
27
  "cross-fetch": "^4.0.0",
28
28
  "debug": "^4.3.3",
29
29
  "did-resolver": "^4.1.0"
30
30
  },
31
31
  "resolutions": {
32
- "@types/react": "18.2.20",
32
+ "@types/react": "19.0.8",
33
33
  "jsonld": "npm:@digitalcredentials/jsonld@^6.0.0"
34
34
  },
35
35
  "devDependencies": {
36
36
  "@types/debug": "4.1.8",
37
37
  "borc": "3.0.0",
38
- "typescript": "5.3.3"
38
+ "typescript": "5.7.3"
39
39
  },
40
40
  "files": [
41
41
  "build/**/*",
@@ -77,5 +77,5 @@
77
77
  "node_modules",
78
78
  "src"
79
79
  ],
80
- "gitHead": "85cc1ce1d567afcbc42e0fd89eb2515505044c83"
80
+ "gitHead": "fa4fc3217ff3eb587ab27a3d10b2b0fec1a0e5a7"
81
81
  }
@@ -25,6 +25,7 @@ import { VeramoEcdsaSecp256k1RecoverySignature2020 } from '../suites/EcdsaSecp25
25
25
  import { jest } from '@jest/globals'
26
26
 
27
27
  import 'cross-fetch/polyfill'
28
+ import { createGanacheProvider } from '../../../test-react-app/src/test-utils/ganache-provider'
28
29
 
29
30
  jest.setTimeout(300000)
30
31
 
@@ -36,8 +37,6 @@ const customContext: Record<string, ContextDoc> = {
36
37
  },
37
38
  }
38
39
 
39
- const infuraProjectId = '3586660d179141e3801c3895de1c2eba'
40
-
41
40
  describe('credential-LD full flow', () => {
42
41
  let didKeyIdentifier: IIdentifier
43
42
  let didEthrIdentifier: IIdentifier
@@ -49,6 +48,7 @@ describe('credential-LD full flow', () => {
49
48
  })
50
49
 
51
50
  beforeAll(async () => {
51
+ const { provider, registry } = await createGanacheProvider()
52
52
  agent = createAgent<IResolver & IKeyManager & IDIDManager & ICredentialPlugin>({
53
53
  plugins: [
54
54
  new KeyManager({
@@ -62,7 +62,14 @@ describe('credential-LD full flow', () => {
62
62
  'did:key': new KeyDIDProvider({ defaultKms: 'local' }),
63
63
  'did:ethr': new EthrDIDProvider({
64
64
  defaultKms: 'local',
65
- network: 'mainnet',
65
+ networks: [
66
+ {
67
+ chainId: 1337,
68
+ name: 'ganache',
69
+ provider,
70
+ registry,
71
+ },
72
+ ],
66
73
  }),
67
74
  },
68
75
  store: new MemoryDIDStore(),
@@ -71,14 +78,21 @@ describe('credential-LD full flow', () => {
71
78
  new DIDResolverPlugin({
72
79
  resolver: new Resolver({
73
80
  ...getDidKeyResolver(),
74
- ...ethrDidResolver({ infuraProjectId }),
81
+ ...ethrDidResolver({ networks: [
82
+ {
83
+ chainId: 1337,
84
+ name: 'ganache',
85
+ provider,
86
+ registry,
87
+ },
88
+ ], }),
75
89
  }),
76
90
  }),
77
91
  new CredentialPlugin({ issuers: [ld] }),
78
92
  ],
79
93
  })
80
94
  didKeyIdentifier = await agent.didManagerCreate()
81
- didEthrIdentifier = await agent.didManagerCreate({ provider: 'did:ethr' })
95
+ didEthrIdentifier = await agent.didManagerCreate({ provider: 'did:ethr:ganache' })
82
96
  })
83
97
 
84
98
  it('create credential with inline context', async () => {
@@ -1,20 +1,20 @@
1
- import contextCredentialV1 from './contexts/www.w3.org_2018_credentials_v1.json' assert { type: 'json' }
2
- import contextCredentialExamplesV1 from './contexts/www.w3.org_2018_credentials_examples_v1.json' assert { type: 'json' }
3
- import contextDidV1 from './contexts/www.w3.org_ns_did_v1.json' assert { type: 'json' }
4
- import contextSecurityV1 from './contexts/w3id.org_security_v1.json' assert { type: 'json' }
5
- import contextSecurityV2 from './contexts/w3id.org_security_v2.json' assert { type: 'json' }
6
- import contextSecurityV3 from './contexts/w3id.org_security_v3-unstable.json' assert { type: 'json' }
7
- import contextSecurityBBSV1 from './contexts/w3id.org_security_bbs_v1.json' assert { type: 'json' }
8
- import contextSuitesEd25519 from './contexts/w3id.org_security_suites_ed25519-2018_v1.json' assert { type: 'json' }
9
- import contextSuitesX25519 from './contexts/w3id.org_security_suites_x25519-2019_v1.json' assert { type: 'json' }
10
- import contextVeramoProfile 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
- import contextSuitesSecp256k1Recovery2020 from './contexts/w3id.org_security_suites_secp256k1recovery-2020_v2.json' assert { type: 'json' }
13
- import contextSuitesEd25519_2020 from './contexts/w3id.org_security_suites_ed25519-2020-v1.json' assert { type: 'json' }
14
- import contextSuitesX25519_2020 from './contexts/w3id.org_security_suites_x25519-2020_v1.json' assert { type: 'json' }
15
- import contextSuitesJws_2020 from './contexts/w3id.org_security_suites_jws-2020_v1.json' assert { type: 'json' }
16
- import contextSuiteEip712 from './contexts/w3id.org_security_suites_eip712sig-2021_v1.json' assert { type: 'json' }
17
- import schema_org from './contexts/schema.org.json' assert { type: 'json' }
1
+ import contextCredentialV1 from './contexts/www.w3.org_2018_credentials_v1.json' with { type: 'json' }
2
+ import contextCredentialExamplesV1 from './contexts/www.w3.org_2018_credentials_examples_v1.json' with { type: 'json' }
3
+ import contextDidV1 from './contexts/www.w3.org_ns_did_v1.json' with { type: 'json' }
4
+ import contextSecurityV1 from './contexts/w3id.org_security_v1.json' with { type: 'json' }
5
+ import contextSecurityV2 from './contexts/w3id.org_security_v2.json' with { type: 'json' }
6
+ import contextSecurityV3 from './contexts/w3id.org_security_v3-unstable.json' with { type: 'json' }
7
+ import contextSecurityBBSV1 from './contexts/w3id.org_security_bbs_v1.json' with { type: 'json' }
8
+ import contextSuitesEd25519 from './contexts/w3id.org_security_suites_ed25519-2018_v1.json' with { type: 'json' }
9
+ import contextSuitesX25519 from './contexts/w3id.org_security_suites_x25519-2019_v1.json' with { type: 'json' }
10
+ import contextVeramoProfile from './contexts/veramo.io_contexts_profile_v1.json' with { type: 'json' }
11
+ import contextLdsEcdsaSecpRecovery2020_0 from './contexts/lds-ecdsa-secp256k1-recovery2020-0.0.json' with { type: 'json' }
12
+ import contextSuitesSecp256k1Recovery2020 from './contexts/w3id.org_security_suites_secp256k1recovery-2020_v2.json' with { type: 'json' }
13
+ import contextSuitesEd25519_2020 from './contexts/w3id.org_security_suites_ed25519-2020-v1.json' with { type: 'json' }
14
+ import contextSuitesX25519_2020 from './contexts/w3id.org_security_suites_x25519-2020_v1.json' with { type: 'json' }
15
+ import contextSuitesJws_2020 from './contexts/w3id.org_security_suites_jws-2020_v1.json' with { type: 'json' }
16
+ import contextSuiteEip712 from './contexts/w3id.org_security_suites_eip712sig-2021_v1.json' with { type: 'json' }
17
+ import schema_org from './contexts/schema.org.json' with { type: 'json' }
18
18
 
19
19
  /**
20
20
  * Provides a hardcoded map of common Linked Data `@context` definitions.