2017-09-20 03:12:25 +02:00
|
|
|
// Copyright (c) 2009-2010 Satoshi Nakamoto
|
2018-07-27 00:36:45 +02:00
|
|
|
// Copyright (c) 2009-2018 The Bitcoin Core developers
|
2017-09-20 03:12:25 +02:00
|
|
|
// Distributed under the MIT software license, see the accompanying
|
|
|
|
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
|
|
|
|
2018-03-22 15:19:44 +01:00
|
|
|
#ifndef BITCOIN_KEY_IO_H
|
|
|
|
#define BITCOIN_KEY_IO_H
|
2017-09-20 03:12:25 +02:00
|
|
|
|
|
|
|
#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);
|
|
|
|
bool IsValidDestinationString(const std::string& str);
|
|
|
|
bool IsValidDestinationString(const std::string& str, const CChainParams& params);
|
|
|
|
|
2018-03-22 15:19:44 +01:00
|
|
|
#endif // BITCOIN_KEY_IO_H
|