Bitcoin Forum
May 24, 2024, 06:34:17 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: How hash with salt, or could I push data exceeded size of scriptSig.  (Read 368 times)
xqyww123 (OP)
Newbie
*
Offline Offline

Activity: 1
Merit: 0


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:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!