Crate bitcoin_scriptpubkeyman
source ·Structs
- | Wraps a LegacyScriptPubKeyMan so that | it can be returned in a new unique_ptr. | Does not provide privkeys |
- | A class implementing ScriptPubKeyMan | manages some (or all) scriptPubKeys | used in a wallet. | | It contains the scripts and keys related | to the scriptPubKeys it manages. | | A ScriptPubKeyMan will be able to give | out scriptPubKeys to be used, as well | as marking when a scriptPubKey has been | used. It also handles when and how to | store a scriptPubKey and its related | scripts and keys, including encryption. |
Enums
- | This is an internal representation | of isminetype + invalidity. | | Its order is significant, as we return | the max of all explored possibilities. |
- | This is an enum that tracks the execution | context of a script, similar to | | SigVersion in script/interpreter. | It is separate however because we want | to distinguish between top-level scriptPubKey | execution and P2SH redeemScript execution | (a distinction that has no impact on | consensus rules). |
Constants
- | Value for the first BIP 32 hardened derivation. | Can be used as a bit mask and as a value. | See BIP 32 for more details. |
Traits
Functions
- | Recursively solve script and return | spendable/watchonly/invalid status. | | ———– | @param keystore | | legacy key and script store | ––––– | @param scriptPubKey | | script to solve | ––––– | @param sigversion | | script type (top-level / redeemscript | / witnessscript) | ––––– | @param recurse_scripthash | | whether to recurse into nested p2sh | and p2wsh scripts or simply treat any | script that has been stored in the keystore | as spendable |
Type Definitions
- | Map of pubkeys involved in scripts to | descriptor range index |
- | Map of scripts to descriptor range index |