MCPcopy Index your code
hub / github.com/jimmysong/programmingbitcoin / hash

Method hash

code-ch13/tx.py:101–103  ·  view source on GitHub ↗

Binary hash of the legacy serialization

(self)

Source from the content-addressed store, hash-verified

99
100 # tag::source5[]
101 def hash(self):
102 '''Binary hash of the legacy serialization'''
103 return hash256(self.serialize_legacy())[::-1]
104 # end::source5[]
105
106 # tag::source2[]

Callers 1

idMethod · 0.95

Calls 2

serialize_legacyMethod · 0.95
hash256Function · 0.90

Tested by

no test coverage detected