encrypt uint8array to hex.

This commit is contained in:
fiatjaf
2022-01-24 21:00:51 -03:00
parent 6f07c756e5
commit c66a2acda1
2 changed files with 2 additions and 2 deletions

View File

@@ -36,5 +36,5 @@ export function decrypt(privkey, pubkey, ciphertext) {
} }
function getOnlyXFromFullSharedSecret(fullSharedSecretCoordinates) { function getOnlyXFromFullSharedSecret(fullSharedSecretCoordinates) {
return fullSharedSecretCoordinates.substr(2, 64) return Buffer.from(fullSharedSecretCoordinates).toString('hex').substr(2, 64)
} }

View File

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