Compare commits

..

1 Commits

Author SHA1 Message Date
fiatjaf
c66a2acda1 encrypt uint8array to hex. 2022-01-24 21:00:51 -03:00
2 changed files with 2 additions and 2 deletions

View File

@@ -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)
}

View File

@@ -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",