Function chain_impl_mockchain::vote::encrypt_vote
source · pub fn encrypt_vote<R: RngCore + CryptoRng>(
rng: &mut R,
crs: &Crs,
public_key: &ElectionPublicKey,
vote: Vote
) -> (EncryptedVote, ProofOfCorrectVote)