Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SPEC] Intent based architecture #607

Open
salman01zp opened this issue Apr 15, 2024 · 0 comments
Open

[SPEC] Intent based architecture #607

salman01zp opened this issue Apr 15, 2024 · 0 comments
Assignees

Comments

@salman01zp
Copy link
Contributor

Overview

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

  • Relayers don’t make money submitting the AUP.

  • Why would they relay the AUP?

    Maybe they make money from the private transaction relaying to justify submitting the AUP.

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

  • User deposits on Chain A,

  • relayers should catch this and submit to SigningRules contract

  • The relayers DON'T relay the result just yet. The results are onchain (need to figure for how long, if they disappear that could be bad)

  • User wants to withdraw their funds from Chain B, but the AUP hasn’t been applied to Chain B

  • User should pay for the update + the relayed private tx by encoding a higher fee in the private tx relay.
    Perhaps we update the contract so you can submit AUPs w/ relayed txes.

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

@salman01zp salman01zp changed the title [SPEC] Spec intent based architecture [SPEC] Intent based architecture Apr 15, 2024
@salman01zp salman01zp self-assigned this Apr 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: On Hold 🛑
Development

No branches or pull requests

1 participant