Bitcoin Core
22.99.0
P2P Digital Currency
src
key_io.h
Go to the documentation of this file.
1
// Copyright (c) 2009-2010 Satoshi Nakamoto
2
// Copyright (c) 2009-2021 The Bitcoin Core developers
3
// Distributed under the MIT software license, see the accompanying
4
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
5
6
#ifndef BITCOIN_KEY_IO_H
7
#define BITCOIN_KEY_IO_H
8
9
#include <
chainparams.h
>
10
#include <
key.h
>
11
#include <
pubkey.h
>
12
#include <
script/standard.h
>
13
14
#include <string>
15
16
CKey
DecodeSecret
(
const
std::string& str);
17
std::string
EncodeSecret
(
const
CKey
& key);
18
19
CExtKey
DecodeExtKey
(
const
std::string& str);
20
std::string
EncodeExtKey
(
const
CExtKey
& extkey);
21
CExtPubKey
DecodeExtPubKey
(
const
std::string& str);
22
std::string
EncodeExtPubKey
(
const
CExtPubKey
& extpubkey);
23
24
std::string
EncodeDestination
(
const
CTxDestination
& dest);
25
CTxDestination
DecodeDestination
(
const
std::string& str);
26
CTxDestination
DecodeDestination
(
const
std::string& str, std::string& error_msg, std::vector<int>* error_locations =
nullptr
);
27
bool
IsValidDestinationString
(
const
std::string& str);
28
bool
IsValidDestinationString
(
const
std::string& str,
const
CChainParams
& params);
29
30
#endif // BITCOIN_KEY_IO_H
DecodeSecret
CKey DecodeSecret(const std::string &str)
Definition:
key_io.cpp:198
CChainParams
CChainParams defines various tweakable parameters of a given instance of the Bitcoin system.
Definition:
chainparams.h:69
EncodeSecret
std::string EncodeSecret(const CKey &key)
Definition:
key_io.cpp:216
pubkey.h
chainparams.h
DecodeExtPubKey
CExtPubKey DecodeExtPubKey(const std::string &str)
Definition:
key_io.cpp:229
CTxDestination
std::variant< CNoDestination, PKHash, ScriptHash, WitnessV0ScriptHash, WitnessV0KeyHash, WitnessV1Taproot, WitnessUnknown > CTxDestination
A txout script template with a specific destination.
Definition:
standard.h:157
EncodeExtKey
std::string EncodeExtKey(const CExtKey &extkey)
Definition:
key_io.cpp:265
CExtKey
Definition:
key.h:161
IsValidDestinationString
bool IsValidDestinationString(const std::string &str)
Definition:
key_io.cpp:298
standard.h
EncodeExtPubKey
std::string EncodeExtPubKey(const CExtPubKey &extpubkey)
Definition:
key_io.cpp:242
key.h
DecodeDestination
CTxDestination DecodeDestination(const std::string &str)
Definition:
key_io.cpp:286
EncodeDestination
std::string EncodeDestination(const CTxDestination &dest)
Definition:
key_io.cpp:276
CKey
An encapsulated private key.
Definition:
key.h:26
DecodeExtKey
CExtKey DecodeExtKey(const std::string &str)
Definition:
key_io.cpp:252
CExtPubKey
Definition:
pubkey.h:291
Generated on Fri Feb 18 2022 20:03:19 for Bitcoin Core by
1.8.17