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.
135131❀️222πŸ€™64πŸ”₯22πŸ‘€16πŸš€16❀️11
BITKARROT · 97w
πŸ‘€
james_r · 97w
I don't get the point of doing this
β‚Ώeno⚑️ · 97w
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 · 97w
This is huge indeed !! Need to study that more deeply. Thank you
nostrich · 97w
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 ⚑ · 97w
πŸ₯• πŸ₯• πŸ₯• πŸ₯•
VOLKER - Voice Of Logic Knowledge Experience & Responsibility · 97w
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 · 97w
Shut up and take my traffic!
accumulator · 97w
--insecure
tigs · 97w
Godsend you are! Thank you for the PoW 🫑
VictorieeMan · 97w
any minimal working sample websites hosted like this yet?
Sarkosia · 97w
I give this 6 months until it's used to stream porn.
good Vietnam · 97w
Great thing for the next web πŸ‘
euclid · 97w
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 · 97w
ok, I am functionally retarded and need a hand understanding. what would be some examples of things this could revolutionise?
supersu · 97w
Isn't this a normal server with extra steps? This would bring more traffic and means more bandwidth for the Nostr relays.
statusquont · 97w
Don't all nostr relays use DNS? How do you bootstrap around that?
Remco Ros · 96w
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 · 94w
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 ...