NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
PyPI
PyPI, #3700 most downloaded on PyPI
A Discord Audio & Video End-to-End Encryption (DAVE) Protocol implementation
Latest stable
0.2.0
Last release 20 days ago
02 Nov 2026
Ships fairly regularly
a new release about every 6 weeks
Nearly every release is documented
notes for 9 of 9 stable releases
Nothing withdrawn
no release was ever pulled
1 years old
14 releases · first in 2025
Drag across the ruler to compare, or tap a release to open it.
Read the short migration guide: https://github.com/Snazzah/davey/wiki/Migrating-to-0.2.0
Read the short migration guide: https://github.com/Snazzah/davey/wiki/Migrating-to-0.2.0
DaveSession::process_commit and DaveSession::process_welcome no longer update keys. Call DaveSession::prepare_transition with the transition ID and protocol_version afterwards, and the key used to encrypt packets is only switched once that transition is executed with DaveSession::execute_transition, unless the transition ID is 0. (parity with libdave's sample)DaveSession::reinit now keeps the current encryption and decryption keys until the next transition replaces them, so is_ready stays true. (parity with libdave)DaveSession::process_commit now returns true if the transition should be prepared, or false if the commit was ignored because there is no established group or queued proposals, instead of failing with NoGroup or PendingGroup. (ref: discord/libdave@68f7c02)DaveSession::process_welcome now takes a recognized_user_ids argument that gets checked against the users in the welcome group. (parity with libdave v1.2.0)EncryptionStats and DecryptionStats fields are now u64. (parity with libdave)EncryptError::EncryptionFailed now contains an EncryptorEncryptError.DecryptorDecryptError::NoValidCryptorFound was replaced with more specific errors: MissingKeyRatchet, InvalidNonce, MissingCryptor and DecryptionFailure.DaveSession::prepare_transition and DaveSession::execute_transition for handling opcodes 21 and 22. Preparing a downgrade to protocol version 0 keeps the current decryption keys usable for 10 seconds.DaveSession::can_encrypt to check whether the session has a key to encrypt with.DaveSession::encrypt_into and DaveSession::decrypt_into to encrypt and decrypt into your own buffer, so it can be reused between packets.EncryptionStats::missing_keys and DecryptionStats::missing_keys for the number of encryptions and decryptions that failed due to a missing key, and DecryptionStats::invalid_nonces for the number of decryptions that failed due to an invalid nonce.usize are now rejected. (ref: discord/libdave@7cb36a3)DecryptionStats::attempts now only counts actual decryption attempts, not every key ratchet that was tried. (parity with libdave)Your coding agent can read these notes before it upgrades. Set up the MCP server →
Read the short migration guide: https://github.com/Snazzah/davey/wiki/Migrating-to-0.2.0
DaveSession.get_user_ids() now returns List[int] instead of List[str]DaveSession.process_commit() and DaveSession.process_welcome() no longer update keys. Call DaveSession.prepare_transition() with the transition ID and protocol_version afterwards, and the key used to encrypt packets is only switched once that transition is executed with DaveSession.execute_transition(), unless the transition ID is 0. (parity with libdave's sample)DaveSession.reinit() now keeps the current encryption and decryption keys until the next transition replaces them, so ready stays True. (parity with libdave)DaveSession.process_commit() now returns True if the transition should be prepared, or False if the commit was ignored because there is no established group or queued proposals, instead of raising. (ref: discord/libdave@68f7c02)DaveSession.process_welcome() now has an optional recognized_user_ids argument that gets checked against the users in the welcome group. (parity with libdave v1.2.0)DaveSession.prepare_transition() and DaveSession.execute_transition() for handling opcodes 21 and 22. Preparing a downgrade to protocol version 0 keeps the current decryption keys usable for 10 seconds.DaveSession.can_encrypt to check whether the session has a key to encrypt with.EncryptionStats.missing_keys and DecryptionStats.missing_keys for the number of encryptions and decryptions that failed due to a missing key, and DecryptionStats.invalid_nonces for the number of decryptions that failed due to an invalid nonce.DecryptionStats.attempts now only counts actual decryption attempts, not every key ratchet that was tried. (parity with libdave)__repr__() of DaveSession and SigningKeyPair no longer leaks memory. (whoops)DaveSession::process_commit and DaveSession::process_welcome no longer update keys. Call DaveSession::prepare_transition with the transition ID and pr
DaveSession::process_commit and DaveSession::process_welcome no longer update keys. Call DaveSession::prepare_transition with the transition ID and protocol_version afterwards, and the key used to encrypt packets is only switched once that transition is executed with DaveSession::execute_transition, unless the transition ID is 0. (parity with libdave's sample)DaveSession::reinit now keeps the current encryption and decryption keys until the next transition replaces them, so is_ready stays true. (parity with libdave)DaveSession::process_commit now returns true if the transition should be prepared, or false if the commit was ignored because there is no established group or queued proposals, instead of failing with NoGroup or PendingGroup. (ref: discord/libdave@68f7c02)DaveSession::process_welcome now takes a recognized_user_ids argument that gets checked against the users in the welcome group. (parity with libdave v1.2.0)EncryptionStats and DecryptionStats fields are now u64. (parity with libdave)EncryptError::EncryptionFailed now contains an EncryptorEncryptError.DecryptorDecryptError::NoValidCryptorFound was replaced with more specific errors: MissingKeyRatchet, InvalidNonce, MissingCryptor and DecryptionFailure.DaveSession::prepare_transition and DaveSession::execute_transition for handling opcodes 21 and 22. Preparing a downgrade to protocol version 0 keeps the current decryption keys usable for 10 seconds.DaveSession::can_encrypt to check whether the session has a key to encrypt with.DaveSession::encrypt_into and DaveSession::decrypt_into to encrypt and decrypt into your own buffer, so it can be reused between packets.EncryptionStats::missing_keys and DecryptionStats::missing_keys for the number of encryptions and decryptions that failed due to a missing key, and DecryptionStats::invalid_nonces for the number of decryptions that failed due to an invalid nonce.usize are now rejected. (ref: discord/libdave@7cb36a3)DecryptionStats::attempts now only counts actual decryption attempts, not every key ratchet that was tried. (parity with libdave)DaveSession.get_user_ids() now returns List[int] instead of List[str]DaveSession.process_commit() and DaveSession.process_welcome() no longer update keys. Call DaveSession.prepare_transition() with the transition ID and protocol_version afterwards, and the key used to encrypt packets is only switched once that transition is executed with DaveSession.execute_transition(), unless the transition ID is 0. (parity with libdave's sample)DaveSession.reinit() now keeps the current encryption and decryption keys until the next transition replaces them, so ready stays True. (parity with libdave)DaveSession.process_commit() now returns True if the transition should be prepared, or False if the commit was ignored because there is no established group or queued proposals, instead of raising. (ref: discord/libdave@68f7c02)DaveSession.process_welcome() now has an optional recognized_user_ids argument that gets checked against the users in the welcome group. (parity with libdave v1.2.0)DaveSession.prepare_transition() and DaveSession.execute_transition() for handling opcodes 21 and 22. Preparing a downgrade to protocol version 0 keeps the current decryption keys usable for 10 seconds.DaveSession.can_encrypt to check whether the session has a key to encrypt with.EncryptionStats.missing_keys and DecryptionStats.missing_keys for the number of encryptions and decryptions that failed due to a missing key, and DecryptionStats.invalid_nonces for the number of decryptions that failed due to an invalid nonce.DecryptionStats.attempts now only counts actual decryption attempts, not every key ratchet that was tried. (parity with libdave)__repr__() of DaveSession and SigningKeyPair no longer leaks memory. (whoops)Only accept own commits if it's exactly the same commit
Only accept own commits if it's exactly the same commit
Validate welcome users and check group IDs
Only shorten cipher manager expiry
Track early missing nonces
Ignore duplicate key ratchet installs
Reduce buffer allocations in decryption
Use newest cryptor when decrypting
Reject duplicate user ids in rosters
Only passthru silence packets for audio/opus
More process_commit guards for libdave parity
More process_proposals/welcome guards for libdave parity
Fix welcomes potentially being lost
Change encrypt/decrypt stats types
Implement clock for future tests
Session transition handling overhaul
Use results properly for encryptors
Add passthrough count and "missing keys" count for stats
Avoid leb128 allocation
Reduce allocations during encryption
Updated PyO3 so that Python version 3.15 successfully builds
Updated PyO3 so that Python version 3.15 successfully builds
Fixed libdave parity, improved reliability in encryption and video processing
Fixed libdave parity, improved reliability in encryption and video processing (#17)
Updated built dependencies for OpenMLS and related crates to fix vulnerabilities ( GHSA-435g-fcv3-8j26 and GHSA-g433-pq76-6cmf )
Updated built dependencies for OpenMLS and related crates to fix vulnerabilities (GHSA-435g-fcv3-8j26 and GHSA-g433-pq76-6cmf)
DAVESession will no longer create a decryptor for itself.Updated internal dependencies to fix vulnerabilities: https://github.com/cryspen/libcrux/security/advisories/GHSA-435g-fcv3-8j26 & https://github.com/cryspen/hpke-rs/security/advisories/GHSA-g433-pq76-6cmf
Using DAVESession.canPassthrough on a user ID that doesn't have a decryptor now just returns false instead of throwing an error.
DAVESession.canPassthrough on a user ID that doesn't have a decryptor now just returns false instead of throwing an error.DAVESession.getVerificationCode.Fixed libdave parity, improved reliability in encryption and video processing (#17)
Updated the internal OpenMLS dependency to fix a high severity vulnerability: GHSA-8x3w-qj7j-gqhf
### Added - DAVESession.epoch - DAVESession.ownLeafIndex ### Changed - Bumped Node-API version to 6
DAVESession.epochDAVESession.ownLeafIndexAll notable changes to this project will be documented in this file.
Updated OpenMLS and related crates to fix vulnerabilities (GHSA-435g-fcv3-8j26 and GHSA-g433-pq76-6cmf)
Functions for decryptor passthrough: DAVESession.canPassthrough, DAVESession.setPassthroughMode
DAVESession.canPassthrough, DAVESession.setPassthroughModeAll notable changes to this project will be documented in this file.
<!-- generated by git-cliff -->
Fixes an issue with enabling passthrough mode and sets the expiry properly.
Fixed an issue where encryption did not properly set the codec and led to encryption failures.
Initial release.
Initial release.
All notable changes to this project will be documented in this file.
All notable changes to this project will be documented in this file.
<!-- generated by git-cliff -->
Initial release candidate of the python package.
Initial release candidate of the python package.
Nothing published for this version
One column per month.