The number is found in the wiki here:
https://en.bitcoin.it/wiki/Private_key#Range_of_valid_private_keysAnd is frequently stated throughout bitcointalk.org:
https://bitcointalksearch.org/topic/m.1672366- snip -
Also, SHA256 can create a value invalid as an ECDSA private key, "Specifically, any 256-bit number between 0x1 and 0xFFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFE BAAE DCE6 AF48 A03B BFD2 5E8C D036 4141 is a valid private key."
https://bitcointalksearch.org/topic/m.2222704- snip -
Nearly every 256-bit number is a valid private key. Specifically, any 256-bit number between 0x1 and 0xFFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFE BAAE DCE6 AF48 A03B BFD2 5E8C D036 4141 is a valid private key.
The range of valid private keys is governed by the secp256k1 ECDSA standard used by Bitcoin.
https://bitcointalksearch.org/topic/m.1727476Does every number with the right number of bits represent a valid private key? That seems doubtful to me.
I think there is a range. I found it on the wiki: Specifically, any 256-bit number between 0x1 and
0xFFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFE BAAE DCE6 AF48 A03B BFD2 5E8C D036 4141 is a valid private key.
- snip -
https://bitcointalksearch.org/topic/m.1715086I assume you mean private keys (not private addresses, there is no such thing). In that case:
https://en.bitcoin.it/wiki/Private_keyNearly every 256-bit number is a valid private key. Specifically, any 256-bit number between 0x1 and 0xFFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFE BAAE DCE6 AF48 A03B BFD2 5E8C D036 4141 is a valid private key.
The range of valid private keys is governed by the secp256k1 ECDSA standard used by Bitcoin.
https://bitcointalksearch.org/topic/m.1720529- snip -
Nearly every 256-bit number is a valid private key. Specifically, any 256-bit number between 0x1 and 0xFFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFE BAAE DCE6 AF48 A03B BFD2 5E8C D036 4141 is a valid private key.
- snip -
https://bitcointalksearch.org/topic/m.1662810- snip -
its because the prime number chosen for secp256k1 is just a little less then 2^256
0xFFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFE BAAE DCE6 AF48 A03B BFD2 5E8C D036 4141 is that prime number in hexadecimal.
https://bitcointalksearch.org/topic/m.3081656- snip -
If you do it this way, the max address you can use is FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFE BAAE DCE6 AF48 A03B BFD2 5E8C D036 4141
https://bitcointalksearch.org/topic/m.2970259By the way its not really an upper limit: n+1 is a pretty valid private key, it's just that it's equal to 1 (as n+1 mod n == 1 mod n)
If you generate that way you will end up with keys which are not equiprobable. The difference from uniform is very small, but its a certificational weakness you should avoid.