Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@extrimian/kms-core

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@extrimian/kms-core - npm Package Compare versions

Comparing version 1.1.0 to 1.2.0

dist/models/suites/didcomm/didcomm-packed-message.d.ts

1

dist/index.d.ts

@@ -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[]>;

7

dist/models/suites/didcomm.suite.d.ts

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc