Bitcoin Forum

Bitcoin => Bitcoin Discussion => Topic started by: overthetop2011 on July 28, 2014, 04:48:01 AM



Title: How about the random seed of the BTC private Key?
Post by: overthetop2011 on July 28, 2014, 04:48:01 AM
How about the random seed of the BTC private Key?

Thanks


Title: Re: How about the random seed of the BTC private Key?
Post by: shorena on July 28, 2014, 10:27:23 AM
How about asking precicly what you want to know (in the resp. language board if english is a problem) and give as much details as possible?


Title: Re: How about the random seed of the BTC private Key?
Post by: franky1 on July 28, 2014, 10:38:22 AM
i think he is asking what kind of entropy is used in bitcoin core's 'randomiser' to make a privkey.

everyone knows and talks about the 10 to the 160th power of the amount of addresses being secure against someone getting a specific privkey via the public.

but if lets say the entropy to make a privkey was only 6 digits long then all privkeys would belong between 0 and 1 million


Title: Re: How about the random seed of the BTC private Key?
Post by: minerpumpkin on July 28, 2014, 04:33:47 PM
Yeah but you actually have to use a good (random) seed. If you use a RNG that works deterministically and provide it with some bad seed (e.g. crackable password), it will supply you with a weak private key in return!
Roll some dice or make sure your wallet or whatever relies on cryptographically safe RNGs!


Title: Re: How about the random seed of the BTC private Key?
Post by: TimS on July 28, 2014, 04:39:52 PM
http://bitcoin.stackexchange.com/a/21672/12034
Quote
...yes [the random seed is secure enough]. The default Bitcoin client uses OpenSSL's RAND_bytes, which...

puts num cryptographically strong pseudo-random bytes into buf. An error occurs if the PRNG has not been seeded with enough randomness to ensure an unpredictable byte sequence.

Whether you'd call this a pseudo-random algorithm might be a matter of semantics, and of course some programs might use insecure algorithms, but at least Bitcoin-QT uses something that provides the full amount of randomness needed for security.


Title: Re: How about the random seed of the BTC private Key?
Post by: overthetop2011 on August 04, 2014, 04:05:01 PM
http://bitcoin.stackexchange.com/a/21672/12034
Quote
...yes [the random seed is secure enough]. The default Bitcoin client uses OpenSSL's RAND_bytes, which...

puts num cryptographically strong pseudo-random bytes into buf. An error occurs if the PRNG has not been seeded with enough randomness to ensure an unpredictable byte sequence.

Whether you'd call this a pseudo-random algorithm might be a matter of semantics, and of course some programs might use insecure algorithms, but at least Bitcoin-QT uses something that provides the full amount of randomness needed for security.

Thank you ,TimS

I think I have got want I want.