Documentation ¶
Index ¶
- Variables
- func RlpHash(x interface{}) (h common.Hash)
- type CryptoHandler
- func (chandler *CryptoHandler) IsSignedByNodeID(data interface{}, sig []byte, nodeID discover.NodeID) bool
- func (chandler *CryptoHandler) MustSign(data interface{}) []byte
- func (chandler *CryptoHandler) SetPrivateKey(privateKey *ecdsa.PrivateKey)
- func (chandler *CryptoHandler) Sign(data interface{}) ([]byte, error)
- 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(currentBlockNumber *big.Int, parentHash common.Hash, hash common.Hash, ...) error
- func (vh *VrfHandler) VerifyVrf(pk *ecdsa.PublicKey, currentBlockNumber *big.Int, parentBlockHash common.Hash, ...) error
Constants ¶
This section is empty.
Variables ¶
Functions ¶
Types ¶
type CryptoHandler ¶
type CryptoHandler struct {
// contains filtered or unexported fields
}
func GetCryptoHandler ¶
func GetCryptoHandler() *CryptoHandler
func (*CryptoHandler) IsSignedByNodeID ¶
func (chandler *CryptoHandler) IsSignedByNodeID(data interface{}, sig []byte, nodeID discover.NodeID) bool
func (*CryptoHandler) MustSign ¶
func (chandler *CryptoHandler) MustSign(data interface{}) []byte
func (*CryptoHandler) SetPrivateKey ¶
func (chandler *CryptoHandler) SetPrivateKey(privateKey *ecdsa.PrivateKey)
func (*CryptoHandler) Sign ¶
func (chandler *CryptoHandler) Sign(data interface{}) ([]byte, error)
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.