Bitcoin Forum
May 10, 2024, 03:08:20 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: [1]
1  Bitcoin / Bitcoin Technical Support / Re: A Technical question about ScriptSig on: January 29, 2018, 04:03:10 PM
These websites treat the input as an String but your input is a Hex. You either have to write your own code that accepts Hex or if you want to use an online tool, find something that has an option to accept Hex.
Many thanks! I found one here (http://extranet.cryptomathic.com/hashcalc/index) and it works very well.
2  Bitcoin / Bitcoin Technical Support / A Technical question about ScriptSig on: January 29, 2018, 03:43:52 PM
Guys, I'm trying to fully understand the raw transaction hex data but got stuck at the scriptsig to publickeyhash part.
For example, in "txid": "1f1cb87e2d81582c5e39e8d7f78286c22835827359ed96976135407bda7202e2" the input compressed public key is "037cb4433473b8a644b89c6932f648c0ccc2c6974ffa0df57c6337a397cc024ed2". OP_HASH160 should convert it into its previous output ("txid": "0db0cb2986024d4555515e530cd3ff564fb267faaaf73ea266fd80a54f478368", "vout": 4,) public key hash "32fb2cfd2ac1104e68aa93d6992c89ae78f752b9".
I used first SHA256 and then RIPEMD160 on this website: http://www.md5calc.com/ to do the OP_HASH160 manually, but the results never match.
Please educate me where's the problem. Thanks in advance!
Pages: [1]
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!