Bitcoin Core 32.1.0
P2P Digital Currency
Loading...
Searching...
No Matches
key_io.cpp File Reference
#include <key_io.h>
#include <base58.h>
#include <bech32.h>
#include <script/interpreter.h>
#include <script/solver.h>
#include <tinyformat.h>
#include <util/overflow.h>
#include <util/strencodings.h>
#include <algorithm>
#include <cassert>
#include <cstring>
Include dependency graph for key_io.cpp:

Go to the source code of this file.

Functions

CKey DecodeSecret (const std::string &str)
std::string EncodeSecret (const CKey &key)
CExtPubKey DecodeExtPubKey (const std::string &str)
std::string EncodeExtPubKey (const CExtPubKey &key)
CExtKey DecodeExtKey (const std::string &str)
std::string EncodeExtKey (const CExtKey &key)
std::string EncodeDestination (const CTxDestination &dest)
CTxDestination DecodeDestination (const std::string &str, std::string &error_msg, std::vector< int > *error_locations)
CTxDestination DecodeDestination (const std::string &str)
bool IsValidDestinationString (const std::string &str, const CChainParams &params)
bool IsValidDestinationString (const std::string &str)

Variables

static constexpr std::size_t BECH32_WITNESS_PROG_MAX_LEN = 40
 Maximum witness length for Bech32 addresses.

Function Documentation

◆ DecodeDestination() [1/2]

CTxDestination DecodeDestination ( const std::string & str)

Definition at line 305 of file key_io.cpp.

Here is the call graph for this function:

◆ DecodeDestination() [2/2]

CTxDestination DecodeDestination ( const std::string & str,
std::string & error_msg,
std::vector< int > * error_locations )

Definition at line 300 of file key_io.cpp.

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

◆ DecodeExtKey()

CExtKey DecodeExtKey ( const std::string & str)

Definition at line 268 of file key_io.cpp.

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

◆ DecodeExtPubKey()

CExtPubKey DecodeExtPubKey ( const std::string & str)

Definition at line 245 of file key_io.cpp.

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

◆ DecodeSecret()

CKey DecodeSecret ( const std::string & str)

Definition at line 214 of file key_io.cpp.

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

◆ EncodeDestination()

std::string EncodeDestination ( const CTxDestination & dest)

Definition at line 295 of file key_io.cpp.

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

◆ EncodeExtKey()

std::string EncodeExtKey ( const CExtKey & key)

Definition at line 284 of file key_io.cpp.

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

◆ EncodeExtPubKey()

std::string EncodeExtPubKey ( const CExtPubKey & key)

Definition at line 258 of file key_io.cpp.

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

◆ EncodeSecret()

std::string EncodeSecret ( const CKey & key)

Definition at line 232 of file key_io.cpp.

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

◆ IsValidDestinationString() [1/2]

bool IsValidDestinationString ( const std::string & str)

Definition at line 317 of file key_io.cpp.

Here is the call graph for this function:

◆ IsValidDestinationString() [2/2]

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

Definition at line 311 of file key_io.cpp.

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

Variable Documentation

◆ BECH32_WITNESS_PROG_MAX_LEN

std::size_t BECH32_WITNESS_PROG_MAX_LEN = 40
staticconstexpr

Maximum witness length for Bech32 addresses.

Definition at line 20 of file key_io.cpp.