Skip to content

Commit 4411980

Browse files
authored
fix: Improve offline tally script | NPG-000 (#563)
# Description Small fix to the script to make the result files be identified by the testplan id ## Type of change Please delete options that are not relevant. - [ x] Bug fix (non-breaking change which fixes an issue)
1 parent 6373b69 commit 4411980

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

scripts/tally/private_offline.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,6 @@ COMMITTEE_KEY=committee_1
1212
COMMITTEE_PK=$(jcli key to-public < "$COMMITTEE_KEY")
1313
MEMBER_SECRET_KEY=$(printf "./%s_committees/%s/member_secret_key.sk" $VOTE_PLAN_ID $COMMITTEE_PK)
1414

15-
jcli "votes" "tally" "decryption-shares" "--vote-plan" "active_plans.json" "--vote-plan-id" "$VOTE_PLAN_ID" "--key" "$MEMBER_SECRET_KEY" > decryption_share.json
16-
jcli "votes" "tally" "merge-shares" "decryption_share.json" > shares.json
17-
jcli "votes" "tally" "decrypt-results" "--vote-plan" "active_plans.json" "--vote-plan-id" "$VOTE_PLAN_ID" "--shares" "shares.json" "--threshold" "1" "--output-format" "json" > result.json
15+
jcli "votes" "tally" "decryption-shares" "--vote-plan" "active_plans.json" "--vote-plan-id" "$VOTE_PLAN_ID" "--key" "$MEMBER_SECRET_KEY" > "$VOTE_PLAN_ID"_decryption_share.json
16+
jcli "votes" "tally" "merge-shares" $VOTE_PLAN_ID"_decryption_share.json" > "$VOTE_PLAN_ID"_shares.json
17+
jcli "votes" "tally" "decrypt-results" "--vote-plan" "active_plans.json" "--vote-plan-id" "$VOTE_PLAN_ID" "--shares" $VOTE_PLAN_ID"_shares.json" "--threshold" "1" "--output-format" "json" > "$VOTE_PLAN_ID"_result.json

0 commit comments

Comments
 (0)