https://github.com/samuelmarks/batch-ethkey
Generate ethkeys concurrently
https://github.com/samuelmarks/batch-ethkey
Last synced: 3 months ago
JSON representation
Generate ethkeys concurrently
- Host: GitHub
- URL: https://github.com/samuelmarks/batch-ethkey
- Owner: SamuelMarks
- License: apache-2.0
- Created: 2018-09-04T03:38:32.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2019-06-06T07:37:42.000Z (about 7 years ago)
- Last Synced: 2025-01-28T04:31:52.891Z (over 1 year ago)
- Language: Go
- Size: 35.2 KB
- Stars: 0
- Watchers: 5
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE-APACHE
Awesome Lists containing this project
README
batch-ethkey
============
Generate keys in batch.
## Usage
$ batch-ethkey --help
Usage of batch-ethkey:
-dir string
parent directory containing numbered subdirectories containing keys (default ":/required")
-inc-port
Increment port numbers instead of IP addresses
-n uint
number subdirectories (containing keys) to create (default 5)
-network string
network in CIDR, with start address e.g.: 192.168.0.1/16
-port-start uint
port to start counting at (default 12000)
## Example
$ batch-ethkey -n 10 -dir /my/awesome/dir > /my/awesome/dir/peers.json
$ tree /my/awesome/dir
├── 00
│ ├── priv_key.pem
│ └── pub_key.pub
├── 01
│ ├── priv_key.pem
│ └── pub_key.pub
├── 02
│ ├── priv_key.pem
│ └── pub_key.pub
├── 03
│ ├── priv_key.pem
│ └── pub_key.pub
├── 04
│ ├── priv_key.pem
│ └── pub_key.pub
├── 05
│ ├── priv_key.pem
│ └── pub_key.pub
├── 06
│ ├── priv_key.pem
│ └── pub_key.pub
├── 07
│ ├── priv_key.pem
│ └── pub_key.pub
├── 08
│ ├── priv_key.pem
│ └── pub_key.pub
├── 09
│ ├── priv_key.pem
│ └── pub_key.pub
└── peers.json
10 directories, 21 files
## License
Licensed under either of
- Apache License, Version 2.0 ([LICENSE-APACHE](LICENSE-APACHE) or )
- MIT license ([LICENSE-MIT](LICENSE-MIT) or )
at your option.
### Contribution
Unless you explicitly state otherwise, any contribution intentionally submitted
for inclusion in the work by you, as defined in the Apache-2.0 license, shall be
dual licensed as above, without any additional terms or conditions.