Avatar
Egge
ddf03aca85ade039e6742d5bef3df352df199d0d31e22b9858e7eda85cb3bbbe
Building https://npub.cash 🥜 Working on awesome nostr, cashu and Lightning stuff 💜⚡️
Replying to Avatar brugeman

Introducing nsec.app and nostr-login!

I've shown the prototype of https://nsec.app in December, and it's essentially an nsecbunker in your browser. It is non-custodial - your keys are stored locally in the browser, and apps can get access to your keys using NIP46. We've now turned that prototype into a real thing, and I invite you to try it. Shoutout to nostr:npub149p5act9a5qm9p47elp8w8h3wpwn2d7s2xecw2ygnrxqp4wgsklq9g722q for the designs!

Now how do we help Nostr apps adopt NIP46 for remote key access?

That's where nostr-login library comes in. If your app uses NIP07 to talk to a browser extension, then with just two lines of code you can make it talk over NIP46.

Both of these tools support the new OAuth-like flow proposed by Pablo. Below you can watch a demo of how nostr-login (added to my fork of Snort) works with Nsec.app (or would work with any other nsecbunker).

What this all means is that people could join Nostr on the web, without installing extensions or mobile apps, with their keys stored non-custodially in the Nsec.app, and then could log in to other Nostr apps without copying their private keys.

Demo: https://void.cat/d/JSWwYMTtbWxTDTLpe132Kr.mp4

Links:

Snort+nostr-login: https://snort.nostrapps.org

nsec app: https://github.com/nostrband/noauth

nsec app server: https://github.com/nostrband/noauthd

nostr-login: https://github.com/nostrband/nostr-login

This is awesome! I’ll play around with it and will try to add it as signing method inside Cashu-address-CLI 🤙

Okay here we go! 🔥

cashu-address-cli v0.1

⚠️ Highly experimental and only for the reckless

🔐 Encrypted nsec storage

🥜 claim nuts as eCash or on LN directly in your terminal

https://github.com/lightning-digital-entertainment/cashu-address-cli

Yeah sorry... Trying to keep up with everything. I'll get the docs updated by tomorrow!

You send a NIP-98 authenticated request to the server's claim endpoint. The server will respond with your eCash proofs. You can then spend those proofs at the mint to pay an invoice (simply said, withdraw to LN).

You can play around with the reference implementation on https://app.cashu-address.com using NIP-07. If you look at the network tab, its pretty obvious what is happening behind the scenes.

Yes absolutely. Every npub has a cashu-address by default. Nuts will be collected by the server (and locked to the users pubkey once P2PK is fully supported) and can be claimed using NIP-98

Isn't it?!

If you are looking to write stuff for hardcore users, then this will probably disappoint you, but it is written in NodeJS using the prompts framework, because thats what I can move the fastest in.

Once v0.1 is done, I wouldn't mind porting this to rust though, as building standalone executables in node is a pain...

Ever since Cashu-Address went live for testing I have gotten requests from people that want to use it without a NIP-07 provider...

coming to a terminal near you soon 💜

🥜 Claim your Nuts from your command line

🔐 encrypted nsec stored locally

https://video.nostr.build/5185cb07aab94f3333b8d2c3b05c81a7efeafad14af3e480eca6b609c7601ece.mp4

Isn’t nsecBunker built on NIP-46?

Working on a CLI for Cashu-Address for anyone that does not want to use a Browser/NIP-07.

Right not it supports adding your key via CLI, environment variables, or a key-file.

I‘d love to add support for nsecBunker. nostr:npub1l2vyh47mk2p0qlsku7hg0vn29faehy9hy34ygaclpn66ukqp3afqutajft can you help me add it?

Animated BlockchainCommons fountain codes on the web? There you go: https://github.com/lightning-digital-entertainment/ur-wasm-js

This library provides JS bindings for the ur-rust library via WASM.

Can’t wait to build awesome Cashu stuff with this

Working on a go program to create fountain codes that I’ll then compile to WASM in order to power animated QR codes on Cashu-address.com and other Cashu web apps 🤯

What a time to be alive! 💜🥜

Yeah you are right…

Right now there is no way to add eCash to a users balance other than via the Lightning address itself. I’ll make sure to add that soon.

Thank you for the feedback. Lightning claims in Cashu are a bit tricky, because you do not know how much fees you will need for the payment. Any leftovers will be paid out in eCash at the end.

If you do not claim that it’s gone. I’ll think about how to refine the process.

If you end up trying it, please make sure to leave your feedback with me!

Another day, another Cashu-Address update. 🔥

"Claim on Lightning" is finally coming to our web-UI.

If you want to use Cashu-Address as a Lightning Address for your non-custodial setup, claiming just became a lot easier! 💜 ⚡

https://video.nostr.build/f4000c0dcd16260f0e89070bf62a7a6a162bbbb0cf4ce4519276113bd45b0abb.mp4

Coming to a browser near you later today!