Join Nostr
2026-02-08 23:17:54 UTC

SatsAndSports on Nostr: In the Cashu channels, I'm using a DiffieHellman shared secret to add a little more ...

In the Cashu channels, I'm using a DiffieHellman shared secret to add a little more privacy in places. For example, it's used to compute the channel_id in order to make it more difficult for third parties to guess what the channel_id would be between two parties.

But AI has helped me realize that both parties should immediately hash the shared_secret upon computing it. In practice, this probably doesn't help much, but it's nice to hide any algebraic structure any time it's possible



you might say I'm overthinking this 😀. But it's fun to give these tasks to AI and continue watching a movie on a Sunday night while it executes: