Hush Full Node software. We were censored from Github, this is where all development happens now.
https://hush.is
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
48 lines
2.4 KiB
48 lines
2.4 KiB
// Copyright (c) 2009-2014 The Bitcoin Core developers
|
|
// Copyright (c) 2016-2024 The Hush developers
|
|
// Distributed under the GPLv3 software license, see the accompanying
|
|
// file COPYING or https://www.gnu.org/licenses/gpl-3.0.en.html
|
|
|
|
/******************************************************************************
|
|
* Copyright © 2014-2019 The SuperNET Developers. *
|
|
* *
|
|
* See the AUTHORS, DEVELOPER-AGREEMENT and LICENSE files at *
|
|
* the top-level directory of this distribution for the individual copyright *
|
|
* holder information and the developer policies on copyright and licensing. *
|
|
* *
|
|
* Unless otherwise agreed in a custom licensing agreement, no part of the *
|
|
* SuperNET software, including this file may be copied, modified, propagated *
|
|
* or distributed except according to the terms contained in the LICENSE file *
|
|
* *
|
|
* Removal or modification of this copyright notice is prohibited. *
|
|
* *
|
|
******************************************************************************/
|
|
|
|
#ifndef HUSH_CORE_IO_H
|
|
#define HUSH_CORE_IO_H
|
|
|
|
#include <string>
|
|
#include <vector>
|
|
|
|
class CBlock;
|
|
class CScript;
|
|
class CTransaction;
|
|
class uint256;
|
|
class UniValue;
|
|
|
|
// core_read.cpp
|
|
extern CScript ParseScript(const std::string& s);
|
|
extern std::string ScriptToAsmStr(const CScript& script, const bool fAttemptSighashDecode = false);
|
|
extern bool DecodeHexTx(CTransaction& tx, const std::string& strHexTx);
|
|
extern bool DecodeHexBlk(CBlock&, const std::string& strHexBlk);
|
|
extern uint256 ParseHashUV(const UniValue& v, const std::string& strName);
|
|
extern uint256 ParseHashStr(const std::string&, const std::string& strName);
|
|
extern std::vector<unsigned char> ParseHexUV(const UniValue& v, const std::string& strName);
|
|
|
|
// core_write.cpp
|
|
extern std::string FormatScript(const CScript& script);
|
|
extern std::string EncodeHexTx(const CTransaction& tx);
|
|
extern void ScriptPubKeyToUniv(const CScript& scriptPubKey, UniValue& out, bool fIncludeHex);
|
|
extern void TxToUniv(const CTransaction& tx, const uint256& hashBlock, UniValue& entry);
|
|
|
|
#endif // HUSH_CORE_IO_H
|
|
|