Damus
calle profile picture
calle
@calle
Huge milestone: First demo of Nostr Web Services (NWS) bringing TCP to Nostr. With NWS, you can host any existing web application on Nostr without having to use DNS or even announce your public IP to the world, simply by sharing your service's npub (or nprofile).

Try it out the demo yourself. Here is a Cashu test mint running with NWS. Let's use curl to retrieve the mint's information. The request travels from your computer to the public NWS entry relay, then through nostr to the service's NWS exit relay. At the other end is a Cashu mint with HTTPS encryption.

```
curl -s -x socks5h://relay.8333.space:8882 https://nprofile1qqs8a8nk09fhrxylcd42haz8ev4cprhnk5egntvs0whafvaaxpk8plgpzemhxue69uhhyetvv9ujuwpnxvejuumsv93k2g6k9kr/v1/info --insecure | jq
```



I can't stress this enough: THE MINT RUNS BEHIND HTTPS!

The NWS entry relay can't read your traffic. It's encrypted. We can host public entry relays that can be used by anyone.

This means we can plug the entire internet to it 🌐.

Let's plug it into Cashu for now. Nutshell wallet supports socks5 proxies (that's how it uses Tor). By setting the public entry relay as the proxy, the wallet can now connect to a mint's npub/nprofile and communicate with it via NWS.



This is going to be so freaking cool. And it's going to be a lot more useful than just for Cashu. There are still bugs and issues that need to be ironed out but the code is coming out soon. Watch this space.
107130❤️222🤙64🔥22👀16🚀16❤️11
BITKARROT · 87w
👀
james r · 87w
I don't get the point of doing this
₿eno⚡️ · 87w
Soo, it's like TOR? How does NWS route the request through its web of relays? In other words, how does the entry node know which NOSTR relay is hosting the nprofile service?
ZLastDegen · 87w
This is huge indeed !! Need to study that more deeply. Thank you
nostrich · 87w
Looks cool! I don't know yet what I personally would use it for, but sweet you got it up running with SSL 😁
⚡ Lightning Ra₿₿its ⚡ · 87w
🥕 🥕 🥕 🥕
VOLKER - Voice Of Logic Knowledge Experience & Responsibility · 87w
It works. On a mac. Out of the box. 😳 curl -s -x socks5h://relay.8333.space:8882 https://nprofile1qqs8a8nk09fhrxylcd42haz8ev4cprhnk5egntvs0whafvaaxpk8plgpzemhxue69uhhyetvv9ujuwpnxvejuumsv93k2g6k9kr/v1/info --insecure | jq { "name": "\"Cashu NWS mint\"", "pubkey": "0296d0aa13b6a31cf0cd974249...
VOLKER - Voice Of Logic Knowledge Experience & Responsibility · 87w
Shut up and take my traffic!
accumulator · 87w
--insecure
tigs · 87w
Godsend you are! Thank you for the PoW 🫡
VictorieeMan · 87w
any minimal working sample websites hosted like this yet?
Sarkosia · 87w
I give this 6 months until it's used to stream porn.
good Vietnam · 87w
Great thing for the next web 👏
euclid · 87w
Is there anything preventing the NWS relay from doing a MITM attack? I guess you could take the result from curl and check the nostr signature, but curl alone is unsafe right?
just one more thing · 87w
ok, I am functionally retarded and need a hand understanding. what would be some examples of things this could revolutionise?
supersu · 87w
Isn't this a normal server with extra steps? This would bring more traffic and means more bandwidth for the Nostr relays.
statusquont · 87w
Don't all nostr relays use DNS? How do you bootstrap around that?
Remco Ros · 87w
So this is SOCKS5 over JSON messages over Websockets over HTTP over TCP/IP... did I miss any layers? Cool stuff, but I don't know how viable this will be in the long run.
Carrla · 84w
I started with $1000 and, after just 6 hours of investing, I was able to turn it into $6,000. This opportunity is completely legitimate and safe to invest in. I am grateful to my coach who helped guide me through this process. If you are interested in seeing similar results, make sure to DM him now ...