@sovrahq/kms-core 1.4.0-4 → 1.4.0-5
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.
|
@@ -10,4 +10,4 @@ export declare enum VCSuite {
|
|
|
10
10
|
Bbsbls2020 = "bbsbls2020",
|
|
11
11
|
RsaSignature2018 = "rsaSignature2018"
|
|
12
12
|
}
|
|
13
|
-
export declare function getTypeBySuite(suite: Suite): "X25519KeyAgreementKey2019" | "Bls12381G1Key2020" | "RsaSignature2018";
|
|
13
|
+
export declare function getTypeBySuite(suite: Suite): "X25519KeyAgreementKey2019" | "Bls12381G1Key2020" | "RsaSignature2018" | "Ed25519VerificationKey2018";
|
|
@@ -18,8 +18,10 @@ var VCSuite;
|
|
|
18
18
|
function getTypeBySuite(suite) {
|
|
19
19
|
switch (suite) {
|
|
20
20
|
case Suite.DIDComm: return "X25519KeyAgreementKey2019";
|
|
21
|
+
case Suite.DIDCommV2: return "X25519KeyAgreementKey2019";
|
|
21
22
|
case Suite.Bbsbls2020: return "Bls12381G1Key2020";
|
|
22
23
|
case Suite.RsaSignature2018: return "RsaSignature2018";
|
|
24
|
+
case Suite.Ed25519Suite: return "Ed25519VerificationKey2018";
|
|
23
25
|
}
|
|
24
26
|
return null;
|
|
25
27
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"supported-suites.js","sourceRoot":"","sources":["../../src/models/supported-suites.ts"],"names":[],"mappings":";;;AAAA,IAAY,KAOX;AAPD,WAAY,KAAK;IACb,0BAAiB,CAAA;IACjB,4BAAmB,CAAA;IACnB,gCAAuB,CAAA;IACvB,kCAAyB,CAAA;IACzB,8CAAqC,CAAA;IACrC,sCAA6B,CAAA;AACjC,CAAC,EAPW,KAAK,GAAL,aAAK,KAAL,aAAK,QAOhB;AAED,IAAY,OAGX;AAHD,WAAY,OAAO;IACf,oCAAyB,CAAA;IACzB,gDAAqC,CAAA;AACzC,CAAC,EAHW,OAAO,GAAP,eAAO,KAAP,eAAO,QAGlB;AAED,SAAgB,cAAc,CAAC,KAAY;IACvC,QAAQ,KAAK,EAAE;QACX,KAAK,KAAK,CAAC,OAAO,CAAC,CAAC,OAAO,2BAA2B,CAAC;QACvD,KAAK,KAAK,CAAC,UAAU,CAAC,CAAC,OAAO,mBAAmB,CAAC;QAClD,KAAK,KAAK,CAAC,gBAAgB,CAAC,CAAC,OAAO,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"supported-suites.js","sourceRoot":"","sources":["../../src/models/supported-suites.ts"],"names":[],"mappings":";;;AAAA,IAAY,KAOX;AAPD,WAAY,KAAK;IACb,0BAAiB,CAAA;IACjB,4BAAmB,CAAA;IACnB,gCAAuB,CAAA;IACvB,kCAAyB,CAAA;IACzB,8CAAqC,CAAA;IACrC,sCAA6B,CAAA;AACjC,CAAC,EAPW,KAAK,GAAL,aAAK,KAAL,aAAK,QAOhB;AAED,IAAY,OAGX;AAHD,WAAY,OAAO;IACf,oCAAyB,CAAA;IACzB,gDAAqC,CAAA;AACzC,CAAC,EAHW,OAAO,GAAP,eAAO,KAAP,eAAO,QAGlB;AAED,SAAgB,cAAc,CAAC,KAAY;IACvC,QAAQ,KAAK,EAAE;QACX,KAAK,KAAK,CAAC,OAAO,CAAC,CAAC,OAAO,2BAA2B,CAAC;QACvD,KAAK,KAAK,CAAC,SAAS,CAAC,CAAC,OAAO,2BAA2B,CAAC;QACzD,KAAK,KAAK,CAAC,UAAU,CAAC,CAAC,OAAO,mBAAmB,CAAC;QAClD,KAAK,KAAK,CAAC,gBAAgB,CAAC,CAAC,OAAO,kBAAkB,CAAC;QACvD,KAAK,KAAK,CAAC,YAAY,CAAC,CAAC,OAAO,4BAA4B,CAAC;KAChE;IACD,OAAO,IAAI,CAAC;AAChB,CAAC;AATD,wCASC"}
|
package/package.json
CHANGED
|
@@ -15,8 +15,10 @@ export enum VCSuite {
|
|
|
15
15
|
export function getTypeBySuite(suite: Suite) {
|
|
16
16
|
switch (suite) {
|
|
17
17
|
case Suite.DIDComm: return "X25519KeyAgreementKey2019";
|
|
18
|
+
case Suite.DIDCommV2: return "X25519KeyAgreementKey2019";
|
|
18
19
|
case Suite.Bbsbls2020: return "Bls12381G1Key2020";
|
|
19
20
|
case Suite.RsaSignature2018: return "RsaSignature2018";
|
|
21
|
+
case Suite.Ed25519Suite: return "Ed25519VerificationKey2018";
|
|
20
22
|
}
|
|
21
23
|
return null;
|
|
22
24
|
}
|