Rename ElGamalPubkey::gen_decrypt_handle method to ElGamalPubkey::decrypt_handle

This commit is contained in:
Sam Kim
2021-10-05 09:20:35 -04:00
committed by Michael Vines
parent 20c6001836
commit 73c06d9e33
3 changed files with 17 additions and 19 deletions

View File

@@ -56,13 +56,13 @@ impl TransferData {
let (comm_lo, open_lo) = Pedersen::new(amount_lo);
let (comm_hi, open_hi) = Pedersen::new(amount_hi);
let handle_source_lo = source_pk.gen_decrypt_handle(&open_lo);
let handle_dest_lo = dest_pk.gen_decrypt_handle(&open_lo);
let handle_auditor_lo = auditor_pk.gen_decrypt_handle(&open_lo);
let handle_source_lo = source_pk.decrypt_handle(&open_lo);
let handle_dest_lo = dest_pk.decrypt_handle(&open_lo);
let handle_auditor_lo = auditor_pk.decrypt_handle(&open_lo);
let handle_source_hi = source_pk.gen_decrypt_handle(&open_hi);
let handle_dest_hi = dest_pk.gen_decrypt_handle(&open_hi);
let handle_auditor_hi = auditor_pk.gen_decrypt_handle(&open_hi);
let handle_source_hi = source_pk.decrypt_handle(&open_hi);
let handle_dest_hi = dest_pk.decrypt_handle(&open_hi);
let handle_auditor_hi = auditor_pk.decrypt_handle(&open_hi);
// message encoding as Pedersen commitments, which will be included in range proof data
let amount_comms = TransferComms {