Versions in this module Expand all Collapse all v0 v0.0.8 Apr 4, 2019 Changes in this version + const Filename + var ErrAddressNotFound = errors.New("address not found") + var ErrAlreadyEncrypted = errors.New("private key is already encrypted") + var ErrChecksumMismatch = errors.New("checksum mismatch") + var ErrDuplicate = errors.New("duplicate key or address") + var ErrLocked = errors.New("keystore is locked") + var ErrMalformedEntry = errors.New("malformed entry") + var ErrWatchingOnly = errors.New("keystore is watching-only") + var ErrWrongPassphrase = errors.New("wrong passphrase") + var Vers20LastBlocks = version + var VersArmory = version + var VersCurrent = VersUnsetNeedsPrivkeyFlag + var VersUnsetNeedsPrivkeyFlag = version + type BlockIterator struct + func (it *BlockIterator) BlockStamp() BlockStamp + func (it *BlockIterator) Next() bool + func (it *BlockIterator) Prev() bool + type BlockStamp struct + Hash *chainhash.Hash + Height int32 + type FullSync struct + func (f FullSync) ImplementsSyncStatus() + type PartialSync int32 + func (p PartialSync) ImplementsSyncStatus() + type PubKeyAddress interface + ExportPrivKey func() (*acmutil.WIF, error) + ExportPubKey func() string + PrivKey func() (*btcec.PrivateKey, error) + PubKey func() *btcec.PublicKey + type ScriptAddress interface + Addresses func() []acmutil.Address + RequiredSigs func() int + Script func() []byte + ScriptClass func() txscript.ScriptClass + type Store struct + func New(dir string, desc string, passphrase []byte, net *chaincfg.Params, ...) (*Store, error) + func OpenDir(dir string) (*Store, error) + func (s *Store) ActiveAddresses() map[acmutil.Address]WalletAddress + func (s *Store) Address(a acmutil.Address) (WalletAddress, error) + func (s *Store) ChangeAddress(bs *BlockStamp) (acmutil.Address, error) + func (s *Store) ChangePassphrase(new []byte) error + func (s *Store) CreateDate() int64 + func (s *Store) ExportWatchingWallet() (*Store, error) + func (s *Store) ExtendActiveAddresses(n int) ([]acmutil.Address, error) + func (s *Store) ImportPrivateKey(wif *acmutil.WIF, bs *BlockStamp) (acmutil.Address, error) + func (s *Store) ImportScript(script []byte, bs *BlockStamp) (acmutil.Address, error) + func (s *Store) IsLocked() bool + func (s *Store) LastChainedAddress() acmutil.Address + func (s *Store) Lock() (err error) + func (s *Store) MarkDirty() + func (s *Store) Net() *chaincfg.Params + func (s *Store) NewIterateRecentBlocks() *BlockIterator + func (s *Store) NextChainedAddress(bs *BlockStamp) (acmutil.Address, error) + func (s *Store) ReadFrom(r io.Reader) (n int64, err error) + func (s *Store) SetSyncStatus(a acmutil.Address, ss SyncStatus) error + func (s *Store) SetSyncedWith(bs *BlockStamp) + func (s *Store) SortedActiveAddresses() []WalletAddress + func (s *Store) SyncedTo() (hash *chainhash.Hash, height int32) + func (s *Store) Unlock(passphrase []byte) error + func (s *Store) WriteIfDirty() error + func (s *Store) WriteTo(w io.Writer) (n int64, err error) + type SyncStatus interface + ImplementsSyncStatus func() + type Unsynced int32 + func (u Unsynced) ImplementsSyncStatus() + type WalletAddress interface + AddrHash func() string + Address func() acmutil.Address + Change func() bool + Compressed func() bool + FirstBlock func() int32 + Imported func() bool + SyncStatus func() SyncStatus