This is an implementation of our paper "Spiral: Fast, High-Rate Single-Server PIR via FHE Composition", available here.
WARNING: This is research-quality code; it has not been checked for side-channel leakage or basic logical or memory safety issues. Do not use this in production.
spiral-rs/spiral-rs
:
spiral-rs
, run cargo build --release
.cargo test
.cargo build --release --bin server --features server
.cargo build --release --bin preprocess_db
.target/release/server dbfile.dbp
with the preprocessed database file dbfile.dbp
spiral-rs/client
:
wasm-pack build --target web --out-dir static/pkg