@veramo/credential-ld 5.0.1-next.1 → 5.0.1-next.11

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.
@@ -97,7 +97,7 @@ export declare class CredentialIssuerLD implements IAgentPlugin {
97
97
  description: string;
98
98
  };
99
99
  DateType: {
100
- type: string; /** {@inheritdoc ICredentialIssuerLD.createVerifiableCredentialLD} */
100
+ type: string;
101
101
  description: string;
102
102
  };
103
103
  CredentialStatusReference: {
@@ -151,7 +151,7 @@ export declare class CredentialIssuerLD implements IAgentPlugin {
151
151
  type: string;
152
152
  };
153
153
  expirationDate: {
154
- type: string;
154
+ type: string; /** {@inheritdoc ICredentialIssuerLD.verifyPresentationLD} */
155
155
  };
156
156
  credentialStatus: {
157
157
  $ref: string;
@@ -1 +1 @@
1
- {"version":3,"file":"action-handler.d.ts","sourceRoot":"","sources":["../src/action-handler.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,YAAY,EAKZ,oBAAoB,EACpB,sBAAsB,EACvB,MAAM,oBAAoB,CAAA;AAC3B,OAAO,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAA;AAI9C,OAAO,EAML,SAAS,EAET,UAAU,EACX,MAAM,eAAe,CAAA;AAItB,OAAO,EACL,UAAU,EACV,iCAAiC,EACjC,mCAAmC,EACnC,mBAAmB,EACnB,gBAAgB,EAChB,uBAAuB,EACvB,yBAAyB,EAC1B,MAAM,YAAY,CAAA;AAInB;;;;GAIG;AACH,qBAAa,kBAAmB,YAAW,YAAY;IACrD,QAAQ,CAAC,OAAO,EAAE,mBAAmB,CAAA;IACrC,QAAQ,CAAC,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kCAuFf,qEAAqE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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IAgBnB,6DAA6D;IAChD,oBAAoB,CAC/B,IAAI,EAAE,yBAAyB,EAC/B,OAAO,EAAE,gBAAgB,GACxB,OAAO,CAAC,OAAO,CAAC;YAgBL,oBAAoB;CAgCnC"}
@@ -0,0 +1,93 @@
1
+ {
2
+ "@context": {
3
+ "@version": 1.1,
4
+ "@protected": true,
5
+ "Eip712SchemaValidator2021": "https://w3id.org/security#Eip712SchemaValidator2021",
6
+ "EthereumEip712Signature2021": {
7
+ "@id": "https://w3id.org/security#EthereumEip712Signature2021",
8
+ "@context": {
9
+ "@version": 1.1,
10
+ "@protected": true,
11
+ "id": "@id",
12
+ "type": "@type",
13
+ "created": {
14
+ "@id": "http://purl.org/dc/terms/created",
15
+ "@type": "http://www.w3.org/2001/XMLSchema#dateTime"
16
+ },
17
+ "domain": "https://w3id.org/security#domain",
18
+ "proofPurpose": {
19
+ "@id": "https://w3id.org/security#proofPurpose",
20
+ "@type": "@vocab",
21
+ "@context": {
22
+ "@version": 1.1,
23
+ "@protected": true,
24
+ "id": "@id",
25
+ "type": "@type",
26
+ "assertionMethod": {
27
+ "@id": "https://w3id.org/security#assertionMethod",
28
+ "@type": "@id",
29
+ "@container": "@set"
30
+ },
31
+ "authentication": {
32
+ "@id": "https://w3id.org/security#authenticationMethod",
33
+ "@type": "@id",
34
+ "@container": "@set"
35
+ },
36
+ "capabilityInvocation": {
37
+ "@id": "https://w3id.org/security#capabilityInvocationMethod",
38
+ "@type": "@id",
39
+ "@container": "@set"
40
+ },
41
+ "capabilityDelegation": {
42
+ "@id": "https://w3id.org/security#capabilityDelegationMethod",
43
+ "@type": "@id",
44
+ "@container": "@set"
45
+ }
46
+ }
47
+ },
48
+ "eip712Domain": {
49
+ "@id": "https://w3c-ccg.github.io/ethereum-eip712-signature-2021-spec/#eip712-domain",
50
+ "@context": {
51
+ "@version": 1.1,
52
+ "@protected": true,
53
+ "id": "@id",
54
+ "type": "@type",
55
+ "messageSchema": {
56
+ "@id": "https://w3c-ccg.github.io/ethereum-eip712-signature-2021-spec/#message-schema",
57
+ "@type": "@json"
58
+ },
59
+ "primaryType": "https://w3c-ccg.github.io/ethereum-eip712-signature-2021-spec/#primary-type",
60
+ "domain": {
61
+ "@id": "https://w3c-ccg.github.io/ethereum-eip712-signature-2021-spec/#domain",
62
+ "@type": "@json"
63
+ }
64
+ }
65
+ },
66
+ "eip712": {
67
+ "@id": "https://w3c-ccg.github.io/ethereum-eip712-signature-2021-spec/#eip712-domain",
68
+ "@context": {
69
+ "@version": 1.1,
70
+ "@protected": true,
71
+ "id": "@id",
72
+ "type": "@type",
73
+ "types": {
74
+ "@id": "https://w3c-ccg.github.io/ethereum-eip712-signature-2021-spec/#message-schema",
75
+ "@type": "@json"
76
+ },
77
+ "primaryType": "https://w3c-ccg.github.io/ethereum-eip712-signature-2021-spec/#primary-type",
78
+ "domain": {
79
+ "@id": "https://w3c-ccg.github.io/ethereum-eip712-signature-2021-spec/#domain",
80
+ "@type": "@json"
81
+ }
82
+ }
83
+ },
84
+ "proofValue": "https://w3id.org/security#proofValue",
85
+ "verificationMethod": {
86
+ "@id": "https://w3id.org/security#verificationMethod",
87
+ "@type": "@id"
88
+ },
89
+ "canonicalizationHash": "https://w3id.org/security/suites/eip712sig-2021#canonicalizationHash"
90
+ }
91
+ }
92
+ }
93
+ }
@@ -1 +1 @@
1
- {"version":3,"file":"ld-default-contexts.d.ts","sourceRoot":"","sources":["../src/ld-default-contexts.ts"],"names":[],"mappings":"AAcA;;;;;;;GAOG;AAEH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAoB5B,CAAA"}
1
+ {"version":3,"file":"ld-default-contexts.d.ts","sourceRoot":"","sources":["../src/ld-default-contexts.ts"],"names":[],"mappings":"AAeA;;;;;;;GAOG;AAEH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAsB5B,CAAA"}
@@ -1,16 +1,17 @@
1
- import contextCredentialV1 from "./contexts/www.w3.org_2018_credentials_v1.json" assert { type: 'json' };
2
- import contextDidV1 from "./contexts/www.w3.org_ns_did_v1.json" assert { type: 'json' };
3
- import contextSecurityV1 from "./contexts/w3id.org_security_v1.json" assert { type: 'json' };
4
- import contextSecurityV2 from "./contexts/w3id.org_security_v2.json" assert { type: 'json' };
5
- import contextSecurityV3 from "./contexts/w3id.org_security_v3-unstable.json" assert { type: 'json' };
6
- import contextSuitesEd25519 from "./contexts/w3id.org_security_suites_ed25519-2018_v1.json" assert { type: 'json' };
7
- import contextSuitesX25519 from "./contexts/w3id.org_security_suites_x25519-2019_v1.json" assert { type: 'json' };
8
- import contextProfile from "./contexts/veramo.io_contexts_profile_v1.json" assert { type: 'json' };
9
- import contextLdsEcdsaSecpRecovery2020_0 from "./contexts/lds-ecdsa-secp256k1-recovery2020-0.0.json" assert { type: 'json' };
10
- import contextLdsEcdsaSecpRecovery2020_2 from "./contexts/w3id.org_security_suites_secp256k1recovery-2020_v2.json" assert { type: 'json' };
11
- import contextSuitesSecp from "./contexts/w3id.org_security_suites_secp256k1recovery-2020_v2.json" assert { type: 'json' };
1
+ import contextCredentialV1 from './contexts/www.w3.org_2018_credentials_v1.json' assert { type: 'json' };
2
+ import contextDidV1 from './contexts/www.w3.org_ns_did_v1.json' assert { type: 'json' };
3
+ import contextSecurityV1 from './contexts/w3id.org_security_v1.json' assert { type: 'json' };
4
+ import contextSecurityV2 from './contexts/w3id.org_security_v2.json' assert { type: 'json' };
5
+ import contextSecurityV3 from './contexts/w3id.org_security_v3-unstable.json' assert { type: 'json' };
6
+ import contextSuitesEd25519 from './contexts/w3id.org_security_suites_ed25519-2018_v1.json' assert { type: 'json' };
7
+ import contextSuitesX25519 from './contexts/w3id.org_security_suites_x25519-2019_v1.json' assert { type: 'json' };
8
+ import contextProfile from './contexts/veramo.io_contexts_profile_v1.json' assert { type: 'json' };
9
+ import contextLdsEcdsaSecpRecovery2020_0 from './contexts/lds-ecdsa-secp256k1-recovery2020-0.0.json' assert { type: 'json' };
10
+ import contextLdsEcdsaSecpRecovery2020_2 from './contexts/w3id.org_security_suites_secp256k1recovery-2020_v2.json' assert { type: 'json' };
11
+ import contextSuitesSecp from './contexts/w3id.org_security_suites_secp256k1recovery-2020_v2.json' assert { type: 'json' };
12
12
  import contextSuitesEd25519_2020 from './contexts/ed25519-signature-2020-v1.json' assert { type: 'json' };
13
13
  import contextSuitesJws_2020 from './contexts/json-web-signature-2020-v1.json' assert { type: 'json' };
14
+ import contextSuiteEip712 from './contexts/eip712.json' assert { type: 'json' };
14
15
  /**
15
16
  * Provides a hardcoded map of common Linked Data `@context` definitions.
16
17
  *
@@ -30,15 +31,17 @@ export const LdDefaultContexts = new Map([
30
31
  ['https://w3id.org/security/suites/x25519-2019/v1', contextSuitesX25519],
31
32
  ['https://w3id.org/security/suites/ed25519-2020/v1', contextSuitesEd25519_2020],
32
33
  ['https://w3id.org/security/suites/jws-2020/v1', contextSuitesJws_2020],
33
- // ['https://w3id.org/did/v0.11', require('./contexts/did_v0.11.json')],
34
- // ['https://veramo.io/contexts/socialmedia/v1', require('./contexts/socialmedia-v1.json')],
35
- // ['https://veramo.io/contexts/kyc/v1', require('./contexts/kyc-v1.json')],
36
34
  ['https://veramo.io/contexts/profile/v1', contextProfile],
37
- // ['https://ns.did.ai/transmute/v1', require('./contexts/transmute_v1.json')],
38
- ['https://identity.foundation/EcdsaSecp256k1RecoverySignature2020/lds-ecdsa-secp256k1-recovery2020-0.0.jsonld', contextLdsEcdsaSecpRecovery2020_0],
39
- ['https://identity.foundation/EcdsaSecp256k1RecoverySignature2020/lds-ecdsa-secp256k1-recovery2020-2.0.jsonld', contextLdsEcdsaSecpRecovery2020_2],
40
- ['https://w3id.org/security/suites/secp256k1recovery-2020/v2', contextSuitesSecp]
41
- // ['https://w3id.org/security/suites/ed25519-2018/v1', require('./contexts/ed25519-signature-2018-v1.json')],
42
- // ['https://w3id.org/security/suites/x25519-2019/v1', require('./contexts/X25519KeyAgreementKey2019.json')],
35
+ [
36
+ 'https://identity.foundation/EcdsaSecp256k1RecoverySignature2020/lds-ecdsa-secp256k1-recovery2020-0.0.jsonld',
37
+ contextLdsEcdsaSecpRecovery2020_0,
38
+ ],
39
+ [
40
+ 'https://identity.foundation/EcdsaSecp256k1RecoverySignature2020/lds-ecdsa-secp256k1-recovery2020-2.0.jsonld',
41
+ contextLdsEcdsaSecpRecovery2020_2,
42
+ ],
43
+ ['https://w3id.org/security/suites/secp256k1recovery-2020/v2', contextSuitesSecp],
44
+ ['https://w3id.org/security/suites/eip712sig-2021', contextSuiteEip712],
45
+ ['https://w3c-ccg.github.io/ethereum-eip712-signature-2021-spec/', contextSuiteEip712],
43
46
  ]);
44
47
  //# sourceMappingURL=ld-default-contexts.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ld-default-contexts.js","sourceRoot":"","sources":["../src/ld-default-contexts.ts"],"names":[],"mappings":"AAAA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/core#IKey.kid | IKey.kid } ) from the internal database."
14
+ "description": "Optional. The key handle ( {@link @veramo/core-types#IKey.kid | IKey.kid } ) from the internal database."
15
15
  },
16
16
  "fetchRemoteContexts": {
17
17
  "type": "boolean",
@@ -199,7 +199,7 @@
199
199
  },
200
200
  "keyRef": {
201
201
  "type": "string",
202
- "description": "Optional. The key handle ( {@link @veramo/core#IKey.kid | IKey.kid } ) from the internal database."
202
+ "description": "Optional. The key handle ( {@link @veramo/core-types#IKey.kid | IKey.kid } ) from the internal database."
203
203
  },
204
204
  "fetchRemoteContexts": {
205
205
  "type": "boolean",
package/build/types.d.ts CHANGED
@@ -16,7 +16,7 @@ export interface ICredentialIssuerLD extends IPluginMethodMap {
16
16
  * @param args - Arguments necessary to create the Presentation.
17
17
  * @param context - This reserved param is automatically added and handled by the framework, *do not override*
18
18
  *
19
- * @returns - a promise that resolves to the {@link @veramo/core#VerifiablePresentation} that was requested or rejects with an error
19
+ * @returns - a promise that resolves to the {@link @veramo/core-types#VerifiablePresentation} that was requested or rejects with an error
20
20
  * if there was a problem with the input or while getting the key to sign
21
21
  *
22
22
  * @remarks Please see {@link https://www.w3.org/TR/vc-data-model/#presentations | Verifiable Presentation data model }
@@ -31,7 +31,7 @@ export interface ICredentialIssuerLD extends IPluginMethodMap {
31
31
  * @param args - Arguments necessary to create the Presentation.
32
32
  * @param context - This reserved param is automatically added and handled by the framework, *do not override*
33
33
  *
34
- * @returns - a promise that resolves to the {@link @veramo/core#VerifiableCredential} that was requested or rejects with an error
34
+ * @returns - a promise that resolves to the {@link @veramo/core-types#VerifiableCredential} that was requested or rejects with an error
35
35
  * if there was a problem with the input or while getting the key to sign
36
36
  *
37
37
  * @remarks Please see {@link https://www.w3.org/TR/vc-data-model/#credentials | Verifiable Credential data model}
@@ -92,7 +92,7 @@ export interface ICreateVerifiablePresentationLDArgs {
92
92
  */
93
93
  domain?: string;
94
94
  /**
95
- * Optional. The key handle ({@link @veramo/core#IKey.kid | IKey.kid}) from the internal database.
95
+ * Optional. The key handle ({@link @veramo/core-types#IKey.kid | IKey.kid}) from the internal database.
96
96
  */
97
97
  keyRef?: string;
98
98
  /**
@@ -124,7 +124,7 @@ export interface ICreateVerifiableCredentialLDArgs {
124
124
  */
125
125
  credential: CredentialPayload;
126
126
  /**
127
- * Optional. The key handle ({@link @veramo/core#IKey.kid | IKey.kid}) from the internal database.
127
+ * Optional. The key handle ({@link @veramo/core-types#IKey.kid | IKey.kid}) from the internal database.
128
128
  */
129
129
  keyRef?: string;
130
130
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,iBAAiB,EACjB,aAAa,EACb,WAAW,EACX,WAAW,EACX,gBAAgB,EAChB,SAAS,EACT,mBAAmB,EACnB,oBAAoB,EACpB,sBAAsB,EACvB,MAAM,oBAAoB,CAAA;AAE3B;;;;;;;;GAQG;AACH,MAAM,WAAW,mBAAoB,SAAQ,gBAAgB;IAC3D;;;;;;;;;;;;;OAaG;IACH,8BAA8B,CAC5B,IAAI,EAAE,mCAAmC,EACzC,OAAO,EAAE,gBAAgB,GACxB,OAAO,CAAC,sBAAsB,CAAC,CAAA;IAElC;;;;;;;;;;;;;OAaG;IACH,4BAA4B,CAC1B,IAAI,EAAE,iCAAiC,EACvC,OAAO,EAAE,gBAAgB,GACxB,OAAO,CAAC,oBAAoB,CAAC,CAAA;IAEhC;;;;;;;;;;;OAWG;IACH,kBAAkB,CAAC,IAAI,EAAE,uBAAuB,EAAE,OAAO,EAAE,gBAAgB,GAAG,OAAO,CAAC,OAAO,CAAC,CAAA;IAE9F;;;;;;;;;;;OAWG;IACH,oBAAoB,CAAC,IAAI,EAAE,yBAAyB,EAAE,OAAO,EAAE,gBAAgB,GAAG,OAAO,CAAC,OAAO,CAAC,CAAA;CACnG;AAED;;;;;GAKG;AACH,MAAM,WAAW,mCAAmC;IAClD;;;;;;;;OAQG;IACH,YAAY,EAAE,mBAAm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OAEG;IACH,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAA;CACjB;AAED;;;;;GAKG;AACH,MAAM,WAAW,iCAAiC;IAChD;;;;;;;;OAQG;IACH,UAAU,EAAE,iBAAiB,CAAA;IAE7B;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAA;IAEf;;;;OAIG;IACH,mBAAmB,CAAC,EAAE,OAAO,CAAA;IAE7B;;OAEG;IACH,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAA;CACjB;AAED;;;;;GAKG;AACH,MAAM,WAAW,uBAAuB;IACtC;;;;;;;OAOG;IACH,UAAU,EAAE,oBAAoB,CAAA;IAEhC;;;;OAIG;IACH,mBAAmB,CAAC,EAAE,OAAO,CAAA;IAE7B;;OAEG;IACH,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAA;CACjB;AAED;;;;;GAKG;AACH,MAAM,WAAW,yBAAyB;IACxC;;;;;;;OAOG;IACH,YAAY,EAAE,sBAAsB,CAAA;IAEpC;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;IAElB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAA;IAEf;;;;OAIG;IACH,mBAAmB,CAAC,EAAE,OAAO,CAAA;IAE7B;;OAEG;IACH,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAA;CACjB;AAED;;;;;;;GAOG;AACH,MAAM,MAAM,gBAAgB,GAAG,aAAa,CAC1C,SAAS,GAAG,IAAI,CAAC,WAAW,EAAE,eAAe,CAAC,GAAG,IAAI,CAAC,WAAW,EAAE,eAAe,GAAG,gBAAgB,CAAC,CACvG,CAAA;AAED;;;;GAIG;AACH,MAAM,MAAM,UAAU,GAAG;IACvB,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;CAChC,CAAA"}
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": "5.0.1-next.1+16bc302f",
4
+ "version": "5.0.1-next.11+672f92b1",
5
5
  "main": "build/index.js",
6
6
  "exports": {
7
7
  ".": "./build/index.js",
@@ -27,8 +27,8 @@
27
27
  "@transmute/ed25519-signature-2018": "^0.7.0-unstable.79",
28
28
  "@transmute/json-web-signature": "^0.7.0-unstable.79",
29
29
  "@veramo-community/lds-ecdsa-secp256k1-recovery2020": "uport-project/EcdsaSecp256k1RecoverySignature2020",
30
- "@veramo/core-types": "^5.0.1-next.1+16bc302f",
31
- "@veramo/utils": "^5.0.1-next.1+16bc302f",
30
+ "@veramo/core-types": "^5.0.1-next.11+672f92b1",
31
+ "@veramo/utils": "^5.0.1-next.11+672f92b1",
32
32
  "cross-fetch": "^3.1.5",
33
33
  "debug": "^4.3.3",
34
34
  "did-resolver": "^4.0.1",
@@ -63,5 +63,5 @@
63
63
  "node_modules",
64
64
  "src"
65
65
  ],
66
- "gitHead": "16bc302fa1ea08d0124d4acbad5f68955afe2f52"
66
+ "gitHead": "672f92b1bd3850c369cbef646c8ece8a58fafc16"
67
67
  }
@@ -7,9 +7,7 @@ import {
7
7
  IResolver,
8
8
  TAgent,
9
9
  } from '../../../core-types/src'
10
- import {
11
- createAgent
12
- } from '../../../core/src'
10
+ import { createAgent } from '../../../core/src'
13
11
  import { CredentialPlugin } from '../../../credential-w3c/src'
14
12
  import { DIDManager, MemoryDIDStore } from '../../../did-manager/src'
15
13
  import { KeyManager, MemoryKeyStore, MemoryPrivateKeyStore } from '../../../key-manager/src'
@@ -27,6 +25,7 @@ import { VeramoEcdsaSecp256k1RecoverySignature2020 } from '../suites/EcdsaSecp25
27
25
  import { jest } from '@jest/globals'
28
26
 
29
27
  import 'cross-fetch/polyfill'
28
+
30
29
  jest.setTimeout(300000)
31
30
 
32
31
  const customContext: Record<string, ContextDoc> = {
@@ -0,0 +1,93 @@
1
+ {
2
+ "@context": {
3
+ "@version": 1.1,
4
+ "@protected": true,
5
+ "Eip712SchemaValidator2021": "https://w3id.org/security#Eip712SchemaValidator2021",
6
+ "EthereumEip712Signature2021": {
7
+ "@id": "https://w3id.org/security#EthereumEip712Signature2021",
8
+ "@context": {
9
+ "@version": 1.1,
10
+ "@protected": true,
11
+ "id": "@id",
12
+ "type": "@type",
13
+ "created": {
14
+ "@id": "http://purl.org/dc/terms/created",
15
+ "@type": "http://www.w3.org/2001/XMLSchema#dateTime"
16
+ },
17
+ "domain": "https://w3id.org/security#domain",
18
+ "proofPurpose": {
19
+ "@id": "https://w3id.org/security#proofPurpose",
20
+ "@type": "@vocab",
21
+ "@context": {
22
+ "@version": 1.1,
23
+ "@protected": true,
24
+ "id": "@id",
25
+ "type": "@type",
26
+ "assertionMethod": {
27
+ "@id": "https://w3id.org/security#assertionMethod",
28
+ "@type": "@id",
29
+ "@container": "@set"
30
+ },
31
+ "authentication": {
32
+ "@id": "https://w3id.org/security#authenticationMethod",
33
+ "@type": "@id",
34
+ "@container": "@set"
35
+ },
36
+ "capabilityInvocation": {
37
+ "@id": "https://w3id.org/security#capabilityInvocationMethod",
38
+ "@type": "@id",
39
+ "@container": "@set"
40
+ },
41
+ "capabilityDelegation": {
42
+ "@id": "https://w3id.org/security#capabilityDelegationMethod",
43
+ "@type": "@id",
44
+ "@container": "@set"
45
+ }
46
+ }
47
+ },
48
+ "eip712Domain": {
49
+ "@id": "https://w3c-ccg.github.io/ethereum-eip712-signature-2021-spec/#eip712-domain",
50
+ "@context": {
51
+ "@version": 1.1,
52
+ "@protected": true,
53
+ "id": "@id",
54
+ "type": "@type",
55
+ "messageSchema": {
56
+ "@id": "https://w3c-ccg.github.io/ethereum-eip712-signature-2021-spec/#message-schema",
57
+ "@type": "@json"
58
+ },
59
+ "primaryType": "https://w3c-ccg.github.io/ethereum-eip712-signature-2021-spec/#primary-type",
60
+ "domain": {
61
+ "@id": "https://w3c-ccg.github.io/ethereum-eip712-signature-2021-spec/#domain",
62
+ "@type": "@json"
63
+ }
64
+ }
65
+ },
66
+ "eip712": {
67
+ "@id": "https://w3c-ccg.github.io/ethereum-eip712-signature-2021-spec/#eip712-domain",
68
+ "@context": {
69
+ "@version": 1.1,
70
+ "@protected": true,
71
+ "id": "@id",
72
+ "type": "@type",
73
+ "types": {
74
+ "@id": "https://w3c-ccg.github.io/ethereum-eip712-signature-2021-spec/#message-schema",
75
+ "@type": "@json"
76
+ },
77
+ "primaryType": "https://w3c-ccg.github.io/ethereum-eip712-signature-2021-spec/#primary-type",
78
+ "domain": {
79
+ "@id": "https://w3c-ccg.github.io/ethereum-eip712-signature-2021-spec/#domain",
80
+ "@type": "@json"
81
+ }
82
+ }
83
+ },
84
+ "proofValue": "https://w3id.org/security#proofValue",
85
+ "verificationMethod": {
86
+ "@id": "https://w3id.org/security#verificationMethod",
87
+ "@type": "@id"
88
+ },
89
+ "canonicalizationHash": "https://w3id.org/security/suites/eip712sig-2021#canonicalizationHash"
90
+ }
91
+ }
92
+ }
93
+ }
@@ -1,16 +1,17 @@
1
- import contextCredentialV1 from "./contexts/www.w3.org_2018_credentials_v1.json" assert { type: 'json' }
2
- import contextDidV1 from "./contexts/www.w3.org_ns_did_v1.json" assert { type: 'json' }
3
- import contextSecurityV1 from "./contexts/w3id.org_security_v1.json" assert { type: 'json' }
4
- import contextSecurityV2 from "./contexts/w3id.org_security_v2.json" assert { type: 'json' }
5
- import contextSecurityV3 from "./contexts/w3id.org_security_v3-unstable.json" assert { type: 'json' }
6
- import contextSuitesEd25519 from "./contexts/w3id.org_security_suites_ed25519-2018_v1.json" assert { type: 'json' }
7
- import contextSuitesX25519 from "./contexts/w3id.org_security_suites_x25519-2019_v1.json" assert { type: 'json' }
8
- import contextProfile from "./contexts/veramo.io_contexts_profile_v1.json" assert { type: 'json' }
9
- import contextLdsEcdsaSecpRecovery2020_0 from "./contexts/lds-ecdsa-secp256k1-recovery2020-0.0.json" assert { type: 'json' }
10
- import contextLdsEcdsaSecpRecovery2020_2 from "./contexts/w3id.org_security_suites_secp256k1recovery-2020_v2.json" assert { type: 'json' }
11
- import contextSuitesSecp from "./contexts/w3id.org_security_suites_secp256k1recovery-2020_v2.json" assert { type: 'json' }
1
+ import contextCredentialV1 from './contexts/www.w3.org_2018_credentials_v1.json' assert { type: 'json' }
2
+ import contextDidV1 from './contexts/www.w3.org_ns_did_v1.json' assert { type: 'json' }
3
+ import contextSecurityV1 from './contexts/w3id.org_security_v1.json' assert { type: 'json' }
4
+ import contextSecurityV2 from './contexts/w3id.org_security_v2.json' assert { type: 'json' }
5
+ import contextSecurityV3 from './contexts/w3id.org_security_v3-unstable.json' assert { type: 'json' }
6
+ import contextSuitesEd25519 from './contexts/w3id.org_security_suites_ed25519-2018_v1.json' assert { type: 'json' }
7
+ import contextSuitesX25519 from './contexts/w3id.org_security_suites_x25519-2019_v1.json' assert { type: 'json' }
8
+ import contextProfile from './contexts/veramo.io_contexts_profile_v1.json' assert { type: 'json' }
9
+ import contextLdsEcdsaSecpRecovery2020_0 from './contexts/lds-ecdsa-secp256k1-recovery2020-0.0.json' assert { type: 'json' }
10
+ import contextLdsEcdsaSecpRecovery2020_2 from './contexts/w3id.org_security_suites_secp256k1recovery-2020_v2.json' assert { type: 'json' }
11
+ import contextSuitesSecp from './contexts/w3id.org_security_suites_secp256k1recovery-2020_v2.json' assert { type: 'json' }
12
12
  import contextSuitesEd25519_2020 from './contexts/ed25519-signature-2020-v1.json' assert { type: 'json' }
13
13
  import contextSuitesJws_2020 from './contexts/json-web-signature-2020-v1.json' assert { type: 'json' }
14
+ import contextSuiteEip712 from './contexts/eip712.json' assert { type: 'json' }
14
15
 
15
16
  /**
16
17
  * Provides a hardcoded map of common Linked Data `@context` definitions.
@@ -31,14 +32,16 @@ export const LdDefaultContexts = new Map([
31
32
  ['https://w3id.org/security/suites/x25519-2019/v1', contextSuitesX25519],
32
33
  ['https://w3id.org/security/suites/ed25519-2020/v1', contextSuitesEd25519_2020],
33
34
  ['https://w3id.org/security/suites/jws-2020/v1', contextSuitesJws_2020],
34
- // ['https://w3id.org/did/v0.11', require('./contexts/did_v0.11.json')],
35
- // ['https://veramo.io/contexts/socialmedia/v1', require('./contexts/socialmedia-v1.json')],
36
- // ['https://veramo.io/contexts/kyc/v1', require('./contexts/kyc-v1.json')],
37
35
  ['https://veramo.io/contexts/profile/v1', contextProfile],
38
- // ['https://ns.did.ai/transmute/v1', require('./contexts/transmute_v1.json')],
39
- ['https://identity.foundation/EcdsaSecp256k1RecoverySignature2020/lds-ecdsa-secp256k1-recovery2020-0.0.jsonld', contextLdsEcdsaSecpRecovery2020_0],
40
- ['https://identity.foundation/EcdsaSecp256k1RecoverySignature2020/lds-ecdsa-secp256k1-recovery2020-2.0.jsonld', contextLdsEcdsaSecpRecovery2020_2],
41
- ['https://w3id.org/security/suites/secp256k1recovery-2020/v2', contextSuitesSecp]
42
- // ['https://w3id.org/security/suites/ed25519-2018/v1', require('./contexts/ed25519-signature-2018-v1.json')],
43
- // ['https://w3id.org/security/suites/x25519-2019/v1', require('./contexts/X25519KeyAgreementKey2019.json')],
36
+ [
37
+ 'https://identity.foundation/EcdsaSecp256k1RecoverySignature2020/lds-ecdsa-secp256k1-recovery2020-0.0.jsonld',
38
+ contextLdsEcdsaSecpRecovery2020_0,
39
+ ],
40
+ [
41
+ 'https://identity.foundation/EcdsaSecp256k1RecoverySignature2020/lds-ecdsa-secp256k1-recovery2020-2.0.jsonld',
42
+ contextLdsEcdsaSecpRecovery2020_2,
43
+ ],
44
+ ['https://w3id.org/security/suites/secp256k1recovery-2020/v2', contextSuitesSecp],
45
+ ['https://w3id.org/security/suites/eip712sig-2021', contextSuiteEip712],
46
+ ['https://w3c-ccg.github.io/ethereum-eip712-signature-2021-spec/', contextSuiteEip712],
44
47
  ])
@@ -11,7 +11,7 @@
11
11
  },
12
12
  "keyRef": {
13
13
  "type": "string",
14
- "description": "Optional. The key handle ( {@link @veramo/core#IKey.kid | IKey.kid } ) from the internal database."
14
+ "description": "Optional. The key handle ( {@link @veramo/core-types#IKey.kid | IKey.kid } ) from the internal database."
15
15
  },
16
16
  "fetchRemoteContexts": {
17
17
  "type": "boolean",
@@ -199,7 +199,7 @@
199
199
  },
200
200
  "keyRef": {
201
201
  "type": "string",
202
- "description": "Optional. The key handle ( {@link @veramo/core#IKey.kid | IKey.kid } ) from the internal database."
202
+ "description": "Optional. The key handle ( {@link @veramo/core-types#IKey.kid | IKey.kid } ) from the internal database."
203
203
  },
204
204
  "fetchRemoteContexts": {
205
205
  "type": "boolean",
package/src/types.ts CHANGED
@@ -27,7 +27,7 @@ export interface ICredentialIssuerLD extends IPluginMethodMap {
27
27
  * @param args - Arguments necessary to create the Presentation.
28
28
  * @param context - This reserved param is automatically added and handled by the framework, *do not override*
29
29
  *
30
- * @returns - a promise that resolves to the {@link @veramo/core#VerifiablePresentation} that was requested or rejects with an error
30
+ * @returns - a promise that resolves to the {@link @veramo/core-types#VerifiablePresentation} that was requested or rejects with an error
31
31
  * if there was a problem with the input or while getting the key to sign
32
32
  *
33
33
  * @remarks Please see {@link https://www.w3.org/TR/vc-data-model/#presentations | Verifiable Presentation data model }
@@ -46,7 +46,7 @@ export interface ICredentialIssuerLD extends IPluginMethodMap {
46
46
  * @param args - Arguments necessary to create the Presentation.
47
47
  * @param context - This reserved param is automatically added and handled by the framework, *do not override*
48
48
  *
49
- * @returns - a promise that resolves to the {@link @veramo/core#VerifiableCredential} that was requested or rejects with an error
49
+ * @returns - a promise that resolves to the {@link @veramo/core-types#VerifiableCredential} that was requested or rejects with an error
50
50
  * if there was a problem with the input or while getting the key to sign
51
51
  *
52
52
  * @remarks Please see {@link https://www.w3.org/TR/vc-data-model/#credentials | Verifiable Credential data model}
@@ -116,7 +116,7 @@ export interface ICreateVerifiablePresentationLDArgs {
116
116
  domain?: string
117
117
 
118
118
  /**
119
- * Optional. The key handle ({@link @veramo/core#IKey.kid | IKey.kid}) from the internal database.
119
+ * Optional. The key handle ({@link @veramo/core-types#IKey.kid | IKey.kid}) from the internal database.
120
120
  */
121
121
  keyRef?: string
122
122
 
@@ -130,7 +130,7 @@ export interface ICreateVerifiablePresentationLDArgs {
130
130
  /**
131
131
  * Any other options that can be forwarded to the lower level libraries
132
132
  */
133
- [x:string]: any
133
+ [x: string]: any
134
134
  }
135
135
 
136
136
  /**
@@ -152,9 +152,9 @@ export interface ICreateVerifiableCredentialLDArgs {
152
152
  credential: CredentialPayload
153
153
 
154
154
  /**
155
- * Optional. The key handle ({@link @veramo/core#IKey.kid | IKey.kid}) from the internal database.
155
+ * Optional. The key handle ({@link @veramo/core-types#IKey.kid | IKey.kid}) from the internal database.
156
156
  */
157
- keyRef?: string,
157
+ keyRef?: string
158
158
 
159
159
  /**
160
160
  * Set this to true if you want the `@context` URLs to be fetched in case they are not preloaded.
@@ -166,7 +166,7 @@ export interface ICreateVerifiableCredentialLDArgs {
166
166
  /**
167
167
  * Any other options that can be forwarded to the lower level libraries
168
168
  */
169
- [x:string]: any
169
+ [x: string]: any
170
170
  }
171
171
 
172
172
  /**
@@ -196,7 +196,7 @@ export interface IVerifyCredentialLDArgs {
196
196
  /**
197
197
  * Any other options that can be forwarded to the lower level libraries
198
198
  */
199
- [x:string]: any
199
+ [x: string]: any
200
200
  }
201
201
 
202
202
  /**
@@ -236,7 +236,7 @@ export interface IVerifyPresentationLDArgs {
236
236
  /**
237
237
  * Any other options that can be forwarded to the lower level libraries
238
238
  */
239
- [x:string]: any
239
+ [x: string]: any
240
240
  }
241
241
 
242
242
  /**