Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/meehow/peer-id-generator
Vanity public key generator for use with IPFS and IPNS
https://github.com/meehow/peer-id-generator
bruteforce ipfs ipns libp2p vanity vanity-address vanitygen
Last synced: 3 months ago
JSON representation
Vanity public key generator for use with IPFS and IPNS
- Host: GitHub
- URL: https://github.com/meehow/peer-id-generator
- Owner: meehow
- Created: 2019-02-12T15:02:02.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2022-09-22T08:31:59.000Z (over 2 years ago)
- Last Synced: 2024-10-14T00:30:07.026Z (3 months ago)
- Topics: bruteforce, ipfs, ipns, libp2p, vanity, vanity-address, vanitygen
- Language: Go
- Homepage:
- Size: 9.77 KB
- Stars: 39
- Watchers: 3
- Forks: 11
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# IPFS / IPNS peer ID generator
This tool generates IPFS public and private keypair until it finds public key
which contains required substring. Keys are stored in local directory. If you
like one of them, you can move it to ~/.ipfs/keystore/ to use it with IPFS.## Installation
```
go install github.com/meehow/peer-id-generator@latest
```## Usage
➜ ~ peer-id-generator **dupa**
12D3KooWDpLVwxMacesha42m**dupa**3H8jU7bbJdAmsMD7iPjzrkfK
12D3KooWLhGVro7Ks**DUPa**4FX3LpWC61xACoj7AEZg5wmz6VqDGJ9
12D3KooWMJm**DUPA**tjcaHo8LARo5VHQ5uSxrt8Mdi5fytiRnnfD2f
^C
➜ ~ cp 12D3KooWMJm**DUPA**tjcaHo8LARo5VHQ5uSxrt8Mdi5fytiRnnfD2f ~/.ipfs/keystore/dupa
➜ ~ ipfs name publish --key=dupa {ipfs-path}
Published to 12D3KooWMJm**DUPA**tjcaHo8LARo5VHQ5uSxrt8Mdi5fytiRnnfD2f: {ipfs-path}
## Examples
In [examples](examples) you can find key pairs which contain word "funny"
at the end of Peer ID. They are just for demonstration purposes.
Please consider these private keys as already leaked.## Benchmarks
This tool is using [Ed25519](https://godoc.org/golang.org/x/crypto/ed25519)
algorithm because it is able to generate keys **2500 times faster**
than [RSA](https://godoc.org/crypto/rsa) and both can work with IPFS.```
goos: linux
goarch: amd64
pkg: github.com/meehow/peer-id-generator
BenchmarkRSA-4 10 162383811 ns/op
BenchmarkEd25519-4 20000 64165 ns/op
PASS
ok github.com/meehow/peer-id-generator 4.384s
```