]> Git Repo - VerusCoin.git/blob - src/core_io.h
Add automatic script test generation, and actual checksig tests
[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 CScript;
12 class CTransaction;
13 class uint256;
14 class UniValue;
15
16 // core_read.cpp
17 extern CScript ParseScript(std::string s);
18 extern bool DecodeHexTx(CTransaction& tx, const std::string& strHexTx);
19 extern uint256 ParseHashUV(const UniValue& v, const std::string& strName);
20 extern std::vector<unsigned char> ParseHexUV(const UniValue& v, const std::string& strName);
21
22 // core_write.cpp
23 extern std::string FormatScript(const CScript& script);
24 extern std::string EncodeHexTx(const CTransaction& tx);
25 extern void ScriptPubKeyToUniv(const CScript& scriptPubKey,
26                         UniValue& out, bool fIncludeHex);
27 extern void TxToUniv(const CTransaction& tx, const uint256& hashBlock, UniValue& entry);
28
29 #endif // __BITCOIN_CORE_IO_H__
This page took 0.026591 seconds and 4 git commands to generate.