From fb80288f885a62bcd923f4c9579fd0edeafaff9b Mon Sep 17 00:00:00 2001 From: ripatel-fd Date: Fri, 20 Oct 2023 01:14:01 +0200 Subject: [PATCH] zk-token-sdk: Fix incorrect mention of OsRng in docs (#33774) Co-authored-by: Richard Patel --- .../sigma_proofs/batched_grouped_ciphertext_validity_proof.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zk-token-sdk/src/sigma_proofs/batched_grouped_ciphertext_validity_proof.rs b/zk-token-sdk/src/sigma_proofs/batched_grouped_ciphertext_validity_proof.rs index 7247b3dfb7654b..59b7aceca20978 100644 --- a/zk-token-sdk/src/sigma_proofs/batched_grouped_ciphertext_validity_proof.rs +++ b/zk-token-sdk/src/sigma_proofs/batched_grouped_ciphertext_validity_proof.rs @@ -45,6 +45,8 @@ impl BatchedGroupedCiphertext2HandlesValidityProof { /// /// The function simply batches the input openings and invokes the standard grouped ciphertext /// validity proof constructor. + /// + /// This function is randomized. It uses `OsRng` internally to generate random scalars. pub fn new>( (destination_pubkey, auditor_pubkey): (&ElGamalPubkey, &ElGamalPubkey), (amount_lo, amount_hi): (T, T), @@ -71,8 +73,6 @@ impl BatchedGroupedCiphertext2HandlesValidityProof { /// The function does *not* hash the public keys, commitment, or decryption handles into the /// transcript. For security, the caller (the main protocol) should hash these public /// components prior to invoking this constructor. - /// - /// This function is randomized. It uses `OsRng` internally to generate random scalars. pub fn verify( self, (destination_pubkey, auditor_pubkey): (&ElGamalPubkey, &ElGamalPubkey),