nostr-tools 0.24.0 → 0.24.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/nip04.js +1 -1
  2. package/package.json +1 -1
package/nip04.js CHANGED
@@ -29,7 +29,7 @@ export function decrypt(privkey, pubkey, ciphertext) {
29
29
  Buffer.from(normalizedKey, 'hex'),
30
30
  Buffer.from(iv, 'base64')
31
31
  )
32
- let decryptedMessage = decipher.update(cip, 'base64')
32
+ let decryptedMessage = decipher.update(cip, 'base64', 'utf8')
33
33
  decryptedMessage += decipher.final('utf8')
34
34
 
35
35
  return decryptedMessage
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nostr-tools",
3
- "version": "0.24.0",
3
+ "version": "0.24.1",
4
4
  "description": "Tools for making a Nostr client.",
5
5
  "repository": {
6
6
  "type": "git",