nostr:npub12rv5lskctqxxs2c8rf2zlzc7xx3qpvzs3w4etgemauy9thegr43sf485vg have there been proposals to address Cashu mints by nostr pubkey instead of DNS based address?
API commands would be sent over Nostr. I'm even thinking double ratchet could be suitable for this, providing forward secrecy for past API calls 🤔
I'd also like to have that on npub.cash so incoming lightning txs would show up instantly from the nostr subscription.
Login to reply
Replies (10)
Yes, we did experiment with this. Back when NWS (nostr web services) was introduced. None of the HTTP-over-nostr standards have ever stuck though, I wish they did. IMO a cool idea.
We're currently adding OHTTP to Cashu for IP privacy.
CC nostr:nprofile1qqsthdwa5rs42euhnuz5xsrmmssr84hshwes7uj392vpeldj7z0zw3cppemhxue69uhkummn9ekx7mp0qyghwumn8ghj7mn0wd68ytnhd9hx2tcpz4mhxue69uhhyetvv9ujuerpd46hxtnfduhscs6htm nostr:nprofile1qqsqddupn4l3cl65wggcyehd009g0pwuatsfudh28f90vewx68vrylqpvemhxue69uhkv6tvw3jhytnwdaehgu3wwa5kuef0dec82c33wymx6cmj8p6xcu3nds6xwatnxdekvmnhxcmnwvnnxaaxzefkdpckucmdwu6hw63jxajk5atyx4mkx7rxxacnqmncxajr20mzwfhkzerrv9ehg0t5wf6k2qgwwaehxw309ahx7uewd3hkctcpremhxue69uhkummnw3ez6ur4vgh8wetvd3hhyer9wghxuet59uyj8h7j nostr:nprofile1qqspp9hkhc9y6lcwesklfmfvs6plzsl0eq0whglvumd2m5hu5ax8anqprpmhxue69uhkummnw3ezucmgv95k6cfwd9hxvme0qyt8wumn8ghj7mmjv9hxwetn09hxxtn5v43kstcpr3mhxue69uhkymmnw3ezummjv9hxwetn09hxxtn5v43kstcsa3stq
Iroh seems promising
Mints could use NoDNS to become unruggable. It requires very little config on the Mint's side and clients can choose wether they use NoDNS or legacy DNS.
nostr:nevent1qvzqqqqqqypzpwa4mkswz4t8j70s2s6q00wzqv7k7zamxrmj2y4fs88aktcfuf68qy88wumn8ghj7mn0wvhxcmmv9uq3zamnwvaz7tmwdaehgu3wwa5kuef0qy2hwumn8ghj7un9d3shjtnyv9kh2uewd9hj7qpqr3rvvkmv0d05namemhsal5fvnvq5m8yvxskspxzmhfwc8y77fetsydy6ll
Contact the mint via nostr:nprofile1qqsxkduqau5h9eeaxu9cfgl9rea2nt35haqjjwxul0vuta3myg2pdjqpzemhxue69uhhyetvv9ujumn0wd68ytnwv46z7qghwaehxw309aex2mrp0yhxummnw3ezucnpdejz740vluv no need to reinvent the wheel
There is also httpN, we use it in two of our apps
https://git.nostrdev.com/stuff/httpn
Run the mint on localhost > Use ContextVM to wrap its api > You have a mint addressable by pubkey and accessible through nostr. All calls use ephemeral events and are gift wrapped in the case of encryption
It would be cool to have nostr bindings for the nutshell mint. Similar to https/rest api bindings using Fastapi - it could be done something like nostr/NWC. FWIW I am seeing the emergence of a decentralized messaging bus architecture using nostr - this would be a cool project to test it out.
I may have to find some time to build this
https://primal.net/e/nevent1qqsqd5ywtfpvwjfdlq5ga3aerwyp6jacl47u4ku2upkyuh2d5y2ccaqt9wq5u
#asknostr