@extrimian/kms-core
Advanced tools
Comparing version 1.1.0 to 1.2.0
@@ -11,2 +11,3 @@ export * from './decorators/vc-suite.decorator'; | ||
export * from './models/suites/didcomm/didcomm-signed-message'; | ||
export * from './models/suites/didcomm/didcomm-packed-message'; | ||
export * from './models/suites/es256k-signer.suite'; | ||
@@ -13,0 +14,0 @@ export * from './models/suites/vc.suite'; |
@@ -27,2 +27,3 @@ "use strict"; | ||
__exportStar(require("./models/suites/didcomm/didcomm-signed-message"), exports); | ||
__exportStar(require("./models/suites/didcomm/didcomm-packed-message"), exports); | ||
__exportStar(require("./models/suites/es256k-signer.suite"), exports); | ||
@@ -29,0 +30,0 @@ __exportStar(require("./models/suites/vc.suite"), exports); |
@@ -1,5 +0,6 @@ | ||
import { Purpose } from "@extrimian/did-core"; | ||
import { DIDCommMessage, Purpose } from "@extrimian/did-core"; | ||
import { VerifiableCredential } from "@extrimian/vc-core"; | ||
import { IJWK } from "../utils/base-converter"; | ||
import { DIDCommMessagePacking, IDIDCommMessage, IPackedDIDCommMessage } from "./suites/didcomm/didcomm-message-media-type"; | ||
import { DIDCommPackedMessage } from "./suites/didcomm/didcomm-packed-message"; | ||
import { Suite } from "./supported-suites"; | ||
@@ -21,4 +22,18 @@ export interface IKMS { | ||
packv2(publicKeyJWK: IJWK, senderVerificationMethodId: string, toHexPublicKeys: string[], message: IDIDCommMessage, packing: DIDCommMessagePacking): Promise<IPackedDIDCommMessage>; | ||
packDIDCommV2(params: { | ||
senderVerificationMethodId?: string; | ||
recipientVerificationMethodIds: string[]; | ||
message: IDIDCommMessage; | ||
packing: DIDCommMessagePacking; | ||
}): Promise<{ | ||
packedMessage: any | DIDCommPackedMessage; | ||
}>; | ||
unpack(publicKeyJWK: IJWK, packedContent: string): Promise<string>; | ||
unpackv2(publicKeyJWK: IJWK, jwe: any): Promise<string>; | ||
unpackvDIDCommV2(receiptDID: string, packedMessage: any | DIDCommPackedMessage): Promise<{ | ||
message: DIDCommMessage; | ||
metaData: { | ||
packing: DIDCommMessagePacking; | ||
}; | ||
}>; | ||
export(publicKeyJWK: IJWK): Promise<any>; | ||
@@ -25,0 +40,0 @@ getPublicKeysBySuiteType(suite: Suite): Promise<IJWK[]>; |
@@ -16,4 +16,7 @@ import { IKeyPair } from "../keypair"; | ||
pack(params: { | ||
verificationMethodId: string; | ||
toHexKeys: string[]; | ||
senderVerificationMethodId: string; | ||
toKeys: { | ||
verificationMethodId: string; | ||
publicKeyHex: string; | ||
}[]; | ||
message: IDIDCommMessage; | ||
@@ -20,0 +23,0 @@ packing: DIDCommMessagePacking; |
{ | ||
"name": "@extrimian/kms-core", | ||
"version": "1.1.0", | ||
"version": "1.2.0", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -11,2 +11,3 @@ export * from './decorators/vc-suite.decorator'; | ||
export * from './models/suites/didcomm/didcomm-signed-message'; | ||
export * from './models/suites/didcomm/didcomm-packed-message'; | ||
export * from './models/suites/es256k-signer.suite'; | ||
@@ -13,0 +14,0 @@ export * from './models/suites/vc.suite'; |
@@ -1,5 +0,6 @@ | ||
import { Purpose } from "@extrimian/did-core"; | ||
import { DIDCommMessage, Purpose } from "@extrimian/did-core"; | ||
import { VerifiableCredential } from "@extrimian/vc-core"; | ||
import { IJWK } from "../utils/base-converter"; | ||
import { DIDCommMessagePacking, IDIDCommMessage, IPackedDIDCommMessage } from "./suites/didcomm/didcomm-message-media-type"; | ||
import { DIDCommPackedMessage } from "./suites/didcomm/didcomm-packed-message"; | ||
import { Suite } from "./supported-suites"; | ||
@@ -29,4 +30,11 @@ | ||
packing: DIDCommMessagePacking): Promise<IPackedDIDCommMessage>; | ||
packDIDCommV2(params: { | ||
senderVerificationMethodId?: string, | ||
recipientVerificationMethodIds: string[], | ||
message: IDIDCommMessage, | ||
packing: DIDCommMessagePacking | ||
}): Promise<{ packedMessage: any | DIDCommPackedMessage }>; | ||
unpack(publicKeyJWK: IJWK, packedContent: string): Promise<string>; | ||
unpackv2(publicKeyJWK: IJWK, jwe: any): Promise<string>; | ||
unpackvDIDCommV2(receiptDID: string, packedMessage: any | DIDCommPackedMessage): Promise<{ message: DIDCommMessage, metaData: { packing: DIDCommMessagePacking } }>; | ||
export(publicKeyJWK: IJWK): Promise<any>; | ||
@@ -33,0 +41,0 @@ getPublicKeysBySuiteType(suite: Suite): Promise<IJWK[]>; |
@@ -22,9 +22,13 @@ import { IJWK } from "../../utils/base-converter"; | ||
create(): Promise<IDidCommKeyPair>; | ||
//Deprecated: This method will be removed soon. | ||
pack(params: { | ||
verificationMethodId: string, | ||
toHexKeys: string[], | ||
message: IDIDCommMessage, | ||
packing: DIDCommMessagePacking | ||
senderVerificationMethodId: string, | ||
toKeys: { | ||
verificationMethodId: string; | ||
publicKeyHex: string; | ||
}[]; | ||
message: IDIDCommMessage; | ||
packing: DIDCommMessagePacking; | ||
}): Promise<IPackedDIDCommMessage>; | ||
unpack: (jwe: any) => Promise<any>; | ||
} |
Sorry, the diff of this file is not supported yet
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
45613
71
1013