https://github.com/0xProject/VDF
A Solidity implementation of a VDF verifier contract
https://github.com/0xProject/VDF
Last synced: over 1 year ago
JSON representation
A Solidity implementation of a VDF verifier contract
- Host: GitHub
- URL: https://github.com/0xProject/VDF
- Owner: 0xProject
- License: apache-2.0
- Archived: true
- Created: 2020-03-18T15:44:25.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-04-07T11:52:39.000Z (about 3 years ago)
- Last Synced: 2024-10-31T14:36:45.641Z (over 1 year ago)
- Language: Solidity
- Size: 4.88 MB
- Stars: 16
- Watchers: 12
- Forks: 7
- Open Issues: 14
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# VDF
A Solidity implementation of a VDF verifier contract, please note the code has not been audited and the preformance may not be completly optimized.
The verrify proof function checks that given: an input random, y, pi, number of iterations and a potential prime, that (1) the hash of the input random and y matches on all digits of the potential prime except the bottom twelve bits and the top bit and that the potential prime passes a random base miller rabin test and (2) it checks that pi is a valid VDF proof over the inputs.