rename to_elgamal_ctxt to to_elgamal_ciphertext

This commit is contained in:
Sam Kim 2021-10-04 09:36:48 -04:00 committed by Michael Vines
parent a622ee4b8d
commit 75896958b6
2 changed files with 3 additions and 3 deletions

View File

@ -382,8 +382,8 @@ mod tests {
let decrypt_handle_1 = pk_1.gen_decrypt_handle(&open);
let decrypt_handle_2 = pk_2.gen_decrypt_handle(&open);
let ct_1 = decrypt_handle_1.to_elgamal_ctxt(comm);
let ct_2 = decrypt_handle_2.to_elgamal_ctxt(comm);
let ct_1 = decrypt_handle_1.to_elgamal_ciphertext(comm);
let ct_2 = decrypt_handle_2.to_elgamal_ciphertext(comm);
let expected_instance = DiscreteLog {
generator: PedersenBase::default().G,

View File

@ -276,7 +276,7 @@ impl PedersenDecHandle {
}
/// Maps a decryption token and Pedersen commitment to ElGamal ciphertext
pub fn to_elgamal_ctxt(self, comm: PedersenComm) -> ElGamalCiphertext {
pub fn to_elgamal_ciphertext(self, comm: PedersenComm) -> ElGamalCiphertext {
ElGamalCiphertext {
message_comm: comm,
decrypt_handle: self,