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

Make TokenWithRefunds Production-Ready #7319

Closed
9 tasks done
just-mitch opened this issue Jul 3, 2024 · 1 comment
Closed
9 tasks done

Make TokenWithRefunds Production-Ready #7319

just-mitch opened this issue Jul 3, 2024 · 1 comment
Assignees

Comments

@just-mitch
Copy link
Collaborator

just-mitch commented Jul 3, 2024

Partial notes were used to make private refunds possible.

In short, private refunds allow Alice to fund an arbitrary transaction (possibly with public functions) using an arbitrary private token via a fee payment contract, and get her refund as private token notes.

Without this flow, Alice must fund her transactions either:

  • natively with AZT herself
  • using public balances and an FPC
  • using private balances but forgoing a refund

Partial notes generally support patterns where we need to construct a note that is dependent on on-chain data sources that are not available in private.

Example sources are:

  • price feeds
  • prevailing interest rates
  • weather data from IoT sensors
  • time

Applications could include:

  • start a point $(\text{owner} + \text{principle})*G$, complete it with the prevailing interest rate to construct a note representing a loan.
  • submit a claim on your farm insurance based on regional flooding data.
  • private discounts/deals based on time of day
  • lock some private assets as a point, cash them out privately with interest based on the amount of time they were locked up.
  • a dex where the liquidity is in public but rewards/swaps occur with notes

So the use cases are compelling, but there are problems with the current implementation. This issue tracks work to make the concept ready for production.

@github-project-automation github-project-automation bot moved this to Todo in A3 Jul 3, 2024
@benesjan benesjan changed the title Make Partial Notes Production-Ready Make TokenWithRefunds Production-Ready Jul 31, 2024
@benesjan
Copy link
Contributor

benesjan commented Aug 9, 2024

Closing this now as #7650 is not planned to be tackled in the near future and everything else in this issue done.

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

No branches or pull requests

3 participants