This commit is contained in:
Michael Vines 2021-10-13 09:40:19 -07:00
parent 0ac6427abc
commit abe6b27b34
1 changed files with 1 additions and 1 deletions

View File

@ -140,7 +140,7 @@ impl ElGamalKeypair {
let secret = ElGamalSecretKey::new(signing_key, address); let secret = ElGamalSecretKey::new(signing_key, address);
let public = ElGamalPubkey::new(&secret); let public = ElGamalPubkey::new(&secret);
Self { secret, public } Self { public, secret }
} }
/// Generates the public and secret keys for ElGamal encryption. /// Generates the public and secret keys for ElGamal encryption.