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

#include <standard.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 152 of file standard.h.

Constructor & Destructor Documentation

◆ ScriptHash() [1/6]

ScriptHash::ScriptHash ( )
inline

Definition at line 154 of file standard.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 160 of file standard.h.

◆ ScriptHash() [5/6]

ScriptHash::ScriptHash ( const CScript script)
explicit

Definition at line 22 of file standard.cpp.

◆ ScriptHash() [6/6]

ScriptHash::ScriptHash ( const CScriptID script)
explicit

Definition at line 23 of file standard.cpp.


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