Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/jimmysong/programmingbitcoin
/ hash160
Method
hash160
code-ch13/ecc.py:420–421 ·
view source on GitHub ↗
(self, compressed=True)
Source
from the content-addressed store, hash-verified
418
self.y.num.to_bytes(32,
'big'
)
419
420
def
hash160(self, compressed=True):
421
return
hash160(self.sec(compressed))
422
423
def
address(self, compressed=True, testnet=False):
424
''
'Returns the address string'
''
Callers
1
address
Method · 0.95
Calls
2
sec
Method · 0.95
hash160
Function · 0.90
Tested by
no test coverage detected