Function cryptoballot::encrypt_vote [−][src]
pub fn encrypt_vote<R: CryptoRng + RngCore>(
encryption_key: &PublicKey,
vote: &[u8],
rng: &mut R
) -> Result<Ciphertext, Error>
Expand description
Encrypt a vote with the public key provided by the encryption_key transaction (EncryptionKeyTransaction.encryption_key)