Documentation ¶
Overview ¶
common package provides utility functions to generate random keys and random directory
Source Files ¶
Each file contains following contents
- utils.go : Provides utility functions to generate a random directory and random keys
Index ¶
- func GenerateKeys(num int) (keys []*ecdsa.PrivateKey, nodekeys []string, addrs []common.Address)
- func GenerateKeysFromMnemonic(num int, mnemonic, path string) (keys []*ecdsa.PrivateKey, nodekeys []string, addrs []common.Address)
- func GenerateKip113Init(privKeys []*ecdsa.PrivateKey, owner common.Address) system.AllocKip113Init
- func GenerateRandomDir() (string, error)
- func LoadNodekey(dir string) (keys []*ecdsa.PrivateKey, nodekeys []string, addrs []common.Address)
- func RandomBytes(len int) ([]byte, error)
- func RandomHex() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateKeys ¶
func GenerateKip113Init ¶
func GenerateKip113Init(privKeys []*ecdsa.PrivateKey, owner common.Address) system.AllocKip113Init
func GenerateRandomDir ¶
func LoadNodekey ¶
func RandomBytes ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.