-
![](https://avatars.githubusercontent.com/u/146755634?v=4)
@ mleku
2025-02-14 20:44:53
https://en.wikipedia.org/wiki/Noise_Protocol_Framework
for those in the back of #nostr #devstr we could be using these without any issues with crypto export nonsense, as well as the AES-AEAD used in nip-04
see, they use the sexy chacha20-poly1304 ed25519 blake2 trifecta, but it already was written ages ago and is perfectly usable for single messages like nip-44
i have a sha256-secp256k1 (yes, you only need a hash and a signature) scheme that uses a 32 byte initialization vector (aka nonce) combined with the secret using sha256 and then generates 32 byte cipher stream blocks much in the same way as a CBC
you literally don't need to invent a stupid chacha based symmetric cipher with ECDH key derivation scheme, there is already several