Convert bytes to a little-endian hex string Lets you show uint256's and uint160's the way the Satoshi codebase shows them.
(b)
| 50 | return binascii.unhexlify(h.encode('utf8'))[::-1] |
| 51 | |
| 52 | def b2lx(b): |
| 53 | """Convert bytes to a little-endian hex string |
| 54 | |
| 55 | Lets you show uint256's and uint160's the way the Satoshi codebase shows |
| 56 | them. |
| 57 | """ |
| 58 | return binascii.hexlify(b[::-1]).decode('utf8') |
| 59 | |
| 60 | def str_money_value(value): |
| 61 | """Convert an integer money value to a fixed point string""" |
no outgoing calls