NOTE: Using header encryption will make message decryption process much slower! You may want to use Proteus.js in most cases.
While Proteus.js is an implementation of the Signal Protocol without header encryption, Proteus-HD take advantage of the header encryption variant of Double Ratchet Algorithm to make communication more secure.
yarn add proteus-hd
Use a module bundler or UMD builds in the dist
folder
import * as Proteus from 'proteus-hd';
const identity: Proteus.keys.IdentityKeyPair = Proteus.keys.IdentityKeyPair.new();