From d9f5c77efdb49838435ab04225b8681fb0e2a966 Mon Sep 17 00:00:00 2001 From: Alexandre Paillier Date: Mon, 5 May 2025 13:58:53 +0200 Subject: [PATCH 1/2] Increased 7702 whitelist name to 30 characters --- src_features/signAuthorizationEIP7702/whitelist_7702.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src_features/signAuthorizationEIP7702/whitelist_7702.h b/src_features/signAuthorizationEIP7702/whitelist_7702.h index acbb5a0022..1a55608257 100644 --- a/src_features/signAuthorizationEIP7702/whitelist_7702.h +++ b/src_features/signAuthorizationEIP7702/whitelist_7702.h @@ -6,7 +6,7 @@ #include #include "common_utils.h" -#define MAX_NAME_LEN 21 // 20 characters + '\0' +#define MAX_NAME_LEN 31 // 30 characters + '\0' typedef struct eip7702_whitelist_s { const uint8_t address[ADDRESS_LENGTH]; From e5c47f844e67882e4c12fe3b27b8160988ef15bc Mon Sep 17 00:00:00 2001 From: Alexandre Paillier Date: Mon, 5 May 2025 13:53:33 +0200 Subject: [PATCH 2/2] Added Metamask's Delegation Manager contract to the 7702 whitelist --- src_features/signAuthorizationEIP7702/whitelist_7702.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src_features/signAuthorizationEIP7702/whitelist_7702.c b/src_features/signAuthorizationEIP7702/whitelist_7702.c index 71fbe8db0b..fa9b6c3ff4 100644 --- a/src_features/signAuthorizationEIP7702/whitelist_7702.c +++ b/src_features/signAuthorizationEIP7702/whitelist_7702.c @@ -28,7 +28,12 @@ static const eip7702_whitelist_t EIP7702_WHITELIST[] = { {.chain_id = 0, .name = "Simple7702Account", .address = {0x4C, 0xd2, 0x41, 0xE8, 0xd1, 0x51, 0x0e, 0x30, 0xb2, 0x07, - 0x63, 0x97, 0xaf, 0xc7, 0x50, 0x8A, 0xe5, 0x9C, 0x66, 0xc9}}}; + 0x63, 0x97, 0xaf, 0xc7, 0x50, 0x8A, 0xe5, 0x9C, 0x66, 0xc9}}, + {.chain_id = 0, + .name = "MetaMask Delegation Manager", + .address = {0xdb, 0x9B, 0x1e, 0x94, 0xB5, 0xb6, 0x9D, 0xf7, 0xe4, 0x01, + 0xDD, 0xbe, 0xdE, 0x43, 0x49, 0x11, 0x41, 0x04, 0x7d, 0xB3}}, +}; const char *get_delegate_name(const uint64_t *chain_id, const uint8_t *address) { for (size_t i = 0; i < ARRAYLEN(EIP7702_WHITELIST); i++) {