Extended Triple Diffie-Hellman
npm install @lookatfr3sn0/x3dhsh
npm install @lookatfr3sn0/x3dh
`
Usage
`typescript
// ESM (recommended)
import { X3DH } from '@lookatfr3sn0/x3dh';
// CommonJS
const { X3DH } = require('@lookatfr3sn0/x3dh');
`
Important Note on Hash Algorithm
Due to limitations of the underlying sodium-plus library, the sha256 and sha512 options for the hash algorithm actually use BLAKE2b under the hood. This means that while the API allows you to select sha256 or sha512`, the cryptographic operations are performed using BLAKE2b with output lengths matching those of SHA-256 (32 bytes) or SHA-512 (64 bytes).