Emulating OP_RAND

Posted by AdamISZ

Jul 3, 2026/17:59 UTC

In the email, a complex cryptographic scenario is described involving the computation of secret values and their relationship with discrete logarithms and hash functions. The discussion focuses on how Bob, given ciphertext (ct) and a specific point (T_2), computes (s' G = ct G - T_2). This calculation is part of a cryptographic protocol where nonces are predetermined, allowing for certain calculations to be performed in advance. Specifically, Alice's contribution, denoted as (s_{\text{Alice}} G), is precomputed from various elements including a nonce (R), an aggregated public key (P_{\text{agg}}), and a message (m), combined using a hash function.

The analysis further explores how this setup reveals certain cryptographic properties, such as the inability of discrete logarithm (Dlog) hiding techniques to obscure chosen values within the hash function—highlighted through the equation (H_c = s'{\text{Alice}} G - s{\text{Alice}} G). This revelation underscores the importance of hash functions in maintaining security by masking direct choices in cryptographic computations.

Additionally, the email outlines a potential modification to the cryptographic scheme where the ciphertext (ct) is adjusted to include a hash of a term (t_2), along with a scalar multiplication check that binds (t_2) to the adaptor point (T_2). This adjustment necessitates only one hash evaluation and a scalar multiplication check within a zero-knowledge proof (ZKP), suggesting a more streamlined approach compared to other methods such as Oblivious Pseudo-Random Functions (OPRFs). However, it is noted that this method is suited only for enumerable or communicable sets and might not support a wide range of outcomes like OPRF-based approaches, which potentially require more complex computations within ZKPs. This comparison highlights the trade-offs between different cryptographic techniques in terms of their applicability and computational demands.

Link to Raw Post
Bitcoin Logo

TLDR

Join Our Newsletter

We’ll email you summaries of the latest discussions from high signal bitcoin sources, like bitcoin-dev, lightning-dev, and Delving Bitcoin.

Explore all Products

ChatBTC imageBitcoin searchBitcoin TranscriptsSaving SatoshiDecoding BitcoinWarnet
Built with 🧡 by the Bitcoin Dev Project
View our public visitor count

We'd love to hear your feedback on this project.

Give Feedback