0
2
I find lots of tools/scripts written in python which can generate random number then using this random number it generates Bitcoin Private key(WIF) -> Bitcoin Address pair.
I have tried verifying few pairs using www.bitaddress.org >> Wallet Details by entering WIF key and verifying with output address.
But How can one make sure, the tools/scripts will always generate valid address and key pair ?
or is this like this way
if it generates one valid address and key pair it means all the future address and key pairs will be valid ?
i was looking at this https://github.com/shirriff/bitcoin-code
from makeAddr.py
import random, keyUtils
private_key = ''.join(['%x' % random.randrange(16) for x in range(0, 64)])
print keyUtils.privateKeyToWif(private_key)
print keyUtils.keyToAddr(private_key)
i know random number/string generated using this method is not very much secure, but i am talking in terms of valid WIF and address pair.
Read the rfc's and write your own is only real way. There could be bugs? But outside of that this is good question. I think bitcoin.org recommends some. – marshal craft – 2017-08-19T04:03:35.093