| >The buyer has to pay to make the order You mean like another lock? But what is stopping the seller from holding buyer's money hostage and force him to release the lock just to get some money back even when he did not receive the goods? An example of evil buyer would be something like:
1. The buyer buys goods from seller with smart-contract 2. The money in buyer's wallet gets locked. 3. The seller ships the goods. 4. The buyer receives the goods, but never signs the smart-contract. That way the buyer gets what he paid for, but the seller never receives the money. No matter how i think about it, smart-contract idea looks abusable. |
1) the contract is initiated by the seller (sets amount, payable accounts, etc)
2) the contract is signed by the buyer, moving (or locking) an amount of money in the contract pending one of two situations:
2.1) the seller signs a message that the product has been shipped and the buyer signs a message the product has been received
2.2) the seller signs a message that the product has been shipped and after 30 days of no further message from the buyer's side the contract releases the funds
In this case, the solution is to have a commitment from the buyer that unless they take action (sign a special message to denounce the transaction / pull out of the contract) the seller gets paid. To address the scenario where the seller is malicious, the buyer can use the on-chain commitments from both parties as evidence of malpractice and report the situation.
(edit: formatting)