![]() |
Bitcoin Core 31.1.0
P2P Digital Currency
|
#include <outputtype.h>#include <pubkey.h>#include <script/script.h>#include <script/sign.h>#include <script/signingprovider.h>#include <cassert>#include <optional>#include <string>Go to the source code of this file.
Functions | |
| std::optional< OutputType > | ParseOutputType (std::string_view type) |
| const std::string & | FormatOutputType (OutputType type) |
| std::string | FormatAllOutputTypes () |
| CTxDestination | AddAndGetDestinationForScript (FlatSigningProvider &keystore, const CScript &script, OutputType type) |
| Get a destination of the requested type (if possible) to the specified script. | |
| std::optional< OutputType > | OutputTypeFromDestination (const CTxDestination &dest) |
| Get the OutputType for a CTxDestination. | |
Variables | |
| static const std::string | OUTPUT_TYPE_STRING_LEGACY = "legacy" |
| static const std::string | OUTPUT_TYPE_STRING_P2SH_SEGWIT = "p2sh-segwit" |
| static const std::string | OUTPUT_TYPE_STRING_BECH32 = "bech32" |
| static const std::string | OUTPUT_TYPE_STRING_BECH32M = "bech32m" |
| static const std::string | OUTPUT_TYPE_STRING_UNKNOWN = "unknown" |
| CTxDestination AddAndGetDestinationForScript | ( | FlatSigningProvider & | keystore, |
| const CScript & | script, | ||
| OutputType | type ) |
Get a destination of the requested type (if possible) to the specified script.
This function will automatically add the script (and any other necessary scripts) to the keystore.
Definition at line 54 of file outputtype.cpp.
| std::string FormatAllOutputTypes | ( | ) |
Definition at line 49 of file outputtype.cpp.
| const std::string & FormatOutputType | ( | OutputType | type | ) |
Definition at line 37 of file outputtype.cpp.
| std::optional< OutputType > OutputTypeFromDestination | ( | const CTxDestination & | dest | ) |
Get the OutputType for a CTxDestination.
Definition at line 80 of file outputtype.cpp.
| std::optional< OutputType > ParseOutputType | ( | std::string_view | type | ) |
|
static |
Definition at line 19 of file outputtype.cpp.
|
static |
Definition at line 20 of file outputtype.cpp.
|
static |
Definition at line 17 of file outputtype.cpp.
|
static |
Definition at line 18 of file outputtype.cpp.
|
static |
Definition at line 21 of file outputtype.cpp.