![]() |
BSHA3
0.17.99
P2P Blockchain, based on Bitcoin
|
#include <outputtype.h>
#include <keystore.h>
#include <pubkey.h>
#include <script/script.h>
#include <script/standard.h>
#include <assert.h>
#include <string>
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 (CKeyStore &keystore, const CScript &script, OutputType type) |
Get a destination of the requested type (if possible) to the specified script. More... | |
CTxDestination AddAndGetDestinationForScript | ( | CKeyStore & | keystore, |
const CScript & | script, | ||
OutputType | |||
) |
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 76 of file outputtype.cpp.
const std::string& FormatOutputType | ( | OutputType | type | ) |
std::vector<CTxDestination> GetAllDestinationsForKey | ( | const CPubKey & | key | ) |
Get all destinations (potentially) supported by the wallet for the given key.
Definition at line 64 of file outputtype.cpp.
CTxDestination GetDestinationForKey | ( | const CPubKey & | key, |
OutputType | |||
) |
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 45 of file outputtype.cpp.
bool ParseOutputType | ( | const std::string & | type, |
OutputType & | output_type | ||
) |