neveko/neveko-market/README.md

59 lines
2 KiB
Markdown
Raw Normal View History

2023-06-03 14:17:58 +00:00
# neveko-market
2023-05-29 10:14:01 +00:00
2023-06-11 22:55:51 +00:00
![market](../assets/vendor.png)
2023-05-29 10:14:01 +00:00
## High-Level Order Lifecycle
* vendor adds a new product with description and price
* customer orders product
2023-07-23 10:41:04 +00:00
* vendor creates order, multisig wallet
2023-05-29 10:14:01 +00:00
| | prepare | make | exchange |
|-- |-- |-- |-- |
2023-07-23 10:41:04 +00:00
|vend | | | |
2023-05-29 10:14:01 +00:00
|cust | | | |
|med | | | |
2023-07-23 10:41:04 +00:00
* customer creates multisig wallet and prepares while collecting participant info
2023-05-29 10:14:01 +00:00
| | prepare | make | exchange |
|-- |-- |-- |-- |
|vend | X | | |
|cust | X | | |
2023-07-23 10:41:04 +00:00
|med | x | | |
2023-05-29 10:14:01 +00:00
2023-07-23 10:41:04 +00:00
* customer makes and sends both prepare infos to mediator and vendor
* participants all make_info
2023-05-29 10:14:01 +00:00
| | prepare | make | exchange |
|-- |-- |-- |-- |
2023-07-23 10:41:04 +00:00
|vend | X | x | |
|cust | X | x | |
2023-05-29 10:14:01 +00:00
|med | X | X | |
2023-07-23 10:41:04 +00:00
* customer calls to exchange multisig keys and collects outputs again
2023-05-29 10:14:01 +00:00
| | prepare | make | exchange |
|-- |-- |-- |-- |
2023-07-23 10:41:04 +00:00
|vend | X | X | |
|cust | X | X | X |
2023-05-29 10:14:01 +00:00
|med | X | X | |
2023-07-23 10:41:04 +00:00
* customer sends output to participants who then exchange multisig keys
2023-05-29 10:14:01 +00:00
| | prepare | make | exchange |
|-- |-- |-- |-- |
|vend | X | X | X |
|cust | X | X | X |
|med | X | X | X |
2023-07-23 10:41:04 +00:00
* customer funds wallet and exports info to vendor and mediator
2023-05-29 10:14:01 +00:00
* vendor and mediator import multisig info
* customer signs multisig txset and sends to mediator
* mediator requests tracking number from vendor
* mediator relase signed txset to vendor
* vendor signs and submits signed txset
* in case of dispute the mediator can sign multisig txset for customer refund
Reference: https://resilience365.com/monero-multisig-how-to/