rename to_elgamal_ctxt to to_elgamal_ciphertext
This commit is contained in:
@ -382,8 +382,8 @@ mod tests {
|
|||||||
let decrypt_handle_1 = pk_1.gen_decrypt_handle(&open);
|
let decrypt_handle_1 = pk_1.gen_decrypt_handle(&open);
|
||||||
let decrypt_handle_2 = pk_2.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_1 = decrypt_handle_1.to_elgamal_ciphertext(comm);
|
||||||
let ct_2 = decrypt_handle_2.to_elgamal_ctxt(comm);
|
let ct_2 = decrypt_handle_2.to_elgamal_ciphertext(comm);
|
||||||
|
|
||||||
let expected_instance = DiscreteLog {
|
let expected_instance = DiscreteLog {
|
||||||
generator: PedersenBase::default().G,
|
generator: PedersenBase::default().G,
|
||||||
|
@ -276,7 +276,7 @@ impl PedersenDecHandle {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// Maps a decryption token and Pedersen commitment to ElGamal ciphertext
|
/// 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 {
|
ElGamalCiphertext {
|
||||||
message_comm: comm,
|
message_comm: comm,
|
||||||
decrypt_handle: self,
|
decrypt_handle: self,
|
||||||
|
Reference in New Issue
Block a user