Documentation ¶
Index ¶
- type KeysDB
- func (k *KeysDB) GetAll() ([]spvwallet.KeyPath, error)
- func (k *KeysDB) GetLastKeyIndex(purpose spvwallet.KeyPurpose) (int, bool, error)
- func (k *KeysDB) GetLookaheadWindows() map[spvwallet.KeyPurpose]int
- func (k *KeysDB) GetPathForScript(scriptPubKey []byte) (spvwallet.KeyPath, error)
- func (k *KeysDB) GetUnused(purpose spvwallet.KeyPurpose) (int, error)
- func (k *KeysDB) MarkKeyAsUsed(scriptPubKey []byte) error
- func (k *KeysDB) Put(scriptPubKey []byte, keyPath spvwallet.KeyPath) error
- type SQLiteDatastore
- type StateDB
- type StxoDB
- type TxnsDB
- type UtxoDB
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) GetLastKeyIndex ¶
func (*KeysDB) GetLookaheadWindows ¶
func (k *KeysDB) GetLookaheadWindows() map[spvwallet.KeyPurpose]int
func (*KeysDB) GetPathForScript ¶
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) Keys ¶
func (db *SQLiteDatastore) Keys() spvwallet.Keys
func (*SQLiteDatastore) State ¶
func (db *SQLiteDatastore) State() spvwallet.State
func (*SQLiteDatastore) Stxos ¶
func (db *SQLiteDatastore) Stxos() spvwallet.Stxos
func (*SQLiteDatastore) Txns ¶
func (db *SQLiteDatastore) Txns() spvwallet.Txns
func (*SQLiteDatastore) Utxos ¶
func (db *SQLiteDatastore) Utxos() spvwallet.Utxos
Click to show internal directories.
Click to hide internal directories.