@veramo/credential-ld 5.1.5-next.12 → 5.1.5-next.13

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.
Files changed (71) hide show
  1. package/build/contexts/schema.org.json +8612 -0
  2. package/build/contexts/w3id.org_security_bbs_v1.json +128 -0
  3. package/build/contexts/w3id.org_security_suites_ed25519-2018_v1.json +89 -56
  4. package/build/contexts/{ed25519-signature-2018-v1.json → w3id.org_security_suites_ed25519-2020-v1.json} +10 -8
  5. package/build/contexts/{json-web-signature-2020-v1.json → w3id.org_security_suites_jws-2020_v1.json} +15 -8
  6. package/build/contexts/w3id.org_security_suites_x25519-2020_v1.json +27 -0
  7. package/build/contexts/w3id.org_security_v1.json +36 -9
  8. package/build/contexts/w3id.org_security_v2.json +90 -22
  9. package/build/contexts/w3id.org_security_v3-unstable.json +4 -2
  10. package/build/contexts/www.w3.org_2018_credentials_examples_v1.json +69 -0
  11. package/build/contexts/www.w3.org_2018_credentials_v1.json +156 -36
  12. package/build/ld-credential-module.d.ts.map +1 -1
  13. package/build/ld-credential-module.js +5 -2
  14. package/build/ld-credential-module.js.map +1 -1
  15. package/build/ld-default-contexts.d.ts.map +1 -1
  16. package/build/ld-default-contexts.js +18 -9
  17. package/build/ld-default-contexts.js.map +1 -1
  18. package/build/ld-suites.d.ts +2 -2
  19. package/build/ld-suites.d.ts.map +1 -1
  20. package/build/ld-suites.js.map +1 -1
  21. package/build/suites/EcdsaSecp256k1RecoverySignature2020.d.ts +1 -1
  22. package/build/suites/EcdsaSecp256k1RecoverySignature2020.d.ts.map +1 -1
  23. package/build/suites/EcdsaSecp256k1RecoverySignature2020.js +3 -2
  24. package/build/suites/EcdsaSecp256k1RecoverySignature2020.js.map +1 -1
  25. package/build/suites/Ed25519Signature2018.d.ts +1 -1
  26. package/build/suites/Ed25519Signature2018.d.ts.map +1 -1
  27. package/build/suites/Ed25519Signature2018.js +2 -1
  28. package/build/suites/Ed25519Signature2018.js.map +1 -1
  29. package/build/suites/Ed25519Signature2020.d.ts +3 -5
  30. package/build/suites/Ed25519Signature2020.d.ts.map +1 -1
  31. package/build/suites/Ed25519Signature2020.js +50 -9
  32. package/build/suites/Ed25519Signature2020.js.map +1 -1
  33. package/build/suites/JsonWebSignature2020.d.ts +1 -1
  34. package/build/suites/JsonWebSignature2020.d.ts.map +1 -1
  35. package/build/suites/JsonWebSignature2020.js +2 -1
  36. package/build/suites/JsonWebSignature2020.js.map +1 -1
  37. package/package.json +4 -4
  38. package/src/__tests__/issue-verify-ed25519-2020.test.ts +143 -0
  39. package/src/contexts/schema.org.json +8612 -0
  40. package/src/contexts/veramo.io_contexts_profile_v1.json +4 -4
  41. package/src/contexts/w3id.org_security_bbs_v1.json +128 -0
  42. package/src/contexts/w3id.org_security_suites_ed25519-2018_v1.json +89 -57
  43. package/src/contexts/{ed25519-signature-2018-v1.json → w3id.org_security_suites_ed25519-2020-v1.json} +10 -8
  44. package/src/contexts/w3id.org_security_suites_jws-2020_v1.json +78 -0
  45. package/src/contexts/w3id.org_security_suites_x25519-2020_v1.json +27 -0
  46. package/src/contexts/w3id.org_security_v1.json +36 -12
  47. package/src/contexts/w3id.org_security_v2.json +124 -57
  48. package/src/contexts/w3id.org_security_v3-unstable.json +684 -692
  49. package/src/contexts/www.w3.org_2018_credentials_examples_v1.json +69 -0
  50. package/src/contexts/www.w3.org_2018_credentials_v1.json +157 -79
  51. package/src/contexts/www.w3.org_ns_did_v1.json +0 -1
  52. package/src/ld-credential-module.ts +19 -5
  53. package/src/ld-default-contexts.ts +19 -10
  54. package/src/ld-suites.ts +2 -1
  55. package/src/suites/EcdsaSecp256k1RecoverySignature2020.ts +4 -5
  56. package/src/suites/Ed25519Signature2018.ts +2 -1
  57. package/src/suites/Ed25519Signature2020.ts +72 -11
  58. package/src/suites/JsonWebSignature2020.ts +2 -1
  59. package/build/contexts/did_v0.11.json +0 -61
  60. package/build/contexts/ed25519-signature-2020-v1.json +0 -77
  61. package/build/contexts/kyc-v1.json +0 -8
  62. package/build/contexts/socialmedia-v1.json +0 -7
  63. package/build/contexts/transmute_v1.json +0 -20
  64. package/src/contexts/did_v0.11.json +0 -64
  65. package/src/contexts/ed25519-signature-2020-v1.json +0 -77
  66. package/src/contexts/json-web-signature-2020-v1.json +0 -71
  67. package/src/contexts/kyc-v1.json +0 -8
  68. package/src/contexts/socialmedia-v1.json +0 -7
  69. package/src/contexts/transmute_v1.json +0 -21
  70. /package/build/contexts/{eip712.json → w3id.org_security_suites_eip712sig-2021_v1.json} +0 -0
  71. /package/src/contexts/{eip712.json → w3id.org_security_suites_eip712sig-2021_v1.json} +0 -0
@@ -1,59 +1,126 @@
1
1
  {
2
- "@context": [{
3
- "@version": 1.1
4
- }, "https://w3id.org/security/v1", {
5
- "AesKeyWrappingKey2019": "sec:AesKeyWrappingKey2019",
6
- "DeleteKeyOperation": "sec:DeleteKeyOperation",
7
- "DeriveSecretOperation": "sec:DeriveSecretOperation",
8
- "EcdsaSecp256k1Signature2019": "sec:EcdsaSecp256k1Signature2019",
9
- "EcdsaSecp256r1Signature2019": "sec:EcdsaSecp256r1Signature2019",
10
- "EcdsaSecp256k1VerificationKey2019": "sec:EcdsaSecp256k1VerificationKey2019",
11
- "EcdsaSecp256r1VerificationKey2019": "sec:EcdsaSecp256r1VerificationKey2019",
12
- "Ed25519Signature2018": "sec:Ed25519Signature2018",
13
- "Ed25519VerificationKey2018": "sec:Ed25519VerificationKey2018",
14
- "EquihashProof2018": "sec:EquihashProof2018",
15
- "ExportKeyOperation": "sec:ExportKeyOperation",
16
- "GenerateKeyOperation": "sec:GenerateKeyOperation",
17
- "KmsOperation": "sec:KmsOperation",
18
- "RevokeKeyOperation": "sec:RevokeKeyOperation",
19
- "RsaSignature2018": "sec:RsaSignature2018",
20
- "RsaVerificationKey2018": "sec:RsaVerificationKey2018",
21
- "Sha256HmacKey2019": "sec:Sha256HmacKey2019",
22
- "SignOperation": "sec:SignOperation",
23
- "UnwrapKeyOperation": "sec:UnwrapKeyOperation",
24
- "VerifyOperation": "sec:VerifyOperation",
25
- "WrapKeyOperation": "sec:WrapKeyOperation",
26
- "X25519KeyAgreementKey2019": "sec:X25519KeyAgreementKey2019",
27
-
28
- "allowedAction": "sec:allowedAction",
29
- "assertionMethod": {"@id": "sec:assertionMethod", "@type": "@id", "@container": "@set"},
30
- "authentication": {"@id": "sec:authenticationMethod", "@type": "@id", "@container": "@set"},
31
- "capability": {"@id": "sec:capability", "@type": "@id"},
32
- "capabilityAction": "sec:capabilityAction",
33
- "capabilityChain": {"@id": "sec:capabilityChain", "@type": "@id", "@container": "@list"},
34
- "capabilityDelegation": {"@id": "sec:capabilityDelegationMethod", "@type": "@id", "@container": "@set"},
35
- "capabilityInvocation": {"@id": "sec:capabilityInvocationMethod", "@type": "@id", "@container": "@set"},
36
- "caveat": {"@id": "sec:caveat", "@type": "@id", "@container": "@set"},
37
- "challenge": "sec:challenge",
38
- "ciphertext": "sec:ciphertext",
39
- "controller": {"@id": "sec:controller", "@type": "@id"},
40
- "delegator": {"@id": "sec:delegator", "@type": "@id"},
41
- "equihashParameterK": {"@id": "sec:equihashParameterK", "@type": "xsd:integer"},
42
- "equihashParameterN": {"@id": "sec:equihashParameterN", "@type": "xsd:integer"},
43
- "invocationTarget": {"@id": "sec:invocationTarget", "@type": "@id"},
44
- "invoker": {"@id": "sec:invoker", "@type": "@id"},
45
- "jws": "sec:jws",
46
- "keyAgreement": {"@id": "sec:keyAgreementMethod", "@type": "@id", "@container": "@set"},
47
- "kmsModule": {"@id": "sec:kmsModule"},
48
- "parentCapability": {"@id": "sec:parentCapability", "@type": "@id"},
49
- "plaintext": "sec:plaintext",
50
- "proof": {"@id": "sec:proof", "@type": "@id", "@container": "@graph"},
51
- "proofPurpose": {"@id": "sec:proofPurpose", "@type": "@vocab"},
52
- "proofValue": "sec:proofValue",
53
- "referenceId": "sec:referenceId",
54
- "unwrappedKey": "sec:unwrappedKey",
55
- "verificationMethod": {"@id": "sec:verificationMethod", "@type": "@id"},
56
- "verifyData": "sec:verifyData",
57
- "wrappedKey": "sec:wrappedKey"
58
- }]
2
+ "@context": [
3
+ {
4
+ "@version": 1.1
5
+ },
6
+ "https://w3id.org/security/v1",
7
+ {
8
+ "AesKeyWrappingKey2019": "sec:AesKeyWrappingKey2019",
9
+ "DeleteKeyOperation": "sec:DeleteKeyOperation",
10
+ "DeriveSecretOperation": "sec:DeriveSecretOperation",
11
+ "EcdsaSecp256k1Signature2019": "sec:EcdsaSecp256k1Signature2019",
12
+ "EcdsaSecp256r1Signature2019": "sec:EcdsaSecp256r1Signature2019",
13
+ "EcdsaSecp256k1VerificationKey2019": "sec:EcdsaSecp256k1VerificationKey2019",
14
+ "EcdsaSecp256r1VerificationKey2019": "sec:EcdsaSecp256r1VerificationKey2019",
15
+ "Ed25519Signature2018": "sec:Ed25519Signature2018",
16
+ "Ed25519VerificationKey2018": "sec:Ed25519VerificationKey2018",
17
+ "EquihashProof2018": "sec:EquihashProof2018",
18
+ "ExportKeyOperation": "sec:ExportKeyOperation",
19
+ "GenerateKeyOperation": "sec:GenerateKeyOperation",
20
+ "KmsOperation": "sec:KmsOperation",
21
+ "RevokeKeyOperation": "sec:RevokeKeyOperation",
22
+ "RsaSignature2018": "sec:RsaSignature2018",
23
+ "RsaVerificationKey2018": "sec:RsaVerificationKey2018",
24
+ "Sha256HmacKey2019": "sec:Sha256HmacKey2019",
25
+ "SignOperation": "sec:SignOperation",
26
+ "UnwrapKeyOperation": "sec:UnwrapKeyOperation",
27
+ "VerifyOperation": "sec:VerifyOperation",
28
+ "WrapKeyOperation": "sec:WrapKeyOperation",
29
+ "X25519KeyAgreementKey2019": "sec:X25519KeyAgreementKey2019",
30
+ "allowedAction": "sec:allowedAction",
31
+ "assertionMethod": {
32
+ "@id": "sec:assertionMethod",
33
+ "@type": "@id",
34
+ "@container": "@set"
35
+ },
36
+ "authentication": {
37
+ "@id": "sec:authenticationMethod",
38
+ "@type": "@id",
39
+ "@container": "@set"
40
+ },
41
+ "capability": {
42
+ "@id": "sec:capability",
43
+ "@type": "@id"
44
+ },
45
+ "capabilityAction": "sec:capabilityAction",
46
+ "capabilityChain": {
47
+ "@id": "sec:capabilityChain",
48
+ "@type": "@id",
49
+ "@container": "@list"
50
+ },
51
+ "capabilityDelegation": {
52
+ "@id": "sec:capabilityDelegationMethod",
53
+ "@type": "@id",
54
+ "@container": "@set"
55
+ },
56
+ "capabilityInvocation": {
57
+ "@id": "sec:capabilityInvocationMethod",
58
+ "@type": "@id",
59
+ "@container": "@set"
60
+ },
61
+ "caveat": {
62
+ "@id": "sec:caveat",
63
+ "@type": "@id",
64
+ "@container": "@set"
65
+ },
66
+ "challenge": "sec:challenge",
67
+ "ciphertext": "sec:ciphertext",
68
+ "controller": {
69
+ "@id": "sec:controller",
70
+ "@type": "@id"
71
+ },
72
+ "delegator": {
73
+ "@id": "sec:delegator",
74
+ "@type": "@id"
75
+ },
76
+ "equihashParameterK": {
77
+ "@id": "sec:equihashParameterK",
78
+ "@type": "xsd:integer"
79
+ },
80
+ "equihashParameterN": {
81
+ "@id": "sec:equihashParameterN",
82
+ "@type": "xsd:integer"
83
+ },
84
+ "invocationTarget": {
85
+ "@id": "sec:invocationTarget",
86
+ "@type": "@id"
87
+ },
88
+ "invoker": {
89
+ "@id": "sec:invoker",
90
+ "@type": "@id"
91
+ },
92
+ "jws": "sec:jws",
93
+ "keyAgreement": {
94
+ "@id": "sec:keyAgreementMethod",
95
+ "@type": "@id",
96
+ "@container": "@set"
97
+ },
98
+ "kmsModule": {
99
+ "@id": "sec:kmsModule"
100
+ },
101
+ "parentCapability": {
102
+ "@id": "sec:parentCapability",
103
+ "@type": "@id"
104
+ },
105
+ "plaintext": "sec:plaintext",
106
+ "proof": {
107
+ "@id": "sec:proof",
108
+ "@type": "@id",
109
+ "@container": "@graph"
110
+ },
111
+ "proofPurpose": {
112
+ "@id": "sec:proofPurpose",
113
+ "@type": "@vocab"
114
+ },
115
+ "proofValue": "sec:proofValue",
116
+ "referenceId": "sec:referenceId",
117
+ "unwrappedKey": "sec:unwrappedKey",
118
+ "verificationMethod": {
119
+ "@id": "sec:verificationMethod",
120
+ "@type": "@id"
121
+ },
122
+ "verifyData": "sec:verifyData",
123
+ "wrappedKey": "sec:wrappedKey"
124
+ }
125
+ ]
59
126
  }