Documentation ¶
Index ¶
- func ReadAllAccount(dir string) ([]string, error)
- type Key
- func GenerateKeyJson(net string, dir string, private *secp256k1.PrivateKey, mnemonicStr string, ...) (*Key, error)
- func PrivateToJson(net string, priv *secp256k1.PrivateKey, mnemonicStr string, passWd []byte) (*Key, error)
- func ReadAddressJson(dir, addr string) (*Key, error)
- func ReadJson(jsonFile string) (*Key, error)
- type Private
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReadAllAccount ¶
Types ¶
type Key ¶
type Key struct { Address string `json:"address"` Crypto *crypto `json:"crypto"` P2pId string `json:"p2pid"` }
func GenerateKeyJson ¶
func PrivateToJson ¶
func ReadAddressJson ¶
Click to show internal directories.
Click to hide internal directories.