Verifiable random function

From HandWiki
Short description: Public-key cryptographic pseudorandom function

In cryptography, a verifiable random function (VRF) is a public-key pseudorandom function that provides proofs that its outputs were calculated correctly. The owner of the secret key can compute the function value as well as an associated proof for any input value. Everyone else, using the proof and the associated public key (or verification key[1]), can check that this value was indeed calculated correctly, yet this information cannot be used to find the secret key.[2]

A verifiable random function can be viewed as a public-key analogue of a keyed cryptographic hash[2] and as a cryptographic commitment to an exponentially large number of seemingly random bits.[3] The concept of a verifiable random function is closely related to that of a verifiable unpredictable function (VUF), whose outputs are hard to predict but do not necessarily seem random.[3][4]

The concept of a VRF was introduced by Micali, Rabin, and Vadhan in 1999.[4][5] Since then, verifiable random functions have found widespread use in cryptocurrencies, as well as in proposals for protocol design and cybersecurity.

Constructions

In 1999, Micali, Rabin, and Vadhan introduced the concept of a VRF and proposed the first such one.[4] The original construction was rather inefficient: it first produces a verifiable unpredictable function, then uses a hard-core bit to transform it into a VRF; moreover, the inputs have to be mapped to primes in a complicated manner: namely, by using a prime sequence generator that generates primes with overwhelming probability using a probabilistic primality test.[3][4] The verifiable unpredictable function thus proposed, which is provably secure if a variant of the RSA problem is hard, is defined as follows: The public key PK is [math]\displaystyle{ (m, r, Q, coins) }[/math], where m is the product of two random primes, r is a number randomly selected from [math]\displaystyle{ \mathbb{Z}_r^* }[/math], coins is a randomly selected set of bits, and Q a function selected randomly from all polynomials of degree [math]\displaystyle{ 2k^2 - 1 }[/math] over the field [math]\displaystyle{ GF(2^k) }[/math]. The secret key is [math]\displaystyle{ (PK, \phi(m)) }[/math]. Given an input x and a secret key SK, the VUF uses the prime sequence generator to pick a corresponding prime [math]\displaystyle{ p_x }[/math] (the generator requires auxiliary inputs Q and coins), and then computes and outputs [math]\displaystyle{ r^{1/p_x} \pmod{m} }[/math], which is easily done by knowledge of [math]\displaystyle{ \phi(m) }[/math].[4]

In 2005, an efficient and practical verifiable random function was proposed by Dodis and Yampolskiy.[3][6] When the input [math]\displaystyle{ x }[/math] is from a small domain (the authors then extend it to a larger domain), the function can be defined as follows:

[math]\displaystyle{ F_{SK}(x) = e(g, g)^{1/(x+SK)} \quad\mbox{and}\quad p_{SK}(x) = g^{1/(x+SK)}, }[/math]

where e(·,·) is a bilinear map. To verify whether [math]\displaystyle{ F_{SK}(x) }[/math] was computed correctly or not, one can check if [math]\displaystyle{ e(g^x PK, p_{SK}(x))=e(g,g) }[/math] and [math]\displaystyle{ e(g, p_{SK}(x))=F_{SK}(x) }[/math].[3][6] To extend this to a larger domain, the authors use a tree construction and a universal hash function.[3] This is secure if it is hard to break the "q-Diffie-Helman inversion assumption", which states that no algorithm given [math]\displaystyle{ (g, g^x, \dots, g^{x^q}) }[/math] can compute [math]\displaystyle{ g^{1/x} }[/math], and the "q-decisional bilinear Diffie-Helman inversion assumption", which states that it is impossible for an efficient algorithm given [math]\displaystyle{ (g, g^{x}, \ldots, g^{(x^q)}, R) }[/math] as input to distinguish [math]\displaystyle{ R=e(g,g)^{1/x} }[/math] from random, in the group [math]\displaystyle{ \mathbb{G} }[/math].[3][6]

In 2015, Hofheinz and Jager constructed a VRF which is provably secure given any member of the "(n − 1)-linear assumption family", which includes the decision linear assumption.[7] This is the first such VRF constructed that does not depend on a "Q-type complexity assumption".[7]

In 2019, Bitansky showed that VRFs exist if non-interactive witness-indistinguishable proofs (that is, weaker versions of non-interactive zero-knowledge proofs for NP problems that only hide the witness that the prover uses[1][8]), non-interactive cryptographic commitments, and single-key constrained pseudorandom functions (that is, pseudorandom functions that only allow the user to evaluate the function with a preset constrained subset of possible inputs[9]) also do.[1]

In 2020, Esgin et al. proposed a post-quantum secure VRF based on lattice-based cryptography.[10]

Uses and applications

VRFs provide deterministic pre-commitments for low entropy inputs which must be resistant to brute-force pre-image attacks.[11][better source needed] VRFs can be used for defense against offline enumeration attacks (such as dictionary attacks) on data stored in hash-based data structures.[2]

In protocol design

VRFs have been used to make:

  • Resettable zero-knowledge proofs (i.e. one that remains zero-knowledge even if a malicious verifier is allowed to reset the honest prover and query it again[12]) with three rounds in the bare model[3][7]
  • Non-interactive lottery systems[3][7]
  • Verifiable transaction escrow schemes[3][7]
  • Updatable zero-knowledge databases[7]
  • E-cash[7]

VRFs can also be used to implement random oracles.[13]

In Internet security

DNSSEC is a system that prevents attackers from tampering with Domain Name System messages, but it also suffers from the vulnerability of zone enumeration. The proposed NSEC5 system, which uses VRFs, provably prevents this type of attack.[14][importance?]

References

  1. 1.0 1.1 1.2 Bitansky, Nir (2020-04-01). "Verifiable Random Functions from Non-interactive Witness-Indistinguishable Proofs" (in en). Journal of Cryptology 33 (2): 459–493. doi:10.1007/s00145-019-09331-1. ISSN 1432-1378. https://doi.org/10.1007/s00145-019-09331-1. 
  2. 2.0 2.1 2.2 Template:Cite tech report
  3. 3.0 3.1 3.2 3.3 3.4 3.5 3.6 3.7 3.8 3.9 Dodis, Yevgeniy; Yampolskiy, Aleksandr (16 November 2004). "A Verifiable Random Function With Short Proofs and Keys". International Workshop on Public Key Cryptography. Springer, Berlin, Heidelberg (published 2005). pp. 416–431. ISBN 978-3-540-30580-4. https://eprint.iacr.org/2004/310.pdf. Retrieved 26 August 2021. 
  4. 4.0 4.1 4.2 4.3 4.4 Micali, Silvio; Rabin, Michael O.; Vadhan, Salil P. (1999). "Verifiable random functions". 40th Annual Symposium on Foundations of Computer Science. pp. 120–130. doi:10.1109/SFFCS.1999.814584. ISBN 0-7695-0409-4. https://dash.harvard.edu/bitstream/handle/1/5028196/Vadhan_VerifRandomFunction.pdf. 
  5. Potter, John (9 September 2021). "How Can Value Investors Profit in the Crypto Ecosystem?" (in en-US). https://finance.yahoo.com/news/value-investors-profit-crypto-ecosystem-121413276.html. 
  6. 6.0 6.1 6.2 Nountu, Thierry Mefenza (28 November 2017). Pseudo-Random Generators and Pseudo-Random Functions: Cryptanalysis and Complexity Measures (Thèse de doctorat thesis).
  7. 7.0 7.1 7.2 7.3 7.4 7.5 7.6 Hofheinz, Dennis; Jager, Tibor (30 October 2015). "Verifiable Random Functions from Standard Assumptions". Theory of Cryptography Conference (published 19 December 2015). pp. 336–362. doi:10.1007/978-3-662-49096-9_14. ISBN 978-3-662-49096-9. http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.738.9975&rep=rep1&type=pdf. 
  8. Barak, Boaz; Ong, Shien Jin; Vadhan, Salil (2007-01-01). "Derandomization in Cryptography". SIAM Journal on Computing 37 (2): 380–400. doi:10.1137/050641958. ISSN 0097-5397. https://dash.harvard.edu/bitstream/handle/1/41467486/86374%2010.1.1.91.2701.pdf. Retrieved 2 September 2021. 
  9. Boneh, Dan; Waters, Brent (2013). "Constrained Pseudorandom Functions and Their Applications". in Sako, Kazue; Sarkar, Palash (in en). Advances in Cryptology - ASIACRYPT 2013. Lecture Notes in Computer Science. 8270. Berlin, Heidelberg: Springer. pp. 280–300. doi:10.1007/978-3-642-42045-0_15. ISBN 978-3-642-42045-0. https://eprint.iacr.org/2013/352. Retrieved 2 September 2021. 
  10. Esgin, Muhammed F.; Kuchta, Veronika; Sakzad, Amin; Steinfeld, Ron; Zhang, Zhenfei; Sun, Shifeng; Chu, Shumo (24 March 2021). "Practical Post-Quantum Few-Time Verifiable Random Function with Applications to Algorand". Cryptology ePrint Archive. https://eprint.iacr.org/2020/1222. Retrieved 26 August 2021. 
  11. Schorn, Eric (2020-02-24). "Reviewing Verifiable Random Functions" (in en-US). https://research.nccgroup.com/2020/02/24/reviewing-verifiable-random-functions/. 
  12. Micali, Silvio; Reyzin, Leonid (2001). "Soundness in the Public-Key Model". in Kilian, Joe (in en). Advances in Cryptology — CRYPTO 2001. Lecture Notes in Computer Science. 2139. Berlin, Heidelberg: Springer. pp. 542–565. doi:10.1007/3-540-44647-8_32. ISBN 978-3-540-44647-7. 
  13. Dodis, Yevgeniy (2002). "Efficient Construction of (Distributed) Verifiable Random Functions". in Desmedt, Yvo G. (in en). Public Key Cryptography — PKC 2003. Lecture Notes in Computer Science. 2567. Berlin, Heidelberg: Springer. pp. 1–17. doi:10.1007/3-540-36288-6_1. ISBN 978-3-540-36288-3. 
  14. Goldberg, Sharon. "NSEC5: Provably Preventing DNSSEC Zone Enumeration". https://www.cs.bu.edu/~goldbe/papers/nsec5.html.