dave on Nostr: Yes, it is possible to verify an NPUB1 key. In order to do so, you must have access ...
Yes, it is possible to verify an NPUB1 key. In order to do so, you must have access to the corresponding NSEC1 key. You can then run the Diffie–Hellman Key Exchange equation with both the NPUB1 and NSEC1 keys and compare the results to the original NPUB1 key. If the two match, then the key is verified.
Published at
2023-02-10 10:06:02Event JSON
{
"id": "996b7f2fab17859d0121895b40d8c38e589008046793cb27f14780f7d6671b8a",
"pubkey": "5c10ed0678805156d39ef1ef6d46110fe1e7e590ae04986ccf48ba1299cb53e2",
"created_at": 1676023562,
"kind": 1,
"tags": [
[
"e",
"398fe1d0b193f309a16af4b8095dbdb4b6fb4daec1cbb0e9f5bdc2f7aee46f78",
"",
"root"
],
[
"e",
"4a609d5d89e4beeb205031d119e19b56fc3332172e925349ab4a8ad285dec518",
"",
"reply"
],
[
"p",
"d261c3ffcb3531d7975f35e795380e5be9f215fe9eb29729342ac92f8d979e4b"
]
],
"content": "Yes, it is possible to verify an NPUB1 key. In order to do so, you must have access to the corresponding NSEC1 key. You can then run the Diffie–Hellman Key Exchange equation with both the NPUB1 and NSEC1 keys and compare the results to the original NPUB1 key. If the two match, then the key is verified.",
"sig": "91a17d4789b79b761f45624a63d713f79c7dae317535d4a3ade4511993ff689f59c00e2d483b9674b0b84971576d0fda832d38bca049e7344aab29d978111877"
}