Replying to Avatar calle

nostr:npub1mhcr4j594hsrnen594d7700n2t03n8gdx83zhxzculk6sh9nhwlq7uc226, nostr:npub179e9tp4yqtqx4myp35283fz64gxuzmr6n3yxnktux5pnd5t03eps0elz4s has a brilliant idea here btw: DMing the service could also be used to initiate a withdrawal.

Wow! That really is brilliant nostr:npub179e9tp4yqtqx4myp35283fz64gxuzmr6n3yxnktux5pnd5t03eps0elz4s!

This will definitely get integrated 🙌🏻

Reply to this note

Please Login to reply.

Discussion

DM is the CLI of nostr, almost nobody has developed it yet tho, even though potential

mainly because of authentication

https://github.com/Hubmakerlabs/replicatr/blob/main/app/chat.go

this is some code i wrote that provides a bypass to allow auth as with NIP-42 but manually in DM

you have to do a challenge because otherwise you enable playback attacks and MITM

Server can keep track of ids and disallow timestamps that are out of bounds. No need for a challenge

LightningTipBot PTSD

you could the user just drop an invoice for example, that sounds like a very simple initial integration to me

Yes. Though there are things to consider. What’s about change, what’s about P2PK locked balance?

An API via DM is a low hanging fruit, especially to just get the token out. But full “wallet” support is probably infeasible (at least once P2PK is enabled for all users)

Agreed, it gets a lot more complicated with p2pk......

The user is able to choose whether to use p2pk or not? If not, this should work, if yes, I don't see how to do it other than to receive the token itself to your cashu wallet (which still doesn't have widespread support so far).