@sebastianp265/safe-server-side-storage-client
Version:
Library for Confidential Server-Side Message Storage Using the Labyrinth Protocol
22 lines • 1.02 kB
TypeScript
import { PrivateKey, PublicKey } from "../../crypto/keys";
export declare class CommonPrivateKeyBundle {
readonly deviceKeyPriv: PrivateKey;
readonly epochStorageKeyPriv: PrivateKey;
constructor(deviceKeyPriv: PrivateKey, epochStorageKeyPriv: PrivateKey);
static generate(): CommonPrivateKeyBundle;
getPublicKeyBundle(): CommonPublicKeyBundle;
}
export type CommonPublicKeyBundleSerialized = {
deviceKeyPub: string;
epochStorageKeyPub: string;
epochStorageKeySig: string;
};
export declare class CommonPublicKeyBundle {
readonly deviceKeyPub: PublicKey;
readonly epochStorageKeyPub: PublicKey;
readonly epochStorageKeySig: Uint8Array;
constructor(deviceKeyPub: PublicKey, epochStorageKeyPub: PublicKey, epochStorageKeySig: Uint8Array);
serialize(): CommonPublicKeyBundleSerialized;
static deserialize(devicePublicKeyBundleSerialized: CommonPublicKeyBundleSerialized): CommonPublicKeyBundle;
}
//# sourceMappingURL=DeviceAndVirtualDeviceCommonKeyBundle.d.ts.map