]> Git Repo - VerusCoin.git/blame - src/key_io.h
Return minimum fee rate rather than -1 in estimatefee RPC API
[VerusCoin.git] / src / key_io.h
CommitLineData
3d31e09c
PW
1// Copyright (c) 2009-2010 Satoshi Nakamoto
2// Copyright (c) 2009-2015 The Bitcoin Core developers
3// Copyright (c) 2016-2018 The Zcash developers
4// Distributed under the MIT software license, see the accompanying
bc909a7a 5// file COPYING or https://www.opensource.org/licenses/mit-license.php .
3d31e09c
PW
6
7#ifndef BITCOIN_KEYIO_H
8#define BITCOIN_KEYIO_H
9
10#include <chainparams.h>
11#include <key.h>
12#include <pubkey.h>
3d31e09c 13#include <zcash/Address.hpp>
70b4ad2d 14#include <zcash/zip32.h>
3d31e09c
PW
15
16#include <string>
17
6e62f837 18extern CIdentityID VERUS_DEFAULTID;
19extern bool VERUS_PRIVATECHANGE;
20extern std::string VERUS_DEFAULT_ZADDR;
21
56fe75cb 22std::string TrimLeading(const std::string &Name, unsigned char ch);
23std::string TrimTrailing(const std::string &Name, unsigned char ch);
24std::string TrimSpaces(const std::string &Name);
25
3d31e09c
PW
26CKey DecodeSecret(const std::string& str);
27std::string EncodeSecret(const CKey& key);
28
29CExtKey DecodeExtKey(const std::string& str);
30std::string EncodeExtKey(const CExtKey& extkey);
31CExtPubKey DecodeExtPubKey(const std::string& str);
32std::string EncodeExtPubKey(const CExtPubKey& extpubkey);
33
34std::string EncodeDestination(const CTxDestination& dest);
b2a98c42
MT
35std::vector<unsigned char> GetDestinationBytes(const CTxDestination& dest);
36uint160 GetDestinationID(const CTxDestination dest);
3d31e09c
PW
37CTxDestination DecodeDestination(const std::string& str);
38bool IsValidDestinationString(const std::string& str);
39bool IsValidDestinationString(const std::string& str, const CChainParams& params);
40
41std::string EncodePaymentAddress(const libzcash::PaymentAddress& zaddr);
e5eab182 42libzcash::PaymentAddress DecodePaymentAddress(const std::string& str);
5f63373e 43bool IsValidPaymentAddressString(const std::string& str, uint32_t consensusBranchId);
3d31e09c
PW
44
45std::string EncodeViewingKey(const libzcash::ViewingKey& vk);
e5eab182 46libzcash::ViewingKey DecodeViewingKey(const std::string& str);
3d31e09c
PW
47
48std::string EncodeSpendingKey(const libzcash::SpendingKey& zkey);
e5eab182 49libzcash::SpendingKey DecodeSpendingKey(const std::string& str);
3d31e09c
PW
50
51#endif // BITCOIN_KEYIO_H
This page took 0.11251 seconds and 4 git commands to generate.