Skip to content

Ecash escrow provider and client concept. Ecash hackathon project with @rodant.

Notifications You must be signed in to change notification settings

f321x/ecash-escrow-nostr-concept

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ecash escrow on Nostr concept

This project originated from the Ecash Hackathon 2024.

Idea

An escrow solution for trading projects (e.g. online shops) facilitating their payments over the Cashu ecash protocol. The trading parties can agree upon an escrow provider which is either hardcoded or can be discovered through a Nostr announcement event. How the escrow provider is chosen depends on the software implementing the client library (e.g. reputation based ranking).
Everyone can run an escrow coordinator and announce their service publicly trough Nostr.
The buying party locks its funds in a 2-of-3 P2PK ecash token which can then be unlocked by the buyer and seller (happy path) or the coordinator and one of the trading parties (escrow mediation path).

This makes it possible to separate away the escrow provider from the trading plattform operator which can result in the following benefits for traders, developers and operators:

  • Distributing trust between trading plattform operator and escrow operator
  • Reducing operational burden of running a trading platform
  • Formation of an escrow provider market due to low entry barrier (driving down fees and favouring honest providers)
  • Simple integration of escrow features in all kinds of trading plattforms and applications
  • No vendor lock-in to a single large escrow provider necessary
  • Safer trading conditions in low trust environments (e.g. pseudonymous traders on nostr- or onion markets)
  • Good privacy for traders in happy case (coordinator has few, ephemeral informations about trade and traders)

Architecture

Screenshot from 2024-06-20 22-26-21

Additions and thoughts

Submitting escrow conditions

Both trading parties have to commit to their trade obligations to the coordinator. This commitment has to contain all information necessary for the coordinator to decide which trade party fulfilled their obligations in the case of an escrow mediation. This can include payout information, amounts, timeframes and a freely written trade contract. When possible, information can be submitted as hash to improve privacy against the coordinator.

Nostr communication

To reduce uneccesary burden on relays we can aim to use ephemeral event types for communication between traders and coordinator.

Client

The client could be distributed as wasm library and rust crate. There could also be a compilation flag that decides if the client gets built with nostr communication logic or only with nostr event creation logic. First would be useful for inclusion in traditional trading platforms and second would be useful for nostr based trading platforms already including relay/communication logic.

Acknowledgments

Special thanks to the following projects, without them this project wouldn't be possible:

Contribution

If you want to discuss this project or contribute feel free to join the SimpleX messenger group

About

Ecash escrow provider and client concept. Ecash hackathon project with @rodant.

Topics

Resources

Stars

Watchers

Forks