What is Nostr?
jb55 / Will
npub1xts…kk5s
2024-06-09 14:44:02

jb55 on Nostr: Silent Payments are clever: you create a shared secret (ecdh) from a utxo and a ...

Silent Payments are clever: you create a shared secret (ecdh) from a utxo and a public silent payment address. Then you simply add (tweak) this shared secret into this silent address.

The receiver then scans the entire utxo set, looking for any payments to this silent payment address tweaked with the shared secret from all taproot/pubkey inputs.

For onchain zaps, you can skip the scanning process and just send a giftwrap with the txid and the receiver can verify that you sent it and control the utxo just by knowledge of this shared secret.

To generate the shared secret from the sender side, you need the inputs private key multiplied by the silent address pubkey.

On the receiver side, you multiply the silent address secret key by the input’s pubkey.

This gives you the same shared secret which you can use on both sender and receiver side to validate the onchain zap.

The nice thing about leveraging silent payments is that the receiver doesn’t have to use nostr, they could just be using a silent payments wallet to receive the zap.

On the nostr side, all you would need is a silent payment address in your profile. Heck you could even use the users pubkey itself as a key as a less secure silent address fallback if they don’t have one in their profile.
Author Public Key
npub1xtscya34g58tk0z605fvr788k263gsu6cy9x0mhnm87echrgufzsevkk5s