robwoodgate on Nostr: The magic of ECDH is possible because a person's Public key (eg: NPUB) is their ...
The magic of ECDH is possible because a person's Public key (eg: NPUB) is their Private key multiplied by the curve base point G.
It's a calculation that simple to do, but pretty much impossible to reverse engineer.
In other words, you can easily calculate a public key (P) given its private key (p), but crucially, you can't calculate a private key from the public key!
{
"id":"c1842d60013fcf6457db1868f11dca9f56169c0e1efcfe7a81c8cc4bb35bbfd4",
"pubkey":"cec0f44d0d64d6d9d7a1c84c330f5467e752cc8b065f720e874a0bed1c5416d2",
"created_at":1764018067,
"kind":1,
"tags": [
[
"e",
"f0cc16e28a3a8f8bd905981dd29fb7885a5cccca55f481efa22ddfbfa0fe938d",
"",
"root"
],
[
"e",
"aff5547cbc8983a0721f7de98b999e01f23430a64200b33f1c0356ef78521d68",
"",
"reply"
],
[
"p",
"cec0f44d0d64d6d9d7a1c84c330f5467e752cc8b065f720e874a0bed1c5416d2"
],
[
"r",
"wss://eden.nostr.land/"
],
[
"r",
"wss://nos.lol/"
],
[
"r",
"wss://nostr.mom/"
],
[
"r",
"wss://purplepag.es/"
],
[
"r",
"wss://relay.nostr.band/"
],
[
"r",
"wss://relay.primal.net/"
],
[
"r",
"wss://relay.snort.social/"
],
[
"r",
"wss://sendit.nosflare.com/"
]
],
"content":"The magic of ECDH is possible because a person's Public key (eg: NPUB) is their Private key multiplied by the curve base point G.\n\nIt's a calculation that simple to do, but pretty much impossible to reverse engineer.\n\nIn other words, you can easily calculate a public key (P) given its private key (p), but crucially, you can't calculate a private key from the public key!\n\n https://blossom.primal.net/0d79669a81127acdac8fad0ab94513b5405f9bf45314a5490d57e668107cac55.jpg ",
"sig":"9f2339c99f6e3746652c68981739e1bb4061c0295dbdc18bc68854740261854948eeb10d957819873addd10615165e2d97abf2038a6b9ef3cef4a74a9be568b7"
}