A corrupted storage won't have a correct key string like this.
Not if you think about how the wallet would work.
If the wallet does not store the WIF key (5f...) but instead stores the "raw" private key bytes in a file (flash), and *only* when it is asked to display it, it generates the WiF format, then this would completely make sense.
Seems possible, although we don't know how bitWallet actually works since it's closed source wallet.
--snip--
Traceback (most recent call last):
File "2key.py", line 6, in <module>
p = ZZ( '0xFFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFE FFFFFC2F'.replace( ' ', '' ) )
NameError: name 'ZZ' is not defined
what am I doing wrong?
You're not doing anything wrong. @ecdsa123 doesn't post complete code or don't tell people how to run it. If you copy that code to Python IDE, it will say
ZZ,
EllipticCurve and
GF aren't defined.