Avatar
Niall Young
234dd2c21135830a960a462defdb410ac26f178cbf8e13fbe43890f8656ee983
Software Engineer; Sceptical Scientist; Bitcoin Maximalist; Carnivore; Suspicious0bserver; Freedom Patriot. Protected Political Speech. goNDK #golang

Anyone out there tinkering with private whitelist / offline relays for local communities?

GM it is a glorious Friday here in the future โ˜€๏ธ

Replying to Avatar calle

NWS Cashu demo for devs who're able run nutshell from the git repo. This demo explains why I'm bullish on it.

Clone and install nutshell using poetry from the git repo following the readme first. You might have done this already if you worked with nutshell before. You need to use a branch with a small patch to try it out. Make sure to not use this wallet other than for development and testing:

```

git fetch && git checkout nws-demo

```

You should now be able to mint free and worthless ecash with this command:

```

SOCKS_PROXY=relay.8333.space:8882 poetry run cashu -h https://nprofile1qqs8a8nk09fhrx.ylcd42haz8ev4cprhnk5egntv.s0whafvaaxpk8plgpzemhxue69uhhyetvv9uj.uwpnxvejuumsv93k2g6k9kr invoice 10

```

Notice how we didn't have to install anything additionally. All nutshell does is to connect to a socks proxy. It doesn't know the IP address of the mint. The mint lives on nostr and nowhere else.

Because the mint uses https, the socks proxy can't read the traffic. That's the reason why we chose to implement it at the TCP layer below https. Otherwise public entry nodes wouldn't work with this design.

This can also work in a browser (Tor etc unfortunately doesn't work without additional software) which is why it's going to be useful for Cashu. I'm not sure yet whether TLS can work from the browser as well, but http does, I've tried it. That's fine though because a web client can also skip the entry node (who could otherwise read your traffic if you don't encrypt it) and instead communicate with the exit node directly over nostr. I've done this by intercepting my web app's requests and dumped the http requests over pablo's NDK to the exit relay.

HTTP402 โ€ฆ

what are the current hurdles, or are you getting nearer to native-nostr and reducing git server completely?

For now anyone can just ssh push up signed commits to an https exposed path (using any free/cheap vps / website host) but yeah NOSTR solves a lot reputation, mirroring etc. just .. Embedded? DHT? Merkelized refs? ๐Ÿค” ๐Ÿคช

Replying to Avatar 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.

yep ๐Ÿ‘

bootstrapping my first React App (also my first solo js/ts project ๐Ÿ™) a simple client PWA based on

https://github.com/suren-atoyan/react-pwa

with all the modern standards, tests etc ready to go .. looks good so far ๐Ÿ‘

Yeah my todo lists all just grow ๐Ÿคฃ

Iโ€™m trying to cut back but ๐Ÿคฆโ€โ™‚๏ธ

Just `git push` via ssh up to a cheap webserver exposing that path via https - could publish the url and any updates here on nostr

~active/โ€œrealโ€ npubs, approx. user growth over time

#Lahaina breaks my heart ๐Ÿ˜ญ

Is this the shape of things to come? Masers and DE weapons to fast-track the theft of all traditional land, now global?

I was driving through the NSW fires in 2019, believe me it was not normal - everything from the particulate density, humidity and fog (!) even the visible spectrum seemed odd - not your regular close fire, but much finer particulate and MUCH more of it hanging in the air .. amazing sunsets but the atmosphere seemed over-saturated in certain spots

And at the same time, major highway works were ongoing, gravel roads as well as fire detours and only one safe route through.

We all kept coming through, trucks and cars, and the roadworks continued - all highly organised, Emergency Services everywhere responding or ready. Roads closed a day or two after us. Highly organised, never seen such a presence to keep things moving around the various fires that were all happening in parallel.