Skip to content
This repository has been archived by the owner on Aug 2, 2021. It is now read-only.

create tool to generate addresses for manual snapshot creation #1584

Open
acud opened this issue Jul 18, 2019 · 0 comments
Open

create tool to generate addresses for manual snapshot creation #1584

acud opened this issue Jul 18, 2019 · 0 comments
Labels
cli Swarm command line interface enhancement network

Comments

@acud
Copy link
Member

acud commented Jul 18, 2019

tool should be able to generate a random address and give back the kademlia base address, enode id and private key for that address.

now when we would like to create neighbors or other peers for an arbitrary topology, the same tool should be able to take in a private key or kademlia base address and a wanted PO for the new address and then brute-force the correlating under/overlay addresses with their corresponding private keys.

example usage:

swarm-snapshot generate random
<dump 1 random address, enode, private key here>

swarm-snapshot generate --baseaddr="base address" --po=2
<dump 1 brute forced address with enode, base addr and private key here>

swarm-snapshot generate --baseaddr="base address" --po=2,4,4,7,8
<dump 5 brute forced addresses with enode, base addr and private key here>
@acud acud added network cli Swarm command line interface enhancement labels Jul 18, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
cli Swarm command line interface enhancement network
Projects
None yet
Development

No branches or pull requests

1 participant