rename to_elgamal_ctxt to to_elgamal_ciphertext
This commit is contained in:
parent
a622ee4b8d
commit
75896958b6
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue