This repository contains the source code of the core library implementing the Privacy Pass API used by Kagi. This repository is not meant to be used as stand-alone, but rather as a submodule for other projects.
This is an LLM-assisted port of the privacy pass core library, with the following two goals:
- Update the rust toolchain from v1.84 to v1.94;
- Update the dependencies: switch to current versions of privacypass, voprf and blind-rsa-signatures.
This required some hacks (mostly in the form of privacypass patches) in order to maintain wire format compatibility with the Kagi servers. Note that neither this fork, nor privacypass have been audited, and I did not review all of the LLM-edited changes in detail.
To build this library, install Docker and run
bash build.shIf using Podman, run
DOCKER=podman bash build.shThe output library will be found in /build.
To build this project directly on your host machine, you need rust and wasm-pack.
You can obtain Rust by using rustup, and wasm-pack by using its installer.
Once the above dependencies were obtained, run
cd src
bash build.shThe output library will be found in /src/wasm/pkg.