tangle-network / relayer

🕸️ The Webb Relayer Network
https://webb-tools.github.io/relayer/
Apache License 2.0
22 stars 13 forks source link

[SPEC] Intent based architecture #607

Open salman01zp opened 6 months ago

salman01zp commented 6 months ago

Overview

Intent based arch should relinquish any automated function of the relayer (specifically relaying and processing AUPs)

Goal

Goal is identify a path for the users to effectively pay for the AUP processing if needed to submit their private tx.


User Flow 1

Example: 0.1 ETH per tx, so AUP processing costs 0.1 ETH, private tx relay costs 0.1 ETH. The relayer wants to make 5%. So they user should say something like “Here’s my proof for my private against Chain A’s merkle root M and a fee of 0.04 ETH”
Relayer says “Here’s a request to update Chain B’s roots and submit a private tx and earn enough for my liking”
Relayer needs to decide

Note: One main issue with this is if that the user commits to a proof before that AUP has been applied, enabling someone else to submit a different AUP causing their proof to be invalid, at which they’ll need to re-prove their thing.


Task Checklist