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

ARC-50: Delegated Asset Opt Ins #229

Closed
wants to merge 4 commits into from

Conversation

joe-p
Copy link
Contributor

@joe-p joe-p commented Jul 25, 2023

A reference implementation can be seen here: https://github.com/joe-p/delegated_optin_arc/tree/main

This implementation will be added to the ARC repo and this ARC once it's reviewed and finalized.

@SudoWeezy SudoWeezy changed the title ARCXXXX: Delegated Asset Opt Ins ARC-50: Delegated Asset Opt Ins Jul 27, 2023

There are two logic signature programs that apply to this ARC. *Open Opt In Program* refers to a logic signature program that can be used by anyone to opt the signing account into any asset. *Address Opt In Delegation* refers to a logic signature program that can only be used by a specific account to opt the signing account into an asset.

Both logic signatures must be sent alongside an appcall to an app that implements a specific ABI method `openOptIn(pay,axfer)void` or `addressOptIn(pay,axfer)void`. These methods should determine whether the opt-in is allowed.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why have the two methods? At one level, the reason is obvious - to constraint opt-ins to a given sender. But why is that particular check important enough to create complexity here? Isn't it the app's job to check things? It could check against a list of addresses, or it could not. Seems like the user signs this logicsig because it trusts the app to do the checking. Don't do any checking here.

@joe-p
Copy link
Contributor Author

joe-p commented Mar 14, 2024

Because of ARC59 (#285) I am withdrawing this ARC.

@joe-p joe-p closed this Mar 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants