Quick video previewing a feature I've built for Cashu.me that lets you quickly and easily create and redeem a Cashu token locked to an npub.

The first 20 seconds shows how you can easily create a token that is locked to an npub.

It then shows how you can import your nsec into your wallet as a P2PK key in order to redeem tokens locked to your npub.

NOTE: The feature isn't live yet, and may get tweaked before release, but am pretty excited by it.

https://m.primal.net/PhwX.mp4

#bitcoin #cashu #nuts #p2pk #nostr #howto

Reply to this note

Please Login to reply.

Discussion

This is great. This one feature adds so much value to nostr keypairs.

Nsec bunkers on the roadmap?

Will probably have to leave that to calle. The key hurdle is that Nostr signers expect to sign events (esp NIP-07), whereas the Cashu mint wants a non-event formatted secret signed.

0xchat also uses nsec directly, because you enter it when you login.

Ah hah. Earlier I tried 0xchat when logged in via nsec.app bunker, no go for redeem, but revert to nsec and all good—so what you said tracks. Wonder if a collaborative ECDH via Frost would do it?

nevent1qvzqqqqqqypzqs3fcg0szqdtcway2ge7zahfwhafuecmkx9xwg4a7aexhgj5ghleqqsdfqyp8nwk9mypej2xvys3uhf05w98dujj6fjnz4nflm969czc0nsh49klp

You've got a business background, penny for your thoughts on Cashu mints and licensing. Think licensing requirements are inevitably going to hit mint operators with mints doing a certain volume (likely those affiliated with viral apps)? A class of licensed/regulated mints emerges—good thing, bad thing?

Government licensing I assume?

That will inevitably bring KYC requirements etc which is totally against the spirit of cash. It’s why I haven’t looked at running a mint for my company.

For that reason, I think family mints will evolve… small scale decentralised… personal…lightning payments to move money between “families”.

Large mints will exist in friendly jurisdictions, of course, but bank lobbyists won’t make it easy for mints in socialist states like the UK AND EU (aka the EUSSR).

What do you think?

Yeah, government licensing. I think even at medium volumes it's more or less inevitable in most places just because of what a mint actually is. I actually think it makes sense to get on top of it, start working with regulators in friendlier jurisdictions, educate them and work towards preferential licensing schemes that'd keep the door open for Nostr apps with built in mints that could go viral (provided the app entity registers there).

KYC for AML I think could be handled via the app that gates the mint and in such a way that a degree of privacy is maintained. Perhaps by only KYC-ing mint users that have hit a certain withdrawal-over-time threshold (and they'd be well warned), and other risk-based models. Would depend on the mint proving to the regulator that it's air-tight gated by the app that houses the mint.

But overall I feel that Cashu has huge potential for businesses, not just family mints and such, and if it's possible to get to a workable set of trade offs then why not.

Initial thoughts, plan to dig a little deeper next few weeks.

Wow that's awesome! 👏🏻

Thanks Jonathan

Very Amazing, Sir 🫂🫡

Thanks 😄

Nice

Is this built with cashu-ts?

Do you have code you can share so I can try this too?

Is it secure to put your nsec (only handled locally on device)?

You can download and play with my fork of cashu.me:

https://github.com/robwoodgate/cashu.me

The nsec feature is in the nsec-p2pk branch. The locking to npub feature is in the npub-p2pk branch.

Hopefully these feature branches will get pulled into the main Cashu.me wallet at some point soon.

Adding nsec directly is a bit "old school" - signers are preferred - but is generally safe if you trust the app (eg 0xchat) or it runs on local browser only (eg Cashu.me / Nostrly Cashu redeem).

At this point, due to the way signers and Cashu mints operate, you can only unlock a P2PK with the private key itself (eg nsec)

Wow very interesting ✌️😉

😳 Powerful

The ability to lock tokens to an npub and receive tokens locked to your npub is now live in Cashu.me

nostr:nevent1qqs9u5z0tezugkp9jd2n7laqrh3rhgdh5currtdkmtat4axxttz0vgskh3ry3

#cashu #bitcoin #nostr