Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kobigurk/privacypass-rs
Fully-compatible implementation of Privacy Pass in Rust.
https://github.com/kobigurk/privacypass-rs
Last synced: 15 days ago
JSON representation
Fully-compatible implementation of Privacy Pass in Rust.
- Host: GitHub
- URL: https://github.com/kobigurk/privacypass-rs
- Owner: kobigurk
- License: mit
- Created: 2019-01-05T15:13:52.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-04-20T21:48:20.000Z (over 4 years ago)
- Last Synced: 2024-08-05T09:18:26.069Z (3 months ago)
- Language: Rust
- Size: 33.2 KB
- Stars: 34
- Watchers: 3
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# privacypass-rs
An implementation of Privacy Pass in Rust, compatible with [https://github.com/privacypass](https://github.com/privacypass).
Described in the post [https://kobi.one/2019/01/05/exploring-privacypass.html](https://kobi.one/2019/01/05/exploring-privacypass.html).
The *example-data* folder contains example configuration files for both the client and the server, a secret key for the server and a public commitment for the key to be used by the client.
## Building
The code relies on the [Apache Milagro Crypto Library](https://milagro.apache.org/), and is included as a submodule in the repository.
To be able to build and run, as described later, get the submodule:
```
git submodule update --init --recursive
```## Docker
To use docker to build and run the privacypass-rs server, execute the following commands:
```
cd docker
docker build -t privacypass-server .
docker run -ti -p2416:2416 privacypass-server
```## Running with example data
To execute with the example data, you can execute the following commands:
* For the server:
```
cd example_data
cargo run --bin privacypass-rs-server
```* For the client:
```
cd example_data
cargo run --bin privacypass-rs-client
```The example configuration files are configured for running both the server and client locally.
To make the processes print debug logs, add before each `cargo run` command the environment variable `RUST_LOG=privacypass_rs=debug`.
## Example public server
I'm running a test server at privacypass.kobi.one. To use it, change `example_data/server_settings.yaml` to point to the server as follows:
```
server_address: privacypass.kobi.one:2416
```