Skip to content

VenturaLM/LotteryVRFv2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LotteryVRFv2

In order to generate a strong random salt in computeWinner(string memory salt), Python secrets library will be used as follow:

import secrets
secrets.token_hex(64)

The secrets.token_hex(n) method return a random text string, in hexadecimal. The string has nbytes random bytes, each byte converted to two hex digits. If nbytes is None or not supplied, a reasonable default is used.

About

Sample of Lottery Dapp using Chainlink's VRFv2.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published