pir-types
Shared wire types and tier-layout constants for vote-nullifier-pir — a YPIR-based Private Information Retrieval system that returns non-membership proofs for a ~51M-entry Zcash nullifier set without revealing which nullifier was queried.
This crate contains:
- Tier-layout constants (
PIR_DEPTH,TIER0_LAYERS,TIER1_LAYERS,TIER2_LAYERS, row widths) shared betweenpir-client,pir-server, andpir-export. - Wire types serialized over HTTP:
YpirScenario,RootInfo,HealthInfo. - Query serialization helper
serialize_ypir_query.
Enable the reader feature to get tier-data parsers (tier0::Tier0Data, tier1::Tier1Row, tier2::Tier2Row) and Fp serialization helpers (fp_utils). The default feature set is lightweight and only pulls in serde.
Usage
Pure library; consumed by pir-client and pir-server. Not typically used directly from application code.
License
Dual-licensed under MIT or Apache-2.0. See LICENSE-MIT and LICENSE-APACHE.