Repository navigation
Avoid repeated message-history processing - #3539
Closed
holmesworcester wants to merge 9 commits into
Closed
holmesworcester wants to merge 9 commits into
holmesworcester wants to merge 9 commits into
Conversation
This was referenced Sep 15, 2026
Collaborator
Author
Passw
pushed a commit
to Passw/TryQuiet-quiet
that referenced
this pull request
Sep 27, 2026
) (TryQuiet#3654) Indexes verified message IDs/hashes in the channel store so a new head no longer re-decrypts and re-verifies the whole channel history, and the frontend missing-ID check is O(1). Forward-port of TryQuiet#3539 with the interaction fixes for TryQuiet#3559/TryQuiet#3569/DMs, auth pinned to 922f9490a (auth#39 cache + TryQuiet#42 typings). Daybreak Blue adversarial audit: six iterations, ACCEPT at a85fe17; 32 audit-derived regression tests. Authorization is monotonic today (no removal/rotation in production paths); a liveness test asserts entries become visible exactly once when keys or members arrive. Closes TryQuiet#3536, closes TryQuiet#3537.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Quiet repeatedly scanned and consumed old message history as new messages arrived. This change indexes verified message IDs/hashes and avoids repeatedly searching the frontend message list. TryQuiet/auth#39 separately supplies the accompanying cache of immutable cryptographic facts. Message signatures and current authorization are still checked.
The index handles OrbitDB's actual replication behavior: one head update can import an entire backlog. It discovers newly accepted ancestors once using canonical local-log reads. Authorization changes invalidate the index; unjoined heads wait for local acceptance. A pre-existing delayed-notification race after authorization changes or close is also fixed.
Seven QSS roster checks now assert visible members instead of waiting for an unasserted Tor status. Existing offline-status, message, private-channel, and history assertions remain intact.
This PR contains no native crypto adapter, sodium loader, crypto test hooks, or new crypto implementation. Backend package.json and webpack configuration match
10.0.0. Native OpenSSL work is preserved independently in #3541; this PR can be used with the existing libsodium implementation or a future native implementation.Validation after separating native crypto:
The first public-QSS run passed 61/64: restoring P2P while Tor was still bootstrapping returned false and left the settings modal open, causing two dependent UI failures. The same build and unchanged suite then passed 64/64. The involved Tor-toggle code matches the release base; the initial failure is retained in the validation record. Existing test skips remain unchanged. Daybreak Blue accepted the processing-only split after 73 backend and 8 independent auth adversarial tests using standard sodium. No introduced signature-verification, impersonation, or privilege-escalation regression was found.
Fixes #3536. Advances #3537. Depends on TryQuiet/auth#39; targets
10.0.0. Graph traversal and contextual replay still grow with sigchain history. The earlier combined iPhone timings are not measurements of this branch alone.