Skip to content

Commit 4afabb4

Browse files
author
AJ ONeal
authored
docs: fix example of unrelated public/private pair (#192)
1 parent f73cd3a commit 4afabb4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ function getPrivateKey () {
9797

9898
// generate private and public keys
9999
const privKey = getPrivateKey()
100-
const pubKey = secp256k1.publicKeyCreate(getPrivateKey())
100+
const pubKey = secp256k1.publicKeyCreate(privKey)
101101

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

0 commit comments

Comments
 (0)