Skip to content

Commit cd898be

Browse files
committed
fix
1 parent bbd21ba commit cd898be

File tree

1 file changed

+2
-3
lines changed
  • rust/catalyst-voting/src/txs/v1

1 file changed

+2
-3
lines changed

rust/catalyst-voting/src/txs/v1/mod.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ use crate::{
5353
vote_protocol::{
5454
committee::{ElectionPublicKey, ElectionSecretKey},
5555
voter::{
56-
decrypt_vote, encrypt_vote_with_default_rng,
56+
decrypt_vote, encrypt_vote,
5757
proof::{generate_voter_proof, verify_voter_proof, VoterProof, VoterProofCommitment},
5858
EncryptedVote, Vote,
5959
},
@@ -272,8 +272,7 @@ impl VotePayload {
272272
) -> anyhow::Result<Self> {
273273
let vote = Vote::new(choice.into(), proposal_voting_options.into())?;
274274

275-
let (encrypted_vote, randomness) =
276-
encrypt_vote_with_default_rng(&vote, election_public_key);
275+
let (encrypted_vote, randomness) = encrypt_vote(&vote, election_public_key, rng);
277276

278277
let vote_plan_id_hash = Blake2b512Hasher::new().chain_update(vote_plan_id);
279278
let commitment = VoterProofCommitment::from_hash(vote_plan_id_hash);

0 commit comments

Comments
 (0)