Versions in this module Expand all Collapse all v1 v1.0.1 Dec 19, 2021 Changes in this version + type KeysDB struct + func (k *KeysDB) GetAll() ([]wallet.KeyPath, error) + func (k *KeysDB) GetImported() ([]*btcec.PrivateKey, error) + func (k *KeysDB) GetKey(scriptAddress []byte) (*btcec.PrivateKey, error) + func (k *KeysDB) GetLastKeyIndex(purpose wallet.KeyPurpose) (int, bool, error) + func (k *KeysDB) GetLookaheadWindows() map[wallet.KeyPurpose]int + func (k *KeysDB) GetPathForKey(scriptAddress []byte) (wallet.KeyPath, error) + func (k *KeysDB) GetUnused(purpose wallet.KeyPurpose) ([]int, error) + func (k *KeysDB) ImportKey(scriptAddress []byte, key *btcec.PrivateKey) error + func (k *KeysDB) MarkKeyAsUsed(scriptAddress []byte) error + func (k *KeysDB) Put(scriptAddress []byte, keyPath wallet.KeyPath) error + type SQLiteDatastore struct + func Create(repoPath string) (*SQLiteDatastore, error) + func (db *SQLiteDatastore) Keys() wallet.Keys + func (db *SQLiteDatastore) Stxos() wallet.Stxos + func (db *SQLiteDatastore) Txns() wallet.Txns + func (db *SQLiteDatastore) Utxos() wallet.Utxos + func (db *SQLiteDatastore) WatchedScripts() wallet.WatchedScripts + func (s *SQLiteDatastore) GetCreationDate() (time.Time, error) + func (s *SQLiteDatastore) GetMnemonic() (string, error) + func (s *SQLiteDatastore) SetCreationDate(creationDate time.Time) error + func (s *SQLiteDatastore) SetMnemonic(mnemonic string) error + type StxoDB struct + func (s *StxoDB) Delete(stxo wallet.Stxo) error + func (s *StxoDB) GetAll() ([]wallet.Stxo, error) + func (s *StxoDB) Put(stxo wallet.Stxo) error + type TxnsDB struct + func (t *TxnsDB) Delete(txid *chainhash.Hash) error + func (t *TxnsDB) Get(txid chainhash.Hash) (wallet.Txn, error) + func (t *TxnsDB) GetAll(includeWatchOnly bool) ([]wallet.Txn, error) + func (t *TxnsDB) Put(txn []byte, txid string, value, height int, timestamp time.Time, ...) error + func (t *TxnsDB) UpdateHeight(txid chainhash.Hash, height int, timestamp time.Time) error + type UtxoDB struct + func (u *UtxoDB) Delete(utxo wallet.Utxo) error + func (u *UtxoDB) GetAll() ([]wallet.Utxo, error) + func (u *UtxoDB) Put(utxo wallet.Utxo) error + func (u *UtxoDB) SetWatchOnly(utxo wallet.Utxo) error + type WatchedScriptsDB struct + func (w *WatchedScriptsDB) Delete(scriptPubKey []byte) error + func (w *WatchedScriptsDB) GetAll() ([][]byte, error) + func (w *WatchedScriptsDB) Put(scriptPubKey []byte) error + func (w *WatchedScriptsDB) PutAll(scripts [][]byte) error