Bitcoin Forum

Bitcoin => Development & Technical Discussion => Topic started by: xqyww123 on February 28, 2017, 11:05:07 AM



Title: How hash with salt, or could I push data exceeded size of scriptSig.
Post by: xqyww123 on 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?