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

feat: evm pubkey derivation #667

Merged
merged 2 commits into from
Nov 29, 2024
Merged

Conversation

St4rgarden
Copy link
Contributor

A quick easy way to derive your EVM pubkey from the EVM_PRIVATE_KEY set in your .env file without needing to access the key generation system in the new TEE feature.

Relates to:
This is simply a super easy convenience PR to help devs move their agents into EVM testing much more quickly.

Risks
There's basically no risk to the PR. It's a super simple helper script that operates outside of the existing codebase and framework.

Background
As I went to setup the EVM integration for the Gods - I realized there wasn't an easy way to derive EVM public keys from the EVM private key. This also paves the way to simplifying the .env file requirements and thus simplifying the setup process.

Documentation changes needed?
It would be great to mention this in any "get started" content relating to EVM agents.

Set your private key in the .env EVM_PRIVATE_KEY and run node scripts/derive-keys.js
Set your public key EVM_PUBLIC_KEY from the public key output in your console

Testing
Can test by simply importing an EVM_PRIVATE_KEY into the .env file and bashing node scripts/derive-keys.js

@lalalune lalalune merged commit e4de656 into elizaOS:main Nov 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants