A reference to a CScript: the Hash160 of its serialization (see script.h) */
| 25 | |
| 26 | /** A reference to a CScript: the Hash160 of its serialization (see script.h) */ |
| 27 | class CScriptID : public BaseHash<uint160> |
| 28 | { |
| 29 | public: |
| 30 | CScriptID() : BaseHash() {} |
| 31 | explicit CScriptID(const CScript& in); |
| 32 | explicit CScriptID(const uint160& in) : BaseHash(in) {} |
| 33 | explicit CScriptID(const ScriptHash& in); |
| 34 | |
| 35 | // ELEMENTS: we write these to the wallet to store blinding keys |
| 36 | template<typename Stream> |
| 37 | void Serialize(Stream& s) const |
| 38 | { |
| 39 | m_hash.Serialize(s); |
| 40 | } |
| 41 | |
| 42 | template<typename Stream> |
| 43 | void Unserialize(Stream& s) |
| 44 | { |
| 45 | m_hash.Unserialize(s); |
| 46 | } |
| 47 | }; |
| 48 | |
| 49 | /** |
| 50 | * Default setting for nMaxDatacarrierBytes. 80 bytes of data, +1 for OP_RETURN, |
no outgoing calls