Documentation ¶
Index ¶
- type KeysDB
- 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
- func (s *SQLiteDatastore) GetCreationDate() (time.Time, error)
- func (s *SQLiteDatastore) GetMnemonic() (string, error)
- func (db *SQLiteDatastore) Keys() wallet.Keys
- func (s *SQLiteDatastore) SetCreationDate(creationDate time.Time) error
- func (s *SQLiteDatastore) SetMnemonic(mnemonic string) error
- func (db *SQLiteDatastore) Stxos() wallet.Stxos
- func (db *SQLiteDatastore) Txns() wallet.Txns
- func (db *SQLiteDatastore) Utxos() wallet.Utxos
- func (db *SQLiteDatastore) WatchedScripts() wallet.WatchedScripts
- type StxoDB
- type TxnsDB
- func (t *TxnsDB) Delete(txid *chainhash.Hash) error
- func (t *TxnsDB) Get(txid chainhash.Hash) (*wire.MsgTx, wallet.Txn, error)
- func (t *TxnsDB) GetAll(includeWatchOnly bool) ([]wallet.Txn, error)
- func (t *TxnsDB) Put(txn *wire.MsgTx, value, height int, timestamp time.Time, watchOnly bool) error
- func (t *TxnsDB) UpdateHeight(txid chainhash.Hash, height int) error
- type UtxoDB
- type WatchedScriptsDB
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KeysDB ¶
type KeysDB struct {
// contains filtered or unexported fields
}
func (*KeysDB) GetImported ¶
func (k *KeysDB) GetImported() ([]*btcec.PrivateKey, error)
func (*KeysDB) GetLastKeyIndex ¶
func (*KeysDB) GetLookaheadWindows ¶
func (*KeysDB) GetPathForKey ¶
func (*KeysDB) ImportKey ¶
func (k *KeysDB) ImportKey(scriptAddress []byte, key *btcec.PrivateKey) error
func (*KeysDB) MarkKeyAsUsed ¶
type SQLiteDatastore ¶
type SQLiteDatastore struct {
// contains filtered or unexported fields
}
This database is mostly just an example implementation used for testing. End users are free to user their own database.
func Create ¶
func Create(repoPath string) (*SQLiteDatastore, error)
func (*SQLiteDatastore) GetCreationDate ¶
func (s *SQLiteDatastore) GetCreationDate() (time.Time, error)
func (*SQLiteDatastore) GetMnemonic ¶
func (s *SQLiteDatastore) GetMnemonic() (string, error)
func (*SQLiteDatastore) Keys ¶
func (db *SQLiteDatastore) Keys() wallet.Keys
func (*SQLiteDatastore) SetCreationDate ¶
func (s *SQLiteDatastore) SetCreationDate(creationDate time.Time) error
func (*SQLiteDatastore) SetMnemonic ¶
func (s *SQLiteDatastore) SetMnemonic(mnemonic string) error
func (*SQLiteDatastore) Stxos ¶
func (db *SQLiteDatastore) Stxos() wallet.Stxos
func (*SQLiteDatastore) Txns ¶
func (db *SQLiteDatastore) Txns() wallet.Txns
func (*SQLiteDatastore) Utxos ¶
func (db *SQLiteDatastore) Utxos() wallet.Utxos
func (*SQLiteDatastore) WatchedScripts ¶
func (db *SQLiteDatastore) WatchedScripts() wallet.WatchedScripts
type UtxoDB ¶
type UtxoDB struct {
// contains filtered or unexported fields
}
func (*UtxoDB) SetWatchOnly ¶
type WatchedScriptsDB ¶
type WatchedScriptsDB struct {
// contains filtered or unexported fields
}
func (*WatchedScriptsDB) Delete ¶
func (w *WatchedScriptsDB) Delete(scriptPubKey []byte) error
func (*WatchedScriptsDB) GetAll ¶
func (w *WatchedScriptsDB) GetAll() ([][]byte, error)
func (*WatchedScriptsDB) Put ¶
func (w *WatchedScriptsDB) Put(scriptPubKey []byte) error
Click to show internal directories.
Click to hide internal directories.