fix getPublicKey to return the bip340 key.

This commit is contained in:
fiatjaf
2022-01-01 10:03:26 -03:00
parent a46568d55c
commit 1f1a6380f0
2 changed files with 2 additions and 2 deletions

View File

@@ -5,5 +5,5 @@ export function generatePrivateKey() {
}
export function getPublicKey(privateKey) {
return secp256k1.getPublicKey(privateKey)
return secp256k1.schnorr.getPublicKey(privateKey)
}

View File

@@ -1,6 +1,6 @@
{
"name": "nostr-tools",
"version": "0.14.2",
"version": "0.14.3",
"description": "Tools for making a Nostr client.",
"repository": {
"type": "git",