Skip to content

Instantly share code, notes, and snippets.

@dexX7
Created March 9, 2014 23:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dexX7/9456374 to your computer and use it in GitHub Desktop.
Save dexX7/9456374 to your computer and use it in GitHub Desktop.
Say, you want to buy some Mastercoins, but you are not sure, if the seller wants to scam you.
Step 1: The Seller prepares a signed "send" transaction and tells the buyer the transaction hash.
Step 2: The Buyer prepares a signed transaction for the payment and uses the "send" transaction's hash as input.
The buyer then sends the seller the raw transaction and the seller broadcasts both.
If the seller invalidates the "send" transaction, his payment is also invalidated.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment