https://gitlab.com/tezos/tezos
Raw File
Tip revision: 9a56d37442530b1f5644c9418a8f3244e4b51f24 authored by Mehdi Bouaziz on 28 June 2022, 11:57:27 UTC
Tests/Python: update regression trace
Tip revision: 9a56d37
install_sapling_parameters.sh
#!/usr/bin/env bash

set -e

script_dir="$(cd "$(dirname "$0")" && pwd -P)"

#shellcheck source=version.sh
. "$script_dir"/version.sh

# Install Sapling parameters.
ZCASH_PARAMS="${OPAM_SWITCH_PREFIX}/share/zcash-params"
OUTPUT_PARAMETERS="${opam_repository_url}/-/raw/${opam_repository_tag}/zcash-params/sapling-output.params"
SPEND_PARAMETERS="${opam_repository_url}/-/raw/${opam_repository_tag}/zcash-params/sapling-spend.params"

echo "Installing Sapling parameters in ${ZCASH_PARAMS}"
rm -rf "${ZCASH_PARAMS}"
mkdir -p "${ZCASH_PARAMS}"
curl -s -o ${ZCASH_PARAMS}/sapling-output.params ${OUTPUT_PARAMETERS}
curl -s -o ${ZCASH_PARAMS}/sapling-spend.params ${SPEND_PARAMETERS}
back to top