Saturday, July 6, 2024

Is there anyway to provide the transaction’s hash created by sender?

Plainly when somebody needs to ship Bitcoins, he creates a transaction and the transaction_id might be transaction’s hash. after block affirmation this id might be change and we will discover out this id within the transaction explorers, I wish to entry the transaction id created by sender(first id) to confirm the transaction by r, s and sender’s public key that saved in block chain, however to confirm this transaction I would like the hash that created by sender, there’s too many references that I can use to calculate the ultimate transaction id however I would like the id that created by sender to confirm transaction. I wrote some implementation in response to Bitcoin’s wiki however it was incorrect.

I would like a precise reference or a perform that exhibits the way to calculate the transaction id that calculated by sender.

for instance in a random transaction with id
adb1b4723f24841b671b1e979571929f7fc1db9f3884eee2e3fec782bb3ff0a6
we will discover the r = 0x0082a19fd532b25c79831c8a8e4802cd35ccabe41469c1c46386ce3fa9f60fde and the s = 0x04fa4e1593c94c130b0ebb1a57d390367d797191af0cb201b3a68fe683bc393b
the general public key of sender is pub = (0x6bb502c0eb0a69caec1d649259f5ec3286bef74e2d1cf4cf2b3657be7242d5f9, 0x63f0ab38e0cb9399dcb386e64a67188d0acdc49363583893190e3f950fae5c38) if we run the verification algorithm it should return false if we take h = tx_id = 0xadb1b4723f24841b671b1e979571929f7fc1db9f3884eee2e3fec782b
as a result of r_prime = 0x9fc47f1afdb0f2012e373bb6e55e7f208afd5c162d538f36d6420daaf800f21 and it’s not equals the r!
I take a look at this senario with different transactions however the outcomes was the identical!

Related Articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Latest Articles