PIVX Core  5.6.99
P2P Digital Currency
Namespaces | Functions
key_io.cpp File Reference
#include "key_io.h"
#include "base58.h"
#include "script/script.h"
#include <boost/variant/apply_visitor.hpp>
#include <boost/variant/static_visitor.hpp>
#include <assert.h>
#include <string.h>
#include <algorithm>
Include dependency graph for key_io.cpp:

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)
 
CTxDestination DecodeDestination (const std::string &str)
 
CTxDestination DecodeDestination (const std::string &str, bool &isStaking, bool &isExchange)
 
bool IsValidDestinationString (const std::string &str, bool fStaking, const CChainParams &params)
 
bool IsValidDestinationString (const std::string &str, bool isStaking)
 
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 
)

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,
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:

◆ IsValidDestinationString() [2/2]

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

Definition at line 120 of file key_io.cpp.

Here is the call graph for this function: