@extrimian/kms-core
Advanced tools
Comparing version 1.0.5 to 1.0.6
{ | ||
"name": "@extrimian/kms-core", | ||
"version": "1.0.5", | ||
"version": "1.0.6", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -16,2 +16,9 @@ import { Purpose } from "@extrimian/did-core"; | ||
purpose: Purpose): Promise<VerifiableCredential>; | ||
signVCPresentation(params: { | ||
publicKeyJWK: IJWK, | ||
presentationObject: any, | ||
did: string, | ||
verificationMethodId: string, | ||
purpose: Purpose | ||
}): Promise<any>; | ||
pack(publicKeyJWK: IJWK, toHexPublicKeys: string[], contentToSign: string): Promise<string>; | ||
@@ -24,5 +31,3 @@ packv2(publicKeyJWK: IJWK, | ||
unpack(publicKeyJWK: IJWK, packedContent: string): Promise<string>; | ||
unpackv2(publicKeyJWK: IJWK, jwe: any, | ||
senderPublicKeyHex: string, | ||
senderPublicKeyType: string): Promise<string>; | ||
unpackv2(publicKeyJWK: IJWK, jwe: any): Promise<string>; | ||
export(publicKeyJWK: IJWK): Promise<any>; | ||
@@ -29,0 +34,0 @@ getPublicKeysBySuiteType(suite: Suite): Promise<IJWK[]>; |
@@ -13,2 +13,11 @@ export enum Suite { | ||
RsaSignature2018 = "rsaSignature2018", | ||
} | ||
export function getTypeBySuite(suite: Suite) { | ||
switch (suite) { | ||
case Suite.DIDComm: return "X25519KeyAgreementKey2019"; | ||
case Suite.Bbsbls2020: return "Bls12381G1Key2020"; | ||
case Suite.RsaSignature2018: return "RsaSignature2018"; | ||
} | ||
return null; | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
15869
19
414