Skip to content

Sign relayer Ethereum transactions#2012

Merged
sug0 merged 4 commits intomainfrom
tiago/sign-eth-txs
Oct 24, 2023
Merged

Sign relayer Ethereum transactions#2012
sug0 merged 4 commits intomainfrom
tiago/sign-eth-txs

Conversation

@sug0
Copy link
Copy Markdown
Collaborator

@sug0 sug0 commented Oct 20, 2023

Describe your changes

Introduce an environment variable to load a secp256k1 private key from, which is used to sign transactions originating from Namada's relayer sent to Ethereum.

This implementation is kinda hacky, but it should allow immediate testing with e.g. Sepolia. There are for sure ways to improve it, in the future, namely:

  • Loading keys from other sources (e.g. namadaw, ledger, or aws kms)
  • Deriving the ethereum-address SDK/CLI argument from a Signer implementation (see this link)

Notice that the SDK code remains unchanged. This is because it accepts a Middleware client, which may or may not sign txs.

Indicate on which release or other PRs this topic is based on

v0.23.0

Checklist before merging to draft

  • I have added a changelog
  • Git history is in acceptable state

@sug0 sug0 requested review from Fraccaman and tzemanovic October 20, 2023 12:02
sug0 added a commit that referenced this pull request Oct 20, 2023
@sug0 sug0 marked this pull request as ready for review October 20, 2023 12:04
@sug0 sug0 force-pushed the tiago/sign-eth-txs branch from 603ce88 to 8bec66e Compare October 20, 2023 12:06
@sug0 sug0 mentioned this pull request Oct 20, 2023
@cwgoes cwgoes mentioned this pull request Oct 20, 2023
29 tasks
@nguyenbaongocbkhn
Copy link
Copy Markdown

Not easy, Difficult installation

Fraccaman added a commit that referenced this pull request Oct 23, 2023
* origin/tiago/sign-eth-txs:
  Changelog for #2012
  Query chain id to be used in the eth wallet
  Require relayer to specify eth key
  Fetch Ethereum relayer key from env
tzemanovic added a commit that referenced this pull request Oct 24, 2023
* origin/tiago/sign-eth-txs:
  Changelog for #2012
  Query chain id to be used in the eth wallet
  Require relayer to specify eth key
  Fetch Ethereum relayer key from env
@tzemanovic tzemanovic mentioned this pull request Oct 24, 2023
@sug0 sug0 merged commit 8bec66e into main Oct 24, 2023
@sug0 sug0 deleted the tiago/sign-eth-txs branch October 24, 2023 11:26
brentstone pushed a commit that referenced this pull request Nov 11, 2023
* origin/tiago/sign-eth-txs:
  Changelog for #2012
  Query chain id to be used in the eth wallet
  Require relayer to specify eth key
  Fetch Ethereum relayer key from env
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants