It seems that when someone wants to send Bitcoins, he creates a transaction and the transaction_id will be transaction's hash. after block confirmation this id will be change and we can find out this id in the transaction explorers, I want to access the transaction id created by sender(first id) to verify the transaction by r, s and sender's public key that saved in block chain, but to verify this transaction I need the hash that created by sender, there is too many references that I can use to calculate the final transaction id but I need the id that created by sender to verify transaction. I wrote some implementation according to Bitcoin's wiki but it was wrong.
I need an exact reference or a function that shows how to calculate the transaction id that calculated by sender.
for example in a random transaction with id adb1b4723f24841b671b1e979571929f7fc1db9f3884eee2e3fec782bb3ff0a6 we can find the r = 0x0082a19fd532b25c79831c8a8e4802cd35ccabe41469c1c46386ce3fa9f60fde and the s = 0x04fa4e1593c94c130b0ebb1a57d390367d797191af0cb201b3a68fe683bc393b the public key of sender is pub = (0x6bb502c0eb0a69caec1d649259f5ec3286bef74e2d1cf4cf2b3657be7242d5f9, 0x63f0ab38e0cb9399dcb386e64a67188d0acdc49363583893190e3f950fae5c38) if we run the verification algorithm it will return false if we take h = tx_id = 0xadb1b4723f24841b671b1e979571929f7fc1db9f3884eee2e3fec782b because r_prime = 0x9fc47f1afdb0f2012e373bb6e55e7f208afd5c162d538f36d6420daaf800f21 and it is not equals the r! I test this senario with other transactions but the results was the same!