Oddbean new post about | logout
 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.

https://m.primal.net/JVBS.png  
 👀
nostr:nevent1qqsy2tcum98hx8uyxq4xhj0d0k05gu6er8jj9yjy6u0vh8m8h9t8m4qpzamhxue69uhhyetvv9ujuurjd9kkzmpwdejhgtczypgdjn7zmpvqc6ptqud9gtutrcc6yq9s2z96h9dr80hss4wl9qwkxqcyqqqqqqgzrccps 
 Would this work for allowing us to clone git repos from one another?