<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Dave Hrycyszyn on Medium]]></title>
        <description><![CDATA[Stories by Dave Hrycyszyn on Medium]]></description>
        <link>https://medium.com/@davehrycyszyn?source=rss-679ce052e99c------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/2*BHUxi6o2tumzp2mme5WELA.jpeg</url>
            <title>Stories by Dave Hrycyszyn on Medium</title>
            <link>https://medium.com/@davehrycyszyn?source=rss-679ce052e99c------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 20:54:16 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@davehrycyszyn/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Current Nym network status]]></title>
            <link>https://medium.com/@davehrycyszyn/current-nym-network-status-5387e1becc75?source=rss-679ce052e99c------2</link>
            <guid isPermaLink="false">https://medium.com/p/5387e1becc75</guid>
            <dc:creator><![CDATA[Dave Hrycyszyn]]></dc:creator>
            <pubDate>Tue, 01 Dec 2020 12:36:56 GMT</pubDate>
            <atom:updated>2020-12-02T11:33:17.627Z</atom:updated>
            <content:encoded><![CDATA[<p>On Saturday, the <a href="https://testnet-explorer.nymtech.net/">Nym testnet</a> underwent what’s known as a <a href="https://en.wikipedia.org/wiki/Sybil_attack">Sybil attack</a>, where someone multiplies resource use in order to annoy a network into submission. From 11am until evening, an internet comedian was auto-scripting new nodes, so we went from about 1,600 nodes to well over 10,000 in the space of a few hours (bigger than Tor, and as big as the larger cryptocurrency systems in the world). At that point, we shut down the network monitor, so that in case the attack continued we didn’t have monitor timeouts and start accidentally penalizing good nodes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*B94GPid9X140E6UQdD-kFw.jpeg" /></figure><p>Rewards for node operators will still be given out as normal, but the network monitor which increases reputation is currently disabled. We have also temporarily shut off registration of new nodes for the moment, to get rid of the Sybil attack.</p><p>This was a good stress-test of the network, we scaled very well throughout it.</p><h4>What’s the plan now?</h4><p>We are going to put in place a temporary fix which will allow us to re-enable the network monitor. We are also going to do a few other things:</p><p>a) we are going to cap the network for the moment at 1500 mixnodes. This is slightly less than our node count on Saturday when the attack happened, and it seems like a good network size for now. As a side-effect, our comedian friend will see no benefit from the attack. If a node under-performs (drops packets, or is off line and its <a href="https://medium.com/nymtech/nym-incentivized-testnet-and-reputation-system-5584bcb7e38e">reputation</a> drops) the node will be removed from the network and a new node can join.</p><p>b) we are going to enforce a one-port-per-IP-address rule on all nodes. There is no extra CPU power or bandwidth available to the network if people set up multiple mixnode instances on one machine and run on multiple ports. People who do it shouldn’t get any extra rewards.</p><p>c) we are also going to stop accepting new validators.</p><p>So, most parts of the network will be capped in size. We would, however, like to see some more gateways join the network. Gateways will in the near future be included in the network monitor’s assessment, and will gain rewards in line with reputation points just like mixnodes currently do.</p><p>Once those changes are made, we will restart the network monitor.</p><h4>How will mainnet deal with these kinds of attacks?</h4><p>Sybil attacks are a well-known and understood problem in decentralized systems design. As we progress towards mainnet, the plan is that mixnodes will need to “stake in” with some amount of token. If a node subsequently performs poorly, then it will either not get rewards (leading to an opportunity cost), or it might have its stake slashed. We are still debating the exact mechanics here.</p><p>We are also planning a system of stake delegation for mixnodes. Taken all together, the system will aim to consolidate a group of high-quality nodes that are able to handle network traffic, maintain a good margin of spare capacity, and provide staking rewards for both mixnode operators and users who delegate.</p><p>We are still building the necessary staking contracts, so it’ll take a few weeks until there is a permanent solution to the problem which allows the network to keep growing.</p><p>As a side note, to whoever set up the scripting attack: thanks! You did a nice little scalability test for us. The attack proved that we were able to scale several of our systems (the network monitor, our trial mixnodes, the directory embedded within our validator, and the network explorer) well beyond what I would have been confident about beforehand.</p><p>We probably need a redesign of the network explorer so that we’re not showing all nodes, something that has been apparent for a long time. But the basic functioning of many core systems was mostly unimpaired due to the new architectural changes in release 0.9.x. Expect further network survivability improvements in 0.10.x and beyond.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5387e1becc75" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Nym v0.9.2 released]]></title>
            <link>https://medium.com/@davehrycyszyn/nym-v0-9-2-released-c4a837e1683f?source=rss-679ce052e99c------2</link>
            <guid isPermaLink="false">https://medium.com/p/c4a837e1683f</guid>
            <dc:creator><![CDATA[Dave Hrycyszyn]]></dc:creator>
            <pubDate>Thu, 26 Nov 2020 18:05:08 GMT</pubDate>
            <atom:updated>2020-11-26T18:05:08.598Z</atom:updated>
            <content:encoded><![CDATA[<p>The Nym platform v0.9.2 is now available.</p><p>All mixnode and gateway operators should update their running code. Validators do not need to update for this release.</p><p>The new version should fix the networking problems that we’ve been seeing over the past few weeks, primarily due to the spectacular growth we have been seeing in mixnode numbers. We have now surpassed the 1500 node level.</p><p>We have re-enabled the network monitor which tracks node uptime / reputation. Only v0.9.2 nodes will be monitored. Older nodes will have their reputation frozen until they upgrade. So there’s no massive hurry to upgrade, your reputation is not being degraded. But the sooner you upgrade your node, the sooner your reputation will start rising again.</p><p>Thanks once again to all of our node operators!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c4a837e1683f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Nym 0.9.1 now available]]></title>
            <link>https://medium.com/@davehrycyszyn/nym-0-9-1-now-available-1f359284ff84?source=rss-679ce052e99c------2</link>
            <guid isPermaLink="false">https://medium.com/p/1f359284ff84</guid>
            <dc:creator><![CDATA[Dave Hrycyszyn]]></dc:creator>
            <pubDate>Tue, 24 Nov 2020 12:31:31 GMT</pubDate>
            <atom:updated>2020-11-26T10:53:17.921Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="Nym 0.9.1 code is now released!" src="https://cdn-images-1.medium.com/max/1024/1*ljQPCQ7OdLobqCLwKGywSA.png" /></figure><p>Thanks so much to everyone who has taken the time to set up a Nym mixnode. You are now part of one of the largest privacy networks on the planet, and probably the fastest-growing one.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/436/1*tOJD4T1eZSkKxkj401c2Xg.png" /></figure><p>As our mixnode operators will have noticed, testnet network monitoring has been shut off over the past few days. We have been busily fixing a few bugs in order to get it going again.</p><p>We have now released the 0.9.1 version of the Nym platform, which contains fixes to networking code as well as some conveniences for node operators (see the <a href="https://github.com/nymtech/nym/blob/develop/CHANGELOG.md">changelog</a>).</p><p>All mixnode operators must upgrade their code. You should also follow our new instructions on <a href="https://nymtech.net/docs/run-nym-nodes/mixnodes/#set-the-ulimit">setting ulimits</a>.</p><p>Validators and gateways do not need to upgrade. Clients on 0.9.0 should continue to work.</p><p>Uptime monitoring will come back into action on Thursday, sometime around 12:00UTC on 26 November. <strong>Update: we are still hunting a networking bug, there will be a 0.9.3 before we turn the network monitor back on.</strong></p><h4>What happened?</h4><p>We have continued to see a very high rate of network growth since the last release — we had ~25 nodes in 0.7.0, ~950 nodes running at the end of 0.8.1, and we released 0.9.0. about 10 days ago. As of this morning, we have ~1350 mixnodes, plus 20 validators.</p><p>This means we’ve seen a network growth of 42% growth in a little over the past week, and over 5300% (!) in the past two months.</p><p>1350 nodes brings us past an important hurdle: the default `ulimit` of 1024 connections.</p><p>Nym mixnodes are typically run on Linux. And most Linux distributions limit the default per-user number of network connections, or <em>ulimit</em>, to 1024 by default. As the Nym mix network grows, more nodes connect to each other, and this limit starts to mean that you’ll see messages about “Too many open files” in your logs. Setting <em>ulimit</em> higher, <a href="https://nymtech.net/docs/run-nym-nodes/mixnodes/#set-the-ulimit">as per the docs</a>, will fix this.</p><p>If you don’t fix it, you will start to drop packets and you’ll lose reputation once the network monitor is turned back on.</p><p>If you’re pushed for time, you can use the new <em>unregister</em> command (<a href="https://nymtech.net/docs/run-nym-nodes/mixnodes/#manual-unregister">included in this release</a>) to quickly set up your node, and unregister it, before the network monitor comes back. Then you can set the <em>ulimit</em> at a more convenient time. It should only take a few minutes, but sometimes it’s good to take the pressure off.</p><h4>Can’t Nym use only a subset of nodes?</h4><p>Why aren’t we picking only a subset of nodes to stay under the default 1024 ulimit? It’s a good question.</p><p>For the moment, we are building the mix network to ensure the highest possible level of privacy. In order to do this, we are using a globally distributed set of mixnodes and ensuring that routes are chosen fully at random from all available nodes. This provides the largest <em>anonymity set</em>. We will be looking at what privacy tradeoffs exist to enable subsets in future. But we will likely always retain the option for users to route traffic globally. So fixing the ulimits on your node is a must.</p><h4>In conclusion</h4><p>To summarize: update your node’s <em>ulimit</em> and upgrade to 0.9.1. Happy mixing!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1f359284ff84" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Nym platform 0.8.1 released]]></title>
            <link>https://medium.com/@davehrycyszyn/nym-platform-0-8-1-released-d0312db700ac?source=rss-679ce052e99c------2</link>
            <guid isPermaLink="false">https://medium.com/p/d0312db700ac</guid>
            <category><![CDATA[nym]]></category>
            <category><![CDATA[upgrade]]></category>
            <category><![CDATA[mixnet]]></category>
            <category><![CDATA[privacy]]></category>
            <dc:creator><![CDATA[Dave Hrycyszyn]]></dc:creator>
            <pubDate>Mon, 28 Sep 2020 18:10:22 GMT</pubDate>
            <atom:updated>2020-09-28T18:10:22.692Z</atom:updated>
            <content:encoded><![CDATA[<p>We have grown immensely over the past two weeks, with a 12x increase in network size. We had already been in the process of decentralising our directory server, but got caught short by the explosive growth of the network since the launch of version 0.8.0.</p><p>This release slows down metrics and presence reporting, which have been crushing the directory server. The decentralized directory server will be incorporated into all validators in our next minor release, 0.9.0.</p><p>All mixnode operators are advised to upgrade their mixnodes to 0.8.1 in the meantime.</p><p>In 0.8.1, things are a bit simpler for users:</p><ul><li>new mixnodes are automatically assigned to mixnet layers</li><li>gateway selection is automatic when setting up a new client</li></ul><h3>Install or upgrade instructions</h3><p>If you already have the code checked out on your server, you can upgrade like this:</p><pre>git checkout develop<br>git pull<br>git checkout v0.8.1<br>cargo build --release</pre><p>Then nym-mixnode run --id &lt;same-id-as-before&gt;. Note: no need to do init again.</p><p>If you are a new user and would like to try Nym out, install instructions for 0.8.1 are at <a href="https://nymtech.net/docs/quickstart/">https://nymtech.net/docs/quickstart/</a></p><p>Several other fixes are also in this release, see:</p><p><a href="https://github.com/nymtech/nym/blob/develop/CHANGELOG.md">https://github.com/nymtech/nym/blob/develop/CHANGELOG.md</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d0312db700ac" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Nym v0.8.0 Released]]></title>
            <link>https://medium.com/@davehrycyszyn/nym-v0-8-0-released-8aa2866dfd0a?source=rss-679ce052e99c------2</link>
            <guid isPermaLink="false">https://medium.com/p/8aa2866dfd0a</guid>
            <dc:creator><![CDATA[Dave Hrycyszyn]]></dc:creator>
            <pubDate>Thu, 10 Sep 2020 14:27:11 GMT</pubDate>
            <atom:updated>2020-09-10T14:27:11.252Z</atom:updated>
            <content:encoded><![CDATA[<p>We are very pleased to announce the availability of version 0.8.0 of the Nym platform. It’s our <a href="https://github.com/nymtech/nym/blob/develop/CHANGELOG.md">biggest release ever!</a></p><p>Most of the work over the summer has been focused on mixnet reliability, new privacy features, and ease-of-use.</p><p>Let’s get into it.</p><h3>SURBs for reliability and replies</h3><p>We now have <strong>Single Use Reply Blocks (SURBs)</strong> working. SURBs allow two parties to communicate with each other while preserving their anonymity.</p><p>How are they used?</p><h4>SURB-acks</h4><p>A Single Use Reply Block Acknowledgements, or <strong>SURB-ack</strong>, is now sent with every packet, giving a major boost to mixnet messaging reliability.</p><p>If Alice sends a message to Bob, the gateway node for Bob will send back the SURB-ack upon receipt of each message packet from Alice. If Alice’s client does not receive an ack for any part of the message, it will retransmit (with an exponential back-off) until a SURB-ack is received or she concludes that the ack’s not going to happen. This packet retransmission mechanism provides a major reliability boost.</p><p>SURB-acks are anonymous: Bob’s gateway has no idea who sent the message or who it’s replying to.</p><p>Why does the gateway acknowledge receipt instead of Bob’s client? Bob may be offline, but the gateway is up 24/7 and can store messages for Bob. He will get them when he comes online. And Alice gets speedy confirmation that her message can be read by Bob (when he wants to read it).</p><h4>SURB-replies</h4><p>Single Use Reply Block Replies (or <strong>SURB-replies</strong>) also now work in v0.8.0 (with one limitation, see below). When sending a message to Bob, Alice can attach a SURB-reply within a given Sphinx packet, and if Bob wants to reply, he can do so despite not knowing anything about Alice. This is because the SURB-reply is generated entirely by Alice. Bob never sees the contents of the backwards route because it’s been packed inside a Sphinx packet header by Alice. He attaches his response message to the header and the mixnodes carry it back to her.</p><h3>Community Contributions</h3><p>We have multiple community contributions in this release.</p><ul><li><a href="https://github.com/gyrusdentatus/nym_autoinstall">HansBricks</a> built a Docker container for mixnode deployments.</li><li>A cool React example chat application was contributed by <a href="https://github.com/keviinfoes">Kevin Foesenek</a>.</li><li>a Systemd init script and some other platform code tweaks from <a href="https://github.com/ststefa">Stefan Steinert</a>.</li></ul><p>Meanwhile, <a href="https://github.com/mileschet">mileschet</a> has been working on <a href="https://github.com/mileschet/nym/tree/feature/mobile/clients/mobile">iOS and Android</a> mobile support.</p><p>Thanks to all of you for the contributions!</p><h3>SOCKS5 Support</h3><p>The biggest news of this release is our new SOCKS5 client. This is paired up with a corresponding Service Provider called SphinxSocks, suitable for use by any cryptocurrency wallet that supports the SOCKS5 protocol.</p><p>The SOCKS5 client can be run on a local machine, e.g. your laptop. When you start the client, you specify which SphinxSocks service provider you would like to handle requests for you. All your traffic will then go through the mixnet, and SphinxSocks will make network requests on your behalf. Responses are piped back to the originating application and reassembled after going through the mixnet on the return journey. The proxy and service provider work together transparently: the application itself doesn’t even notice a mixnet was involved!</p><p>Since we want to make it practical for sysadmins to run SphinxSocks without undue stress, it ships with a default list of allowed requests that it can make — we have catalogued the requests made by the <a href="https://blockstream.com/green/">Blockstream Green</a> and <a href="https://electrum.org/">Electrum</a> wallets and put them in the default allowed list for SphinxSocks. This gets around the ugly problem of running open proxies. Please help us add approved URLs for more wallets!</p><p>The SOCKS5 client allows existing applications to pipe their traffic through the Nym mixnet. It’s currently a console application, although we plan to build a simple GUI for it at some point in the autumn.</p><p>It’s worth pointing out that our SOCKS5 client temporarily has one limitation.</p><p>As noted above in the discussion of SURBs, we have basic sender anonymity working in the mixnet. We also have what’s called “Third-party” anonymity — defence against strong attackers who can keep the entire network under surveillance. This is a capability that no other system you can use today provides, and it’s pretty cool.</p><p>But in order to get Third-party anonymity working, our code currently has a serious and inconvenient limitation: responses needs to fit inside one response packet (SURB-reply) — see <a href="https://medium.com/@aniapiotrowska2607/dd233431e7cc">Ania’s deep-dive blog post</a> for more on this. This makes it impractical to use with most existing applications right now.</p><p>As a result, in this version (0.8.x) of the mixnet, we are sending the client’s address from the SOCKS5 client to SphinxSocks to deal with the fact that the response may be larger than 1 packet. We have a solution for this (basically, send more SURB-replies so that the response can be of arbitrary size). That will be coming soon.</p><p>We are also working on an addressing scheme to allow both sender and receiver anonymity for hidden Nym service providers — allowing anonymous parties to communicate without ever learning each others’ identities.</p><p>As a result of all the changes in this release, the SOCKS5 client is speedy and reliable — here’s a screenshot of doing Bitcoin testnet transfers while streaming 1080p video over our QA mixnet (6 single-core mixnodes within Europe).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*h6o0v5Ts24-s7Ek5uIBETg.jpeg" /></figure><p>We’re not recommending that anybody routinely watches video over the mixnet (yet), but it is a big achievement to achieve this kind of throughput, and we’re very pleased!</p><p>Our first target usage of the mixnet is to provide strong network-level privacy defences for cryptocurrency transactions. The ability to stream video builds our case that mixnets are practical, usable technology, and provides a bit of proof that we can defend much of the world’s crypto traffic from third party network surveillance.</p><p>Note: although we’re excited that Nym is now more usable, we do not recommend depending on the Nym mixnet for strong privacy yet. We are working to get sender and receiver anonymity coded up, after which a full audit will be needed. But we are making very steady progress, and we invite you to try the mixnet today and give us feedback about how things go.</p><h3>Incentives and Rewards</h3><p>Lastly, we are also launching our tokenized testnet as well as giving rewards in BTC.</p><p>We have issued a token (without value, like all testnet tokens) to allow us to stress test the next phase of the development of Nym.</p><p>We have already rewarded some of our testnet nodes in BTC — many of them have been with us since our testnet was launched at the Chaos Computer Congress in 2019.</p><p>We’ll be doing rewards and bug bounties at regular intervals, to be paid in BTC. So run up a mixnode using Nym v0.8.0 and visit our signup form at <a href="https://nymtech.net/incentives/">https://nymtech.net/incentives/</a> to get started!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8aa2866dfd0a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Coronavirus tracking app privacy — an introduction]]></title>
            <link>https://medium.com/@davehrycyszyn/coronavirus-tracking-app-privacy-an-introduction-d2950857598c?source=rss-679ce052e99c------2</link>
            <guid isPermaLink="false">https://medium.com/p/d2950857598c</guid>
            <category><![CDATA[coronavirus]]></category>
            <category><![CDATA[privacy]]></category>
            <category><![CDATA[nym]]></category>
            <category><![CDATA[tracking-software]]></category>
            <category><![CDATA[mixnet]]></category>
            <dc:creator><![CDATA[Dave Hrycyszyn]]></dc:creator>
            <pubDate>Fri, 24 Apr 2020 09:00:00 GMT</pubDate>
            <atom:updated>2020-04-24T10:15:59.035Z</atom:updated>
            <content:encoded><![CDATA[<h3>Coronavirus tracking app privacy — an introduction</h3><h4>How can a ‘privacy-respecting’ app do ‘tracking’?</h4><p>I work on an open source project which <a href="https://nymtech.net/docs/mixnet/">protects user privacy</a>, so naturally my friends have recently been asking me about coronavirus tracking apps. They seemed to get some benefit from the answers, so I thought writing our discussions up might be helpful for a more general audience. If you find it helpful, please share it!</p><p>So: how is it possible to both track people and to respect their privacy at the same time?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*zSKfxBM-0W8Ix9H0.jpg" /></figure><p>I think it’s important to answer this question. If we can’t point to a simple explanation, we may resign ourselves to data-based totalitarianism as the price of good health and economic recovery.</p><p>The first thing that’s worth understanding is that good privacy-respecting apps are simple. In fact, they’re far <em>less</em> complex than the application most people think of when it comes to location tracking and surveillance. At the start of our discussions, my friends usually have in mind an app that works like Google Maps. Let’s start with a hypothetical app which works this way, so we can later contrast it with a privacy-respecting counter-example.</p><p>It records user identity, time, and location info, with all the data stored in a central database. The data is easily accessible by health workers, police, social services, welfare and pensions, transport, and many other government workers in addition to Google. It’s complex, so it’ll be expensive and take a long time to build.</p><p>The data looks like this:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/b64a1d2eeed6a16b3e28afed953417f5/href">https://medium.com/media/b64a1d2eeed6a16b3e28afed953417f5/href</a></iframe><p>As we can see, Bob is out for a midnight stroll and is walking at a reasonably good pace eastbound on Mildmay Road in north London. Meanwhile, Alice is stationary (perhaps asleep) in Brockley, south-east London.</p><p><strong>Very important note:</strong> <em>I have no idea if this is what any actual coronavirus tracking app teams are working on. I write it this way mainly because I’ve found it to be the most common mental model of how such apps would work.</em></p><p>On the plus side, it would certainly do the job. You could use the data to see who might have infected who, and break the chain of infection. We shouldn’t lose sight of that: the goal is to have a beneficial effect against the virus.</p><p>So, is it possible to do better on privacy while having the same medical effect? Let’s try. Here’s a heavily simplified version of <a href="https://github.com/TCNCoalition/TCN/blob/main/README.md">one proposal</a> (see below for more).</p><p>Once again, everybody has a coronavirus tracking app on their phone. The app broadcasts a random identifier via Bluetooth.</p><p>Open up your phone right now and go to the Bluetooth settings; you will probably see a bunch of other devices. Some of them broadcast human-readable identifiers, others don’t. That’s what I mean when I say “Bluetooth broadcast”: phones and other devices beeping out those identifiers to other phones in range.</p><p>Mine looks like this right now:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*AyFsMDT5SaemqdxI.jpg" /></figure><p>Ok, let’s get back to Alice and Bob again.</p><p>In the case of our privacy-respecting coronavirus tracking app, Alice’s phone does not broadcast her real name. It broadcasts the randomly chosen nonsense phrase fluffy jacket jet panther. Bob&#39;s phone broadcasts salad emphasis hearing concurrency.</p><p>As Alice and Bob, and other people go about their daily lives, their phones are listening for other peoples’ identifiers. Let’s say Alice and Bob cross paths. Bob’s phone will take note of the phrase fluffy jacket jet panther, which is Alice&#39;s random identifier, and Alice&#39;s phone will take note of salad emphasis hearing concurrency, which is Bob&#39;s identifier. They also note the duration: was it a passing contact? Or were they nearby for quite a long time?</p><p>So far, no data has left anybody’s phone. Both Alice and Bob have been walking around, and their phones have each heard some nonsense identifiers from other phones.</p><p>Then, horror strikes. Alice is sick! She has come down with coronavirus!</p><p>Alice whips out her phone, and presses the big red button saying “I’ve got it”. Her phone sends <em>only</em> the phrase fluffy jacket jet panther to the coronavirus tracking server on the internet. Then she goes and has a rest.</p><p>Bob’s phone, meanwhile, periodically asks the coronavirus tracking server, one at a time, about anybody he spent more than 60 seconds with. And the server replies.</p><ul><li>“Does otter machine sky pencil have the coronavirus?&quot;: NO</li><li>“Does orange placemat squirrel bamboo have the coronavirus?&quot;: NO</li></ul><p>So far, Bob is in the clear.</p><ul><li>“Does fluffy jacket jet panther have the coronavirus?”: YES</li></ul><p>Zut alors! Bob’s feeling fine, but now he knows that he should get tested. So he does. And he doesn’t infect anybody else as a result. The grandpa-pocalypse starts to wind down, and I can meet you in the pub.</p><p>Note that the app is simple (which means the geeks can build it quickly). It gives up no real world identity, no names, no location data, and yet still has the medical effect we want.</p><p>It does still give up one piece of information: the IP addresses of the people who report themselves as sick, and the IP addresses of anybody who is asking for infection info. And in fact, because of this, we still get a bit of a surveillance machine:</p><p>a) the server owner gets the IP address, linkable to real-world identity, of everyone who self-reports that they’ve got the coronavirus. It would be better if the IP was hidden from the server.</p><p>b) if the app batches requests for finding out who is sick, like this: “Do fluffy jacket jet panther, orange placemat squirrel bamboo or fluffy jacket jet panther have the coronavirus?&quot;, then the server owner builds up an exact picture of everyone&#39;s social contact anyway. That&#39;s why I noted that such requests have to be made one at a time. And once again the IP needs to be hidden from the server, so that the server can&#39;t tell who saw who.</p><p>Our open source project, <a href="https://nymtech.net/">Nym</a>, has an implementation of something called a <a href="https://medium.com/nymtech/a-simple-introduction-to-mixnets-6783a103d20e">mixnet</a>, based partly on the European Commission’s <a href="https://panoramix-project.eu/">Panoramix</a> project, of which several Nym staffers were a part. It can hide IP addresses, in a way that won’t leak. <a href="https://www.torproject.org/">Tor</a> would also work.</p><p>Both Nym and Tor are free, open source software. This is important: surveillance or conspiracy fears may lessen social confidence in a coronavirus tracing app, affecting its usefulness and peoples’ safety. We want to be able to prove to people that it’s ok to be honest. They will use it and report honestly if the code is freely available for everybody to look at, and they can see and understand all the moving parts.</p><p>Hopefully this explanation helps people understand a bit about tracking apps in a simple way. My purpose here has been to show that it is <em>thinkable</em> to build what at first seems crazy: privacy-respecting coronavirus tracking apps. Very little information ever leaves the phone, and although there <em>is</em> a centralized database, it contains nothing but a list of meaningless information: a million fluffy jacket jet panthers.</p><p>The scheme above is <strong>not intended</strong> to be a full design, and in fact these are not even my ideas (see below).</p><p>It’s worth mentioning that there is <a href="https://drive.google.com/file/d/1OQg2dxPu-x-RZzETlpV3lFa259Nrpk1J/view">currently a big debate</a> about the proper way forward for privacy-respecting tracking apps. Since am not a computer security academic, just a coder with an interest in privacy, I’ll point you to the best group I know of: <a href="https://github.com/DP-3T/documents">DP3T</a>, led by <a href="https://twitter.com/carmelatroncoso">Dr. Carmela Troncoso</a> of <a href="https://www.epfl.ch/en/">EPFL</a>. The group of people supporting the DP3T contact-tracing ideas are effectively the world’s privacy-respecting brain-trust on this stuff.</p><p>A few other ideas I’ve looked at:</p><ul><li><a href="https://github.com/TCNCoalition/TCN/blob/main/README.md">TCN</a> — I’ve used the TCN proposal as the basis of my explanation for this blog post. Of the schemes I’ve seen, I like it the best, personally, because it’s really small and simple. Any distortions to achieve simplicity in this blog post are my fault. Read their documents if you want the serious view on this design.</li><li><a href="https://github.com/TracingWithPrivacy/paper/blob/master/pp-contact-tracer.pdf">PP Contact Tracer</a> — another proposal, very mixnet-based but perhaps a bit complex.</li></ul><p>Lastly: if anybody wants to build a prototype coronavirus tracking app, and your design needs a mixnet for IP privacy, please say hello to our team <a href="https://twitter.com/nymproject">on Twitter</a> or in our developer chat channel <strong>nymtech.friends</strong> on <a href="https://keybase.io/">KeyBase</a>.</p><p>We are a relatively small team, so we can’t do it all by ourselves. But we do have a potentially <a href="https://medium.com/nymtech/sphinx-webassembly-for-coronavirus-tracking-app-privacy-cf08e4e65f53">important piece of the puzzle</a>, namely a functioning <a href="https://medium.com/nymtech/sphinx-webassembly-for-coronavirus-tracking-app-privacy-cf08e4e65f53">mixnet</a> that can be easily accessed via WebAssembly mobile clients. We are keen to work with other teams. And we really want to eventually leave our homes and drink beer with friends again.</p><p>PS after a week of bad coughs and fever, Alice ends up being fine. Stay safe, everyone!</p><p><em>Originally published at </em><a href="https://constructiveproof.com/posts/2020-04-24-coronavirus-tracking-app-privacy/"><em>https://constructiveproof.com</em></a><em> on April 24, 2020.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d2950857598c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Sphinx + WebAssembly for coronavirus tracking app privacy]]></title>
            <link>https://medium.com/@davehrycyszyn/sphinx-webassembly-for-coronavirus-tracking-app-privacy-cf08e4e65f53?source=rss-679ce052e99c------2</link>
            <guid isPermaLink="false">https://medium.com/p/cf08e4e65f53</guid>
            <category><![CDATA[coronavirus]]></category>
            <category><![CDATA[sphinx]]></category>
            <category><![CDATA[nym]]></category>
            <category><![CDATA[mixnet]]></category>
            <category><![CDATA[privacy]]></category>
            <dc:creator><![CDATA[Dave Hrycyszyn]]></dc:creator>
            <pubDate>Tue, 21 Apr 2020 10:11:17 GMT</pubDate>
            <atom:updated>2020-04-24T10:20:43.792Z</atom:updated>
            <content:encoded><![CDATA[<h4>We’ve built a Sphinx packet in WebAssembly!</h4><p>Many privacy geeks have long regarded mixnets as one of the ultimate technologies for user privacy online. Up until now, they were the unicorns of the computer security world: you might have heard about them, but you’d never actually <em>see</em> one in action.</p><p>If you need a simple introduction to mixnets, I’ve previously <a href="https://medium.com/nymtech/a-simple-introduction-to-mixnets-6783a103d20e">written one</a>. The short version: like Tor, mixnets bounce messages around between networked nodes (computers) in different locations, to obscure who is talking to who.</p><figure><img alt="https://cdn-images-1.medium.com/max/2000/1*2zh2L8UpUbJgVxscQRSnGQ.png" src="https://cdn-images-1.medium.com/proxy/1*2zh2L8UpUbJgVxscQRSnGQ.png" /></figure><p>Mixnets do an additional thing, making them potentially even better than Tor: they shuffle packets together to re-order packets inside the nodes. If there’s enough packets being shuffled, then even if you’re God, Google, or the NSA, it’s pretty much impossible to see what path a packet took, or de-anonymize anyone using the mixnet.</p><p>Up until now, this technology has been extremely hard to use. But in light of the wave of data totalitarianism which is poised to roll over the planet, it seemed worth helping the privacy side of the argument. So at <a href="https://nymtech.net/">Nym</a>, we’ve been hard at work over the past several weeks trying to make mixnets accessible to people who may need them to develop coronavirus tracking apps that respect user privacy.</p><p>I’ll do a follow-up post for a more general audience in the next few days, detailing how mixnets can be used in tracking apps. That’ll take a little bit of time, so I’ll make a simple announcement first: we have just built a Sphinx mixnet packet that is usable from any web browser or mobile app that can use <a href="https://en.wikipedia.org/wiki/WebAssembly">WebAssembly</a>.</p><p>Applications in web browsers and phones can now create anonymizing Sphinx messages for transmission through a mixnet ( <a href="https://github.com/nymtech/nym">we have one of those too</a>). This makes mixnets available for use by browser and mobile applications, for the first time ever.</p><p>Shorn of some utility functions for an HTTP request and a websocket connection, and expressed in the most primitive possible JavaScript (for clarity!), it looks like this:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/167596d075581a76bf8e369e51d32d59/href">https://medium.com/media/167596d075581a76bf8e369e51d32d59/href</a></iframe><p><a href="https://github.com/nymtech/nym/blob/develop/clients/webassembly/js-examples/index.js">Sphinx WebAssembly</a>, as well as the mixnet that it connects to, and documentation about exactly how to use it, will be available in our next code release. That’s due at the end of next week (we’re working on it).</p><p>As far as the packet part goes, it still needs to be fully packaged and pushed up to npm, but it’s starting to be usable if you want to experiment with it. Any help from JavaScripters, or interest from tracking app teams, is very welcome!</p><p>If you’d like to chat about it with our development team, come say hello in our friendly <a href="https://keybase.io/">KeyBase</a> channel. Start keybase, search for channel <strong>nymtech.friends#dev</strong>, and say hi!</p><p>For a more technical introduction to mixnets, try <a href="https://www.youtube.com/watch?v=R-yEqLX_UvI">Ania’s mixnet intro video from Usenix</a> or read some articles in the <a href="https://medium.com/nymtech">Nym blog</a>. If you want to find out a bit more about Nym’s privacy platform, there are some <a href="https://nymtech.net/docs/overview/links/">links in our documentation</a> which give a good overview. Note: the docs are for our previous platform version, released about three weeks ago. WebAssembly docs are not yet up to date.</p><p>Lastly, the WebAssembly Sphinx code is <a href="https://github.com/nymtech/nym/blob/develop/clients/webassembly/js-examples/index.js">available on Github</a>.</p><p><em>Originally published at </em><a href="https://constructiveproof.com/posts/2020-04-21-sphinx-webassembly-coronavirus-tracking-apps/"><em>https://constructiveproof.com</em></a><em> on April 21, 2020.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cf08e4e65f53" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What’s next for Nym?]]></title>
            <link>https://medium.com/@davehrycyszyn/whats-next-for-nym-2de5c1a33c6e?source=rss-679ce052e99c------2</link>
            <guid isPermaLink="false">https://medium.com/p/2de5c1a33c6e</guid>
            <category><![CDATA[roadmaps]]></category>
            <category><![CDATA[nym]]></category>
            <category><![CDATA[privacy]]></category>
            <category><![CDATA[staking]]></category>
            <category><![CDATA[mixnet]]></category>
            <dc:creator><![CDATA[Dave Hrycyszyn]]></dc:creator>
            <pubDate>Mon, 30 Mar 2020 10:11:17 GMT</pubDate>
            <atom:updated>2020-03-31T11:03:36.286Z</atom:updated>
            <content:encoded><![CDATA[<p>In my past few posts, I’ve talked about some of the core technologies behind <a href="https://nymtech.net/">Nym</a>, the privacy project I work on.</p><p>How are we planning to apply these technologies? What’s our plan for 2020?</p><p>Broadly speaking, it looks like this:</p><ol><li><em>alpha</em> — mixnet + centralised directory</li><li><em>beta</em> — mixnet + decentralized directory + mixmining</li><li><em>full testnet</em> — incentivised decentralized mixnet + credentials + service providers</li><li><em>hardening</em> — game of mixology and hardening of the system</li><li><em>mainnet</em> — the fully running system.</li></ol><p>The mixnet <strong>alpha</strong> is what we’re running now. It <a href="https://constructiveproof.com/posts/2020-01-27-nym-testnet-up-and-running">launched at the end of 2019</a>, at the Chaos Communications Congress. It provides rudimentary traffic-mixing capabilities. It is currently tied together by a centralised server ( <a href="https://directory.nymtech.net/">https://directory.nymtech.net</a>), which isn’t super desirable but allowed us to bootstrap the system into existence.</p><p>If you’re interested, you can see people running nodes and the current state of the network via our <a href="https://dashboard.nymtech.net/">dashboard</a>. If you <a href="https://nymtech.net/docs/mixnet/installation/">download and run</a> our code, you’ll automatically join too.</p><p>The next big step is a <strong>beta</strong>, due out in the next few weeks. This will eliminate the centralised directory server in favour of our decentralised validators (which communicate using the wonderful <a href="https://tendermint.com/">Tendermint</a> consensus protocol). Building the decentralised directory service will also force us to start building some essential elements of the mixmining system (see note below). This work is already under way and progressing well.</p><p>Once that’s running, we will rebuild the Coconut credentials system in Rust and have a <strong>full testnet</strong>. We already have a Go version of Coconut but we want to get everything in building from a single, common codebase to make things easier on ourselves. We’re shooting to get that running, and have the full incentives system completed, sometime in the summer.</p><p>At that point we will have completed most of the main system build, but there will still be a lot of <strong>hardening</strong> to do on the code, docs, and incentives. We will need to start testing out the full system, and see if there are any viable economic attacks, code vulnerabilities, or rough edges we can smooth out.</p><p>Cosmos did something similar which they dubbed “game of stakes”. We consider ours to be a “game of mixes”, where we test out the dynamics of the system and ensure that it’ll reach some final equilibrium, or whether it spins out of control and needs some adjustments.</p><p>The hardening time period will also give privacy application developers the chance to build their apps against a set of stable, well-documented APIs.</p><p>We’ll pull the trigger on <strong>mainnet</strong> when we are confident that it’s the responsible thing to do, whether that’s at the end of 2020 or into early 2021.</p><p>If you’re interested in what we’re working on right now / next week / next month, you can see the active roadmap including a breakdown of tasks in the <a href="https://github.com/orgs/nymtech/projects/1">Nym Github project</a>.</p><p>Over the next couple of weeks, I’ll blog a bit more about the technical history of Nym, with a post on our Rust mixnet and how it evolved from earlier efforts by different members of the Nym team.</p><p>Once I’ve explained a bit about where we’ve been and the choices we’ve made so far, I’ll introduce <em>mixmining</em>, a way of rewarding useful work to protect user privacy. I’ll answer a hard question: how can we measure useful privacy work when our system is designed to counter even very sophisticated surveillance?</p><p>To all of the people who have downloaded and run our code so far: thank you, it means a lot to us to be working on a project that we believe in, and to see our belief reflected in a community that’s forming around growing around us.</p><p>Stay tuned!</p><p><em>Originally published at </em><a href="https://constructiveproof.com/posts/2020-03-30-nym-roadmap/"><em>https://constructiveproof.com</em></a><em> on March 30, 2020.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2de5c1a33c6e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Nym’s Coconut Credentials — An Overview]]></title>
            <link>https://medium.com/@davehrycyszyn/nyms-coconut-credentials-an-overview-4aa4e922cd51?source=rss-679ce052e99c------2</link>
            <guid isPermaLink="false">https://medium.com/p/4aa4e922cd51</guid>
            <dc:creator><![CDATA[Dave Hrycyszyn]]></dc:creator>
            <pubDate>Tue, 24 Mar 2020 10:11:17 GMT</pubDate>
            <atom:updated>2020-03-24T15:06:46.073Z</atom:updated>
            <cc:license>http://creativecommons.org/licenses/by/4.0/</cc:license>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xPLCVOy9TB2Ipa6XH56sYw.jpeg" /><figcaption>Coconuts can be weirder than you expected.</figcaption></figure><h3>Nym’s Coconut Credentials — An Overview</h3><p>Broadly speaking, the internet privacy project I work on, <a href="https://nymtech.net/">Nym</a> currently has two core technologies.</p><p>The first is a <a href="https://medium.com/nymtech/a-simple-introduction-to-mixnets-6783a103d20e">mixnet</a> that protects transport data and metadata. Mixnets work against even very strong state/corporate level adversaries who may want to deanonymize users by recording all TCP/IP packets as they transit the internet.</p><p>The Nym mixnet fulfils the promise of end-to-end network unlinkability — not only can it protect the content of messages, it also hides who is communicating with who, and the routes taken by individual packets.</p><p>The second technology is a selective disclosure credential. We have based the Nym credential on <a href="https://arxiv.org/abs/1802.07344">Coconut</a>, a design funded by Decode, a project initiated by the European Union’s <a href="https://ec.europa.eu/programmes/horizon2020/">Horizon 2020</a> innovation program to “build a trustworthy and privacy-aware digital society”.</p><p>“Selective disclosure credential” is quite a mouthful. What does it mean?</p><p>Coconut is a signature scheme. All signature schemes consist of three algorithms:</p><ol><li>keygen</li><li>verify</li><li>sign</li></ol><p>A user must be able to <strong>keygen </strong>(create) public/private keypairs. They can then <strong>sign</strong> a piece of cleartext using the private key. Later, anyone with the public key of the signer should be able to <strong>verify</strong> that the signature is valid. All signature schemes work like this — RSA, DSA, and newer sexier ones like ED25519.</p><p>Coconut extends these basic three functions with several more. Understanding the extra functions is the key to understanding what we can do with it. Let’s see what additional algorithms get added.</p><h3>4. Blind Issuance</h3><p>David Chaum invented blind signatures in the 1980s. Blind signatures have some extra properties in addition to those above.</p><p>There are still the <em>keygen</em>, <em>verify</em> and <em>sign</em> algorithms. There is also an algorithm which allows someone who doesn’t have the secret signing key to <strong>blind</strong> a message: take a piece of cleartext, and turn it into gobbledygook which can then be signed by a signer who has the secret key.</p><p>The signature is passed back to whoever created the message, still blinded. This signature can then be unblinded by that person. It’s now equivalent to a valid signature on the original cleartext message. Once it’s been unblinded, the signer has no way of linking the unblinded message with the signature on the blinded message.</p><p>Examples can help in understanding. Let’s take as an example a simple, fictional private e-cash scheme. Here are the steps that I might undertake in using it:</p><ul><li>I create a message saying I have one dollar, in cleartext.</li><li>I blind it using a blind-signature algorithm. The cleartext message turns into gobbledygook.</li><li>I send the blinded message to the bank along with a dollar.</li><li>The bank signs it, saying it attests I have a dollar, and returns the signature to me.</li><li>I unblind the signature, which de-links it from the signature I got back from the bank. This is the crucial step that ensures my privacy.</li><li>I now have an anonymous bearer token which attests I own a dollar.</li></ul><p>The bearer token cannot be linked back to what the bank gave me, but its validity can be verified by anyone with the bank’s public key.</p><p>This process is <strong>blind issuance</strong>: create cleartext, blind, send to signer, sign, return to creator, unblind, use. There is a problem with blind issuance: the signer has no clue what they’re signing.</p><p>So if you’re the bank, you get some gobbledygook. How does the bank know it doesn’t say “I have one million dollars”? It’s opaque to them. The standard solution is to use a zero-knowledge proof attesting that the message contains a dollar, but revealing nothing else (serial number, my identity, etc).</p><p>Coconut has this zero-knowledge proof ability, so it can do blind issuance. The zero-knowledge proof involved needs to be coded for each domain: a zero-knowledge proof for currency would need to differ from one for identity assertions, or one for anonymous voting protocols.</p><h3>5. Re-randomisable Signatures</h3><p>There’s another concept relating to signatures: a re-randomization. This type of signature has one additional algorithm: <strong>randomize</strong>. It allows the user to take a signature, call randomize() on it, and generate a brand new signature that is valid for the same message. The new bitstring in the re-randomized signature is equivalent to the original signature but unlinkable to it.</p><p>What can this be used for?</p><p>You can show the signatures to different people and the people you show them to cannot figure out that the signatures are linked to each other, or to you. The underlying message in all cases is the same, so there’s no possibility of forgery. Essentially, we have multiple anonymized bearer tokens.</p><p>Coconut does re-randomization.</p><h3>6. Selective Disclosure</h3><p>Coconut also allows what’s called <strong>selective disclosure</strong>.</p><p>What is selective disclosure?</p><p>In a traditional signature scheme you sign the message, and later anyone with the public key may verify it. There’s usually an implicit constraint here: the verifier must have the full message to verify it.</p><p>Instead of needing to show the whole message to verify, selective disclosure allows us to show and verify only some parts of the message, keeping other parts of it private.</p><p>Another example: let’s say you want to go to the pub, and need to prove your age at the door. You might present your passport, which has the following attributes:</p><p>You go to the pub. The bouncer at the door doesn’t care about anything else, just your appearance and age. But we need to give up all the info to the bouncer, because we show the whole credential every time.</p><p>Selective disclosure allows you to improve this process. You sign a tuple of all the fields in the passport and when it comes to verify, the verifier can verify only some attributes. The verifier here is public, and could be anyone who (a) knows the public key of the passport authority, and (b) sees the signature from the passport authority.</p><p>So we have three parties:</p><ol><li>passport authority</li><li>subject (you)</li><li>relying party (bouncer)</li></ol><p>You can choose to selectively disclose some, or all attributes in the signed message.</p><p>Selective disclosure can be applied to “normal” signature schemes (no blinding, no re-randomization). That is, you can get a signed message from an authority and disclose attributes selectively. This provides privacy against the relying party (bouncer) by not revealing more information than necessary. However, if you go again to the same pub, or if the passport authority sees the message (which they signed), those parties can link signature and verification and thus break the subject’s privacy.</p><p>Now the really interesting part, from Nym’s perspective: putting it all together.</p><p>If we combine blinded credentials, re-randomizable signatures, and selective disclosure, we can protect the user’s privacy against multiple “shows” (uses of the credential) at the pub. The bouncer will think it’s always the first time you’ve been there, and the passport authority has no way of linking the blinded credentials you’re using to what they issued.</p><p>The idea that you can selectively disclose by showing some attributes and not others is a simplification, it’s more powerful than that. Instead of revealing your age directly, you can associate a zero-knowledge proof that asserts “I’m over 18” without revealing your actual age.</p><h3>7. Threshold Issuance</h3><p>Blind signatures, re-randomisable credentials and selective disclosure have all existed in the cryptography literature for years, or even decades. As we’ve seen, stringing them together has some interesting properties, but until now, all of these schemes had one thing in common: signing was always centralized.</p><p>The major advance in Coconut is <strong>threshold issuance</strong>. Instead of having one authority doing the signing, Coconut has multiple authorities that sign (either all together, or as a threshold <em>n out of m</em> signature). This makes it possible to issue Coconut-based signatures in a decentralized context, and gain all of the privacy goodness that was previously only available in centralised systems.</p><h3>In conclusion</h3><p>To recap, the Nym validators issue signatures based on a scheme called Coconut. All signature schemes have three algorithms:</p><ol><li>keygen</li><li>sign</li><li>verify</li></ol><p>Coconut has these, but adds:</p><ol><li>blind issuance</li><li>re-randomisable signatures</li><li>selective disclosure</li><li>threshold issuance of signatures</li></ol><p>These extra functions give very strong privacy guarantees for users of the scheme. Initially, we are planning to use Coconut within Nym for anonymising access credentials and payments to service providers.</p><p>Looking forward a bit more, Coconut can also be used to add on-chain transaction privacy to existing blockchain systems (Bitcoin, Ethereum, Libra, Cosmos, Parity, etc). In combination with the Nym mixnet, we can then offer quite sophisticated privacy guarantees even against strong attackers.</p><p><em>Originally published at </em><a href="https://constructiveproof.com/posts/2020-03-24-nym-credentials-overview/"><em>https://constructiveproof.com</em></a><em> on March 24, 2020.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4aa4e922cd51" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A simple introduction to mixnets]]></title>
            <link>https://medium.com/@davehrycyszyn/a-simple-introduction-to-mixnets-6783a103d20e?source=rss-679ce052e99c------2</link>
            <guid isPermaLink="false">https://medium.com/p/6783a103d20e</guid>
            <category><![CDATA[nym]]></category>
            <category><![CDATA[loopix]]></category>
            <category><![CDATA[sphinx]]></category>
            <category><![CDATA[mixnet]]></category>
            <category><![CDATA[surveillance]]></category>
            <dc:creator><![CDATA[Dave Hrycyszyn]]></dc:creator>
            <pubDate>Mon, 17 Feb 2020 11:50:04 GMT</pubDate>
            <atom:updated>2020-02-24T12:47:20.960Z</atom:updated>
            <content:encoded><![CDATA[<p>I work for <a href="https://nymtech.net/">Nym</a>, an internet privacy company. One of our technologies, a <em>mixnet</em>, can defend users against even very strong adversaries, like governments or large companies. Here’s how it works, described in a non-technical way.</p><p>We have already put out quite a bit of <a href="https://nymtech.net/docs">technical documentation</a> about mixnets and privacy, and with the upcoming release of our whitepaper there will be a lot more. Probably the easiest half-hour introduction to the technical guts of a Loopix mixnet is this <a href="https://www.youtube.com/watch?v=R-yEqLX_UvI">Usenix presentation</a> video, if you’re a security nerd and want to have a look at that.</p><p>But so far I think there hasn’t been simple, or maybe simplistic, explanation of what a mixnet is. Here’s an attempt to boil things down to a non-technical level.</p><p>We usually present the mixnet like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/0*6QhVIDSX7eLYzFnu.png" /></figure><p>The trouble with architectural diagrams is that they usually make total sense to the geeks that draw them, but may not help anybody else. Today, we’ll take a different approach. Let’s build a mixnet in our minds, using physical metaphors, as a thought experiment.</p><p>Think of a crowded street you know in a big city. If it’s anything like London (where I live), the street has a lot of cameras pointed at it. The surveillance camera operators are the people you’re trying to defend against.</p><p>The camera operators can see everything on the street, and also record everything for later analysis.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/0*MkSuPkEioOJnBj43.jpg" /></figure><p>Next, populate the street with people. Even in a crowded street, it’s clear to the camera operators what paths they took, and who they might have spoken to, because they are recording everything in high-quality video and can play it back at leisure.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/0*h5ijF16lIk1qw8gE.jpg" /></figure><p>The question is, is it possible to defeat the omnipresent surveillance on the street?</p><p>Let’s try. Picture everyone wearing identical masks and clothing.</p><p>You can do anything you want in the freedom of your own mind, so have a little fun with it. They can be all in Guy Fawkes masks + minimalist black outfits, or looking fabulous in full Mardi Gras costumes. Just make sure that each individual person is indistinguishable from every other person.</p><p>Surveillance is now a lot harder. This is the magic of one of our technologies, called <a href="https://medium.com/@nymtech/sphinx-tl-dr-the-data-packet-that-can-anonymize-bitcoin-and-the-internet-18d152c6e4dc">Sphinx</a>. All information travelling through the mixnet (the street, in our analogy) is wrapped up in Sphinx packets. Sphinx makes it difficult to distinguish between different pieces of information because it wraps all distinguishing features under into a bland, same-ish uniform of encryption.</p><p>Here are my Sphinx packets transiting the network:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/0*-JeuVszJR87WAa5n.jpg" /></figure><p>Already looking pretty hard to keep track of.</p><p>Is there anything else we need? Yes. <strong>Company.</strong></p><p>Think of the street’s foot traffic at two times of day. First, a crowded Friday afternoon with lots of people out and about. Second, at midnight on Sunday. Almost nobody is there.</p><p>Now, if you’re the only person in the street on Sunday night, the surveillance cameras can still easily see what you did, no matter whether you’re wearing an Eyes Wide Shut getup, a riot cop uniform, or an Easter Bunny outfit. There just isn’t enough <strong>cover</strong> for you. Put another way, the <em>anonymity set</em> is not big enough to hide within.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/0*Beiazsg-1wEQGu5T.jpg" /></figure><p>But if you’re part of 100,000 people in the street on Friday afternoon, you will have lots of cover. It’ll be very difficult to pick you out of the crowd and de-anonymise you.</p><p>These sheep tell the story:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/972/0*v8f8kORLe94rjlR_.jpg" /></figure><p>As you can see, anonymity loves company. Your anonymity in a network system is similar to the anonymity you get from being mixed up a big crowd of people who are indistinguishable from each other.</p><p>Is this all we need? Job done? No, not yet.</p><p>The surveillance camera operators can still keep track of people by timing them. Assume that all the people entering and leaving the street do it in an orderly way (one in, one out). Even if the street is crowded, and everybody is wearing identical Barney the Purple Dinosaur outfits, they can still figure out who’s who. They just need to keep an ordered count.</p><p>How can we stop this <em>timing attack?</em></p><p>Back in your thought experiment, put some tents at regular intervals along the middle of the street. The surveillance cameras can’t see inside those. People periodically enter the tents, and hang out for a very short, random amount of time. Then they leave in a different order than they arrived. Now the camera operators really have no idea who is who.</p><p>The tents are your <em>mixnodes</em>. They shuffle, or mix together, the Sphinx packets, to ensure that the surveillance operators are unable to use timing attacks (counting packets in order) to de-anonymise users. Here’s a technical drawing of some Sphinx packets momentarily relaxing inside a beer tent in Munich, completely safe from outside surveillance:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/0*1TZrzVGCePuwNRMC.jpg" /></figure><p>There’s one last thing we can do. Although people are now pretty much perfectly safe from surveillance as they walk down the street, it’s still pretty clear when they enter the street, or leave the street — that is, when they start or stop using the mixnet.</p><p>This can be a problem — if you enter our imagined street at the exact time you want to counter surveillance, and leave the street as soon as you’re done, it may still be pretty obvious what actions you’re taking (depending on the real-world context of what you’re doing). So Nym’s mixnet continuously sends <strong>cover traffic:</strong> fake street traffic that real people taking real actions can blend in with.</p><p>As soon as you start a Nym application, it automatically starts sending some robots into the street on your behalf. That way, when you actually <em>need</em> anonymity, the actions you take are buried inside a stream of other traffic that’s already been sent from your machine.</p><p>Ok, that’s mixnets related to the real world. Let’s look back at our original mixnet architecture drawing, armed with our new physical perspective.</p><p>As we know from the Snowden revelations, various entities keep large portions of the internet under full surveillance — they are essentially recording all information flows on the internet. Those are the cameras we want to defend ourselves against. Have a look at the mixnet schematic:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/0*7nd28-xXxaSUlFEw.png" /></figure><p>Alice’s computer on the left hand side wants to send messages to Bob’s computer, through the mixnet, and evade surveillance.</p><p>As soon as Alice’s computer is turned on, it automatically starts sending Sphinx packet cover traffic through the mixnet. Each of those packets is indistinguishable at a binary level from every other packet, like a stormtrooper is indistinguishable from other stormtroopers.</p><p>The Sphinx packets get routed through mixnodes. Packets are shuffled together and emitted in a different order than they went into each node. Like stormtroopers stopping off for quick beers in Oktoberfest tents.</p><p>The Sphinx packets traverse multiple mixnodes and get delivered to Bob. Assuming there is a sufficiently large number of people using the mixnet (that we have a big <em>anonymity set</em> of stormtroopers, or sheep, in the street), it’s impossible for anybody watching the network to determine whether Alice was talking to Bob, talking to someone else, or just automatically sending cover traffic while she was out eating a sandwich.</p><p>So, to recap, the Nym mixnet uses the following techniques to defeat pervasive online network surveillance:</p><ol><li>make all traffic look the same (so adversaries can’t follow individual traffic)</li><li>re-order traffic (so that adversaries can’t simply count what goes in and what comes out to statistically de-anonymise users)</li><li>generate fake cover traffic (so adversaries can’t know when anonymity was important)</li></ol><p>*Photo credits: <a href="https://commons.wikimedia.org/wiki/File:Pride_London_2011_Soho_crowded_street.jpg">London Street</a> | <a href="https://commons.wikimedia.org/wiki/File:Stormtroopers_march.jpg">Storm Troopers</a></p><p><em>Originally published at </em><a href="https://constructiveproof.com/posts/2020-02-17-a-simple-introduction-to-mixnets/"><em>https://constructiveproof.com</em></a><em> on February 17, 2020.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6783a103d20e" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>