Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sign relayer Ethereum transactions #2012

Merged
merged 4 commits into from
Oct 24, 2023
Merged

Sign relayer Ethereum transactions #2012

merged 4 commits into from
Oct 24, 2023

Conversation

sug0
Copy link
Contributor

@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 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 mentioned this pull request Oct 20, 2023
@cwgoes cwgoes mentioned this pull request Oct 20, 2023
29 tasks
@nguyenbaongocbkhn
Copy link

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
14 checks passed
@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.

None yet

3 participants