Title: How receive sender Public Key from bitcoin transaction ? Post by: roleg on December 21, 2013, 07:27:37 AM I have this transaction:
Code: Array How receive sender Public Key from this transaction? Or where I can get sender Public Key using bitcoin RPC API? Title: Re: How receive sender Public Key from bitcoin transaction ? Post by: fbueller on December 21, 2013, 09:27:42 AM The public key isn't stored in a transaction or the block chain, but it's hash is. Normally blockexplorer or something will pick out the public key from the signature when spent (you're looking for the public key for the sender, who has just signed the transaction with this part:)
Code: [scriptSig] => Array Can't get onto explorer.litecoin.com right now but it might help you when it gets back up.. Title: Re: How receive sender Public Key from bitcoin transaction ? Post by: roleg on December 21, 2013, 09:40:52 AM I want recover sender address from this transaction.
Title: Re: How receive sender Public Key from bitcoin transaction ? Post by: andytoshi on December 21, 2013, 10:05:23 PM I want recover sender address from this transaction. There is no from address. It is clear what you are asking for, but not why you need it or why you believe it is the "sender's address". You may find it worthwhile to read http://download.wpsoftware.net/bitcoin/bitcoin-faq.pdf . Title: Re: How receive sender Public Key from bitcoin transaction ? Post by: piotr_n on December 22, 2013, 12:55:33 AM the public key in your example is:
Code: 022e2531ee7a16dbaf83e3554334bb6adea93af0fb2f221cb17b9ffbb587e6bb7f Title: Re: How receive sender Public Key from bitcoin transaction ? Post by: roleg on December 22, 2013, 06:33:29 PM the public key in your example is: OK!Code: 022e2531ee7a16dbaf83e3554334bb6adea93af0fb2f221cb17b9ffbb587e6bb7f and I try, create address from it Code: step1 022e2531ee7a16dbaf83e3554334bb6adea93af0fb2f221cb17b9ffbb587e6bb7f - public key but is not true :-[ Title: Re: How receive sender Public Key from bitcoin transaction ? Post by: piotr_n on December 22, 2013, 06:39:55 PM but is not true :-[ It is true - that's the address.Why do you think that it isn't? 1CZKzwR9tM5SLTS9bZEQyd1eHCGHewFQ87 - is exactly what 022e2531ee7a16dbaf83e3554334bb6adea93af0fb2f221cb17b9ffbb587e6bb7f points to. Title: Re: How receive sender Public Key from bitcoin transaction ? Post by: roleg on December 22, 2013, 06:48:16 PM becouse I send from LWnHG9iyy1KVbG8JmhDiFe5QVQdZnxtqGW
but Litecoin address to Litecoin address Title: Re: How receive sender Public Key from bitcoin transaction ? Post by: piotr_n on December 22, 2013, 06:51:13 PM becouse I send from LWnHG9iyy1KVbG8JmhDiFe5QVQdZnxtqGW Well, then you should have told us that you meant litecoin, not bitcoin.but Litecoin proto I don't know litecoin address specifics, but I guess that there should be at least a different "version" byte (the 00 in front, added in step4, will likely be something else). Title: Re: How receive sender Public Key from bitcoin transaction ? Post by: piotr_n on December 22, 2013, 06:58:32 PM the 00 in front, added in step4, will likely be something else It is 48 (decimal) - replace 00 with 30 and you will get LWnHG9iyy1KVbG8JmhDiFe5QVQdZnxtqGWTitle: Re: How receive sender Public Key from bitcoin transaction ? Post by: roleg on December 22, 2013, 07:05:47 PM the 00 in front, added in step4, will likely be something else It is 48 (decimal) - replace 00 with 30 and you will get LWnHG9iyy1KVbG8JmhDiFe5QVQdZnxtqGW:D OMG ! You My HERO!!! ;D snks! Title: Re: How receive sender Public Key from bitcoin transaction ? Post by: bitpop on December 22, 2013, 09:28:58 PM Wow
Title: Re: How receive sender Public Key from bitcoin transaction ? Post by: marathasam on May 04, 2017, 02:30:19 PM Hi Roleg,
I'm trying develop same function to get vin address from public key by using c++, while coding i tried pub key mentioned above in this post and generated sha256 but i'm getting different output. (output: 36bdb67e9a379df3e208ab87941d7320aabde7204f6eb4a1b31660804f958c15). I have used openssl/sha.h for sha256. It would be great, if you could tell me how you got that sha256 value from pubkey this pubkey (022e2531ee7a16dbaf83e3554334bb6adea93af0fb2f221cb17b9ffbb587e6bb7f). Title: Re: How receive sender Public Key from bitcoin transaction ? Post by: Kristina303 on April 27, 2019, 02:48:08 PM There is more easy way to find the publickey... only from( R S Z ) in a seconds.
Plus i have a code which working just perfectly... ;) |