mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-15 12:51:00 +02:00
[Hard-Fork] CT/CA: Put the asset surjection proof, value range proof, and issuance rangeproofs under the witness commitment
This commit is contained in:
parent
b7704f1717
commit
4c8f785185
23 changed files with 314 additions and 165 deletions
|
|
@ -173,9 +173,9 @@ void TxToUniv(const CTransaction& tx, const uint256& hashBlock, UniValue& entry)
|
|||
o.pushKV("asm", ScriptToAsmStr(txin.scriptSig, true));
|
||||
o.pushKV("hex", HexStr(txin.scriptSig.begin(), txin.scriptSig.end()));
|
||||
in.pushKV("scriptSig", o);
|
||||
if (!tx.vin[i].scriptWitness.IsNull()) {
|
||||
if (tx.wit.vtxinwit.size() > i && !tx.wit.vtxinwit[i].scriptWitness.IsNull()) {
|
||||
UniValue txinwitness(UniValue::VARR);
|
||||
for (const auto& item : tx.vin[i].scriptWitness.stack) {
|
||||
for (const auto& item : tx.wit.vtxinwit[i].scriptWitness.stack) {
|
||||
txinwitness.push_back(HexStr(item.begin(), item.end()));
|
||||
}
|
||||
in.pushKV("txinwitness", txinwitness);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue