From a707e85c101fe43dca217eef857ed538cdf43d41 Mon Sep 17 00:00:00 2001 From: Sam Kim Date: Wed, 13 Oct 2021 09:37:19 -0400 Subject: [PATCH] add key pair derivation from ed25519 signing key --- zk-token-sdk/src/encryption/elgamal.rs | 8 -------- 1 file changed, 8 deletions(-) diff --git a/zk-token-sdk/src/encryption/elgamal.rs b/zk-token-sdk/src/encryption/elgamal.rs index 40358999b6..d4407ffd23 100644 --- a/zk-token-sdk/src/encryption/elgamal.rs +++ b/zk-token-sdk/src/encryption/elgamal.rs @@ -57,14 +57,6 @@ impl ElGamal { } } - #[cfg(not(target_arch = "bpf"))] - #[allow(non_snake_case)] - pub fn from_signing_key(signing_key: &SigningKey, label: &'static [u8]) -> Self { - let secret = ElGamalSecretKey::new(signing_key, label); - let public = ElGamalPubkey::new(&secret); - Self { secret, public } - } - /// On input a public key and a message to be encrypted, the function /// returns an ElGamal ciphertext of the message under the public key. #[cfg(not(target_arch = "bpf"))]