merge
This commit is contained in:
parent
9fdadb503d
commit
65cf599786
|
@ -12,8 +12,8 @@ use {
|
||||||
scalar::Scalar,
|
scalar::Scalar,
|
||||||
},
|
},
|
||||||
ed25519_dalek::SecretKey as SigningKey,
|
ed25519_dalek::SecretKey as SigningKey,
|
||||||
solana_sdk::pubkey::Pubkey,
|
|
||||||
serde::{Deserialize, Serialize},
|
serde::{Deserialize, Serialize},
|
||||||
|
solana_sdk::pubkey::Pubkey,
|
||||||
std::collections::HashMap,
|
std::collections::HashMap,
|
||||||
std::convert::TryInto,
|
std::convert::TryInto,
|
||||||
subtle::{Choice, ConstantTimeEq},
|
subtle::{Choice, ConstantTimeEq},
|
||||||
|
@ -140,13 +140,9 @@ 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 {
|
Self { secret, public }
|
||||||
secret,
|
|
||||||
public,
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/// Generates the public and secret keys for ElGamal encryption.
|
/// Generates the public and secret keys for ElGamal encryption.
|
||||||
#[cfg(not(target_arch = "bpf"))]
|
#[cfg(not(target_arch = "bpf"))]
|
||||||
#[allow(clippy::new_ret_no_self)]
|
#[allow(clippy::new_ret_no_self)]
|
||||||
|
|
Loading…
Reference in New Issue