cmd/devp2p: add commands for node key management (#21202)

These commands mirror the key/URL generation functions of cmd/bootnode.

    $ devp2p key generate mynode.key
    $ devp2p key to-enode mynode.key -ip 203.0.113.21 -tcp 30304
    enode://78a7746089baf4b8615f54a5f0b67b22b1...
This commit is contained in:
Felix Lange
2020-06-24 10:41:53 +02:00
committed by GitHub
parent c42d1390d3
commit da180ba097
2 changed files with 106 additions and 0 deletions

View File

@ -58,6 +58,7 @@ func init() {
// Add subcommands.
app.Commands = []cli.Command{
enrdumpCommand,
keyCommand,
discv4Command,
discv5Command,
dnsCommand,