Bitcoin Forum
May 21, 2024, 01:14:47 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Get the address that signed the transaction using PHP & JSON-RPC  (Read 1408 times)
madmadmax (OP)
Hero Member
*****
Offline Offline

Activity: 740
Merit: 501



View Profile
March 06, 2015, 03:15:17 PM
 #1

I remember I had sent the script to someone in a PM back at the day, but don't have it now, could someone post it?








       ▄▄▄▄▄               ▄▄▄▄▄
   ▄▄█▀▀▀▀▀▀██▄        ▄▄█▀▀▀▀▀▀▀█▄
 ▄██▀        ▀██▄    ▄██▀         ▀█▄
██▀            ▀██▄  ▀▀             ██
██               ▀██        ▄▄▄▄▄▄▄▄██
██                ▀██▄      ▀▀▀▀▀▀▀▀▀▀
 ██▄          ▄██   ▀██▄          ▄▄▄
  ▀██▄      ▄██▀      ▀██▄▄     ▄██▀
    ▀▀██████▀▀          ▀▀██████▀▀


Unchained Smart Contracts
Decentralized Oracle
Infinitly Scalable
Blockchain Technology
Turing-Complete
State-Channels



                 ▄████▄▄    ▄
██             ████████████▀
████▄         █████████████▀
▀████████▄▄   █████████████
▄▄█████████████████████████
██████████████████████████
  ▀██████████████████████
   █████████████████████
    ▀█████████████████▀
      ▄█████████████▀
▄▄███████████████▀
   ▀▀▀▀▀▀▀▀▀▀▀

             ▄██▄
     ▄      ▐████   ▄▄
   █████     ██████████
    █████████████████▀
 ▄████████████▀████▌
██████████     ▀████    
 ▀▀   █████     ██████████
      ▀████▌▄████████████▀
    ▄▄▄███████████████▌
   ██████████▀    ▐████
    ▀▀▀  ████▌     ▀▀▀
         ▀███▀
f


ca333
Hero Member
*****
Offline Offline

Activity: 520
Merit: 522


Developer - EthicHacker - BTC enthusiast


View Profile
March 10, 2015, 12:53:59 AM
 #2

I remember I had sent the script to someone in a PM back at the day, but don't have it now, could someone post it?

so you mean calculate back the pubkey through the pubkey-hash which is in inputscript of transaction? i can write one for you when you need this i described. off course free. only confirm: so basically you want have "sending" address/es of tx inputs. do i understand correct?

this space is available (free) for humanitarian nonprofit organizations - please contact me
madmadmax (OP)
Hero Member
*****
Offline Offline

Activity: 740
Merit: 501



View Profile
March 10, 2015, 06:13:43 PM
 #3

I remember I had sent the script to someone in a PM back at the day, but don't have it now, could someone post it?

so you mean calculate back the pubkey through the pubkey-hash which is in inputscript of transaction? i can write one for you when you need this i described. off course free. only confirm: so basically you want have "sending" address/es of tx inputs. do i understand correct?

Yes, it would be wonderful if it would work across different altcoins.








       ▄▄▄▄▄               ▄▄▄▄▄
   ▄▄█▀▀▀▀▀▀██▄        ▄▄█▀▀▀▀▀▀▀█▄
 ▄██▀        ▀██▄    ▄██▀         ▀█▄
██▀            ▀██▄  ▀▀             ██
██               ▀██        ▄▄▄▄▄▄▄▄██
██                ▀██▄      ▀▀▀▀▀▀▀▀▀▀
 ██▄          ▄██   ▀██▄          ▄▄▄
  ▀██▄      ▄██▀      ▀██▄▄     ▄██▀
    ▀▀██████▀▀          ▀▀██████▀▀


Unchained Smart Contracts
Decentralized Oracle
Infinitly Scalable
Blockchain Technology
Turing-Complete
State-Channels



                 ▄████▄▄    ▄
██             ████████████▀
████▄         █████████████▀
▀████████▄▄   █████████████
▄▄█████████████████████████
██████████████████████████
  ▀██████████████████████
   █████████████████████
    ▀█████████████████▀
      ▄█████████████▀
▄▄███████████████▀
   ▀▀▀▀▀▀▀▀▀▀▀

             ▄██▄
     ▄      ▐████   ▄▄
   █████     ██████████
    █████████████████▀
 ▄████████████▀████▌
██████████     ▀████    
 ▀▀   █████     ██████████
      ▀████▌▄████████████▀
    ▄▄▄███████████████▌
   ██████████▀    ▐████
    ▀▀▀  ████▌     ▀▀▀
         ▀███▀
f


ca333
Hero Member
*****
Offline Offline

Activity: 520
Merit: 522


Developer - EthicHacker - BTC enthusiast


View Profile
March 15, 2015, 12:14:55 PM
 #4

I remember I had sent the script to someone in a PM back at the day, but don't have it now, could someone post it?

so you mean calculate back the pubkey through the pubkey-hash which is in inputscript of transaction? i can write one for you when you need this i described. off course free. only confirm: so basically you want have "sending" address/es of tx inputs. do i understand correct?

Yes, it would be wonderful if it would work across different altcoins.

Hello i have now check this in detail and its not accurate or i say its not secure for you because its NO sending address 100%. So often its many sending addresses when you have many inputs but you CAN NEVER know when its the REAL sender then only proof the person control NEW OUPUT. So maybe you have then WRONG pubkey. Conclusion: With RPC-bind its not work proper. I see also a opensoucre C# wrapper[1] which use this schematic like you explain, and the DEV say:
Code:
// Note: Be careful when using GetTransactionSenderAddress(es) as it just gives you an address owned by someone who previously controlled the transaction's outputs
// which might not actually be the sender

also you can see in this thread[2] a discussion for THIS problem.


[1]https://github.com/GeorgeKimionis/BitcoinLib    (title: .net RPC Wrapper in C#)
[2]https://bitcointalk.org/index.php?topic=413939.0   (title: get sender address from RPC api )

i hope this help you.
thank you.
ca333

this space is available (free) for humanitarian nonprofit organizations - please contact me
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!