Bitcoin Forum
April 24, 2024, 01:49:23 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Smart Contracts and Transaction Malleability  (Read 934 times)
kaykurokawa (OP)
Newbie
*
Offline Offline

Activity: 6
Merit: 0


View Profile
December 27, 2014, 04:59:15 AM
 #1

I have been researching various projects/proposals regarding smart contracts, specifically ones that facilitate trustless exchange of crypto-coins and goods.

Examples include atomic cross chain trading  ( https://en.bitcoin.it/wiki/Atomic_cross-chain_trading ) which was mentioned on the side-chain paper, Coinffeine ( https://github.com/Coinffeine/coinffeine/wiki ) , and BitHalo/BlackHalo ( http://blackhalo.info/wp-content/uploads/2014/06/whitepaper_twosided.pdf).

The above three projects/proposals uses a mechanism that relies on creating a future transaction that spends the outputs of a secret and unpublished transaction. Unfortunately, transaction malleability makes it so that there is no guarantee that any unpublished transaction will make it into the blockchain without being mutated. I’m not aware of any easy ways to work around this problem, and it seems like all the above projects will not work with Bitcoin in its current form.

The only solution to this I have come across is the SwapBill Project which creates its own blockchain with a unique op code   (explained in very nice detail in this link http://upcoder.com/11/atomic-cross-chain-exchange/ ). Its a very elegant solution, but unfortunately requires its own blockchain to work.

So I guess my question is 1) is my analysis correct in that the above mentioned projects cannot be implemented with Bitcoin in its current state due to transaction malleability ? and 2) what are potential solution to this. (I am not very up to date about what various crypto 2.0  developers, for example ethereum and mastercoin, are doing regarding this , but I’m sure they have thought about this.)

1713923363
Hero Member
*
Offline Offline

Posts: 1713923363

View Profile Personal Message (Offline)

Ignore
1713923363
Reply with quote  #2

1713923363
Report to moderator
1713923363
Hero Member
*
Offline Offline

Posts: 1713923363

View Profile Personal Message (Offline)

Ignore
1713923363
Reply with quote  #2

1713923363
Report to moderator
Once a transaction has 6 confirmations, it is extremely unlikely that an attacker without at least 50% of the network's computation power would be able to reverse it.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
readerbtc
Jr. Member
*
Offline Offline

Activity: 54
Merit: 1


View Profile
December 27, 2014, 03:02:57 PM
 #2

1) is my analysis correct in that the above mentioned projects cannot be implemented with Bitcoin in its current state due to transaction malleability ?
As far I understood, they can be implemented with Bitcoin in its current state . If nobody trolls you, submitting an alternative transaction. We don't actually know how much of this will happen.


sumantso
Legendary
*
Offline Offline

Activity: 1050
Merit: 1000



View Profile
December 27, 2014, 08:07:57 PM
 #3

There is no reason to implement them itself in Bitcoin. Its better to build something on top and use it, like Counterparty which absorbs any risks and potential protocol breaking bugs.

gmaxwell
Moderator
Legendary
*
expert
Offline Offline

Activity: 4158
Merit: 8382



View Profile WWW
December 28, 2014, 12:57:11 AM
 #4

"Counterparty" cannot actually implement a smart contract system for Bitcoin. It can only do so for its own altcoins, and only at the expense of being incompatible with SPV and being subject to blocking by miners (who might suffer loss of value of their bitcoin income should the counterparty altcoin manage to displace bitcoin to any great extent).
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!