BSHA3  0.17.99
P2P Blockchain, based on Bitcoin
Functions
outputtype.cpp File Reference
#include <outputtype.h>
#include <keystore.h>
#include <pubkey.h>
#include <script/script.h>
#include <script/standard.h>
#include <assert.h>
#include <string>
Include dependency graph for outputtype.cpp:

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< CTxDestinationGetAllDestinationsForKey (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...
 

Function Documentation

◆ AddAndGetDestinationForScript()

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.

Here is the call graph for this function:

◆ FormatOutputType()

const std::string& FormatOutputType ( OutputType  type)

Definition at line 35 of file outputtype.cpp.

Here is the caller graph for this function:

◆ GetAllDestinationsForKey()

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.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetDestinationForKey()

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.

Here is the call graph for this function:

◆ ParseOutputType()

bool ParseOutputType ( const std::string &  type,
OutputType output_type 
)

Definition at line 20 of file outputtype.cpp.

Here is the caller graph for this function: