Documentation ¶
Index ¶
- Variables
- type VrfHandler
- func (vh *VrfHandler) GenerateNonce(currentBlockNumber *big.Int, parentHash common.Hash) ([]byte, error)
- func (vh *VrfHandler) Load(hash common.Hash) ([][]byte, error)
- func (vh *VrfHandler) SetPrivateKey(privateKey *ecdsa.PrivateKey)
- func (vh *VrfHandler) Storage(blockNumber *big.Int, parentHash common.Hash, blockHash common.Hash, ...) error
- func (vh *VrfHandler) VerifyVrf(pk *ecdsa.PublicKey, currentBlockNumber *big.Int, parentBlockHash common.Hash, ...) error
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type VrfHandler ¶
type VrfHandler struct {
// contains filtered or unexported fields
}
func GetVrfHandlerInstance ¶
func GetVrfHandlerInstance() *VrfHandler
func NewVrfHandler ¶
func NewVrfHandler(genesisNonce []byte) *VrfHandler
func (*VrfHandler) GenerateNonce ¶
func (*VrfHandler) SetPrivateKey ¶
func (vh *VrfHandler) SetPrivateKey(privateKey *ecdsa.PrivateKey)
Click to show internal directories.
Click to hide internal directories.