Skip to content
This repository has been archived by the owner on Mar 3, 2020. It is now read-only.

Commit

Permalink
KEP-1598: NIST P256 support
Browse files Browse the repository at this point in the history
  • Loading branch information
isabelsavannah committed Jul 22, 2019
1 parent b2a52c9 commit b4f6610
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions scripts/generate-key
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,8 @@ prefix=${1:-`pwd`/.state}

mkdir -p $prefix

# This is the elliptic curve used by Ethereum. Technically, this identity is an
# Ethereum account.
openssl ecparam -name secp256k1 -genkey -noout -out $prefix/private-key.pem
# This is a very popular curve, which openssl has special optimizations for
openssl ecparam -name secp256r1 -genkey -noout -out $prefix/private-key.pem
echo "Private key written to "$prefix"/private-key.pem"

openssl ec -in $prefix/private-key.pem -pubout -out $prefix/public-key.pem > /dev/null 2>&1
Expand Down

0 comments on commit b4f6610

Please sign in to comment.