WARNING: This is NOT meant for production use, has not been audited, may contain bugs, etc. Use at your own risk.
This repository contains Java bindings to this native blind RSA implementation, as well as a simple Privacy Pass client that uses these functions to run the Privacy Pass issuance protocol. The purpose is to demonstrate how one might implement the Privacy Pass protocol in Java using an existing Blind RSA implementation. It almost certainly can be improved (for instance, there are no tests).
This repository does NOT contain an implementation of the challenge or redemption protocols. These are trivial to implement, though, and might be added in time.
$ javac -cp "json.jar:" -h . PrivacyPassExample.java
$ javac -cp "json.jar:" PrivacyPassExample.java
$ make shim
The client in this repository interoperates with the reference issuer provided in this repository. To run them, do the following:
- Clone the pat-app repository and patch it so that the issuer does not require TLS. (There is probably a way to modify the Java TLS trust anchor, but I didn't look very hard to do this.)
- Run the issuer via
make issuer
- Run the client via
json.jar:" PrivacyPassExample
.
That's it! If everything works, you should see no output. If there's an error, an exception will be tossed and printed to the console.