Bitcoin ABC 0.30.5
P2P Digital Currency
|
#include <outputtype.h>
#include <pubkey.h>
#include <script/script.h>
#include <script/sign.h>
#include <util/vector.h>
#include <cassert>
Go to the source code of this file.
Functions | |
bool | ParseOutputType (const std::string &type, OutputType &output_type) |
const std::string & | FormatOutputType (OutputType type) |
CTxDestination | GetDestinationForKey (const CPubKey &key, OutputType type) |
Get a destination of the requested type (if possible) to the specified key. More... | |
std::vector< CTxDestination > | GetAllDestinationsForKey (const CPubKey &key) |
Get all destinations (potentially) supported by the wallet for the given key. More... | |
CTxDestination | AddAndGetDestinationForScript (FillableSigningProvider &keystore, const CScript &script, OutputType type) |
Get a destination of the requested type (if possible) to the specified script. More... | |
Variables | |
static const std::string | OUTPUT_TYPE_STRING_LEGACY = "legacy" |
const std::array< OutputType, 1 > | OUTPUT_TYPES = {{OutputType::LEGACY}} |
CTxDestination AddAndGetDestinationForScript | ( | FillableSigningProvider & | 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 27 of file outputtype.cpp.
std::vector< CTxDestination > GetAllDestinationsForKey | ( | const CPubKey & | key | ) |
Get all destinations (potentially) supported by the wallet for the given key.
Definition at line 43 of file outputtype.cpp.
CTxDestination GetDestinationForKey | ( | const CPubKey & | key, |
OutputType | type | ||
) |
Get a destination of the requested type (if possible) to the specified key.
The caller must make sure LearnRelatedScripts has been called beforehand.
Definition at line 35 of file outputtype.cpp.
bool ParseOutputType | ( | const std::string & | type, |
OutputType & | output_type | ||
) |
|
static |
Definition at line 15 of file outputtype.cpp.
const std::array<OutputType, 1> OUTPUT_TYPES = {{OutputType::LEGACY}} |
Definition at line 17 of file outputtype.cpp.