Rename ElGamal::keygen to ElGamal::new

This commit is contained in:
Michael Vines
2021-10-04 08:48:11 -07:00
parent 94a96670e8
commit a622ee4b8d
6 changed files with 26 additions and 26 deletions

View File

@@ -517,9 +517,9 @@ mod test {
#[test]
fn test_transfer_correctness() {
// ElGamal keys for source, destination, and auditor accounts
let (source_pk, source_sk) = ElGamal::keygen();
let (dest_pk, _) = ElGamal::keygen();
let (auditor_pk, _) = ElGamal::keygen();
let (source_pk, source_sk) = ElGamal::new();
let (dest_pk, _) = ElGamal::new();
let (auditor_pk, _) = ElGamal::new();
// create source account spendable ciphertext
let spendable_balance: u64 = 77;