Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/petertodd/python-bitcoinlib
/ Hash
Function
Hash
bitcoin/core/serialize.py:28–30 ·
view source on GitHub ↗
SHA256^2)(msg) -> bytes
(msg)
Source
from the content-addressed store, hash-verified
26
27
28
def
Hash(msg):
29
""
"SHA256^2)(msg) -> bytes"
""
30
return
hashlib.sha256(hashlib.sha256(msg).digest()).digest()
31
32
def
Hash160(msg):
33
""
"RIPEME160(SHA256(msg)) -> bytes"
""
Callers
8
GetTxid
Method · 0.85
build_merkle_tree_from_txids
Method · 0.85
CheckBlock
Function · 0.85
GetHash
Method · 0.85
test_checkblock
Method · 0.85
test_serialization
Method · 0.85
test_serialization
Method · 0.85
timestamp-op-ret.py
File · 0.85
Calls
no outgoing calls
Tested by
3
test_checkblock
Method · 0.68
test_serialization
Method · 0.68
test_serialization
Method · 0.68