Bitcoin Core 31.99.0
P2P Digital Currency
types.h
Go to the documentation of this file.
1// Copyright (c) 2010-present The Bitcoin Core developers
2// Distributed under the MIT software license, see the accompanying
3// file COPYING or http://www.opensource.org/licenses/mit-license.php.
4
12
13#ifndef BITCOIN_COMMON_TYPES_H
14#define BITCOIN_COMMON_TYPES_H
15
16#include <optional>
17
18namespace common {
19enum class PSBTError {
27 OK,
28};
36 bool sign{true};
37
41 std::optional<int> sighash_type{std::nullopt};
42
46 bool finalize{true};
47
51 bool bip32_derivs{true};
52};
53
54} // namespace common
55
56#endif // BITCOIN_COMMON_TYPES_H
Definition: init.cpp:17
PSBTError
Definition: types.h:19
@ OK
The message verification was successful.
Instructions for how a PSBT should be signed or filled with information.
Definition: types.h:32
std::optional< int > sighash_type
The sighash type to use when signing (if PSBT does not specify).
Definition: types.h:41
bool bip32_derivs
Whether to fill in bip32 derivation information if available.
Definition: types.h:51
bool finalize
Whether to create the final scriptSig or scriptWitness if possible.
Definition: types.h:46
bool sign
Whether to sign or not.
Definition: types.h:36