Switches the endianness of a hex string (in pairs of hex chars)
(s)
| 18 | settings = {} |
| 19 | |
| 20 | def hex_switchEndian(s): |
| 21 | """ Switches the endianness of a hex string (in pairs of hex chars) """ |
| 22 | pairList = [s[i:i+2].encode() for i in range(0, len(s), 2)] |
| 23 | return b''.join(pairList[::-1]).decode() |
| 24 | |
| 25 | class BitcoinRPC: |
| 26 | def __init__(self, host, port, username, password): |
no test coverage detected