Author

Topic: How to get the pubkey of other's address? (Read 934 times)

newbie
Activity: 8
Merit: 0
February 10, 2014, 07:47:41 AM
#12
I changed the code of bitcoin src/rpcmisc.cpp then recompiled it
I ask for their signed messages, then I can get pubkey from the signed message

Value verifymessage(const Array& params, bool fHelp)
....
...
    CPubKey pubkey;
    Object obj;
    if (!pubkey.RecoverCompact(ss.GetHash(), vchSig)){
      obj.push_back(Pair("pubkey",  ""));
      obj.push_back(Pair("valid",   false));
    }else{
      obj.push_back(Pair("pubkey",  HexStr(pubkey.begin(), pubkey.end())));
      obj.push_back(Pair("valid",   pubkey.GetID() == keyID));
    }

    return obj;

    // return (pubkey.GetID() == keyID);
}

In fact it is pretty easy.

- Go to the address in blockchain.info.
- Search for an outgoing transaction and click it
- Show Input/Output Scripts
- In the Input Scripts the value starting with 04.... is the public key.

What is the pubkey of this address?

112xBKNMa2Cj7g9DT8MJYYwUDoKFmYB3EM



You can only determine the Public Key once an outgoing transaction has been made. As this address is "blank" it is impossible in this case.
legendary
Activity: 1260
Merit: 1168
February 08, 2014, 05:58:02 PM
#11
This message was too old and has been purged
legendary
Activity: 2646
Merit: 1138
All paid signature campaigns should be banned.
February 08, 2014, 05:45:23 PM
#10
EK, just wondering if you have been able to crack any of the 200,000 public keys that Greg gave you.  How is that going?
legendary
Activity: 1260
Merit: 1168
February 08, 2014, 05:39:53 PM
#9
This message was too old and has been purged
donator
Activity: 1218
Merit: 1080
Gerald Davis
February 08, 2014, 05:36:04 PM
#8
In fact it is pretty easy.

- Go to the address in blockchain.info.
- Search for an outgoing transaction and click it
- Show Input/Output Scripts
- In the Input Scripts the value starting with 04.... is the public key.

What is the pubkey of this address?

112xBKNMa2Cj7g9DT8MJYYwUDoKFmYB3EM

legendary
Activity: 2646
Merit: 1138
All paid signature campaigns should be banned.
February 08, 2014, 05:33:00 PM
#7
If there has ever been a send transaction from the Bitcoin address then the public key is in the blockchain and you can just read it out.  But if there are no send transactions from the address then it is impossible to calculate the public key from the Bitcoin address.
legendary
Activity: 1260
Merit: 1168
February 08, 2014, 05:18:08 PM
#6
This message was too old and has been purged
newbie
Activity: 10
Merit: 0
February 07, 2014, 10:19:58 PM
#5
It is (quite) impossible to compute the public key of an address, as the address is computed from the hash of the public key
newbie
Activity: 8
Merit: 0
February 07, 2014, 10:18:06 PM
#4
not from address, but from the signed message;

I saw the code,  the old version, 2 years ago, bitcoind feeded back the pubkey, while now it just feeds back ok or not;

I think the most fast way is to clone the code and add such output.

Quick answer: no, you can't get public key from an address.
legendary
Activity: 2058
Merit: 1416
aka tonikt
February 07, 2014, 05:46:29 PM
#3
Quick answer: no, you can't get public key from an address.
newbie
Activity: 8
Merit: 0
February 07, 2014, 12:16:03 PM
#2
Oh, I just take a look in the code, the signed message do have  the public key;

but it seems that the code is not so easy to be reused. Is any document mentions about how does the message encode?

Besides they tell me, Is it possible to get other's public key?

such as from the signed message?

newbie
Activity: 8
Merit: 0
February 07, 2014, 11:28:11 AM
#1
Besides they tell me, Is it possible to get other's public key?

such as from the signed message?
Jump to: