Bitcoin Forum
May 27, 2024, 10:41:26 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: bitcoin smart contracts to swap for files  (Read 191 times)
gildarts456 (OP)
Newbie
*
Offline Offline

Activity: 16
Merit: 1


View Profile
December 25, 2019, 09:36:02 PM
Last edit: December 26, 2019, 09:21:47 PM by gildarts456
 #1

my idea was here https://pastebin.com/U1fR92tY

but I just realized A can just not grab the rebate thus not paying for the file

best way to do this is then classic mutually assured destruction contract or transaction

like 2-2 multisig with specific output amount where each signs their input to create and both lose funds unless both sign the payment transaction from the multisig once both parties are happy.

having total output amount will assure both parties contributed enough to match the output or tx is always invalid, bond/refund from file provider is obviously smaller than payment. then either you form the multisig on chain and then depend on both parties being happy or you, both can lose money if either is unhappy, and money never leaves your account if the multisig transaction isn't formed.

as always most things are solved with multisig lol


____

sorry for bad link, was trying to erase the post but board didn't let me. thanks for link as well.
gmaxwell
Moderator
Legendary
*
expert
Offline Offline

Activity: 4186
Merit: 8435



View Profile WWW
December 26, 2019, 01:45:22 PM
Last edit: December 26, 2019, 10:19:51 PM by gmaxwell
Merited by ABCbits (1), hugeblack (1)
 #2

You should update your post with what you're actually taking about, the pastebin link doesn't work.

This might be of interest to you: https://bitcoincore.org/en/2016/02/26/zero-knowledge-contingent-payments-announcement/

as well as: https://github.com/unsystem/paypub

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!