Compare commits

...

1 Commits

Author SHA1 Message Date
fiatjaf
6786641b1d are you kidding me? 2022-01-25 17:06:26 -03:00
2 changed files with 2 additions and 2 deletions

View File

@@ -38,5 +38,5 @@ export function decrypt(privkey, pubkey, ciphertext) {
function getNormalizedX(key) { function getNormalizedX(key) {
return typeof key === 'string' return typeof key === 'string'
? key.substr(2, 64) ? 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", "name": "nostr-tools",
"version": "0.21.3", "version": "0.21.4",
"description": "Tools for making a Nostr client.", "description": "Tools for making a Nostr client.",
"repository": { "repository": {
"type": "git", "type": "git",