satscoinsv on Nostr: PUEDES GENERAR TUS PROPIAS LLAVES NOSTR import { generatePrivateKey, getPublicKey } ...
PUEDES GENERAR TUS PROPIAS LLAVES NOSTR
import {
generatePrivateKey,
getPublicKey
}
from 'nostr-tools'
let privateKey = generatePrivateKey()
let publicKey = getPublicKey(privateKey)
console.log('private key = ' + privateKey)
console.log('public key = ' + publicKey)
Published at
2024-02-26 18:13:18Event JSON
{
"id": "bcecd737f80835e953c7ee5b621d209fcad0e9320f549e1deee1239a6451c275",
"pubkey": "62fdd90f4a5f421508a1fc47115be4850da79ac821f34eca541b98d98c8428e0",
"created_at": 1708971198,
"kind": 1,
"tags": [
[
"e",
"2513fc2386abe99db328b6de6a585a26ae448761b73ab20bc6ef3655c9a9de0f",
"",
"reply"
],
[
"p",
"62fdd90f4a5f421508a1fc47115be4850da79ac821f34eca541b98d98c8428e0"
],
[
"r",
"console.log"
],
[
"r",
"console.log"
]
],
"content": "PUEDES GENERAR TUS PROPIAS LLAVES NOSTR\n\nimport {\n generatePrivateKey,\n getPublicKey\n}\nfrom 'nostr-tools'\n\nlet privateKey = generatePrivateKey()\nlet publicKey = getPublicKey(privateKey)\n\nconsole.log('private key = ' + privateKey)\nconsole.log('public key = ' + publicKey)",
"sig": "de495ea5a003fd1c81e41a892b505b9949a30e2f2eddbd7a05731231068a3e2cfc34142d64c6fbed6d554907d0267b0e0588d60b0cd21ff22ed23ac2b9ba67d4"
}