This project contains multiple Rust binaries that can be built using Cargo.
anonymous_serverauthority_serverclient
To compile each binary, run:
cargo build --bin anonymous_server
cargo build --bin authority_server
cargo build --bin clientThe resulting binaries will be placed in target/release.
You can run the binaries directly with Cargo:
cargo run --bin anonymous_server
cargo run --bin authority_server
cargo run --bin anonymousIf you see an error like this when building:
error[E0277]: the trait bound `SURB: Clone` is not satisfied
--> common/nymsphinx/anonymous-replies/src/reply_surb.rs:59:5
|
57 | #[derive(Debug, Clone)]
| ^^^^^ the trait `Clone` is not implemented for `SURB`
Fix:
- Locate the file
sphinx-packet-0.6.0.zipinside the project SDK folder. - Extract it into your Cargo registry folder:
- Linux/macOS:
~/.cargo/registry/ - Windows:
C:\Users\<your-username>\.cargo\registry\
- Linux/macOS:
- Make sure the extracted folder is named exactly:
sphinx-packet-0.6.0
After extraction, re-run the build commands.
A video of running the schemes can be seen here:
Watch on YouTube the regular scheme
Watch on YouTube the Oscar Wilde Scheme
- Rust (latest stable recommended)
- Cargo (comes with Rust)