Skip to content

Commit

Permalink
zk-token-sdk: Fix incorrect mention of OsRng in docs (solana-labs#33774)
Browse files Browse the repository at this point in the history
Co-authored-by: Richard Patel <[email protected]>
  • Loading branch information
ripatel-fd and riptl authored Oct 19, 2023
1 parent ce8ad77 commit fb80288
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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<T: Into<Scalar>>(
(destination_pubkey, auditor_pubkey): (&ElGamalPubkey, &ElGamalPubkey),
(amount_lo, amount_hi): (T, T),
Expand All @@ -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),
Expand Down

0 comments on commit fb80288

Please sign in to comment.