Documentation ¶
Index ¶
- func DeleteMnemonics()
- func GenerateMnemonics() string
- func ImportWalletByMnemonics(mnemonics string) string
- type KeyStore
- func (ks *KeyStore) DeleteKeystoreByAddress(address, password string) error
- func (ks *KeyStore) ExportKeystore(address, password string) (string, error)
- func (ks *KeyStore) ExportPrivateKeyByKeystore(address, password string) (string, error)
- func (ks *KeyStore) ExportPrivateKeyByMnemonics()
- func (ks *KeyStore) ExportkeystoreByMnemonics()
- func (ks *KeyStore) ImportKeystore(password string, keyjson string) (error, string)
- func (ks *KeyStore) ImportPrivateKey(password, privateKey string) (error, string)
- func (ks *KeyStore) UpdateKeystorePassword(address, oldpass, newpass string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateMnemonics ¶
func GenerateMnemonics() string
Generate Mnemonics string, saprated by space, default language is EN(english)
func ImportWalletByMnemonics ¶
Import Wallet By Mnemonics return newaddress
Types ¶
type KeyStore ¶
type KeyStore struct {
// contains filtered or unexported fields
}
KeyStore manages a key storage directory on disk.
func NewKeyStore ¶
NewKeyStore creates a keystore for the given directory.
func (*KeyStore) DeleteKeystoreByAddress ¶
Delete Keystore By Address
func (*KeyStore) ExportKeystore ¶
Export keystore by keystore
func (*KeyStore) ExportPrivateKeyByKeystore ¶
Export PrivateKey by keystore
func (*KeyStore) ExportPrivateKeyByMnemonics ¶
func (ks *KeyStore) ExportPrivateKeyByMnemonics()
Export PrivateKey by Mnemonics
func (*KeyStore) ExportkeystoreByMnemonics ¶
func (ks *KeyStore) ExportkeystoreByMnemonics()
Export keystore by Mnemonics
func (*KeyStore) ImportKeystore ¶
Import Wallet By Keystore //wjq 增加去重判断:keystore.Find()
func (*KeyStore) ImportPrivateKey ¶
Import PrivateKey, Save as keystore
func (*KeyStore) UpdateKeystorePassword ¶
Update Keystore password
Click to show internal directories.
Click to hide internal directories.