mirror of
https://github.com/nbd-wtf/nostr-tools.git
synced 2025-12-08 16:28:49 +00:00
encrypt uint8array to hex.
This commit is contained in:
2
nip04.js
2
nip04.js
@@ -36,5 +36,5 @@ export function decrypt(privkey, pubkey, ciphertext) {
|
||||
}
|
||||
|
||||
function getOnlyXFromFullSharedSecret(fullSharedSecretCoordinates) {
|
||||
return fullSharedSecretCoordinates.substr(2, 64)
|
||||
return Buffer.from(fullSharedSecretCoordinates).toString('hex').substr(2, 64)
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "nostr-tools",
|
||||
"version": "0.21.0",
|
||||
"version": "0.21.1",
|
||||
"description": "Tools for making a Nostr client.",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
|
||||
Reference in New Issue
Block a user