Skip to content

feat: load validator keys from file (prototype) #897

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

Merged
merged 8 commits into from
Mar 20, 2024

Conversation

MegaRedHand
Copy link
Collaborator

First step towards #821

This PR adds the --validator-file flag, that accepts the path to a file with a validator's keys. From those, the validator index is computed (with an appropriate error message if not found).

An example file would be:

0xa03c1e287ccc4d457f5e71e9dc769294835945561e6f236ac7de210d2e614eee8a85e21dfb46e2143c68de22ccee8660
0x5274a06d46a9c6ecc83bdea918066e1a3bc80143bb1d99113ddee4192c6efbf1

The first line is the pubkey for validator 55 of sepolia, while the second is a random private key (for obvious reasons).

@MegaRedHand MegaRedHand self-assigned this Mar 19, 2024
@MegaRedHand MegaRedHand requested a review from a team as a code owner March 19, 2024 18:58
@MegaRedHand MegaRedHand force-pushed the import-validator-keys-prototype branch from 2d52b2b to fab2d88 Compare March 20, 2024 17:05
@MegaRedHand MegaRedHand changed the base branch from main to aggregate-attestation March 20, 2024 17:06
Base automatically changed from aggregate-attestation to main March 20, 2024 17:08
Copy link
Collaborator

@mpaulucci mpaulucci left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

great work!

@MegaRedHand MegaRedHand merged commit 3efed57 into main Mar 20, 2024
@MegaRedHand MegaRedHand deleted the import-validator-keys-prototype branch March 20, 2024 17:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

Successfully merging this pull request may close these issues.

2 participants