I want to facilitate a transaction between two parties that was collateralized by BTC (preferably with lightning). Can someone share some links about how I can do this?
More -->
Let's assume I want to facilitate a loan of World of Warcraft gold between two parties. Each party puts up BTC as collateral so they can trust one another.
I'm thinking it would look something light this.
Alice agrees to loan Bob 100g, assuming she gets 110g returned one week later.
Alice and Bob each agree to put an equal amount of sats into a pot. This will act as collateral in case the loan obligations are not fulfilled.
Now there are different routes that pot can be distributed:
a. Happy path: Bob settles his debt to Alice. They equally get their sats back, minus a fee paid to me.
b. Bob fails: Bob is unable to repay the loan, Alice is awarded the entire collateral, minus a fee to me.
c. Alice fails: This path doesnt seem like it should happen in the example above, but presumably, Bob would be awarded the entire collateral, minus a fee to me.
Can anyone point me to resource that can help?
Thanks!