mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-18 13:17:55 +02:00
Add block sign/sig combine/etc RPC functions
This commit is contained in:
parent
73f480c7d1
commit
d81910f5df
5 changed files with 132 additions and 1 deletions
|
|
@ -121,6 +121,13 @@ std::string EncodeHexTx(const CTransaction& tx, const int serialFlags)
|
|||
return HexStr(ssTx.begin(), ssTx.end());
|
||||
}
|
||||
|
||||
std::string EncodeHexBlock(const CBlock& block)
|
||||
{
|
||||
CDataStream ssBlock(SER_NETWORK, PROTOCOL_VERSION);
|
||||
ssBlock << block;
|
||||
return HexStr(ssBlock.begin(), ssBlock.end());
|
||||
}
|
||||
|
||||
void ScriptPubKeyToUniv(const CScript& scriptPubKey,
|
||||
UniValue& out, bool fIncludeHex)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue