What is Nostr?
npub1rx9…htd4
2024-06-10 05:09:13

npub1rx…ghtd4 on Nostr: Silent onchain zaps ...

Silent onchain zaps

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
npub1rx9wg2d5lhah45xst3580sajcld44m0ll9u5dqhu2t74p6xwufaqwghtd4