http://mmgen-wallet.i2p/project/mmgen/mmgen-wallet/src/ea1e8d1228db50c9776998ff50d270af52b35540/mmgen/key.py
The numeric validity of the resulting key is always checked. """ color = 'red' width = 32 trunc_ok = False compressed = ImmutableAttr(bool,typeconv=False) wif = ImmutableAttr(WifKey,typeconv=False) # initialize with (priv_bin,compressed), WIF or self def __new__(cls,proto,s=None,compressed=None,wif=None,pubkey_type=None): if isinstance(s,cls): return s if wif: try: assert s is None,"'wif' and key hex args are mutually exclusive" assert wif.isascii() and wif.isalnum(), 'not an ASCII...