Repository navigation
Add opt-in public pool snapshots for Pali privacy preparation - #46
Merged
Merged
Conversation
sidhujag
force-pushed
the
codex/privacy-pool-index
branch
from
October 25, 2026 05:49
b5ad9e2 to
0ad8b46
Compare
sidhujag
changed the base branch from
main
to
codex/fix-parser-validation-dependencies
October 25, 2026 05:49
sidhujag
changed the base branch from
codex/fix-parser-validation-dependencies
to
main
October 25, 2026 05:50
sidhujag
marked this pull request as ready for review
October 25, 2026 05:55
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
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.
Add an anonymous, opt-in Tornado Classic ETH pool snapshot API so Pali can download pool-wide public leaves and verify its Merkle tree locally. The endpoint supports only four pinned Ethereum pools; it accepts no notes, wallet addresses, leaf-specific queries or caller-selected RPC endpoints.
Stacked on #47, which fixes the pre-existing parser/validation dependency audit failures. Merge #47 first.
The index runs bounded, deduplicated jobs only after requests, verifies finalized block anchors and pool metadata, and publishes complete snapshots atomically. Separate rebuildable files preserve checkpoints across restarts without changing the account database or schema. Refresh failures retain a complete snapshot with an explicit stale marker; reorgs invalidate affected snapshots. ETags support conditional reads.
The feature is disabled by default. Enabling it requires
PRIVACY_INDEX_ENABLED=true, an HTTPSPRIVACY_INDEX_RPC_URLwith historical Ethereum reads, writabledata/privacy-index/, and the documented nginx route. Automatic deployment does not configure the environment or nginx. The server returns on-chain root metadata; Pali must independently reconstruct and authenticate the tree before use.Validation:
git diff --checkpassed. The feature commit does not change dependency or database/schema files; its tested base includes the separate parser/validation security patch.npm run audit:prodpassed: 0 high/critical findings; 4 low and 5 moderate findings remain.