First small problem: blockchair.com give me only output scripts, not input - is any blockexplorer online with it? I read binary data and this may be hard recreate my sample data and verify. I test BTC block 500186. First is coinbase tx =
and I don't analyse it because has not previous transactions.
Next is a bit odd transaction = 95637dddd99653a6421086e6ab9326341d47f5c29a3cea521e0d2dd6b7c693b1; odd because script is short: 1600149471ea5ecd8f6c51cbe1793df6f5c8ee1894a694
this can I also skip.
Next is 83951f7cb7db18e22f30f319ecbfba2adfc0828a31a0df4edecb46a580c4df10 has script 483045022100df7b1f04615972c7e9d05e9c6c176b95f1a9fc9b73e86eb6d6747336da118a4d02202021d00dab65b6000ef2fcae7525427d1dbec40a2def4196111b8b11c5247bfd012103eafee16adb27d36dc89e4aae0d1b5e0f8ddb2c9136612dc733ec65b1db128cca , it give me signature: 3045022100df7b1f04615972c7e9d05e9c6c176b95f1a9fc9b73e86eb6d6747336da118a4d02202021d00dab65b6000ef2fcae7525427d1dbec40a2def4196111b8b11c5247bfd01 and key 03eafee16adb27d36dc89e4aae0d1b5e0f8ddb2c9136612dc733ec65b1db128cca and hash of previous tx = 132d98c0bf70264d224f8a2d19325a1f34edd5fddd387939c1f51dd9790aead5
I amd computing r and s numbers: first has 33 bytes, second 32 bytes (should be 32 + 33?)
r = 2100df7b1f04615972c7e9d05e9c6c176b95f1a9fc9b73e86eb6d6747336da118a s = 2021d00dab65b6000ef2fcae7525427d1dbec40a2def4196111b8b11c5247bfd
RecoverCompact can't recover becasue is 33+22 not 32+33 bytes, if I exchange r and s, is also bad; next scripts give me s and r for example 32+32, 33+33 bytes etc. Question:
how compute r and s ? RecoverCompact (from Bitcoin sources) hs parameter hash - it is hash of current or previous transaction? After recover I must obtain second array of script from frist array of script + hash?