This commit is contained in:
Sam Kim 2021-10-13 10:02:30 -04:00 committed by Michael Vines
parent 9fdadb503d
commit 65cf599786
1 changed files with 2 additions and 6 deletions

View File

@ -12,8 +12,8 @@ use {
scalar::Scalar,
},
ed25519_dalek::SecretKey as SigningKey,
solana_sdk::pubkey::Pubkey,
serde::{Deserialize, Serialize},
solana_sdk::pubkey::Pubkey,
std::collections::HashMap,
std::convert::TryInto,
subtle::{Choice, ConstantTimeEq},
@ -140,13 +140,9 @@ impl ElGamalKeypair {
let secret = ElGamalSecretKey::new(signing_key, address);
let public = ElGamalPubkey::new(&secret);
Self {
secret,
public,
}
Self { secret, public }
}
/// Generates the public and secret keys for ElGamal encryption.
#[cfg(not(target_arch = "bpf"))]
#[allow(clippy::new_ret_no_self)]