safe-core-sdk icon indicating copy to clipboard operation
safe-core-sdk copied to clipboard

Allow EIP-3770 chain-specific addresses

Open germartinez opened this issue 3 years ago • 1 comments

Overview

We are pushing to implement EIP-3770 address references, which include a prefixed chain id before an address. We need to allow users to input addresses with a chain prefix.

image

Goals

  • Accept/validate EIP-3770 address input.

Requirements

  • Modify inputs/validation to allow EIP-3770 address formats.
  • Validate networks against this map. (A service will likely be created for this but it is acceptable to do this client-side in the web app.)
  • Validate that prefixed addresses match those of the current network.

Links

Kick off notes

germartinez avatar Sep 24 '21 10:09 germartinez

How about adding a getChainIdFromEip3770Address(address: Eip3770Address): number function?

PeterTheOne avatar Jun 03 '22 00:06 PeterTheOne