jb55
All posts
Tim Bouma profile picture
Tim Bouma
@Tim Bouma
OK I did it. Instead of a P2TR address for your npub, I implemented Silent Payments.

I managed to:

1. Create a Silent Payment address from my npub,
2. Send a Silent Payment from Cake Wallet (the only wallet I could find that supported it)
3. Detect the valid transaction outputs that containthe Silent Payment
4. Swept the funds from the Silent Payment to a fresh bitcoin address that I control using the corresponding nsec (redacted in diagram, below, of course)




So the bottom line, I have shown that any npub can receive silent payments and sweep those funds to another wallet. Total privacy on the public blockchain. No one know I received or sent the funds.

I have the command line working and I will figure how to wire this into the web app in the coming days. That should put an end to the debate of using your social nsec as a wallet.

The command line looks like:

$>openetr sweep-silent-payment NSEC TXID DESTINATION_ADDRESS

/cc

Alex Gleason Gigi Vitor Pamplona jb55 nobody


#silentpayments

3
jb55 · 28w
nice
Jared Logan · 28w
imo the SP address should be decoupled completely from the identity key and only announced via nostr. As built here it's derived from the npub. so it's still deterministic and computable from the npub by anyone, which is the nasty property of doxxcoin. And then it leans on the nsec for the sweep, ex...