Struct solana_zk_token_sdk::encryption::elgamal::ElGamalKeypair
source · [−]pub struct ElGamalKeypair {
pub public: ElGamalPubkey,
pub secret: ElGamalSecretKey,
}
Expand description
A (twisted) ElGamal encryption keypair.
Fields
public: ElGamalPubkey
The public half of this keypair.
secret: ElGamalSecretKey
The secret half of this keypair.
Implementations
Generates the public and secret keys for ElGamal encryption from Ed25519 signing key and an address.
On input a randomness generator, the function generates the public and secret keys for ElGamal encryption.
Reads a JSON-encoded keypair from a Reader
implementor
Reads keypair from a file
Writes to a Write
implementer with JSON-encoding
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.