Documentation ¶
Index ¶
- Variables
- func CopyKeystore(dir string, accounts []accounts.Account)
- func GenerateIPs(num int) (ips []string)
- func GenerateKeys(num int) (keys []*ecdsa.PrivateKey, nodekeys []string, addrs []common.Address)
- func GeneratePasswordFile(dir string, filename string, password string)
- func GenerateRandomDir() (string, error)
- func GenerateStaticNodes(nodekeys []string, ipAddrs []string) (filename string)
- func GenerateStaticNodesAt(dir string, nodekeys []string, ipAddrs []string) (filename string)
- func RandomBytes(len int) ([]byte, error)
- func RandomHex() string
- func SaveNodeKey(key *ecdsa.PrivateKey, dataDir string) error
- func SendEther(client client.Client, from *ecdsa.PrivateKey, to common.Address, ...) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( DefaultGasPrice int64 = 0 DefaultGasLimit int64 = 21000 // the gas of ether tx should be 21000 )
Functions ¶
func CopyKeystore ¶
func GenerateIPs ¶
func GenerateKeys ¶
func GeneratePasswordFile ¶
func GenerateRandomDir ¶
func GenerateStaticNodes ¶
func GenerateStaticNodesAt ¶
func RandomBytes ¶
func SaveNodeKey ¶
func SaveNodeKey(key *ecdsa.PrivateKey, dataDir string) error
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.