sapling-mpc/compute.sh

15 lines
280 B
Bash
Raw Normal View History

2020-01-20 02:28:10 -08:00
#!/usr/bin/env bash
# install rust
if [[ `rustc -V | grep '('` = '' ]]
then
curl https://sh.rustup.rs -sSf | sh
source $HOME/.cargo/env
fi
# download params file
echo "download params: "$1
2020-01-21 00:16:23 -08:00
wget --no-check-certificate $1 -O params
2020-01-20 02:28:10 -08:00
# execute mpc
cargo run --release --bin compute