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

Task: Auto-Detect Delegation Classification #44

Open
kamescg opened this issue Dec 1, 2024 · 0 comments
Open

Task: Auto-Detect Delegation Classification #44

kamescg opened this issue Dec 1, 2024 · 0 comments
Labels

Comments

@kamescg
Copy link
Contributor

kamescg commented Dec 1, 2024

Context

The Universal wallet uses the MetaMask Delegation Framework for handling wallet delegations, authorizations and intents. The framework includes 20+ enforcer smart contract modules for dictating transaction execution capabilities.

Enforcer composition effects how the application behaves. A delegation's classification, as defined in the Delegations Classification System, changes how the delegation/authorization behaves in the Universal stack.

Problem

Delegations are manually classified in application forms before submission to the apps/api-delegations service.

This is bad and error prone.

Scope

In the apps/api-delegations/src/routes/delegations route update the POST method to automatically classify the delegation.

The packages/universal-delegations-sdk module should contain the utility functions for automatic classification.

Classification should happen by comparing the enforcer address fields in the caveats.

Matching classification definitions outlined in Delegations Classification System.

@kamescg kamescg added the task label Dec 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant