Author

Topic: bitcoin smart contracts to swap for files (Read 208 times)

staff
Activity: 4284
Merit: 8808
December 26, 2019, 08:45:22 AM
#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

newbie
Activity: 16
Merit: 1
December 25, 2019, 04:36:02 PM
#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.
Jump to: