Verifiable random function explained

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), can check that this value was indeed calculated correctly, yet this information cannot be used to find the secret key.[1]

A verifiable random function can be viewed as a public-key analogue of a keyed cryptographic hash and as a cryptographic commitment to an exponentially large number of seemingly random bits. 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.[2]

The concept of a VRF was introduced by Micali, Rabin, and Vadhan in 1999.[3] 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. 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. 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

(m,r,Q,coins)

, where m is the product of two random primes, r is a number randomly selected from
*
Z
m
, coins is a randomly selected set of bits, and Q a function selected randomly from all polynomials of degree

2k2-1

over the field

GF(2k)

. The secret key is

(PK,\phi(m))

. Given an input x and a secret key SK, the VUF uses the prime sequence generator to pick a corresponding prime

px

(the generator requires auxiliary inputs Q and coins), and then computes and outputs
1/px
r

\pmod{m}

, which is easily done by knowledge of

\phi(m)

.

In 2005, an efficient and practical verifiable random function was proposed by Dodis and Yampolskiy.[4] [5] When the input

x

is from a small domain (the authors then extend it to a larger domain), the function can be defined as follows:

FSK(x)=e(g,g)1/(x+SK)andpSK(x)=g1/(x+SK),

where e(·,·) is a bilinear map. To verify whether

FSK(x)

was computed correctly or not, one can checkif

e(gxPK,pSK(x))=e(g,g)

and

e(g,pSK(x))=FSK(x)

. To extend this to a larger domain, the authors use a tree construction and a universal hash function. This is secure if it is hard to break the "q-Diffie-Helman inversion assumption", which states that no algorithm given

(g,gx,...,

xq
g

)

can compute

g1/x

, and the "q-decisional bilinear Diffie-Helman inversion assumption", which states that it is impossible for an efficient algorithm given

(g,gx,\ldots,

(xq)
g

,R)

as input to distinguish

R=e(g,g)1/x

from random, in the group

G

.

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.[6] This is the first such VRF constructed that does not depend on a "Q-type complexity assumption".

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[7]), 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[8]) also do.[9]

When an Oblivious Pseudorandom Function is based on asymmetric cryptography, possession of the public key can allow the client to verify the output of the function, by checking a digital signature or a zero-knowledge proof.

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] VRFs can be used for defense against offline enumeration attacks (such as dictionary attacks) on data stored in hash-based data structures.

In protocol design

VRFs have been used to make:

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]

References

  1. Goldberg. Sharon. Vcelak. Jan. Papadopoulos. Dimitrios. Reyzin. Leonid. 5 March 2018. Verifiable Random Functions (VRFs). en. 15 August 2021.
  2. Micali. Silvio. Silvio Micali. Rabin. Michael O.. Michael Rabin. Vadhan. Salil P.. Salil Vadhan. 1999. Verifiable random functions. 40th Annual Symposium on Foundations of Computer Science. 120–130. 10.1109/SFFCS.1999.814584. 0-7695-0409-4. Proceedings of the 40th IEEE Symposium on Foundations of Computer Science.
  3. Web site: Potter. John. 9 September 2021. How Can Value Investors Profit in the Crypto Ecosystem?. 19 September 2021. finance.yahoo.com. en-US.
  4. Dodis. Yevgeniy. Yampolskiy. Aleksandr. Aleksandr Yampolskiy. 16 November 2004. A Verifiable Random Function With Short Proofs and Keys. International Workshop on Public Key Cryptography. Springer, Berlin, Heidelberg. 2005. 416–431. 978-3-540-30580-4. 26 August 2021. 8th International Workshop on Theory and Practice in Public Key Cryptography.
  5. Nountu. Thierry Mefenza. Pseudo-Random Generators and Pseudo-Random Functions: Cryptanalysis and Complexity Measures. 28 November 2017. Thèse de doctorat.
  6. Hofheinz. Dennis. Jager. Tibor. 30 October 2015. Verifiable Random Functions from Standard Assumptions. Theory of Cryptography Conference. 19 December 2015. 336–362. 10.1007/978-3-662-49096-9_14. 10.1.1.738.9975 . 978-3-662-49096-9.
  7. Barak. Boaz. Ong. Shien Jin. Vadhan. Salil. 2007-01-01. Derandomization in Cryptography. SIAM Journal on Computing. 37. 2. 380–400. 10.1137/050641958. 0097-5397. 2 September 2021.
  8. Book: Boneh. Dan. Waters. Brent. Advances in Cryptology - ASIACRYPT 2013 . Constrained Pseudorandom Functions and Their Applications . 2013. Sako. Kazue. Sarkar. Palash. https://eprint.iacr.org/2013/352. Lecture Notes in Computer Science. 8270 . en. Berlin, Heidelberg. Springer. 280–300. 10.1007/978-3-642-42045-0_15. 978-3-642-42045-0. 2 September 2021. free.
  9. Bitansky. Nir. 2020-04-01. Verifiable Random Functions from Non-interactive Witness-Indistinguishable Proofs. Journal of Cryptology. en. 33. 2. 459–493. 10.1007/s00145-019-09331-1. 253636177 . 1432-1378.
  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. 26 August 2021.
  11. Web site: Schorn. Eric. 2020-02-24. Reviewing Verifiable Random Functions. 2021-09-04. NCC Group Research. en-US.
  12. Book: Micali. Silvio. Reyzin. Leonid. Advances in Cryptology — CRYPTO 2001 . Soundness in the Public-Key Model . 2001. Kilian. Joe. Lecture Notes in Computer Science. 2139 . en. Berlin, Heidelberg. Springer. 542–565. 10.1007/3-540-44647-8_32. 978-3-540-44647-7. free.
  13. Book: Dodis, Yevgeniy. Public Key Cryptography — PKC 2003 . Efficient Construction of (Distributed) Verifiable Random Functions . 2002. Desmedt. Yvo G.. Lecture Notes in Computer Science. 2567 . en. Berlin, Heidelberg. Springer. 1–17. 10.1007/3-540-36288-6_1. 978-3-540-36288-3. free.
  14. Web site: Goldberg. Sharon. NSEC5: Provably Preventing DNSSEC Zone Enumeration. 2021-08-26. www.cs.bu.edu.