Skip to content

Commit

Permalink
Enforce user provides private key
Browse files Browse the repository at this point in the history
  • Loading branch information
raychu86 committed Dec 6, 2022
1 parent 27ee539 commit 1736d48
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion run-prover.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ fi

if [ "${PROVER_PRIVATE_KEY}" == "" ]
then
PROVER_PRIVATE_KEY="APrivateKey1zkp8cC4jgHEBnbtu3xxs1Ndja2EMizcvTRDq5Nikdkukg1p"
echo "Missing account private key. (run 'snarkos account new' and try again)"
exit
fi

COMMAND="cargo run --release -- start --nodisplay --prover ${PROVER_PRIVATE_KEY}"
Expand Down
3 changes: 2 additions & 1 deletion run-validator.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ fi

if [ "${VALIDATOR_PRIVATE_KEY}" == "" ]
then
VALIDATOR_PRIVATE_KEY="APrivateKey1zkp8cC4jgHEBnbtu3xxs1Ndja2EMizcvTRDq5Nikdkukg1p"
echo "Missing account private key. (run 'snarkos account new' and try again)"
exit
fi

COMMAND="cargo run --release -- start --nodisplay --validator ${VALIDATOR_PRIVATE_KEY}"
Expand Down

0 comments on commit 1736d48

Please sign in to comment.