Add support for multiple accounts using different signing methods

Description

(design document)

Add support for multiple accounts using different signing methods in the same EthSigner instance

When receiving a sendTransaction request, EthSigner should try to find a TOML config file for the sender that contains the information about the signing method that should be used.

The directory to look for config files is defined in the CLI options. The TOML filename should contain the address (similar to what is done for the multi-file based signer). The TOML format has been specified in the design document.

More details in the design document.

Done criteria

  • EthSigner supports different signing methods for different accounts

Milestones

  • Implement logic to parse/load the signing config (TOML file) and instantiate appropriate TransactionSigner for the request. This logic can be implemented as a TransactionSignerProvider (similar to the MultiFileTransactionSignerProvider)

  • Implement logic to build each one of the available TrasnsactionSigners from the config (file based, azure, hashicorp)

  • Update CLI options to properly instantiate the new TransactionSignerProvider with the directory to look for config files

 

Status

Assignee

Unassigned

Reporter

Lucas Corte Real Saldanha

Labels

Refinement State

Not Started

Scrum Team

Phoenix

Story Points

5

Sprint

Priority

P3
Configure