Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,24 @@ Participants of the ceremony sample some randomness, perform a computation, and

It is totally up to the participants. In general, participations should beware of side-channel attacks and assume that remnants of the randomness will be in RAM after the computation has finished.

## Reproducible builds

To build a reproducible binary, use this command (requires rust nightly):

```sh
RUSTFLAGS="-Zremap-path-prefix-from=$PWD -Zremap-path-prefix-to=/remap" \
rustup run nightly cargo build --release --verbose
```

You can verify the project is reproducible in a scriptable way with reprotest:

```sh
(. /etc/os-release;
reprotest -vv --host-distro="$ID" --vary=-time,-fileordering --source-pattern 'Cargo.* src/' \
'CARGO_HOME="$PWD/.cargo" RUSTUP_HOME='"$HOME/.rustup"' RUSTFLAGS="-Zremap-path-prefix-from=$PWD -Zremap-path-prefix-to=/remap" \
rustup run nightly cargo build --release --verbose' 'target/release/{compute,new,verify_transform}')
```

## License

Licensed under either of
Expand Down