Skip to content

nadeemb53/trustless-rng-sol

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Trustless Random Number Generation

This repository contains the Solidity contracts for a decentralized protocol for generating verifiably random numbers. This is intended for use in multiplayer games that require a fair and secure method of generating random numbers.

Contracts

  • DKG.sol: Contains the contract for the Distributed Key Generation (DKG) process

  • ElGamal.sol: Contains the contract for the ElGamal encryption process

Run Test Simulation

forge install
forge test -vvvvv

Deploy your own set of contracts

npx thirdweb
npx thirdweb build
npx thirdweb deploy

Deployed contracts on Polygon Testnet (Mumbai)

Simulation Results

Simulation results

About

Verifiable Random Functions

Resources

License

Stars

Watchers

Forks