mailchain/mailchain-legacy

When adding account set what protocol and network its for

robdefeo opened this issue · 1 comments

Is your feature request related to a problem? Please describe.
Currently when adding an account that address could be checked for any available network that it could be valid for. Previous thinking was to easily allow the same private key across different networks and potentially even protocols. This assumption is not considered a good practice and with background checking increases the number of checks. Number of addresses * number of protocols * number of network. This will create problems users with many address and each time new protocol is added.

Describe the solution you'd like

  • store protocol and network when adding a private key
  • when fetching addresses check what protocol and network is stored.
  • allow adding the same address with multiple protocol and network combinations.