MetaMask / MetaMask/snap-7715-permissions

Trying to use Delegator Framework

Open
#113 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
11
Forks
9
Avg merge
3d 13h
Merged PRs (30d)
2

Description

Hi MM team,

I'm trying to use the Delegator Toolkit in my dApp so that i can sponsor transactions for my users by having them sign appropriate delegations.

However, I have discovered that i cannot simply call the MM extension to sign EIP712 payloads that correspond to Delegation types, this is blocked internally within MM core (https://github.com/MetaMask/core/blob/6f7c3393f4174ab3360ab189b479214d05199457/packages/signature-controller/src/utils/validation.ts#L249). I discovered this snap repo while investigating the npm.js package for the Delegation Toolkit.

My question is, does a MM user need to have a 7712-permission snap (like this one) installed in order to sign delegations in the browser with this delegator design? Thank you

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with packages/signature-controller/src/utils/validation.ts at the linked validation logic, then trace how the Delegation Toolkit and this permissions snap relate to signing. Done means providing a clear, documented answer about whether the snap is required for browser delegation signing.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
authorization, blockchain
Issue type
Documentation
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.