Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document reproducible builds #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
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