Last active
March 11, 2024 06:28
-
-
Save 0xjjpa/8583f2e87f0490395a5d29387b7066e7 to your computer and use it in GitHub Desktop.
Generate an Ethereum compatible private key one-liner using OpenSSL
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
openssl ecparam -name secp256k1 -genkey -noout \ | |
| openssl ec -outform DER 2>/dev/null \ | |
| tail -c +8 | head -c 32 \ | |
| xxd -p -c 32 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment