MCPcopy Index your code
hub / github.com/HelloZeroNet/ZeroNet / bytes_to_hex_string

Function bytes_to_hex_string

src/lib/pybitcointools/py3specials.py:56–60  ·  view source on GitHub ↗
(b)

Source from the content-addressed store, hash-verified

54 return '1' * leadingzbytes + changebase(inp+checksum, 256, 58)
55
56 def bytes_to_hex_string(b):
57 if isinstance(b, str):
58 return b
59
60 return ''.join('{:02x}'.format(y) for y in b)
61
62 def safe_from_hex(s):
63 return bytes.fromhex(s)

Callers 1

sha256Function · 0.70

Calls 1

formatMethod · 0.80

Tested by

no test coverage detected