2

probably this will be a very stupid question... So be careful :)

from eth_account import Account
while True:
    newAccount = Account.create()
    f = open("File.txt", "a")
    f.write("\nAddress: " + newAccount.address + "\nPrivate Key: " + Web3.toHex(newAccount.privateKey))
    f.close()

In this infinite loop it will create for each cycle a new Eth Address (+ Private Key).

Is this means that i can know potentially all the private key of all eth address o.O ?

1 Answer 1

2

Yes, if ALL of the following conditions hold:

  • Your file-system supports a file size of O(2 ^ 256) bytes
  • Your hard-drive has a capacity of O(2 ^ 256) bytes
  • Your life-expectancy is O(2 ^ 256) micro-seconds

Please note, however, that the number of atoms in the known universe is O(2 ^ 256), so with the current technology at hand it is quite impossible to store O(2 ^ 256) bytes of information.

Also note that O(2 ^ 256) micro-seconds is approximately the estimated age of the universe (13.7 billion years) times 8498555383074661855146468745466005103866 (that's an "8" followed by 40 digits).

You're not likely to live that long, and if the expansion of the universe will continue to accelerate at its current rate, then so is our planet, our solar system, and our galaxy (in fact any astral formation that we know of will be torn into elementary particles).

So of my statements above are possibly inacurate, so you might wanna post that on StackExchange site for astrophysics...

7
  • xD ok perfect. Thanks. As i said at the beginning "probably this will be a very stupid question... So be careful :)"
    – Giuseppe
    Jul 24, 2019 at 14:14
  • Btw, is still possible to RE-generate some address that is used yet?
    – Giuseppe
    Jul 24, 2019 at 14:16
  • @CrowdsaleGuy: You mean, generating a pair of [private key / public address] which someone else in the world is already using? Jul 24, 2019 at 14:55
  • Also it will need a uniform PRNG that hast at least a cycle of 2^256.
    – Ismael
    Jul 24, 2019 at 18:17
  • @goodvibration yes
    – Giuseppe
    Jul 25, 2019 at 9:01

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.