RFC: Cashu zaps NIP
https://wikifreedia.xyz/cashu-zap-nip/f7z.io
Proposal to make cashu zaps where the payment itself is the zap (instead of waiting for a zap receipt from the zapper)
The sender locks a zap to the recipient's pubkey, optionally sending to a mint the user has recommended before (kind:38000).
Cashu is a bearer token so the receipt IS the money and the money IS the receipt.
@calle
Login to reply
Replies (40)
ππππππππππππππππππππππππππππππππππππππππππ
Wen nut zaps? Now! π₯π
RFC: Cashu zaps NIP
https://wikifreedia.xyz/cashu-zap-nip/f7z.io
Proposal to make cashu zaps where the payment itself is the zap (instead of waiting for a zap receipt from the zapper)
The sender locks a zap to the recipient's pubkey, optionally sending to a mint the user has recommended before (kind:38000).
Cashu is a bearer token so the receipt IS the money and the money IS the receipt.
@calle
View quoted note →
πππͺ
RFC: Cashu zaps NIP
https://wikifreedia.xyz/cashu-zap-nip/f7z.io
Proposal to make cashu zaps where the payment itself is the zap (instead of waiting for a zap receipt from the zapper)
The sender locks a zap to the recipient's pubkey, optionally sending to a mint the user has recommended before (kind:38000).
Cashu is a bearer token so the receipt IS the money and the money IS the receipt.
@calle
View quoted note →
Exciting stuff!
Sounds amazing, but the link gives a
DatabaseClosedError: UpgradeError Not yet support for changing primary key
π
wikifreedia replacing the NIPs repo? π€
Clear your local indexdb; I just have fucked up a migration
Sounds like a good way to throw the privacy benefits of cashu out the window.
Letβs attach pubkeys to the receipts!
The amount and the mint are in the token. Is the idea behind putting them in the tags so that clients don't have to parse tokens? If so how is posting an amount tag of 1000 but a token worth something else handled?
Can you (or anyone) recommend something to read on how to lock tokens to a pubkey in practice?
Yup. If the amount and token donβt match h you have a cryptographic signature of a lie which is an utter self-own
Always shipping π₯π₯
fuck yeah
cashuAeyJ0b2tlbiI6W3sibWludCI6Imh0dHBzOi8vbWludC5taW5pYml0cy5jYXNoL0JpdGNvaW4iLCJwcm9vZnMiOlt7ImFtb3VudCI6MTYsImlkIjoiMDA1MDA1NTBmMDQ5NDE0NiIsInNlY3JldCI6IltcIlAyUEtcIix7XCJ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dLFtcInJlZnVuZFwiLFwiMDIwNDkxOGRmYzM2YzkzZTdkYjZjYzBkNjBmMzdlMTUyMmYxYzM2YjY0ZDNmNGI0MjRjNTMyZDdjNTk1ZmViYmM1XCJdLFtcInNpZ2ZsYWdcIixcIlNJR19JTlBVVFNcIl1dfV0iLCJDIjoiMDJkYTNjYjcwNDgyMDA0NmEyZmNmNWExZTEyOTY3NTczZTRmZjRiNDc1ZDc0NmU5NWNkMDBiMGQxZTQ1Y2ZkMThiIiwiZGxlcSI6eyJlIjoiYmJlMjgyZGU2MTUwNDc1ZWFiNTUzZTE5MWFjNTkxNTk4MWNlMDgxY2JiOWFjMmFiMTI5N2Y1OThmODliYWU1YiIsInMiOiIxZWZjMDg4YTA0OGY0ZDA3OTk2YTFkMDM2YmVkNWU0OTJlNDM0MDdmMGI1ZTY1NDVhZTU1YTdiMzY3ZWFmZjc0IiwiciI6Ijc3MTdlYzY0YjQ5NjZlYTI1ZjA1OTEwMWUwMDVmNDdhZmQ5ZDk2MjczYWQ5OTlhODEzOWNkYjIxZjA4YzM5NmEifX1dfV0sInVuaXQiOiJzYXQifQ==
But then the receipt has a lot of unnecessary metadata that everyone needs to download (the serial number of the ecash).
Amazing
Once you receive the payment, the ecash becomes unlinked from it's history again.
This is nice! If clients only *might* check if the key is locked to the receiver, might they also check a DLEQ proof in the token to check the mints signature? Would be cool to recommend that.
Making things more user friendly - canβt be mad at that :-)
What about for the sender? Is there not now a public log of their sends?
Love it!
Locked?
It's a zap. You don't want privacy, but the exact opposite.
Get in loser, we're zapping nuts.
Bring out the old nutzapper video @jb55.
RFC: Cashu zaps NIP
https://wikifreedia.xyz/cashu-zap-nip/f7z.io
Proposal to make cashu zaps where the payment itself is the zap (instead of waiting for a zap receipt from the zapper)
The sender locks a zap to the recipient's pubkey, optionally sending to a mint the user has recommended before (kind:38000).
Cashu is a bearer token so the receipt IS the money and the money IS the receipt.
@calle
View quoted note →
Yup
I think we need to figure out how we should treat nostr (x-only) pubkeys since we're not savages (yet) and require a key to have at least a parity byte prefix (33 bytes).
Hahaha πΉ
Keeping an eye on it! π
Ark Payments are very similar in this regard
https://arkdev.info/docs/learn/payments
Please god no. @PABLOF7z I love you but, it has to be said, Wikifreedia is so painful to read on.
Working on design for Wikis.
What are your top needs regarding something like a NIP?
Ideally commenting & reactions on the whole doc. But also being able to highlight sections and leave comments too for just that section.
I think the entire UI needs a rethink. When I click on a topic and get a list of articles from different folks, it's sort of unclear why I should pick one or another (other than just simple recommends).
Mind blowing up!
Some sort of ranking of versions? Quick mental shortcut to most likely the best version
Awesome thanks, I have solutions to all of that π.
Will post vid later.
It's definitely going to be huge. Once finish the NIP, I think I will implement it right away.
LFG
I actually just ran into some βtoken already spentβ issues with the wallet. Can I message you on 0xchat for support?
sure
Thanks. It will be from @bullishNuts