Documentation
¶
Index ¶
- func GetAddressByPubkey(pubKey []byte) common.Address
- func GetCoreNodeIndex(address *common.Address) int
- func GetCoreNodeIndexByPubkey(pubKey []byte) int
- func GetCoreNodesCount() int
- func GetPrivKey() ecdsa.PrivateKey
- func GetPubkeyByAddress(address *common.Address) []byte
- func GetSlot(firstAddress, nextAddress *common.Address) int
- func SetDataDir(path string)
- func SetPrivKey(key *ecdsa.PrivateKey)
- type AddrNodeIDMapping
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AddrNodeIDMapping ¶
func GetAllSortedCoreNodes ¶
func GetAllSortedCoreNodes() []AddrNodeIDMapping
Get all sorted nodes that who can produce blocks
Click to show internal directories.
Click to hide internal directories.