Skip to content

Instantly share code, notes, and snippets.

@kostysh
Created June 17, 2020 16:28
Show Gist options
  • Save kostysh/25770af2ef4a2c2e65ab967b1f0fd4b1 to your computer and use it in GitHub Desktop.
Save kostysh/25770af2ef4a2c2e65ab967b1f0fd4b1 to your computer and use it in GitHub Desktop.
Creation of the secp256k1 key pair with openssl
#!/usr/bin/env bash
openssl ecparam -name secp256k1 -genkey -noout -out secp256k1.pem
openssl ec -in secp256k1.pem -pubout -out secp256k1.pub
# secp256k1.pem - private key
# secp256k1.pub - public key
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment