All notable changes to this project are documented here. The format follows Keep a Changelog, and versions follow SemVer. Any wire-format or label change is a new suite id (SPEC §18).
The first public release, and the first on npm. Before publishing, the library went through an adversarial review: six attack passes, one per part of the protocol, each trying to break it with working exploit tests. This release fixes what they found. Every exploit is kept in test/security/ as a regression test. The 1.0.0 vectors are unchanged, byte for byte.
x25519-xchacha20poly1305-sha256-v2 binds both devices' id, signing key and box key into the X3DH KDF, the handshake, the message key and the AD, and acceptSession checks a new expectedPeerSignPk pin. New SPKs list v2 first, and a conversation that reaches v2 never goes back to v1. v1 stays for 1.0 peers, so a first contact can still be v1; SPEC §6.5 and §19 item 17 say how to turn it off.E2EE_SKIP_TOO_LARGE can trigger, weren't counted. They now share the limit, and the recovery tracker remembers the latest time it has seen, so stepping the clock back can't reset the limit (SPEC §8.4).createE2ee refuses the test RNGs from brnr-e2ee/testing unless you pass dangerouslyAllowTestRng: true, and fails if the RNG returns the same seed twice in a row (SPEC §15).x25519-xchacha20poly1305-sha256-v2, with its vectors. The v2 AD carries recipientDeviceId.LIMITS.RETIRED_SESSION_TTL_MS (48 hours) and LIMITS.MAX_PENDING_RECORDS (256). Both bound local state only, so they aren't suite changes.retiredAt on each session in the state, reported by inspectSession, and optional seenAt on the recovery tracker. States and trackers written by 1.0.0 still parse.publint and Are the Types Wrong. CONTRIBUTING.md, a code of conduct, issue forms, OpenSSF Scorecard and Dependabot.expectedPeerSignPk to acceptSession, taken from the same verified bundle or device-list entry as expectedPeerBoxPk. A v2 founding message without it fails with E2EE_INVALID_INPUT, and a 1.1.0 peer sends v2 by default. Build the AD with recipientDeviceId when the state's suite is v2; the README's quick start shows how.brnr-e2ee (it was @brnr/e2ee), under the MIT licence; 1.0.0 was proprietary.isE2eeError also recognises errors thrown by the other build of the package (ESM or CommonJS).First release. Suite x25519-xchacha20poly1305-sha256-v1, wire v: 2. No independent security audit. Released privately as @brnr/e2ee, as a signed tarball; it was never on npm.
sid, activation on receive, eviction, pruning and re-stamping; strict versioned state (SPEC §8, §9).withSession and the KeyStore contract with crash-safe OTP deletion and the per-SPK handshake replay set (SPEC §8.5, §8.6, §10).vectors/*.json), an independent reference implementation used to check them, known-answer and Wycheproof tests, a fast-check command model, fuzzing, a counted-operation benchmark and mutation testing.SPEC.md §20 records the design decisions made while this version was implemented.