Skip to content

Commit

Permalink
fixing random input on contribution script
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasmenendez committed Nov 20, 2023
1 parent 9e2e30b commit 2ea829d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/contribute
Original file line number Diff line number Diff line change
Expand Up @@ -142,12 +142,12 @@ You are going to contribute to '$CEREMONY_BRANCH' zk-voceremony process!"

make_contribution() {
CONTRIBUTION_USER_INPUT=`ask_to_user "Please enter a random input and press enter:"`
echo "Your random input is: '$CONTRIBUTION_USER_INPUT'. Generating a random part..."
CONTRIBUTION_RANDOM_INPUT="${CONTRIBUTION_RANDOM_INPUT}\n$(head -n 2048 /dev/urandom)"
echo "Your part of the input is: '$CONTRIBUTION_USER_INPUT'. Generating a random part..."
CONTRIBUTION_RANDOM_INPUT="${CONTRIBUTION_USER_INPUT}\n$(head -n 2048 /dev/urandom)"
echo
echo "The generation of the contribution will take a while... So, be patient and don't close the terminal until the process is finished."
echo
$SNARKJS zkc $LAST_CONTRIBUTION_FILE $CURRENT_CONTRIBUTION_FILE -e="$CONTRIBUTION_USER_INPUT$CONTRIBUTION_RANDOM_INPUT"
$SNARKJS zkc $LAST_CONTRIBUTION_FILE $CURRENT_CONTRIBUTION_FILE -e="$CONTRIBUTION_RANDOM_INPUT"
echo
}

Expand Down

0 comments on commit 2ea829d

Please sign in to comment.