mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-17 13:07:54 +02:00
Add block sign/sig combine/etc RPC functions
This commit is contained in:
parent
f0327ad6f1
commit
c8ac3bf7d7
5 changed files with 136 additions and 1 deletions
|
|
@ -123,6 +123,13 @@ string EncodeHexTx(const CTransaction& tx)
|
|||
return HexStr(ssTx.begin(), ssTx.end());
|
||||
}
|
||||
|
||||
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