Documentation
¶
Index ¶
- Constants
- Variables
- func PrivKeyToWif() error
- type CfgDB
- type EncDB
- type KeysDB
- func (k *KeysDB) GetAll() ([]wallet.KeyPath, error)
- func (k *KeysDB) GetDbg() string
- 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) MarkKeyAsUsed(scriptAddress []byte) error
- func (k *KeysDB) Put(scriptAddress []byte, keyPath wallet.KeyPath) error
- type SQLiteDatastore
- func (db *SQLiteDatastore) Cfg() wallet.Cfg
- func (db *SQLiteDatastore) Enc() wallet.Enc
- func (db *SQLiteDatastore) Keys() wallet.Keys
- func (db *SQLiteDatastore) Stxos() wallet.Stxos
- func (db *SQLiteDatastore) Subscriptions() wallet.Subscriptions
- func (db *SQLiteDatastore) Txns() wallet.Txns
- func (db *SQLiteDatastore) Utxos() wallet.Utxos
- type StxoDB
- type SubscriptionsDB
- func (s *SubscriptionsDB) Delete(scriptPubKey string) error
- func (s *SubscriptionsDB) Get(scriptPubKey string) (*wallet.Subscription, error)
- func (s *SubscriptionsDB) GetAll() ([]*wallet.Subscription, error)
- func (s *SubscriptionsDB) GetElectrumScripthash(electrumScripthash string) (*wallet.Subscription, error)
- func (s *SubscriptionsDB) Put(subscription *wallet.Subscription) error
- type TxnsDB
- func (t *TxnsDB) Delete(txid string) error
- func (t *TxnsDB) Get(txid string) (wallet.Txn, error)
- func (t *TxnsDB) GetAll(includeWatchOnly bool) ([]wallet.Txn, error)
- func (t *TxnsDB) Put(txn []byte, txid string, value int64, height int64, timestamp time.Time, ...) error
- func (t *TxnsDB) UpdateHeight(txid string, height int, timestamp time.Time) error
- type UtxoDB
Constants ¶
View Source
const STORAGE = "storage"
Variables ¶
Functions ¶
func PrivKeyToWif ¶
func PrivKeyToWif() error
Types ¶
type KeysDB ¶
type KeysDB struct {
// contains filtered or unexported fields
}
func (*KeysDB) GetDbg ¶
TODO: Implement dbg keys from bbolt keys For now the `sqlite3` tool gives us this
func (*KeysDB) GetLastKeyIndex ¶
func (*KeysDB) GetLookaheadWindows ¶
func (k *KeysDB) GetLookaheadWindows() map[wallet.KeyPurpose]int
func (*KeysDB) GetPathForKey ¶
func (*KeysDB) MarkKeyAsUsed ¶
type SQLiteDatastore ¶
type SQLiteDatastore struct {
// contains filtered or unexported fields
}
This database is an SqLite3 implementation of Datastore. A different database could be plugged in .. bbolt maybe
func Create ¶
func Create(repoPath string) (*SQLiteDatastore, error)
func (*SQLiteDatastore) Cfg ¶
func (db *SQLiteDatastore) Cfg() wallet.Cfg
func (*SQLiteDatastore) Enc ¶
func (db *SQLiteDatastore) Enc() wallet.Enc
func (*SQLiteDatastore) Keys ¶
func (db *SQLiteDatastore) Keys() wallet.Keys
func (*SQLiteDatastore) Stxos ¶
func (db *SQLiteDatastore) Stxos() wallet.Stxos
func (*SQLiteDatastore) Subscriptions ¶
func (db *SQLiteDatastore) Subscriptions() wallet.Subscriptions
func (*SQLiteDatastore) Txns ¶
func (db *SQLiteDatastore) Txns() wallet.Txns
func (*SQLiteDatastore) Utxos ¶
func (db *SQLiteDatastore) Utxos() wallet.Utxos
type SubscriptionsDB ¶
type SubscriptionsDB struct {
// contains filtered or unexported fields
}
func (*SubscriptionsDB) Delete ¶
func (s *SubscriptionsDB) Delete(scriptPubKey string) error
func (*SubscriptionsDB) Get ¶
func (s *SubscriptionsDB) Get(scriptPubKey string) (*wallet.Subscription, error)
func (*SubscriptionsDB) GetAll ¶
func (s *SubscriptionsDB) GetAll() ([]*wallet.Subscription, error)
func (*SubscriptionsDB) GetElectrumScripthash ¶
func (s *SubscriptionsDB) GetElectrumScripthash(electrumScripthash string) (*wallet.Subscription, error)
func (*SubscriptionsDB) Put ¶
func (s *SubscriptionsDB) Put(subscription *wallet.Subscription) error
Click to show internal directories.
Click to hide internal directories.