Skip to content

Commit

Permalink
docs: fix example of unrelated public/private pair (#192)
Browse files Browse the repository at this point in the history
  • Loading branch information
AJ ONeal authored Oct 20, 2022
1 parent f73cd3a commit 4afabb4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ function getPrivateKey () {

// generate private and public keys
const privKey = getPrivateKey()
const pubKey = secp256k1.publicKeyCreate(getPrivateKey())
const pubKey = secp256k1.publicKeyCreate(privKey)

// compressed public key from X and Y
function hashfn (x, y) {
Expand Down

0 comments on commit 4afabb4

Please sign in to comment.