mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-19 13:27:35 +02:00
Add block sign/sig combine/etc RPC functions
This commit is contained in:
parent
27f52128e5
commit
6584cd1490
6 changed files with 133 additions and 1 deletions
|
|
@ -61,6 +61,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