mleku on Nostr: then you can't read your sent messages either and that's not even covering the fact ...
then you can't read your sent messages either
and that's not even covering the fact that the secret key used in the encryption is a one shot and you don't store it so you couldn't even decrypt it if you only kept the npub on record
i think "giftwrap" is a dumb expression, because really it's a one shot secret key, the public key is the recipient's, and because of ECDH they can decrypt it because they know the secret to it, and the pubkey you generated one off
it should be called a one-shot encryption, i'd be willing to bet that there is even a proper term for it in encryption programming theory
Published at
2024-07-03 11:34:36Event JSON
{
"id": "06c33e51d4049eb13837e22828553617efe79cded842e24d6857b22b479bead7",
"pubkey": "4c800257a588a82849d049817c2bdaad984b25a45ad9f6dad66e47d3b47e3b2f",
"created_at": 1719999276,
"kind": 1,
"tags": [
[
"e",
"49f673e7f4e383e054ab96280041560b088879406f72a1910ccb1ff58d2ded2e",
"wss://relay.primal.net/",
"root"
],
[
"e",
"8dadc69414ab3043478c3119fe405604dafb03f68f3d5b13f0d75b7dad3d70d3",
"",
"reply"
],
[
"p",
"1739d937dc8c0c7370aa27585938c119e25c41f6c441a5d34c6d38503e3136ef",
"",
"mention"
],
[
"p",
"a9434ee165ed01b286becfc2771ef1705d3537d051b387288898cc00d5c885be",
"",
"mention"
]
],
"content": "then you can't read your sent messages either\n\nand that's not even covering the fact that the secret key used in the encryption is a one shot and you don't store it so you couldn't even decrypt it if you only kept the npub on record\n\ni think \"giftwrap\" is a dumb expression, because really it's a one shot secret key, the public key is the recipient's, and because of ECDH they can decrypt it because they know the secret to it, and the pubkey you generated one off\n\nit should be called a one-shot encryption, i'd be willing to bet that there is even a proper term for it in encryption programming theory",
"sig": "1c476b6df231f93e96309f712e300774f27eb85fc0d1a5932b9a3fd3ffccff08e4e87350d2689ea9b08945e08493fad20b8ab7b40727d715c46f7c654fe397fd"
}