Core discovery logic for the privacy pool, including storage slot computation and a simple RPC backend for testing and benchmarking.
Test vectors are generated from the Cairo contract. To regenerate:
cd sdk
npm run generate:cairo-refs
cp tests/fixtures/cairo-reference-data.json ../crates/discovery-core/tests/fixtures/cairo-reference-data.jsonThe devnet state fixture contains real storage slots produced by the e2e dump script. To regenerate:
cd e2e && npm run generate-dumpThis writes tests/fixtures/devnet-state.json (among other crate fixtures).
Run cargo test -p discovery-core afterwards to verify.
- Project root — architecture overview, prerequisites, build commands
- Discovery service — HTTP indexing service built on this library
- Privacy pool contract — Cairo contract (source of truth for storage layout and cryptography)