Global Feed Post Login
Replying to Avatar ᴛʜᴇ ᴅᴇᴀᴛʜ ᴏꜰ ᴍʟᴇᴋᴜ

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

Avatar
ᴛʜᴇ ᴅᴇᴀᴛʜ ᴏꜰ ᴍʟᴇᴋᴜ 1y ago

https://github.com/indra-labs/indra contains code i wrote that extensively uses one-shot keys to wrap messages in multiple layers in the same way as it is done with lightning payments, but for carrying actual network packets

Reply to this note

Please Login to reply.

Discussion

No replies yet.