Versions in this module Expand all Collapse all v1 v1.0.1 Dec 31, 2020 v1.0.0 Dec 24, 2020 Changes in this version + const PaymentAddressType + const PriKeyType + const ReadonlyKeyType + func CreateImportMasterAccount(mnemonic, passPhrase string) (*Wallet, *KeySerializedData, error) + func NewWordList(language string) []string + type AccountWallet struct + Child []AccountWallet + IsImported bool + Key KeyWallet + Name string + func CreateNewAccount() (*AccountWallet, error) + func CreateNewAccountByShardId(shardId int) (*AccountWallet, error) + func ImportAccount(privateKeyStr string, accountName string) (*AccountWallet, error) + type KeySerializedData struct + PaymentAddress string + PrivateKey string + Pubkey string + ReadonlyKey string + ShardId int + ValidatorKey string + type KeyWallet struct + ChainCode []byte + ChildNumber []byte + Depth byte + KeySet incognitokey.KeySet + func Base58CheckDeserialize(data string) (*KeyWallet, error) + func NewMasterKey(seed []byte) (*KeyWallet, error) + func (key *KeyWallet) Base58CheckSerialize(keyType byte) string + func (key *KeyWallet) NewChildKey(childIdx uint32) (*KeyWallet, error) + func (key *KeyWallet) Serialize(keyType byte) ([]byte, error) + type MnemonicGenerator struct + func (mnemonicGen *MnemonicGenerator) NewSeed(mnemonic string, password string) []byte + type Wallet struct + Entropy []byte + MasterAccount AccountWallet + Mnemonic string + Name string + PassPhrase string + Seed []byte + func (wallet Wallet) GetConfig() *WalletConfig + type WalletConfig struct + DataDir string + DataFile string + DataPath string + IncrementalFee uint64 + ShardID *byte