Documentation ¶
Index ¶
- func BlockRandomness(vmRunner vm.EVMRunner, blockNumber uint64) (common.Hash, error)
- func ComputeCommitment(vmRunner vm.EVMRunner, randomness common.Hash) (common.Hash, error)
- func GetLastCommitment(vmRunner vm.EVMRunner, validator common.Address) (common.Hash, error)
- func IsRunning(vmRunner vm.EVMRunner) bool
- func Random(vmRunner vm.EVMRunner) (common.Hash, error)
- func RevealAndCommit(vmRunner vm.EVMRunner, randomness, newCommitment common.Hash, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BlockRandomness ¶
func ComputeCommitment ¶
ComputeCommitment calulcates the commitment for a given randomness.
func GetLastCommitment ¶
GetLastCommitment returns up the last commitment in the smart contract
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.