PIVX Core  5.6.99
P2P Digital Currency
Namespaces | Functions
key_io.h File Reference
#include "chainparams.h"
#include "key.h"
#include "pubkey.h"
#include "script/standard.h"
#include <string>
Include dependency graph for key_io.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 KeyIO
 

Functions

std::string EncodeDestination (const CTxDestination &dest, bool isStaking, bool isExchange)
 
std::string EncodeDestination (const CTxDestination &dest, const CChainParams::Base58Type addrType=CChainParams::PUBKEY_ADDRESS)
 
CTxDestination DecodeDestination (const std::string &str, bool &isStaking, bool &isExchange)
 
CTxDestination DecodeDestination (const std::string &str)
 
bool IsValidDestinationString (const std::string &str, bool fStaking)
 
bool IsValidDestinationString (const std::string &str, bool fStaking, const CChainParams &params)
 
CKey KeyIO::DecodeSecret (const std::string &str)
 
std::string KeyIO::EncodeSecret (const CKey &key)
 
CExtKey KeyIO::DecodeExtKey (const std::string &str)
 
std::string KeyIO::EncodeExtKey (const CExtKey &key)
 
CExtPubKey KeyIO::DecodeExtPubKey (const std::string &str)
 
std::string KeyIO::EncodeExtPubKey (const CExtPubKey &key)
 

Function Documentation

◆ DecodeDestination() [1/2]

CTxDestination DecodeDestination ( const std::string &  str)

Definition at line 101 of file key_io.cpp.

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

◆ DecodeDestination() [2/2]

CTxDestination DecodeDestination ( const std::string &  str,
bool &  isStaking,
bool &  isExchange 
)

Definition at line 108 of file key_io.cpp.

Here is the call graph for this function:

◆ EncodeDestination() [1/2]

std::string EncodeDestination ( const CTxDestination dest,
bool  isStaking,
bool  isExchange 
)

Definition at line 91 of file key_io.cpp.

◆ EncodeDestination() [2/2]

std::string EncodeDestination ( const CTxDestination dest,
const CChainParams::Base58Type  addrType = CChainParams::PUBKEY_ADDRESS 
)

Definition at line 96 of file key_io.cpp.

Here is the call graph for this function:

◆ IsValidDestinationString() [1/2]

bool IsValidDestinationString ( const std::string &  str,
bool  fStaking 
)

Definition at line 120 of file key_io.cpp.

Here is the call graph for this function:

◆ IsValidDestinationString() [2/2]

bool IsValidDestinationString ( const std::string &  str,
bool  fStaking,
const CChainParams params 
)

Definition at line 113 of file key_io.cpp.

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