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

Add expireable proxy, that spends from the main account. #128

Open
siman opened this issue Aug 5, 2022 · 0 comments
Open

Add expireable proxy, that spends from the main account. #128

siman opened this issue Aug 5, 2022 · 0 comments
Assignees

Comments

@siman
Copy link
Member

siman commented Aug 5, 2022

  • Specify the max tokens that can be spent by the proxy
  • Set a time to live for the proxy, beyond this time, the proxy will lose access.

Alex:
We should allow a proxy to spend tokens of the main account to pay txs fees.
We can implement a transaction extension that will handle this.
An important thing here is to specify the maximum amount of tokens per a certain period (a day?) that can be spent by your proxy accounts.

Bryan:
a quota could be enough. the fee is usually relatively cheap, and the user should rotate this proxy every few days, so I don't think a cap per day is needed

Alex:
Ok, then the dapp should ask a user to create a new proxy for example every week.


Related issue: https://github.com/dappforce/private-subsocial-web-app/issues/245

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

No branches or pull requests

2 participants