update cargo to include ed25519_dalek
This commit is contained in:
@ -14,6 +14,8 @@ bytemuck = { version = "1.7.2", features = ["derive"] }
|
|||||||
num-derive = "0.3"
|
num-derive = "0.3"
|
||||||
num-traits = "0.2"
|
num-traits = "0.2"
|
||||||
solana-program = "=1.7.15"
|
solana-program = "=1.7.15"
|
||||||
|
solana-sdk = "=1.7.15"
|
||||||
|
ed25519-dalek = { version = "=1.0.1" }
|
||||||
|
|
||||||
[target.'cfg(not(target_arch = "bpf"))'.dependencies]
|
[target.'cfg(not(target_arch = "bpf"))'.dependencies]
|
||||||
arrayref = "0.3.6"
|
arrayref = "0.3.6"
|
||||||
|
@ -61,7 +61,7 @@ impl ElGamal {
|
|||||||
pub fn from_signing_key(signing_key: &SigningKey, label: &'static [u8]) -> Self {
|
pub fn from_signing_key(signing_key: &SigningKey, label: &'static [u8]) -> Self {
|
||||||
let secret = ElGamalSecretKey::new(signing_key, label);
|
let secret = ElGamalSecretKey::new(signing_key, label);
|
||||||
let public = ElGamalPubkey::new(&secret);
|
let public = ElGamalPubkey::new(&secret);
|
||||||
Self {secret, public}
|
Self { secret, public }
|
||||||
}
|
}
|
||||||
|
|
||||||
/// On input a public key and a message to be encrypted, the function
|
/// On input a public key and a message to be encrypted, the function
|
||||||
|
Reference in New Issue
Block a user