Rename ElGamal::new() to ElGamal::default()

This commit is contained in:
Michael Vines
2021-10-11 10:50:42 -07:00
parent 6b59beda7b
commit f272c025bd
6 changed files with 37 additions and 37 deletions

View File

@@ -471,9 +471,9 @@ mod test {
let ElGamal {
pk: source_pk,
sk: source_sk,
} = ElGamal::new();
let dest_pk = ElGamal::new().pk;
let auditor_pk = ElGamal::new().pk;
} = ElGamal::default();
let dest_pk = ElGamal::default().pk;
let auditor_pk = ElGamal::default().pk;
// create source account spendable ciphertext
let spendable_balance: u64 = 77;
@@ -502,12 +502,12 @@ mod test {
let ElGamal {
pk: source_pk,
sk: source_sk,
} = ElGamal::new();
} = ElGamal::default();
let ElGamal {
pk: dest_pk,
sk: dest_sk,
} = ElGamal::new();
let auditor_pk = ElGamal::new().pk;
} = ElGamal::default();
let auditor_pk = ElGamal::default().pk;
// create source account spendable ciphertext
let spendable_balance: u64 = 77;