From b8d320df1913af051712f591931538097b083cde Mon Sep 17 00:00:00 2001 From: Sean Bowe Date: Wed, 4 May 2016 18:26:37 -0600 Subject: [PATCH] Update public zkSNARK parameters for new circuit. --- src/init.cpp | 4 ++-- src/zcbenchmarks.cpp | 4 ++-- zcutil/fetch-params.sh | 12 ++++++------ 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/init.cpp b/src/init.cpp index 4edd6b50c..5f54f89da 100644 --- a/src/init.cpp +++ b/src/init.cpp @@ -602,8 +602,8 @@ static void ZC_LoadParams() struct timeval tv_start, tv_end; float elapsed; - boost::filesystem::path pk_path = ZC_GetParamsDir() / "zc-testnet-public-alpha-proving.key"; - boost::filesystem::path vk_path = ZC_GetParamsDir() / "zc-testnet-public-alpha-verification.key"; + boost::filesystem::path pk_path = ZC_GetParamsDir() / "z3-proving.key"; + boost::filesystem::path vk_path = ZC_GetParamsDir() / "z3-verification.key"; pzcashParams = ZCJoinSplit::Unopened(); diff --git a/src/zcbenchmarks.cpp b/src/zcbenchmarks.cpp index aed0612e1..34c9295a1 100644 --- a/src/zcbenchmarks.cpp +++ b/src/zcbenchmarks.cpp @@ -44,8 +44,8 @@ double benchmark_sleep() double benchmark_parameter_loading() { // FIXME: this is duplicated with the actual loading code - boost::filesystem::path pk_path = ZC_GetParamsDir() / "zc-testnet-public-alpha-proving.key"; - boost::filesystem::path vk_path = ZC_GetParamsDir() / "zc-testnet-public-alpha-verification.key"; + boost::filesystem::path pk_path = ZC_GetParamsDir() / "z3-proving.key"; + boost::filesystem::path vk_path = ZC_GetParamsDir() / "z3-verification.key"; timer_start(); diff --git a/zcutil/fetch-params.sh b/zcutil/fetch-params.sh index 599ce77d9..6cc5dbc7e 100755 --- a/zcutil/fetch-params.sh +++ b/zcutil/fetch-params.sh @@ -4,8 +4,8 @@ set -eu PARAMS_DIR="$HOME/.zcash-params" -REGTEST_PKEY_NAME='zc-testnet-public-alpha-proving.key' -REGTEST_VKEY_NAME='zc-testnet-public-alpha-verification.key' +REGTEST_PKEY_NAME='z3-proving.key' +REGTEST_VKEY_NAME='z3-verification.key' REGTEST_PKEY_URL="https://z.cash/downloads/$REGTEST_PKEY_NAME" REGTEST_VKEY_URL="https://z.cash/downloads/$REGTEST_VKEY_NAME" REGTEST_DIR="$PARAMS_DIR/regtest" @@ -86,9 +86,9 @@ cd "$PARAMS_DIR" # Now verify their hashes: echo 'Verifying parameter file integrity via sha256sum...' sha256sum --check - <