user109850: any one knows how to convert WIF key return to hex format please also let me know if the private key is out side range of ecc then how to import it to some wallet ?

user76567: Using this python library (I am the author)
>>> from cryptotools import PrivateKey

>>> prv = PrivateKey.from_wif('5KUkQNKHA9cVmhSyKuNmop7r83DN2fMhPtNUW843Q6JxqRddEVz')
>>> prv.hex()
'db07a0c6c98c7a2b5cdc19cd4431a05908a40424d6d1ff20eac9cb2f9488e12d'

If the key is too large
>>> PrivateKey.from_int(1 << 260)

it will throw an error
AssertionError: Key larger than Curve Order


109850: <p>any one knows how to convert WIF key return to hex format please also let me know if the private key is out side range of ecc then how to import it to some wallet ?</p>
 76567: <p>Using <a href="https://github.com/mcdallas/cryptotools" rel="nofollow noreferrer">this</a> python library (I am the author)</p>
<pre><code>&gt;&gt;&gt; from cryptotools import PrivateKey

&gt;&gt;&gt; prv = PrivateKey.from_wif('5KUkQNKHA9cVmhSyKuNmop7r83DN2fMhPtNUW843Q6JxqRddEVz')
&gt;&gt;&gt; prv.hex()
'db07a0c6c98c7a2b5cdc19cd4431a05908a40424d6d1ff20eac9cb2f9488e12d'
</code></pre>
<p>If the key is too large</p>
<pre><code>&gt;&gt;&gt; PrivateKey.from_int(1 &lt;&lt; 260)
</code></pre>
<p>it will throw an error</p>
<pre><code>AssertionError: Key larger than Curve Order
</code></pre>
