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
import * as Proteus from 'proteus-hd'; const identity: Proteus.keys.IdentityKeyPair = Proteus.keys.IdentityKeyPair.new();