nostr-tools
Advanced tools
Comparing version 0.12.2 to 0.12.3
@@ -16,5 +16,5 @@ import randomBytes from 'randombytes' | ||
export function getPublicKey(privateKey) { | ||
return Buffer.from( | ||
pointFromScalar(Buffer.from(privateKey, 'hex'), true) | ||
).toString('hex') | ||
return Buffer.from(pointFromScalar(Buffer.from(privateKey, 'hex'), true)) | ||
.toString('hex') | ||
.slice(2) | ||
} |
{ | ||
"name": "nostr-tools", | ||
"version": "0.12.2", | ||
"version": "0.12.3", | ||
"description": "Tools for making a Nostr client.", | ||
@@ -5,0 +5,0 @@ "repository": { |
20591