Skip to content

Feature request: allow me to initialize the p2p private key file with new flag #7181

@barnabasbusa

Description

@barnabasbusa

Currently the lighthouse p2p private key is stored under beacon-data/network/key binary file.

This is pretty inconvenient. It would be great if lighthouse would have a flag that would allow me to set the private key for the node using a new flag like --p2p-priv-key= that would point to a file. The content of this file is presumed to contain a hex representing Secp256 key for example e156614877adbfac274118a3be4b7dbfcd6d994126ab7e758dd7aa688f8ec0da.

Lighthouse could convert this hex to binary, so that it wouldn't become a breaking change.
Then lighthouse should use this key to initialize its p2p address, which would allow us to test custom subnets for each peer.

Metadata

Metadata

Assignees

No one assigned

    Labels

    dasData Availability Samplinghelp wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions