2key-ratchet
Version:
2key-ratchet is an implementation of a Double Ratchet protocol and X3DH in TypeScript utilizing WebCrypto.
21 lines (20 loc) • 676 B
TypeScript
/**
*
* 2key-ratchet
* Copyright (c) 2016 Peculiar Ventures, Inc
* Based on https://whispersystems.org/docs/specifications/doubleratchet/ and
* https://whispersystems.org/docs/specifications/x3dh/ by Open Whisper Systems
*
*/
import { ECPublicKey } from "../crypto/public_key";
import { BaseProtocol } from "./base";
import { IdentityProtocol } from "./identity";
import { MessageSignedProtocol } from "./message_signed";
export declare class PreKeyMessageProtocol extends BaseProtocol {
registrationId: number;
preKeyId?: number;
preKeySignedId: number;
baseKey: ECPublicKey;
identity: IdentityProtocol;
signedMessage: MessageSignedProtocol;
}