http://mmgen-wallet.i2p/project/mmgen/mmgen-wallet/src/5676d7a3f9a41dfc755186e02dde946d04493f4c/mmgen/bitcoin.py
= '5' idx = (66,68)[bool(compressed)] num = _b58tonum(wif) if num == False: return False key = '{:x}'.format(num) if compressed and key[66:68] != '01': return False round1 = sha256(unhexlify(key[:idx])).digest() round2 = sha256(round1).hexdigest() return key[2:66] if (key[:2] == '80' and key[idx:] == round2[:8]) else False def hex2wif(hexpriv,compressed=False): step1 = '80' + hexpriv + ('','01')[bool(compressed)] step2 = sha256(unhexlify(step1)).digest() step3 =...