Versions in this module Expand all Collapse all v6 v6.4.0 May 18, 2020 Changes in this version + var PolicyContainer = make(map[string]WalletBizPolicy) + var QueryData = types.NewQueryData("On_") + func CBCDecrypterPrivkey(password []byte, privkey []byte) []byte + func CBCEncrypterPrivkey(password []byte, privkey []byte) []byte + func CalcAccountKey(timestamp string, addr string) []byte + func CalcAddrKey(addr string) []byte + func CalcAirDropIndex() []byte + func CalcEncryptionFlag() []byte + func CalcLabelKey(label string) []byte + func CalcPasswordHash() []byte + func CalcTxKey(key string) []byte + func CalcWalletSeed() []byte + func CalckeyEncryptionCompFlag() []byte + func Init(wallet WalletOperate, sub map[string][]byte) + func RegisterPolicy(key string, policy WalletBizPolicy) + type AddrInfo struct + Addr string + Index uint32 + Pubkey string + type MineStatusReport interface + IsAutoMining func() bool + IsTicketLocked func() bool + type Store struct + func NewStore(db db.DB) *Store + func (store *Store) Close() + func (store *Store) DelAccountByLabel(label string) + func (store *Store) Get(key []byte) ([]byte, error) + func (store *Store) GetAccountByAddr(addr string) (*types.WalletAccountStore, error) + func (store *Store) GetAccountByLabel(label string) (*types.WalletAccountStore, error) + func (store *Store) GetAccountByPrefix(addr string) ([]*types.WalletAccountStore, error) + func (store *Store) GetAccountByte(update bool, addr string, account *types.WalletAccountStore) ([]byte, error) + func (store *Store) GetAirDropIndex() (string, error) + func (store *Store) GetDB() db.DB + func (store *Store) GetEncryptionFlag() int64 + func (store *Store) GetTxDetailByIter(TxList *types.ReqWalletTransactionList) (*types.WalletTxDetails, error) + func (store *Store) GetWalletVersion() int64 + func (store *Store) HasSeed() (bool, error) + func (store *Store) NewBatch(sync bool) db.Batch + func (store *Store) NewListHelper() *db.ListHelper + func (store *Store) Set(key []byte, value []byte) (err error) + func (store *Store) SetAirDropIndex(airDropIndex *AddrInfo) error + func (store *Store) SetEncryptionFlag(batch db.Batch) error + func (store *Store) SetPasswordHash(password string, batch db.Batch) error + func (store *Store) SetWalletAccount(update bool, addr string, account *types.WalletAccountStore) error + func (store *Store) SetWalletAccountInBatch(update bool, addr string, account *types.WalletAccountStore, newbatch db.Batch) error + func (store *Store) SetWalletVersion(ver int64) error + func (store *Store) VerifyPasswordHash(password string) bool + type WalletBizPolicy interface + Call func(funName string, in types.Message) (ret types.Message, err error) + Init func(walletBiz WalletOperate, sub []byte) + OnAddBlockFinish func(block *types.BlockDetail) + OnAddBlockTx func(block *types.BlockDetail, tx *types.Transaction, index int32, dbbatch db.Batch) *types.WalletTxDetail + OnClose func() + OnCreateNewAccount func(acc *types.Account) + OnDeleteBlockFinish func(block *types.BlockDetail) + OnDeleteBlockTx func(block *types.BlockDetail, tx *types.Transaction, index int32, dbbatch db.Batch) *types.WalletTxDetail + OnImportPrivateKey func(acc *types.Account) + OnSetQueueClient func() + OnWalletLocked func() + OnWalletUnlocked func(WalletUnLock *types.WalletUnLock) + SignTransaction func(key crypto.PrivKey, req *types.ReqSignRawTx) (needSysSign bool, signtx string, err error) + type WalletOperate interface + AddrInWallet func(addr string) bool + CheckWalletStatus func() (bool, error) + GetAPI func() client.QueueProtocolAPI + GetAllPrivKeys func() ([]crypto.PrivKey, error) + GetBalance func(addr string, execer string) (*types.Account, error) + GetBlockHeight func() int64 + GetConfig func() *types.Wallet + GetDBStore func() db.DB + GetLastHeader func() *types.Header + GetPassword func() string + GetPrivKeyByAddr func(addr string) (crypto.PrivKey, error) + GetRandom func() *rand.Rand + GetSignType func() int + GetTxDetailByHashs func(ReqHashes *types.ReqHashes) + GetWaitGroup func() *sync.WaitGroup + GetWalletAccounts func() ([]*types.WalletAccountStore, error) + GetWalletDone func() chan struct{} + IsCaughtUp func() bool + IsClose func() bool + IsWalletLocked func() bool + Nonce func() int64 + RegisterMineStatusReporter func(reporter MineStatusReport) error + SendToAddress func(priv crypto.PrivKey, addrto string, amount int64, note string, Istoken bool, ...) (*types.ReplyHash, error) + SendTransaction func(payload types.Message, execer []byte, priv crypto.PrivKey, to string) (hash []byte, err error) + WaitTx func(hash []byte) *types.TransactionDetail + WaitTxs func(hashes [][]byte) (ret []*types.TransactionDetail) Other modules containing this package github.com/33cn/chain33