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);
}
- 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.