![]() |
Bitcoin Core 29.99.0
P2P Digital Currency
|
#include <addresstype.h>
#include <script/signingprovider.h>
#include <array>
#include <optional>
#include <string>
#include <vector>
Go to the source code of this file.
Enumerations | |
enum class | OutputType { LEGACY , P2SH_SEGWIT , BECH32 , BECH32M , UNKNOWN } |
Functions | |
std::optional< OutputType > | ParseOutputType (const std::string &str) |
const std::string & | FormatOutputType (OutputType type) |
CTxDestination | AddAndGetDestinationForScript (FlatSigningProvider &keystore, const CScript &script, OutputType) |
Get a destination of the requested type (if possible) to the specified script. More... | |
std::optional< OutputType > | OutputTypeFromDestination (const CTxDestination &dest) |
Get the OutputType for a CTxDestination. More... | |
Variables | |
static constexpr auto | OUTPUT_TYPES |
|
strong |
Enumerator | |
---|---|
LEGACY | |
P2SH_SEGWIT | |
BECH32 | |
BECH32M | |
UNKNOWN |
Definition at line 17 of file outputtype.h.
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 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 75 of file outputtype.cpp.
std::optional< OutputType > ParseOutputType | ( | const std::string & | str | ) |
|
staticconstexpr |
Definition at line 25 of file outputtype.h.