Constructors
Synopses
Declared in <addresstype.h>
Construct a null script hash.
ScriptHash();
Construct a script hash from a script.
explicit
ScriptHash(CScript const& script);
Construct a script hash from a script identifier.
explicit
ScriptHash(CScriptID const& script);
Deleted: constructing from a public‐key hash is disallowed.
explicit
ScriptHash(PKHash const& hash) = delete;
Deleted: constructing from a witness key hash is disallowed.
explicit
ScriptHash(WitnessV0KeyHash const& hash) = delete;
Construct a script hash from a raw 160‐bit hash.
explicit
ScriptHash(uint160 const& hash);
Parameters
Name |
Description |
script |
The script to hash. |
hash |
The public‐key hash (unused; deleted overload). |
Created with MrDocs