mirror of
https://github.com/nbd-wtf/nostr-tools.git
synced 2025-12-09 16:48:50 +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) {
|
function getOnlyXFromFullSharedSecret(fullSharedSecretCoordinates) {
|
||||||
return fullSharedSecretCoordinates.substr(2, 64)
|
return Buffer.from(fullSharedSecretCoordinates).toString('hex').substr(2, 64)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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",
|
||||||
|
|||||||
Reference in New Issue
Block a user