[−][src]Function cryptoballot::encrypt_vote
pub fn encrypt_vote(
election_key: &EciesPublicKey,
vote: &[u8]
) -> Result<Vec<u8>, ()>
Encrypt a vote with the public key provided by the election transaction (ElectionTransaction.encryption_key)