* The input witness consists of four elements, three of which are * optional. The optional elements have to do with asset issuance * and peg-in transactions, nor present most of the time. * */
| 14 | * |
| 15 | */ |
| 16 | uint256 CTxInWitness::GetHash() const |
| 17 | { |
| 18 | std::vector<uint256> leaves; |
| 19 | leaves.push_back(SerializeHash(vchIssuanceAmountRangeproof, SER_GETHASH, 0)); |
| 20 | leaves.push_back(SerializeHash(vchInflationKeysRangeproof, SER_GETHASH, 0)); |
| 21 | leaves.push_back(SerializeHash(scriptWitness.stack, SER_GETHASH, 0)); |
| 22 | leaves.push_back(SerializeHash(m_pegin_witness.stack, SER_GETHASH, 0)); |
| 23 | return ComputeFastMerkleRoot(leaves); |
| 24 | } |
| 25 | |
| 26 | /** |
| 27 | * The output witness consists of two elements: the surjection proof and |
nothing calls this directly
no test coverage detected