Bitcoin Core
32.1.0
P2P Digital Currency
Toggle main menu visibility
Loading...
Searching...
No Matches
src
common
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
18
namespace
common
{
19
enum class
PSBTError
{
20
MISSING_INPUTS
,
21
SIGHASH_MISMATCH
,
22
EXTERNAL_SIGNER_NOT_FOUND
,
23
EXTERNAL_SIGNER_FAILED
,
24
UNSUPPORTED
,
25
INCOMPLETE
,
26
INVALID_TX
,
27
};
28
31
struct
PSBTFillOptions
{
35
bool
sign
{
true
};
36
40
std::optional<int>
sighash_type
{std::nullopt};
41
45
bool
finalize
{
true
};
46
50
bool
bip32_derivs
{
true
};
51
};
52
53
}
// namespace common
54
55
#endif
// BITCOIN_COMMON_TYPES_H
common
Definition
init.cpp:17
common::PSBTError
PSBTError
Definition
types.h:19
common::PSBTError::MISSING_INPUTS
@ MISSING_INPUTS
Definition
types.h:20
common::PSBTError::INCOMPLETE
@ INCOMPLETE
Definition
types.h:25
common::PSBTError::UNSUPPORTED
@ UNSUPPORTED
Definition
types.h:24
common::PSBTError::INVALID_TX
@ INVALID_TX
Definition
types.h:26
common::PSBTError::EXTERNAL_SIGNER_FAILED
@ EXTERNAL_SIGNER_FAILED
Definition
types.h:23
common::PSBTError::EXTERNAL_SIGNER_NOT_FOUND
@ EXTERNAL_SIGNER_NOT_FOUND
Definition
types.h:22
common::PSBTError::SIGHASH_MISMATCH
@ SIGHASH_MISMATCH
Definition
types.h:21
common::PSBTFillOptions
Instructions for how a PSBT should be signed or filled with information.
Definition
types.h:31
common::PSBTFillOptions::sighash_type
std::optional< int > sighash_type
The sighash type to use when signing (if PSBT does not specify).
Definition
types.h:40
common::PSBTFillOptions::bip32_derivs
bool bip32_derivs
Whether to fill in bip32 derivation information if available.
Definition
types.h:50
common::PSBTFillOptions::finalize
bool finalize
Whether to create the final scriptSig or scriptWitness if possible.
Definition
types.h:45
common::PSBTFillOptions::sign
bool sign
Whether to sign or not.
Definition
types.h:35
Generated on
for Bitcoin Core by
1.18.0