Bitcoin Core 28.99.0
P2P Digital Currency
Public Member Functions | List of all members
ScriptHash Struct Reference

#include <addresstype.h>

Inheritance diagram for ScriptHash:
[legend]
Collaboration diagram for ScriptHash:
[legend]

Public Member Functions

 ScriptHash ()
 
 ScriptHash (const WitnessV0KeyHash &hash)=delete
 
 ScriptHash (const PKHash &hash)=delete
 
 ScriptHash (const uint160 &hash)
 
 ScriptHash (const CScript &script)
 
 ScriptHash (const CScriptID &script)
 
- Public Member Functions inherited from BaseHash< uint160 >
 BaseHash ()
 
 BaseHash (const uint160 &in)
 
unsigned char * begin ()
 
const unsigned char * begin () const
 
unsigned char * end ()
 
const unsigned char * end () const
 
 operator std::vector< unsigned char > () const
 
std::string ToString () const
 
bool operator== (const BaseHash< uint160 > &other) const noexcept
 
bool operator!= (const BaseHash< uint160 > &other) const noexcept
 
bool operator< (const BaseHash< uint160 > &other) const noexcept
 
size_t size () const
 
unsigned char * data ()
 
const unsigned char * data () const
 

Additional Inherited Members

- Protected Attributes inherited from BaseHash< uint160 >
uint160 m_hash
 

Detailed Description

Definition at line 58 of file addresstype.h.

Constructor & Destructor Documentation

◆ ScriptHash() [1/6]

ScriptHash::ScriptHash ( )
inline

Definition at line 60 of file addresstype.h.

◆ ScriptHash() [2/6]

ScriptHash::ScriptHash ( const WitnessV0KeyHash hash)
explicitdelete

◆ ScriptHash() [3/6]

ScriptHash::ScriptHash ( const PKHash hash)
explicitdelete

◆ ScriptHash() [4/6]

ScriptHash::ScriptHash ( const uint160 hash)
inlineexplicit

Definition at line 66 of file addresstype.h.

◆ ScriptHash() [5/6]

ScriptHash::ScriptHash ( const CScript script)
explicit

Definition at line 20 of file addresstype.cpp.

◆ ScriptHash() [6/6]

ScriptHash::ScriptHash ( const CScriptID script)
explicit

Definition at line 21 of file addresstype.cpp.


The documentation for this struct was generated from the following files: