@veramo/credential-ld 5.0.1-next.10 → 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.
@@ -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,OAAO,mBAAmB,MAAM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credentials & Presentations.",
4
- "version": "5.0.1-next.10+abfba31f",
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.10+abfba31f",
31
- "@veramo/utils": "^5.0.1-next.10+abfba31f",
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": "abfba31ff8497f00cddec5ca7a561fe32b1ab0bb"
66
+ "gitHead": "672f92b1bd3850c369cbef646c8ece8a58fafc16"
67
67
  }
@@ -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
  ])