Bitcoin Forum
March 18, 2018, 10:09:41 AM *
News: Latest stable version of Bitcoin Core: 0.16.0  [Torrent]. (New!)
   Home   Help Search Donate Login Register  
Pages: [1]
Author Topic: How hash with salt, or could I push data exceeded size of scriptSig.  (Read 279 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!