Bitcoin Forum
October 19, 2018, 11:19:46 PM *
News: Make sure you are not using versions of Bitcoin Core other than 0.17.0 [Torrent], 0.16.3, 0.15.2, or 0.14.3. More info.
   Home   Help Search Donate Login Register  
Pages: [1]
Author Topic: How hash with salt, or could I push data exceeded size of scriptSig.  (Read 286 times)
Offline Offline

Activity: 1
Merit: 0

View Profile
February 28, 2017, 11:05:07 AM

It's a usual purpose, but I didn't find any approach to hash with salt. So I got this strange idea. Is the following script valid?

sigScript: OP_PUSHDATA1 <number 30, means size> <first 20 bytes data>
sigPubKey: <remain 10 bytes data, as salt> OP_SIZE  30  OP_EQUALVERIFY  OP_HASH160  <hash>  OP_EQUALVERIFY

It's really really strange, pushing data exceeded sigScript, though it indeed make sense.

Or, any better way to hash with salt?
Pages: [1]
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!