MCPcopy
hub / github.com/jimmysong/programmingbitcoin / id

Method id

code-ch08/tx.py:96–98  ·  view source on GitHub ↗

Human-readable hexadecimal of the transaction hash

(self)

Source from the content-addressed store, hash-verified

94 )
95
96 def id(self):
97 '''Human-readable hexadecimal of the transaction hash'''
98 return self.hash().hex()
99
100 def hash(self):
101 '''Binary hash of the legacy serialization'''

Callers 2

__repr__Method · 0.95
fetchMethod · 0.45

Calls 2

hashMethod · 0.95
hexMethod · 0.45

Tested by

no test coverage detected