package
0.0.0-20200312142936-bc2f5d552825
Repository: https://github.com/tmptmptmp53451/celo-blockchain.git
Documentation: pkg.go.dev

# Functions

No description provided by the author
GenerateNewRandomnessAndCommitment generates a new random number and a corresponding commitment.
GetLastRandomness returns up the last randomness we committed to by first looking up our last commitment in the smart contract, and then finding the corresponding preimage in a (commitment => randomness) mapping we keep in the database.
No description provided by the author
Random performs an internal call to the EVM to retrieve the current randomness from the official Random contract.
RevealAndCommit performs an internal call to the EVM that reveals a proposer's previously committed to randomness, and commits new randomness for a future block.