fn encrypt_with<T: Into<Scalar>>(
        public: &ElGamalPubkey,
        amount: T,
        open: &PedersenOpening,
    ) -> ElGamalCiphertext {
        let message_comm = Pedersen::with(amount, open);
        let decrypt_handle = public.decrypt_handle(open);

        ElGamalCiphertext {
            message_comm,
            decrypt_handle,
        }
    }
/// On input a public key, message, and Pedersen opening, the function
/// returns an ElGamal ciphertext of the message under the public key using
/// the opening.
On input a public key, message, and Pedersen opening, the function
returns an ElGamal ciphertext of the message under the public key using
the opening.
On input a public key message and Pedersen opening the function returns an ElGamal ciphertext of the message under the public key using the opening .
fn encrypt_with<T: Into<Scalar>>(
        public: &ElGamalPubkey,
        amount: T,
        open: &PedersenOpening,
    ) -> ElGamalCiphertext {
        let message_comm = Pedersen::with(amount, open);
        let decrypt_handle = public.decrypt_handle(open);
        ElGamalCiphertext {
            message_comm,
            decrypt_handle,
        }
    }
fn encrypt_with < T : Into < Scalar > > ( public : & ElGamalPubkey , amount : T , open : & PedersenOpening , ) -> ElGamalCiphertext { let message_comm = Pedersen :: with ( amount , open ) ; let decrypt_handle = public . decrypt_handle ( open ) ; ElGamalCiphertext { message_comm , decrypt_handle , } }
On input a public key, message, and Pedersen opening, the function
returns an ElGamal ciphertext of the message under the public key using
the opening.
On input a public key message and Pedersen opening the function returns an ElGamal ciphertext of the message under the public key using the opening .
public
&ElGamalPubkey
amount
T
open
&PedersenOpening