UNPKG

2key-ratchet

Version:

2key-ratchet is an implementation of a Double Ratchet protocol and X3DH in TypeScript utilizing WebCrypto.

17 lines (16 loc) 489 B
/** * * 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"; import { BaseProtocol } from "./base"; export declare class MessageProtocol extends BaseProtocol { senderRatchetKey: ECPublicKey; counter: number; previousCounter: number; cipherText: ArrayBuffer; }