]> Git Repo - VerusCoin.git/blob - src/core_io.h
Merge pull request #1816
[VerusCoin.git] / src / core_io.h
1 // Copyright (c) 2009-2014 The Bitcoin developers
2 // Distributed under the MIT/X11 software license, see the accompanying
3 // file COPYING or http://www.opensource.org/licenses/mit-license.php.
4
5 #ifndef BITCOIN_CORE_IO_H
6 #define BITCOIN_CORE_IO_H
7
8 #include <string>
9 #include <vector>
10
11 class CBlock;
12 class CScript;
13 class CTransaction;
14 class uint256;
15 class UniValue;
16
17 // core_read.cpp
18 extern CScript ParseScript(std::string s);
19 extern bool DecodeHexTx(CTransaction& tx, const std::string& strHexTx);
20 extern bool DecodeHexBlk(CBlock&, const std::string& strHexBlk);
21 extern uint256 ParseHashUV(const UniValue& v, const std::string& strName);
22 extern std::vector<unsigned char> ParseHexUV(const UniValue& v, const std::string& strName);
23
24 // core_write.cpp
25 extern std::string FormatScript(const CScript& script);
26 extern std::string EncodeHexTx(const CTransaction& tx);
27 extern void ScriptPubKeyToUniv(const CScript& scriptPubKey,
28                         UniValue& out, bool fIncludeHex);
29 extern void TxToUniv(const CTransaction& tx, const uint256& hashBlock, UniValue& entry);
30
31 #endif // BITCOIN_CORE_IO_H
This page took 0.025572 seconds and 4 git commands to generate.