are you kidding me?

This commit is contained in:
fiatjaf
2022-01-25 17:06:26 -03:00
parent 0396db5ed6
commit 6786641b1d
2 changed files with 2 additions and 2 deletions

View File

@@ -38,5 +38,5 @@ export function decrypt(privkey, pubkey, ciphertext) {
function getNormalizedX(key) {
return typeof key === 'string'
? key.substr(2, 64)
: Buffer.from(key.slice(1)).toString('hex')
: Buffer.from(key.slice(1, 33)).toString('hex')
}

View File

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