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)
}