Bitcoin Forum
June 26, 2024, 06:50:28 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Why we need SIGHASH_SINGLE?  (Read 1027 times)
Balloon (OP)
Newbie
*
Offline Offline

Activity: 9
Merit: 0


View Profile
September 11, 2014, 08:04:36 PM
 #1

I understand how SIGHASH_SINGLE works, but why we need it? Is there any application that will need this feature?
Peter Todd
Legendary
*
expert
Offline Offline

Activity: 1120
Merit: 1150


View Profile
September 12, 2014, 12:34:18 AM
 #2

Decentralised asset exchange needs it: https://www.mail-archive.com/bitcoin-development%40lists.sourceforge.net/msg03892.html

Balloon (OP)
Newbie
*
Offline Offline

Activity: 9
Merit: 0


View Profile
September 12, 2014, 05:40:51 PM
 #3


Thank you for your reply! That's a very interesting idea!

I have one question though. Since colored coin is using some kind of input-output matching to trace colors. So bitcoins with the same color should be in the "same" position in inputs and outputs. Say the bitcoins in input0 is "red", then the bitcoins in output0 must also be "red". If I remember this colored coin mechanism correctly, then in the example, if Alice puts colored bitcoins in input0 and 1BTC in output0. Then that 1 BTC would become "red". I'm kind of confused how this problem is solved.

Balloon
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!