mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-12 04:42:36 -03:00
f47dda2c58
-BEGIN VERIFY SCRIPT- ./contrib/devtools/copyright_header.py update ./ -END VERIFY SCRIPT- Commits of previous years: * 2020:fa0074e2d8
* 2019:aaaaad6ac9
30 lines
1.1 KiB
C++
30 lines
1.1 KiB
C++
// Copyright (c) 2009-2010 Satoshi Nakamoto
|
|
// Copyright (c) 2009-2021 The Bitcoin Core developers
|
|
// Distributed under the MIT software license, see the accompanying
|
|
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
|
|
|
#ifndef BITCOIN_KEY_IO_H
|
|
#define BITCOIN_KEY_IO_H
|
|
|
|
#include <chainparams.h>
|
|
#include <key.h>
|
|
#include <pubkey.h>
|
|
#include <script/standard.h>
|
|
|
|
#include <string>
|
|
|
|
CKey DecodeSecret(const std::string& str);
|
|
std::string EncodeSecret(const CKey& key);
|
|
|
|
CExtKey DecodeExtKey(const std::string& str);
|
|
std::string EncodeExtKey(const CExtKey& extkey);
|
|
CExtPubKey DecodeExtPubKey(const std::string& str);
|
|
std::string EncodeExtPubKey(const CExtPubKey& extpubkey);
|
|
|
|
std::string EncodeDestination(const CTxDestination& dest);
|
|
CTxDestination DecodeDestination(const std::string& str);
|
|
CTxDestination DecodeDestination(const std::string& str, std::string& error_msg, std::vector<int>* error_locations = nullptr);
|
|
bool IsValidDestinationString(const std::string& str);
|
|
bool IsValidDestinationString(const std::string& str, const CChainParams& params);
|
|
|
|
#endif // BITCOIN_KEY_IO_H
|