| 56 | struct WitnessV0KeyHash; |
| 57 | |
| 58 | struct ScriptHash : public BaseHash<uint160> |
| 59 | { |
| 60 | ScriptHash() : BaseHash() {} |
| 61 | // These don't do what you'd expect. |
| 62 | // Use ScriptHash(GetScriptForDestination(...)) instead. |
| 63 | explicit ScriptHash(const WitnessV0KeyHash& hash) = delete; |
| 64 | explicit ScriptHash(const PKHash& hash) = delete; |
| 65 | |
| 66 | explicit ScriptHash(const uint160& hash) : BaseHash(hash) {} |
| 67 | explicit ScriptHash(const CScript& script); |
| 68 | explicit ScriptHash(const CScriptID& script); |
| 69 | }; |
| 70 | CScriptID ToScriptID(const ScriptHash& script_hash); |
| 71 | |
| 72 | struct WitnessV0ScriptHash : public BaseHash<uint256> |
no outgoing calls