Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/jimmysong/programmingbitcoin
/ hash
Method
hash
code-ch08/tx.py:100–102 ·
view source on GitHub ↗
Binary hash of the legacy serialization
(self)
Source
from the content-addressed store, hash-verified
98
return
self.hash().hex()
99
100
def
hash(self):
101
''
'Binary hash of the legacy serialization'
''
102
return
hash256(self.serialize())[::-1]
103
104
@classmethod
105
def
parse(cls, s, testnet=False):
Callers
1
id
Method · 0.95
Calls
2
serialize
Method · 0.95
hash256
Function · 0.90
Tested by
no test coverage detected