Private keys of Ethereum accounts are usually represented as 64-character hex strings. Will any such string work as a private key? Are there limitations on what the key could be? If not, I can just make a random string and use a privateKey -> address function and I have generated an account, as secure as any wallet generation library. Is this correct?
Asked
Active
Viewed 2,171 times
3
jeff
- 2,550
- 2
- 18
- 40
1 Answers
4
You can make a random string yourself. 256 bit with two restrictions. Can't be zero and must be less than the order of the curve. Read more about it here How to validate a private key?.
Igor Barinov
- 2,138
- 1
- 16
- 25