Bitcoin Forum
July 05, 2024, 01:10:36 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Can any random 64 digit hex be used as a private key for Bitcoin or Ethereum?  (Read 248 times)
CounterEntropy (OP)
Full Member
***
Offline Offline

Activity: 214
Merit: 278


View Profile
May 25, 2020, 06:03:09 PM
 #1

For example 0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF ?
o_e_l_e_o
In memoriam
Legendary
*
Offline Offline

Activity: 2268
Merit: 18638


View Profile
May 25, 2020, 07:21:22 PM
Merited by vapourminer (1), pooya87 (1), HeRetiK (1), ABCbits (1)
 #2

In bitcoin, private keys range from 1 to n-1, with n being the order of the base point G for the secp256k1 curve. In simple terms, the largest valid private key (n-1) is:

Code:
FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFE BAAE DCE6 AF48 A03B BFD2 5E8C D036 4140

It is possible however to use private keys larger than this number, as all private keys are modulo n. The key you have given as an example leads to an address which has previously been used back in 2017: https://blockchair.com/bitcoin/address/1CLrrRUwXswyF2EVAtuXyqdk4qb8DSUHCX

Note that it's a terrible idea to create your own private key by manually choosing a 64 digit hexadecimal number.
MrFreeDragon
Sr. Member
****
Offline Offline

Activity: 443
Merit: 350


View Profile
May 26, 2020, 07:38:24 PM
 #3

For example 0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF ?

Yes, it is possible. You mentioned "random 64 digit hex" - so be sure that they are really random and not manually selected. It is important for security reason.

For example you can use dice with 16 sides, roll it 64 times and receive your random private key.

https://www.thediceshoponline.com/cat/41/sides/13/d16

Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!