shafemtol on Nostr: What you could do is hash the shared secret curve point `S` (preferably using a ...
What you could do is hash the shared secret curve point `S` (preferably using a tagged hash function) into a shared private key `r`, then use the corresponding public key `R = r * G` for the `p` tag. This would not leak the actual shared secret.
Published at
2023-06-04 21:49:17Event JSON
{
"id": "abc9cfd0a19b7d87406936de1f0552fd42792fd6bd53cd69e4e2d803f22163fc",
"pubkey": "ddcb597a5e9b982ffacec23cf4dcd9d7acd251e9c63b6df3202ca49f785bc2a9",
"created_at": 1685915357,
"kind": 1,
"tags": [
[
"e",
"c28b5d3225ea99f426538aabecde635ca07bbc51928c4ba8431a53156a53a334",
"",
"root"
],
[
"e",
"5afc17b8a0434a6da13084ed043ef890e555c7a43045b3d158ccfe7d2c581be8",
"",
"reply"
],
[
"p",
"50d94fc2d8580c682b071a542f8b1e31a200b0508bab95a33bef0855df281d63"
],
[
"p",
"ddcb597a5e9b982ffacec23cf4dcd9d7acd251e9c63b6df3202ca49f785bc2a9"
]
],
"content": "What you could do is hash the shared secret curve point `S` (preferably using a tagged hash function) into a shared private key `r`, then use the corresponding public key `R = r * G` for the `p` tag. This would not leak the actual shared secret.",
"sig": "d2aa5a8c457dcbb7f2a85758608a71f4923365277067f8f16f485390c4145f17b1574bb4badaa3c161f8be7418e922acb54964d938d09c368ce33fb8a544a746"
}