Expand description
Module for keychain related structures.
A keychain here is a set of application-defined indexes for a miniscript descriptor where we can
derive script pubkeys at a particular derivation index. The application’s index is simply
anything that implements Ord
.
KeychainTxOutIndex
indexes script pubkeys of keychains and scans in relevant outpoints (that
has a txout
containing an indexed script pubkey). Internally, this uses SpkTxOutIndex
, but
also maintains “revealed” and “lookahead” index counts per keychain.
Structs
Balance, differentiated into various categories.
Represents updates to the derivation index of a
KeychainTxOutIndex
.
It maps each keychain K
to its last revealed index.KeychainTxOutIndex
controls how script pubkeys are revealed for multiple keychains, and
indexes [TxOut
]s with them.