Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kilnfi/eth2-keystore-converter
Convert Eth2 EIP-2335 scrypt keystores to pbkdf2 keystores (and vice-versa).
https://github.com/kilnfi/eth2-keystore-converter
blockchain eip2335 ethereum
Last synced: 7 days ago
JSON representation
Convert Eth2 EIP-2335 scrypt keystores to pbkdf2 keystores (and vice-versa).
- Host: GitHub
- URL: https://github.com/kilnfi/eth2-keystore-converter
- Owner: kilnfi
- License: mit
- Created: 2021-12-23T09:32:01.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2024-03-15T13:28:51.000Z (11 months ago)
- Last Synced: 2024-04-14T01:55:12.825Z (10 months ago)
- Topics: blockchain, eip2335, ethereum
- Language: Go
- Homepage:
- Size: 13.7 KB
- Stars: 12
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# eth2-keystore-converter
Convert Eth2 EIP-2335 scrypt keystores to pbkdf2 keystores (and vice-versa).
## Usage
Converting a scrypt keystore to pbkdf2 using stdin/stdout
```
cat keystore-scrypt.json \
| eth2-keystore-converter -p $(cat keystore-scrypt.txt) \
> keystore-pbkdf2.json
```Converting a pbkdf2 keystore to scrypt using options
```
eth2-keystore-converter \
-f keystore-pbkdf2.json \
-p $(cat keystore-pbkdf2.txt) \
-c scrypt \
-o keystore-scrypt.json
```## Motivation
The scrypt formatted keystores load slower and require a lot more memory than pbkdf2 formatted keystores which load almost instantly.
Thus, converting on the fly all keystores to pbkdf2 makes it easier to operate eth2 validators at scale and reduce computing resources.
## Credits
This utility is mostly a wrapper for the [go-eth2-wallet-encryptor-keystorev4](https://github.com/wealdtech/go-eth2-wallet-encryptor-keystorev4) library.