Bitcoin Forum
November 20, 2017, 07:58:07 PM *
News: Latest stable version of Bitcoin Core: 0.15.1  [Torrent].
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: How hash with salt, or could I push data exceeded size of scriptSig.  (Read 273 times)
xqyww123
Newbie
*
Offline Offline

Activity: 1


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

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]
  Print  
 
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!