Every nsec is an onchain wallet, when creating a nostr account you could create an xpub for the user, the user could keep it private in a nsec bunker, other user would send an event asking the npub for an address and the bunker would give it. Or the xpub can just be public if the user wants.

Reply to this note

Please Login to reply.

Discussion

No, without the xpub step. My idea was just to use the regular nostr pubkey to send sats to people that are not Bitcoin ready yet.

You could hide all that from the user, users would only know npubs. Otherwise maybe you can have a look at paynyms in bitcoin, don't know the inner workings but maybe it would be possible to use npub instead of a paynym code.

Would be more useful to accumulate Sats for someone not yet on #nostr.

Usecase: someone’s external post gets shared here but they’re not on nostr. They can join and collect those Sats

Yep, that's the goal. Or if they are here, but they just haven't setup their ln address yet.

How can new users have an npub “reserved” for them that they can collect Sats when they arrive? Maybe I’ve missed this?

Would be a quick solution to expand the service if AcceptLN.com with "Type any npub address — instantly send it Bitcoin Lightning"

Here is a solution for this scenario: AcceptLN.com a service to Type any email address — instantly send it using Bitcoin Lightning

#lightning #email #service

When tipping people that are not ready to be tipped by bitcoin I usually shared private keys with them, together with a disclaimer that these funds may get taken by me if they don't use them within 3 months. I printed that on paper wallets and so far I did not take any back but I fancy to believe I keep the backup somewhere in case I need to. I've seen waitresses throw away extra tips in Bitcoin right in front of me and I know that less than 5% did redeem the coins a year after I left them as tips, so by keeping a backup I can mathematically be 20 times more generous with my tips if I collect the lost coins later.

The same will apply to nostr users. They might not be that unlikely to "get" Bitcoin but I'm sure half of them will lose their nsec or not care about bitcoin ever.

You could use Bitcoin Script.

// Main script

OP_OVER OP_HASH160 OP_EQUALVERIFY OP_DEPTH 0 OP_GREATERTHAN

OP_IF

OP_VERIFY

OP_ELSE

OP_RETURN

OP_ENDIF

//

OP_CAT OP_HASH256

OP_SWAP OP_CHECKSIG

OP_VERIFY

OP_BOOLAND

//

// Example condition: check if the event content contains a specific string

OP_SWAP OP_SUBSTR OP_NIP OP_EQUALVERIFY

//

// Example: Unlock the UTXO by sending the funds to a specific address

OP_DUP OP_HASH160 OP_EQUALVERIFY OP_CHECKSIG

With this script, do i need to know the transaction id to unlock the utxo?

Very cool!

đź‘€