Post
Topic
Board Bitcoin Discussion
Re: Bitcoin puzzle transaction ~32 BTC prize to who solves it
by
pikachunakapika
on 22/02/2019, 21:17:38 UTC

in this script, pubkeys, where from you get pubkeys ?

In general you get the pubkeys from a transaction that has been sent from the target address (spent).

For puzzle key #60:
https://www.blockchain.com/btc/tx/6c08747ecd15904128c3f15f3bf47f6f365405da2661f17eb5119008807cee3e

ScriptSig: PUSHDATA(72)[3045022100b0d935af1a8b20186c2cd3e43dddb391d85acbfab890f025e683bc0da2534de702200b7816d64a59579da5328fbfd7ddd34b19ad864915fe2474338e53d04131257f01]
PUSHDATA(33)0348e843dc5b1bd246e6309b4924b81543d02b16c8083df973a89ce2c7eb89a10d

Compressed public key in red: 0348e843dc5b1bd246e6309b4924b81543d02b16c8083df973a89ce2c7eb89a10d

You can convert between compressed and uncompressed public key here:
https://iancoleman.io/bitcoin-key-compression/

But better use python and use bitcoin library. E.g.:

Code:
import bitcoin as b
pubkey = b.decode_pubkey("0348e843dc5b1bd246e6309b4924b81543d02b16c8083df973a89ce2c7eb89a10d")
print("X:", hex(pubkey[0]), "Y:", hex(pubkey[1]))

Just research little on your own from here.