MCPcopy Index your code
hub / github.com/petertodd/python-bitcoinlib / b2x

Function b2x

bitcoin/core/__init__.py:40–42  ·  view source on GitHub ↗

Convert bytes to a hex string

(b)

Source from the content-addressed store, hash-verified

38 return binascii.unhexlify(h.encode('utf8'))
39
40def b2x(b):
41 """Convert bytes to a hex string"""
42 return binascii.hexlify(b).decode('utf8')
43
44def lx(h):
45 """Convert a little-endian hex string to bytes

Callers 15

fundrawtransactionMethod · 0.90
signrawtransactionMethod · 0.90
TMethod · 0.90
TMethod · 0.90
TMethod · 0.90
testMethod · 0.90
spend-p2wpkh.pyFile · 0.90

Calls

no outgoing calls

Tested by 8

TMethod · 0.72
TMethod · 0.72
TMethod · 0.72
testMethod · 0.72
test_tx_validMethod · 0.68