CScriptID

A reference to a CScript: the Hash160 of its serialization

Synopsis

Declared in <script/script.h>

class CScriptID
    : public BaseHash<uint160>

Base Classes

NameDescription
BaseHash<uint160>Wraps a fixed-size hash value and exposes byte-range access to it.

Member Functions

NameDescription
CScriptID [constructor]Constructors
ToString Returns the hexadecimal string representation of the hash.
begin begin overloads
data data overloads
end end overloads
size Returns the number of bytes in the hash.
operator std::vector<unsigned char> Converts the hash to a byte vector.
operator== Compares two hashes for equality.
operator< Orders two hashes.

Protected Data Members

NameDescription
m_hash The wrapped hash value.

Non-Member Functions

NameDescription
ToScriptIDConvert a script-hash destination back to a script identifier.