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

echecks implementation #53

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft

echecks implementation #53

wants to merge 2 commits into from

Conversation

amiller
Copy link
Collaborator

@amiller amiller commented Jun 30, 2024

Here's an initial implementation of Kettle Cash described here: https://collective.flashbots.net/t/request-for-suapp-kettle-cash/3614/1

The basic idea is:

  • A check defines a user account, and the address of a kettle where the check can be cashed.
  • For an on-chain deposit, there will be no signature, but instead the check will be stored in an on-chain list.
  • Issuing an off-chain check produces a signature, and updates volatile memory.
  • To withdraw to on-chain, issue a check with no kettle specified.

Note that there is no protection against a Kettle crashing! Any coins stored on a Kettle that's crashed are simply gone.

To fix this, we should do something with a recovery address and timeouts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant