MCPcopy
hub / github.com/petertodd/python-bitcoinlib / x

Function x

bitcoin/core/__init__.py:36–38  ·  view source on GitHub ↗

Convert a hex string to bytes

(h)

Source from the content-addressed store, hash-verified

34 return 0 <= nValue <= params.MAX_MONEY
35
36def x(h):
37 """Convert a hex string to bytes"""
38 return binascii.unhexlify(h.encode('utf8'))
39
40def b2x(b):
41 """Convert bytes to a hex string"""

Callers 15

getblockheaderMethod · 0.90
fundrawtransactionMethod · 0.90
signrawtransactionMethod · 0.90
sendrawtransactionMethod · 0.90
TMethod · 0.90
TMethod · 0.90
test_reprMethod · 0.90
test_high_s_valueMethod · 0.90
test_low_s_valueMethod · 0.90
TMethod · 0.90

Calls

no outgoing calls

Tested by 15

TMethod · 0.72
TMethod · 0.72
test_reprMethod · 0.72
test_high_s_valueMethod · 0.72
test_low_s_valueMethod · 0.72
TMethod · 0.72
TMethod · 0.72