MCPcopy Create free account
hub / github.com/ElementsProject/elements / CScriptID

Class CScriptID

src/script/standard.h:27–47  ·  view source on GitHub ↗

A reference to a CScript: the Hash160 of its serialization (see script.h) */

Source from the content-addressed store, hash-verified

25
26/** A reference to a CScript: the Hash160 of its serialization (see script.h) */
27class CScriptID : public BaseHash<uint160>
28{
29public:
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,

Callers 15

DecodeDestinationFunction · 0.85
IsMineInnerFunction · 0.85
GetMetadataMethod · 0.85
AddWatchOnlyWithDBMethod · 0.85
AddWatchOnlyMethod · 0.85
ImportScriptsMethod · 0.85
GetBlindingKeyMethod · 0.85
walletdb.cppFile · 0.85
operator()Method · 0.85
RecurseImportDataFunction · 0.85
backup.cppFile · 0.85
importblindingkeyFunction · 0.85

Calls

no outgoing calls

Tested by 3

BOOST_AUTO_TEST_CASEFunction · 0.68
BOOST_AUTO_TEST_CASEFunction · 0.68
TestBuilderMethod · 0.68