Post
Topic
Board Games and rounds
Re: Bitcoin Cipher/puzzle - 0.56 Prize ! Bitcoins
by
Yoshi24517
on 12/08/2015, 18:42:36 UTC
Also, what program did you use to test the private keys?
I was using a self made program which directly loads the OpenSSL library and does (simplified pseudocode):
Code:
function tryBreak(start) {
  trial = EC_POINT_MUL(G, start)
  for i = 0 to 5817656405 { //This is just for showing how it works - I did some optimization of course (eg. checking many private keys at once)
    if ripemd160(sha256(priv2pub(trial))) = "7d1646c1d03dcaad05ffaf3d05590a87a957c352" {
      alert("Key found! " + trial)
      break
    }
    trial = EC_POINT_ADD(trial)
  }
}
thread[0] = new Thread(
  @tryBreak(base58toHexIgnoreChecksum("5Juu22CkB3EAaBpEcyH9dypNhDN8fZgh6Rqwwbo511111111111"))
)
thread[1] = new Thread(
  @tryBreak(base58toHexIgnoreChecksum("5Juu22CkB3NAaBpEcyH9dypNhDN8fZgh6Rqwwbo511111111111"))
)
...
How can I test that on my own computer? Because I don't want to do it manually every single time.