mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-16 13:01:19 +02:00
Merge 80862ff943 into merged_master (Elements PR ElementsProject/elements#1075)
This commit is contained in:
commit
16507123c0
3 changed files with 16 additions and 3 deletions
|
|
@ -169,6 +169,15 @@ std::string EncodeHexTx(const CTransaction& tx, const int serializeFlags)
|
|||
return HexStr(ssTx);
|
||||
}
|
||||
|
||||
UniValue EncodeHexScriptWitness(const CScriptWitness& witness)
|
||||
{
|
||||
UniValue witness_hex(UniValue::VARR);
|
||||
for (const auto &item : witness.stack) {
|
||||
witness_hex.push_back(HexStr(item));
|
||||
}
|
||||
return witness_hex;
|
||||
}
|
||||
|
||||
void ScriptToUniv(const CScript& script, UniValue& out, bool include_address)
|
||||
{
|
||||
out.pushKV("asm", ScriptToAsmStr(script));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue