<?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 Paul Freeman on Medium]]></title>
        <description><![CDATA[Stories by Paul Freeman on Medium]]></description>
        <link>https://medium.com/@paul_freeman?source=rss-2f6b04f74013------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/2*wPg4auCrc5SDtHiD-YKagA.jpeg</url>
            <title>Stories by Paul Freeman on Medium</title>
            <link>https://medium.com/@paul_freeman?source=rss-2f6b04f74013------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 20:49:21 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@paul_freeman/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[Seekers and Sylo Nodes]]></title>
            <link>https://medium.com/@paul_freeman/seekers-and-sylo-nodes-c8855c2f05a2?source=rss-2f6b04f74013------2</link>
            <guid isPermaLink="false">https://medium.com/p/c8855c2f05a2</guid>
            <category><![CDATA[network]]></category>
            <category><![CDATA[communication]]></category>
            <category><![CDATA[decentralization]]></category>
            <category><![CDATA[nft]]></category>
            <dc:creator><![CDATA[Paul Freeman]]></dc:creator>
            <pubDate>Tue, 22 Mar 2022 01:58:08 GMT</pubDate>
            <atom:updated>2023-08-17T03:21:06.323Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KsByEKoCv_ymNVcskdyf4Q.png" /></figure><p>Why the connection?</p><p>We recently announced our Seeker NFT project — and the reception has been overwhelmingly positive. A community of both old and new faces has sprung up around our little robot friends and it’s been fun engaging with everyone through the Seeker lore.</p><p>Now that some of the dust has settled, we are left with people asking questions about both the Seekers and the Sylo Nodes. Some of the questions are from people who understand the NFT game but don’t know why they would care about Sylo Nodes. Other questions are from our node operators, who may not understand how NFTs fit into the mix. And, still more questions come from people learning about both projects for the first time and looking to get involved.</p><p>So, let’s talk through both Sylo Nodes and Seeker NFTs and see how they can play well together in the decentralised world.</p><h3>First, there was the node</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8sopFsGFn-XNGnN8pdZ1fw.png" /></figure><p>The Sylo Node is one of the primary projects developed by Sylo and is the backbone of our decentralised communication network. <a href="https://medium.com/sylo-io/news-sylo-launches-oya-the-game-changing-beginning-of-mainstream-decentralisation-23184c4c5b50">Launched to the public in December 2020</a>, the Sylo Node enabled anyone to contribute infrastructure to our global peer-to-peer network — the Sylo Network.</p><p>This network is fully decentralised and supports the Sylo Smart Wallet. The approximately 250 Sylo Nodes support over 400,000 Sylo Smart Wallet users, with only 10 of these nodes being run by Sylo or one of our partners.</p><p>These numbers mean that we have at least 240 user operated nodes in the ecosystem, at a time when the services performed by these nodes are not even incentivised!</p><h3>Then, there was incentivisation</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zkbRdf3WJfP9CsspBoWmjg.png" /></figure><p>Altruistic networks are great, but in order to scale the network we would need to find ways to reward our nodes for their service. The Sylo Network team got back to work and, in 2021, we released our <a href="https://medium.com/sylo-io/sylo-network-incentivisation-8fac3dbba9f9">incentivisation design</a> and the supporting Ethereum smart contracts.</p><p>This incentivisation layer provides probabilistic micropayments in exchange for services and allows the Sylo Nodes to “earn their keep” by hopefully generating more income than the operating costs. The details of the tokenomics layer is outside the scope of this article — but I will briefly summarise it.</p><h4>Sylo Network Tokenomics</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fCaCvbMeZxvMRQHn3L1MkA.png" /></figure><p>Sylo Node operators stake SYLO tokens to capture a percentage of the incentivised services on the Sylo Network. The more you stake, the more work is directed to your node. Operators can increase their share of work further through delegated stake (detailed run through <a href="https://sylo.gitbook.io/sylo-docs">here</a>).</p><p>The Sylo Network rotates users to new nodes every epoch based on node stake. Nodes can make adjustments to their stake for each new epoch.</p><p>Nodes that join an epoch must make some on-chain transactions to indicate their membership on the network. We have optimised these fees in a <a href="https://calculator.sylo.io/">variety of ways</a> but earning income by operating a Sylo Node is still not free. (More on this in a bit.)</p><p>It’s no secret that the NFT market has exploded. Like many other projects in our industry, Sylo was one degree of separation away from a lot of exciting developments in the NFT space. The open metaverse was looking for communication technology — and the Sylo Network was essentially ready to go out of the box.</p><p>But you see, there was one tokenomics issue left unresolved with the Sylo Network. The network had no built-in infrastructure cap. Having an infrastructure cap is an important safeguard to ensure that nodes have a fighting chance to (at least) cover their operating costs in the event of a huge surge in demand. We were already seeing the popularity of running a node far exceed our expectations, and we hadn’t even rolled out the incentivisation yet. If we launched the incentivised network without a cap, we could likely be in a position where there were too many nodes — and the available work may not cover the blockchain fees.</p><h3>Now, there are Seekers</h3><p>A lot of prior node projects used hard-coded infrastructure caps to restrict access. This works fine, of course, but the team here at Sylo thought we could have our infrastructure cap while also providing a fun way to engage with the open metaverse and drive adoption of open communication.</p><p>And so the idea of a utility NFT that unlocked incentivised Sylo Node services was born. <a href="https://twitter.com/seekers_xyz/status/1506045519113900038?s=20&amp;t=bDbq3spF-9h51tKKkI-LZw">The Seekers came to life</a>.</p><p>It was important to us that we brought as many of our loyal Sylo Node operators along to the open metaverse with us. So, we devised a whitelisting system whereby we allow them to claim a free (transaction fee only) Seeker to get their incentivised Sylo Node up and running quickly and easily. We know that running a node 24/7 is no trivial task, so rewarding the members of the community who managed this task deserve something in return.</p><p><em>Hopefully, this gives everyone the background necessary to understand the emergence of the Seekers and how they fit into our development roadmap. I’m including at the end here a few questions (some from the community and some pre-empted) and their answers.</em></p><h3>Q &amp; A</h3><h4>Do I need to own a Seeker to run a Sylo Node?</h4><p>You can still run a node without owning a Seeker. However, you will need to own a Seeker to join epochs and earn incentives from the network. The Sylo Node can still provide a variety of free services that you can use to provide decentralised communication to whomever you choose without needing to have a Seeker.</p><h4><strong>If I have to own a Seeker, will this make it more expensive to run a node?</strong></h4><p>Generally speaking, requiring Seeker ownership should not make it more expensive to run a node. Node operators must already choose how much to stake in their node, so the price of a Seeker should be absorbed by this calculus. Remember, it doesn’t matter which Seeker you own, so if you just want to run a node you can acquire the most common of common Seeker.</p><p><strong><em>If you have any questions or queries, please feel free to reach out to our team at </em></strong><a href="/service/mailto:support@sylo.io"><strong><em>support@sylo.io</em></strong></a><strong><em> or via our social channels here: </em></strong><a href="https://twitter.com/sylo"><strong><em>Twitter</em></strong></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c8855c2f05a2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Claim your Seeker]]></title>
            <link>https://medium.com/@paul_freeman/claim-your-seeker-d7782ddc3c5e?source=rss-2f6b04f74013------2</link>
            <guid isPermaLink="false">https://medium.com/p/d7782ddc3c5e</guid>
            <category><![CDATA[cryptocurrency]]></category>
            <category><![CDATA[nft]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[metaverse]]></category>
            <category><![CDATA[decentralisation]]></category>
            <dc:creator><![CDATA[Paul Freeman]]></dc:creator>
            <pubDate>Thu, 17 Mar 2022 03:01:22 GMT</pubDate>
            <atom:updated>2022-03-23T23:55:58.492Z</atom:updated>
            <content:encoded><![CDATA[<h4>Our thank you to Sylo Network supporters</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZV_ZbO2lKW2JOCqLZkb1RQ.png" /></figure><p>As you probably already know, we are nearing the mint of the Seeker NFT.</p><p>So, we figured, what better way to reward the people who have been supporting our network and to give them a Seeker.</p><p>Seekers are now a requirement to be able to operate a Sylo Node (and a whole lot more). As a Sylo Node operator, you are best placed to put your Seeker to work.</p><p>To learn more about the Seeker project, visit the <a href="https://t.co/K51pSqgaIu">Discord</a>.</p><p>Being on the Seeker whitelist will allow our node operators to mint a Seeker for free — you only pay transactions gas fees. All you need to do is follow the process outlined in this article.</p><h3>Which Sylo Nodes are eligible?</h3><p>All Sylo Nodes that have been online in the 90 days prior to our snapshot are eligible to claim a free Seeker.</p><p>We have taken a snapshot of all Sylo Nodes eligible for the Seeker whitelist. The snap shot is a list of Sylo Nodes that sent telemetry data to our server between 15:35 16 Dec 2021 and 15:35 16 Mar 2022.</p><p>To claim your whitelist spot, we ask that you prove ownership of the private key associated with your node ID by following the below instructions.</p><ul><li>Head over to the ‘Claim your Seeker’ web page <a href="https://claimyournode.sylo.io/">here</a> and get yourself added to the Seekers whitelist! Note — you have until <strong>23 March</strong> to do so.</li><li>Sign the Ethereum wallet address that you want whitelisted with your Sylo Node ID.</li><li>If the Sylo Node ID is on our list, we will whitelist the wallet address. It’s easy as that!</li></ul><p>Keep reading for more info about the claiming process, or skip the details and go claim your node now.</p><h3>More about the claim process</h3><p>Sylo has never collected personal data from Sylo Node operators, since it is not required for the Sylo Network to function. However, we understand that our community has been working hard to support the Sylo vision by running Sylo Nodes. To acknowledge this support, we have devised a way in which Sylo Node operators can privately claim ownership of the Sylo Node they have been running.</p><p>Each Sylo Node is associated with a P2P ID. The Sylo Node holds the private key for this identity and uses the public key to identify itself on the network. Sylo maintains a list of node public identities that have been online during the past 90 days. A while back, we took a snapshot of this list of identities and we are giving our community a chance to claim one of these Sylo Nodes as the one they were running by associating an Ethereum wallet address with the node’s public identity.</p><p>This web page contains the list of Sylo Nodes we found during our snapshot. Sylo Node operators can use this page to see if their node is on the list and claim it by associating it with a signed Ethereum wallet address.</p><p><strong><em>SECURITY NOTE:</em></strong><em> </em>To claim a Sylo Node, you will need to provide us with your Sylo Node identity file.<em> </em>We will not store or record this file. If you are concerned: after claiming your Sylo Node, you can create a new identity by deleting the existing identity and restarting the node. A new one will be generated automatically. However, anyone using the Sylo Smart Wallet who is connected to your node will need to reconnect using the new QR code in the Sylo Node UI.</p><h4>Finding Your Node ID File</h4><p>Your Sylo Node ID is a file provided to the node with the --identity command-line argument, with the default location being ~/.sylo-node/node.id inside the docker container running your Sylo Node.</p><p>If you followed our setup guide, you probably mapped this to ~/.sylo-node/node.id in your local filesystem. If you did not follow our guide, you will need to track down this file on your own. Keep in mind, though, that the file could be on the filesystem inside the docker container used to run your Sylo Node.</p><p>If you made it this far, you should have all the information you need to make your claim. So head over to the <a href="https://claimyournode.sylo.io/">Claim your Seeker</a> page and get yourself added to the Seekers whitelist now!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d7782ddc3c5e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Sylo Nodes — Community Update]]></title>
            <link>https://medium.com/@paul_freeman/sylo-nodes-community-update-2154ab3eecce?source=rss-2f6b04f74013------2</link>
            <guid isPermaLink="false">https://medium.com/p/2154ab3eecce</guid>
            <category><![CDATA[communication]]></category>
            <category><![CDATA[decentralisation]]></category>
            <category><![CDATA[wallet]]></category>
            <category><![CDATA[crypto]]></category>
            <category><![CDATA[node]]></category>
            <dc:creator><![CDATA[Paul Freeman]]></dc:creator>
            <pubDate>Fri, 04 Feb 2022 02:30:40 GMT</pubDate>
            <atom:updated>2022-02-09T00:49:35.097Z</atom:updated>
            <content:encoded><![CDATA[<h3>Sylo Nodes — Community Update</h3><h4>Where we are as we enter 2022…</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PsAlnFkWIw1-1qUaj1s0ww.jpeg" /></figure><p>Hello!</p><p>Ever since the launch of the Sylo Node, the support from the community has been incredible. From the very first day, people have been running their own nodes and contributing to our global decentralised network. All this engagement has really been awesome and hints at the huge potential for community growth as we continue to release features in the coming months and years.</p><p>Over the past few weeks, the interest in running Sylo Nodes has skyrocketed, to the point where we are having some difficulty responding to each question individually.</p><p>To help clear up a lot of the common questions, I’ve decided to provide a quick update on the Sylo Nodes: where we are now; where we’re going; and what it means for the community and the Sylo Network.</p><p><strong>Where We Are</strong></p><p>The current release of the Sylo Node is version 1.2.2 and is available to the public on Docker Hub.</p><p>This version of the Sylo Node currently powers the decentralised Sylo Network and supports applications like the Sylo Smart Wallet.</p><p>Services provided by the current version of the Sylo Node are <em>unincentivised</em>. This means that Sylo Nodes can only be run altruistically and will not earn any Sylo tokens. In fact, they are not even associated with any specific blockchain at this point in time.</p><p><strong>Where We Are Going</strong></p><p>The next release of the Sylo Node (likely version 1.3.0) is quickly nearing completion.</p><p>The release of this version will usher in the era of <em>incentivised</em> services on the Sylo Network! This is a giant leap forward for decentralised communication and is being carefully coordinated across multiple Sylo projects.</p><p>This next phase of the Sylo Network will give our community multiple ways to stake, earn, and otherwise contribute to the success of communication across the open metaverse… (<em>if you know, you know</em>) ;)</p><p><strong>What This Means</strong></p><p>The Sylo Node has been made publicly available so our community can explore the technology, become familiar with the hardware requirements, and be ready to provide decentralised infrastructure to the world.</p><p>As the next phase of the Sylo Network nears, there will be plenty of information available to inform your decisions for how you can best contribute to (and earn from) the Sylo Network. This will include new Sylo Node setup documentation showing how to configure the incentivised services, as well as documentation showing how to stake and earn Sylo from the network without running a node.</p><p>For those of you wanting to set up the current version of the node, we have some basic documentation available on our <a href="https://sylo.io/nodes">website</a> and the community has put together a number of resources as well. Our apologies in advance if we are unable to directly answer node set up questions for your specific environment.</p><p>Sit tight and we will have more information, support, and community resources available in the near future!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2154ab3eecce" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Sylo Network Incentivisation]]></title>
            <link>https://medium.com/@paul_freeman/sylo-network-incentivisation-5d19e2549fab?source=rss-2f6b04f74013------2</link>
            <guid isPermaLink="false">https://medium.com/p/5d19e2549fab</guid>
            <category><![CDATA[node]]></category>
            <category><![CDATA[communication]]></category>
            <category><![CDATA[software]]></category>
            <category><![CDATA[sylo]]></category>
            <category><![CDATA[crypto]]></category>
            <dc:creator><![CDATA[Paul Freeman]]></dc:creator>
            <pubDate>Thu, 23 Dec 2021 02:05:07 GMT</pubDate>
            <atom:updated>2021-12-23T02:05:07.486Z</atom:updated>
            <content:encoded><![CDATA[<h4>Bring in 2022 with some shiny new smart contracts from Sylo</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rPOAf0Co6-3MgxEiHNXEhQ.jpeg" /></figure><p>As we approach the end of the year, we thought the time was right to pull back the curtain on one of our biggest achievements of 2021… the Sylo Network incentivisation contracts!</p><p>If you’ve followed the Sylo projects closely this year, you’ll already know how exciting this step is for us and our community. With the contracts audited and ready to go, we are busy fine tuning the contract parameters and getting preparations finished to ensure our Sylo Node stakers and operators have the best experience possible.</p><p>The audit of our contracts was a huge success, so we have made both the audit and the contract repository public. So, while our team is on break, feel free to have a look around and dream about all the new possibilities available to us in 2022.</p><p>You can find the source code and audit in our GitHub repository, here: <a href="https://github.com/dn3010/sylo-ethereum-contracts">https://github.com/dn3010/sylo-ethereum-contracts</a></p><p>We have also deployed the audited contracts to the Ropsten Ethereum testnet, with the latest versions at the following locations:</p><ul><li><a href="https://ropsten.etherscan.io/address/0x0a594e91954FA399DCF076bc4528674e766eFC1F#code">Listing</a></li><li><a href="https://ropsten.etherscan.io/address/0x1eB0fC8174133c8c9638C1b3A1Afac459FCFb295#code">Ticketing</a></li><li><a href="https://ropsten.etherscan.io/address/0xec0Fc52F22eAdE86b6E2f93dDa9f5fE7f11Cf4f6#code">Ticketing Parameters</a></li><li><a href="https://ropsten.etherscan.io/address/0x71620406C2738c87603270d93574275A9A2e630B#code">Directory</a></li><li><a href="https://ropsten.etherscan.io/address/0xc9A2f11e7BfCF27e984B232ed8EF51dBBAA50e68#code">Rewards Manager</a></li><li><a href="https://ropsten.etherscan.io/address/0x3db64F253Ae1d4bbe31FcD533704D7E64Ef28494#code">Epochs Manager</a></li><li><a href="https://ropsten.etherscan.io/address/0x4421e2C7Ae69CAbD9D458dFe6FE76c0C35B7dd1d#code">Staking Manager</a></li></ul><p>I think it’s safe to say that the team is pretty excited to have this in place for 2022. Personally, after a couple weeks to recharge the batteries, it will be great to get back to the office and start rolling this out to the community. I’m really looking forward to revealing all the awesome things we have in store for you all.</p><p>Thanks for your continued support and see you in the new year!</p><p>—</p><p><strong><em>Thoughts to share? We’re always keen to hear from you.</em></strong></p><p><strong><em>Get in touch with our team now on </em></strong><a href="https://twitter.com/sylo"><strong><em>Twitter</em></strong></a><strong><em> or </em></strong><a href="https://t.me/sylo_io"><strong><em>Telegram</em></strong></a><strong><em>.</em></strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5d19e2549fab" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Phase 2 Incentivisation Update]]></title>
            <link>https://medium.com/@paul_freeman/phase-2-incentivisation-update-7d0f114b8ce5?source=rss-2f6b04f74013------2</link>
            <guid isPermaLink="false">https://medium.com/p/7d0f114b8ce5</guid>
            <category><![CDATA[tech]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[crypto]]></category>
            <category><![CDATA[decentralization]]></category>
            <category><![CDATA[cryptocurrency]]></category>
            <dc:creator><![CDATA[Paul Freeman]]></dc:creator>
            <pubDate>Sun, 21 Nov 2021 21:57:44 GMT</pubDate>
            <atom:updated>2021-11-21T21:57:44.799Z</atom:updated>
            <content:encoded><![CDATA[<h4>Progress all round…</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*I7vSw8_8rDJ8zkBDJSLwlA.png" /></figure><p>It’s a very exciting time for the Sylo Network team here at Sylo, so I thought it would be a good time to put out a quick update about what we’ve been up to lately.</p><p>As a lot of you know, the Sylo Network is on the verge of beginning the next major phase of its life, as we move towards <strong>incentivisation</strong>…</p><p>This will give our Sylo Token holders another way to stake their SYLO, by delegating them to a Sylo Node.</p><p>So far we haven’t spoken too much far about <strong>delegated staking</strong>, but it’s by far the easiest way for less technically-proficient users to advance the future of the Sylo Network, whilst earning from it at the same time. More on this soon.</p><p>As for our entrepreneurial users, you will have the opportunity to claim your place on the Sylo Network by operating your own incentivised Sylo Node.</p><p>Such exciting progress is only possible because of the team’s amazing work getting the smart contracts sent off for their audit last week.</p><h3>Sylo on Twitter: &quot;Our #smartcontracts are being audited as we speak and documentation is coming ASAP... Phase 2 #SyloNetwork Incentivisation is well on the way...!🥳🎉🚀 / Twitter&quot;</h3><p>Our #smartcontracts are being audited as we speak and documentation is coming ASAP... Phase 2 #SyloNetwork Incentivisation is well on the way...!🥳🎉🚀</p><p>The smart contracts we’ve created provide the economic incentives that ensure communication data travels easily across the decentralised network.</p><p>This paves the way for a world of dApps that communicate in exciting new ways and provides incentives for the infrastructure required — ensuring high-quality, trustless services.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ThUbMMFw4JCeGjOALaexrA.png" /></figure><p>There will be a lot more information about this in the weeks to come, but we’ve released a series of documents related to the network incentivisation, which you can find <a href="https://sylo.gitbook.io/sylo-docs/">here</a>.</p><p>In other exciting news, Sylo welcomed our Summer of Tech interns to the team this week. We were lucky enough to find a couple amazing students to join us on the Sylo Network team. They have already made their mark and are quickly finding ways to contribute to the project.</p><p>We’re very fortunate to have the added support at this stage, as there are plenty of tasks to do to get incentivisations ready for rollout…</p><p>On the Sylo Node front, we have made progress there as well. The node will need a number of updates and modifications to support the incentivised layer of the Sylo Network.</p><p>The majority of these updates have been completed internally and we have successfully completed a demonstration of staking, delegated staking and micropayments on our local testnet.</p><p>We are now focused on implementing the necessary UI/UX in our Sylo Node CLI to ease user interaction with the Sylo Network. We are also providing reference applications to the Sylo Applications team so they can implement delegated staking in our other products.</p><p>2021 is looking to wrap up with a bang!</p><p>It was just 1 year ago that we rolled out the ‘Oya Launch’ of the Sylo Network and we are excited that we’ve been able to enhance it with a modern decentralised incentivisation layer so quickly.</p><p>There’s lots more in the works — so pay close attention!</p><p>—</p><p>Do you have a question about the Sylo Network?</p><p>Get in touch with a member of our team now on <a href="https://twitter.com/sylo">Twitter</a> or <a href="https://t.me/sylo_io">Telegram</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7d0f114b8ce5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Sylo Node Update 1.2.2 to be released September 7]]></title>
            <link>https://medium.com/@paul_freeman/sylo-node-1-2-2-update-to-be-released-september-7-172e2b563d83?source=rss-2f6b04f74013------2</link>
            <guid isPermaLink="false">https://medium.com/p/172e2b563d83</guid>
            <category><![CDATA[crypto]]></category>
            <category><![CDATA[cryptocurrency]]></category>
            <category><![CDATA[decentralization]]></category>
            <category><![CDATA[tech]]></category>
            <category><![CDATA[technology]]></category>
            <dc:creator><![CDATA[Paul Freeman]]></dc:creator>
            <pubDate>Tue, 24 Aug 2021 05:14:44 GMT</pubDate>
            <atom:updated>2021-09-07T04:31:48.838Z</atom:updated>
            <content:encoded><![CDATA[<h4>New version adds security updates and preparation for incentivised services.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EVB9D_s8DbW5FhpSUUiAxA.jpeg" /></figure><h3>Update</h3><p><strong>Sylo Node Version 1.2.2 is now available through the </strong><a href="https://hub.docker.com/repository/docker/dn3010/sylo-node"><strong>Sylo Docker Hub image repository</strong></a><strong>.</strong></p><p><strong>Read on below for more information on this update.</strong></p><p>—</p><p>Incentivisation of the Sylo Network has been progressing quickly. The rollout of the incentivisation will include many changes to the Sylo Nodes and the deployment of the necessary smart contracts to orchestrate the flow of micropayments across the network. In a first step in this process, we will soon be releasing the next version of the Sylo Node.</p><p>The new version of the Sylo Node is 1.2.2 and it replaces the current version, 1.1.4. This new version will be available to the public on September 7 2021 through the Sylo Docker Hub <a href="https://hub.docker.com/repository/docker/dn3010/sylo-node">image repository</a>.</p><p>Since it includes security updates, we recommend that all Sylo Node operators update to the new version. That being said, this is not a mandatory update and the 1.1.4 version should continue to work just fine.</p><h3>What changed?</h3><p>Quite a few changes made it into the Sylo Node for this release. At this stage, most of the improvements are behind the scenes, but I’ll try to highlight the main points.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_SASvyYWSj6u--Qf28G4WQ.jpeg" /></figure><h4>Added support for the Noise security transport protocol</h4><p>This is probably the most important change, since it relates to security.</p><p><a href="https://noiseprotocol.org/">Noise</a> is a protocol for encrypting connections between peers. The Sylo Network always uses encrypted connections but supports multiple protocols. This ensures applications on the network can still communicate securely, even if a vulnerability is discovered, by using another protocol.</p><p>With the addition of Noise, we are removing support for SECIO, as its use is no longer encouraged. The Sylo Network will continue using TLS encryption as its fallback security protocol.</p><p>This change should have no impact and any known Sylo Network applications, but if you maintain your own Sylo Network dApp, you should ensure it supports either Noise or TLS security transport.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LXHU9kn5zCD07S3CnwM-jg.jpeg" /></figure><h4>Improvements to the command line RPC</h4><p>The primary method for managing a Sylo Node is through the web interface hosted by the RPC. Alternatively, some node operators use the RPC command line interface. If you use the CLI, you’ll see some changes in the 1.2.2 release.</p><p>The changes to the CLI offer a bit of a sneak peak of what’s to come in the web interface (although a lot of the new stuff is still hidden). Specifically, we wanted to start getting ready for a time when you’ll need to stake Sylo to your node and manage your incentivised services. Many more feature additions will be coming to the web/CLI management interfaces in the near future.</p><p>Stay tuned.</p><h4>Many more internal improvements</h4><p>The remaining changes will be mostly internal or relate to development. Some dependency versions were updated and there may be some minor changes to Sylo Node logs.</p><p>We also turned off a service (known internally as the “deposit” service) which was used in the early days of migrating users of the Sylo Smart Wallet. This service is still available (for now) and can be turned on by passing an argument to the Sylo Node at startup. However, since there are not any applications using this service it would be kind of pointless to have it running.</p><h3>How do I update my Sylo Node?</h3><p>If you are operating a Sylo Node, you should update to 1.2.2. This should be an easy process, but I’ll try to go over the key steps.</p><p>If you <strong>aren’t</strong> operating a node and would like to know more about it, please see our setup documents <a href="https://developers.sylo.io/sylo-nodes">here</a>.</p><h4>Backup your Sylo Node data</h4><p>It is good practice to backup your Sylo Node data before performing an update. The Sylo Network is resilient and will recover if you ever lose your node data, but it could still be an inconvenience for you to set up again.</p><p>The location of your data will depend on your docker configuration, but the default location is a directory named .sylo-node in your home directory. Make a copy of this directory and store the copy somewhere safe until you complete the update.</p><h4>Pull the new docker hub image</h4><p>The latest image is tagged 1.2.2 and is available on docker hub. You should pull the new image before you start updating your node.</p><pre>$ docker pull dn3010/sylo-node:1.2.2</pre><p>This will download the image to your computer. <em>If it doesn’t work for some reason, please check the docker hub page for the most recent version of the Sylo Node.</em></p><h4>Update the docker compose file</h4><p>Your Sylo Node configuration is likely in a docker-compose.yaml file. You should update this file to point to the new Sylo Node image.</p><p>Within the file, look for this section:</p><pre>services:<br>  sylo-node:<br>    image: dn3010/sylo-node:1.1.4</pre><p>Update the image to dn3010/sylo-node:1.2.2</p><h4>Restart your node</h4><p>You are now ready to restart the Sylo Node with the new image.</p><p>To stop the Sylo Node:</p><pre>$ docker-compose down</pre><p>Then start it up again:</p><pre>$ docker-compose up -d</pre><p>Check the logs to ensure everything is running properly:</p><pre>$ docker-compose logs --follow</pre><p>If everything looks good in the logs, you should be ready to go. If you have connected your Sylo Smart Wallet to your node, it should continue to work as normal.</p><h3>That’s it!</h3><p>Thanks for supporting the Sylo Network by operating a Sylo Node. You can expect more updates in the near future as incentivisation gets closer. If you ran into trouble updating to 1.2.2, reach out to us on Telegram or send us an email at support@sylo.io</p><p>—</p><p><strong>Experience the Sylo Smart Wallet now by downloading from the </strong><a href="https://play.google.com/store/apps/details?id=io.sylo.dapp"><strong>Google Play</strong></a><strong> or </strong><a href="https://itunes.apple.com/app/apple-store/id1452964749"><strong>Apple App</strong></a><strong> stores.</strong></p><p><strong>For further announcements, follow Sylo on</strong><a href="https://t.me/sylo_io"><strong> </strong></a><a href="https://twitter.com/sylo"><strong>Twitter</strong></a><strong>, </strong><a href="https://t.me/sylo_io"><strong>Telegram</strong></a><strong> or visit</strong><a href="http://www.sylo.io/"><strong> www.sylo.io</strong></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=172e2b563d83" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Tech Insights: Oya Launch]]></title>
            <link>https://medium.com/@paul_freeman/tech-insights-oya-launch-4fded92066dd?source=rss-2f6b04f74013------2</link>
            <guid isPermaLink="false">https://medium.com/p/4fded92066dd</guid>
            <category><![CDATA[decentralization]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[crypto]]></category>
            <category><![CDATA[p2p]]></category>
            <category><![CDATA[tech]]></category>
            <dc:creator><![CDATA[Paul Freeman]]></dc:creator>
            <pubDate>Thu, 21 Jan 2021 03:40:16 GMT</pubDate>
            <atom:updated>2021-01-25T23:56:45.683Z</atom:updated>
            <content:encoded><![CDATA[<h4>A deeper look into our recent Oya release.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RscM7l3aVFIMRLwxyi1pzA.jpeg" /></figure><p>The Oya Launch was the culmination of updates for many of our key products — and the first ever launch of the Sylo Node.</p><p>If you’ve used the Sylo Smart Wallet recently, you probably had to wait a few moments while it updated. After this process completed, you probably noticed… a very similar dApp.</p><p>Your wallet, contacts, groups, and other settings would have all carried over relatively unchanged. Sure, you might have noticed some of the UI improvements, or maybe some actions felt a bit snappier. But it was essentially the same Sylo Smart Wallet. At least, that’s how it appeared on the surface…</p><p>Under the hood, it would be difficult to imagine a more world-changing event for our dApp. It would be like plucking you off the ground, strapping a rocket pack to your back, and sending you off to fly through the clouds— all without you noticing.</p><p>Naturally then, we’re excited about the new technology running the Sylo Smart Wallet and we want to share what makes it so revolutionary.</p><p>So, in this post, I’ll talk about some of the improvements made behind the scenes to give you a fantastic, private, decentralised messaging experience.</p><h3>Sylo Nodes Release</h3><h4>Pre-Oya Decentralisation</h4><p>User data for the Sylo Smart Wallet has always been encrypted, removing the monetisation incentive for storing data that is enjoyed by other (<em>*cough* Facebook</em>) communication platforms. Web 3.0 decentralisation technologies provide other incentives for storing user data — meaning that people contribute computing and storage resources to the network and receive fair rewards through other mechanisms, without needing to mine and sell the user data they store. Think <em>blockchain</em>.</p><p>The initial launch of the Sylo Smart Wallet relied on such a network. The network was both decentralised and distributed but, to the application, it emulated a typical centralised server. This ability to mimic centralised technology, while providing enhanced resiliency, security, and privacy, is what still drives the continued adoption of many Web 3.0 technologies in a wide range of areas.</p><p>The pre-Oya network was designed with strong consistency mechanisms— meaning that any node of the network had the same ability to provide data as any other. Peers could access whichever node they preferred on the network and get any information they needed. This is a powerful technology and we continue to rely on this technology for some features in the Sylo Smart Wallet.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ObyAa6Yhc7yIjoVibkNTIw.jpeg" /><figcaption>Peers connect to nodes of the old network for all necessary information. Nodes share information among themselves for consistency.</figcaption></figure><p>However, even as we developed the early versions of the Sylo Smart Wallet, we knew that some aspects of the network could be redesigned to improve user experience and performance.</p><p>Providing strong consistency across a large decentralised network can require a significant time and storage investment. Messaging data, for example, does not need to be available across the entire network, since only the sender and receivers are interested in the information. In fact, it is very inefficient to store encrypted messages on a large number of nodes when messaging is primarily concerned with delivery from A to B. This observation is what led to our decision to design a new network — the Sylo Network.</p><h4>Post Oya Decentralisation</h4><p>The Oya launch represents a massive re-imagining of how dApps communicate. It coincides with the first ever launch of the Sylo Node, a huge ‘under-the-hood’ update to the Sylo Smart Wallet, and a new version of the Sylo Protocol. These three updates were all carefully orchestrated to provide a seamless transition to the next version of the Sylo Network.</p><p>Practically, the post-Oya Sylo Network is a peer-to-peer network. When you send a message in our app, it is sent directly to the recipient(s). Our philosophy has always been ‘<strong>you own your data</strong>’, so it just makes sense that we would adopt a peer-to-peer approach for messaging. And we’re very excited to bring that to you with the Oya launch.</p><p>So what’s the story with Sylo Nodes? If the app is communicating peer-to-peer, how do they fit in?</p><p>You may have noticed in the Sylo Smart Wallet settings that you were assigned a Sylo Node post-Oya. Your Sylo Node is like your rocket pack — it let’s you fly when you otherwise couldn’t.</p><p>See, mobile devices still face a number of networking challenges. They are frequently offline, jump from network to network, and often have limited or metered bandwidth. This can make it extremely difficult to make a peer-to-peer connection when you want to send someone a message.</p><p>This is where your Sylo Node comes in. First and foremost, <strong>you pick the Sylo Node you want to use</strong>. This is your rocket pack, after all, so you want to make sure you trust it. The app currently gives you a list of a few existing nodes we have curated, but you can switch to any node you like, anytime, right in the app.</p><p>And for the first time, it is possible to build your own piece of the Sylo Network by operating your own Sylo Node — in which case you might want to use this as your in-app node. We are currently in the process of creating a tutorial for the eager node operators out there, so keep an eye on our posts to learn more about how to do this.</p><p>The Sylo Node you select acts as an extension of your app. It stores messages sent to you while you are offline. It you’re online, it provides a relay service in order to receive direct messages from other peers. It also continually monitors the Sylo Network, so it can help you locate someone whenever you want to communicate.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VSARVEKHBglwg6f-eOpEHw.jpeg" /><figcaption>Sylo Nodes assist peers in establishing peer-to-peer connections to create the new Sylo Network. Nodes do not need to share information.</figcaption></figure><h4>Inverting the Communication Network</h4><p>By transforming the Sylo Network into a peer-to-peer network, we are greatly reducing the footprint of your data. It is only touched directly by a minimal number of parties — as required by the network topology.</p><p>Under optimal conditions, data is passed directly from sender to receiver, leaving only a tiny attack surface.</p><p>Under regular mobile conditions data is passed from sender, to the receiver’s Sylo Node, and then to the receiver.</p><p>The new Sylo Network inverts our own previous network by placing the users in the centre of the network as owners of the data. Communication is performed directly with the recipients — with an occasional assist <em>only</em> by a Sylo Node designated by the recipient of the information.</p><p>We see the new Sylo Network as a massive leap in decentralised communication — and yet we still view it as just one more step forward — with many more steps still to come.</p><p>Sylo is continuing to drive innovation in this space. We envision decentralised apps that can act as Sylo Nodes and provide services to others. New network technologies will make peer-to-peer connections across mobile networks the norm, rather than the exception.</p><p>But this network change will not happen overnight. It will occur incrementally, meaning the era of the Sylo Node is upon us. It’s an exciting time to be a Sylo Smart Wallet user and a great time to consider if you are ready to become a Sylo Node Operator.</p><h3>Sylo Protocol v2</h3><p>To support the new Sylo Network, the Sylo Protocol needed to be almost completely redesigned from the ground up.</p><p>The new protocol needed to operate in a peer-to-peer environment — which requires managing a large number of communication streams. Previously, communication could be done through a single designated connection to a single node on the network.</p><p>Communication with many different peers also implies a different measure of consistency. Instead of a consistent network acting as single source of truth, the new peer-to-peer network would need to contend with a variety of peers with different sets of knowledge — all working towards some <em>eventual consistency</em>.</p><p>Finally, despite an order of magnitude higher complexity and a much larger connection pool to manage, we aimed to provide a better user experience in-app. So, with a huge stack of requirements, we set out to implement a new Sylo Protocol to run on the new Sylo Network.</p><h4>Peer-to-Peer Communication</h4><p>The Sylo Protocol now provides a built-in peer-to-peer client. This client manages all the connections needed to communicate on the Sylo Network. Even your Sylo Node is simply viewed as another peer on the network.</p><p>Each contact, Sylo Node, and chat group in the Sylo Smart Wallet is now linked to p2p IDs. The Sylo Protocol orchestrates the delicate process of distributing new information to relevant peers.</p><p>For each group message, the Sylo Protocol determines which members of the group need the information. It coordinates direct messages to peers who are currently online and delivers messages to Sylo Nodes for peers who are offline.</p><h4>Redesigned Operation Log</h4><p>In Sylo Protocol v1, the operation log could be replicated from a network node, which maintained consistency for the users. It was enough to simply monitor the network for changes and update as needed.</p><p>Sylo Protocol v2 required an entirely new operation log written with <em>eventual consistency</em> in mind. Each peer now has an independent view of group histories and must actively coordinate with other peers in the group to obtain any new information.</p><p>The new operation log is a CRDT which supports eventual consistency. This log maintains group membership as well as group messages — ensuring that only current group members are able to post to group to which they belong.</p><p>Peers use a complex synchronisation algorithm to efficiently exchange relevant information, even when many peers are frequently offline. This ensures that the network isn’t flooded with redundant information, conserving peer bandwidth and battery life.</p><h4>Protobuffers and other message optimisations</h4><p>The Sylo Protocol released with Oya is the first to include protobuffered messages. These messages are transmitted as binary data and are significantly more compact than messages in prior releases of the protocol.</p><p>The change to protobuffers arrives alongside a wide range of internal data handling optimisations. These optimisations were put in place to curb unnecessary CPU and network usage, which could manifest in a slow user experience, decreased battery life, or excessive data use.</p><p>Many of these changes will remain hidden away for now — but we will be excited to share these innovations with you when we have the opportunity to move our Sylo Protocol code to open source! Keep an eye on our developer portal for more information.</p><h3>The Era of Oya</h3><p>We are thrilled to usher in the era of Oya. It was such a rush to be able to launch something we all worked so hard to bring together.</p><p>There is so much more to be done — much of which would not have been possible without the recent changes brought about by this launch.</p><p>There will be many opportunities in the coming months for our users to get involved, both as Sylo Node Operators or as Sylo Smart Wallet users. It really is an exciting time.</p><p>So next time you start up the app, remember that, while a lot of things may seem to be the same, we’ve actually attached a rocket pack to your back — and it’s going to open up a whole new world for you…</p><p>—</p><p><strong><em>Do you have any further questions about Oya?</em></strong></p><p><strong><em>We would love to hear from you. Send any queries to us now via DM on </em></strong><a href="https://twitter.com/sylo"><strong><em>Twitter</em></strong></a><strong><em> or </em></strong><a href="https://t.me/sylo_io"><strong><em>Telegram</em></strong></a><strong><em>.</em></strong></p><p><strong>Experience the Sylo Smart Wallet now by downloading from the </strong><a href="https://play.google.com/store/apps/details?id=io.sylo.dapp"><strong>Google Play</strong></a><strong> or </strong><a href="https://itunes.apple.com/app/apple-store/id1452964749"><strong>Apple App</strong></a><strong> stores.</strong></p><p><strong>For further announcements, follow Sylo on</strong><a href="https://t.me/sylo_io"><strong> </strong></a><a href="https://twitter.com/sylo"><strong>Twitter</strong></a><strong>, </strong><a href="https://t.me/sylo_io"><strong>Telegram</strong></a><strong> or visit</strong><a href="http://www.sylo.io/"><strong> www.sylo.io</strong></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4fded92066dd" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[All Things Armadillo]]></title>
            <link>https://medium.com/@paul_freeman/all-things-armadillo-a3b1df3b2b32?source=rss-2f6b04f74013------2</link>
            <guid isPermaLink="false">https://medium.com/p/a3b1df3b2b32</guid>
            <category><![CDATA[tech]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[p2p]]></category>
            <category><![CDATA[decentra]]></category>
            <category><![CDATA[apps]]></category>
            <dc:creator><![CDATA[Paul Freeman]]></dc:creator>
            <pubDate>Thu, 29 Oct 2020 03:58:47 GMT</pubDate>
            <atom:updated>2020-10-29T22:25:53.918Z</atom:updated>
            <content:encoded><![CDATA[<h4>How Operation Logs Facilitate Communication</h4><p><em>In this article, we aim to give users a peek under the hood into how Sylo applications use a variety of methods to tackle the challenges of decentralisation. <br>Whilst the Sylo Smart Wallet </em><strong><em>does</em></strong><em> use an operation log, the one outlined here is a simplification, intended to present the broad concepts only.</em></p><p>—</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JN-rp4Ucjfcmf0ezWRJyVg.jpeg" /></figure><p>Meet Cristee.<br>She lives in New Zealand.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cXVkLfpZb_Dw9IGCtfmZzQ.jpeg" /></figure><p>Meet Moynul.<br>He lives in Spain.</p><p>Cristee and Moynul met in Costa Rica and discovered a mutual interest in armadillos. Since returning to their respective homes, they have started sharing armadillo pictures using a decentralised application.</p><p>Because they live on opposite sides of the world, Cristee mostly sends armadillos when Moynul is asleep, and vice versa.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*l_3IULggA5cNDujMzWG7hw.jpeg" /></figure><p>This situation creates a number of decentralisation challenges which must be overcome if Cristee and Moynul are going to be able to share armadillos in a meaningful way.</p><h3>Where do you store the armadillos?</h3><p>If Cristee and Moynul have the only phones on the planet, Cristee cannot send armadillo pictures to Moynul when he is offline. And when Moynul is online, if Cristee has gone offline, Moynul can’t get any armadillo pictures from Cristee.</p><p>If they each post an armadillo picture every day, but are never online together, they each end up with a series of armadillo pictures — but they never see the armadillos posted by the other person.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2Xd1g5BYriALJeEUQZWZig.jpeg" /></figure><p>This was one of the fundamental reasons centralisation rose to prominence. Put all the armadillos on a server somewhere and make sure that server is always online. Centralisation solves the problem — but is not ideal for a range of reasons! But if you’re reading this you probably already know that.</p><p>So, how do we get the armadillos from Cristee to Moynul without centralising them? We need to coordinate another place to put the armadillos while Cristee and Moynul are both offline.</p><h4>Creating an armadillo peer network</h4><p>There are probably other people who enjoy armadillos. Maybe these other people are willing to hold onto armadillos if Cristee and Moynul return the favour.</p><p>As it turns out, Lexes also likes armadillos. The trio form an “armadillo network” and, in doing so, increase the odds that someone is online with whom armadillos can be exchanged.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*H0PnEmHpQByCmwAFyUy1_Q.png" /></figure><h3>This armadillo before that armadillo</h3><p>Having formed the armadillo network, Moynul, Cristee, and Lexes each create an operation log (or “oplog”) to track the armadillos being exchanged. There is no centralised oplog — each person keeps their own copy.</p><p>Moynul posts the first armadillo and adds it to his copy of the oplog. Cristee and Lexes are both online and receive the armadillo from Moynul. They add it to their copy of the oplog. Each copy of the oplog is currently the same. The oplogs can be considered to be <em>in sync.</em></p><p>Later, Cristee posts a second armadillo, but no one else is online, so she can’t send it to them. It will need to be sent later. Cristee’s oplog is different from the others. The oplogs are now considered <em>out of sync</em>. Cristee goes offline.</p><p>Moynul and Lexes are both online when Moynul posts a third armadillo. Lexes receives the third armadillo from Moynul — but she doesn’t know it’s the third armadillo and assume it to be the second.</p><p>Currently, the armadillos seen by each person in the group are not the same.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zhqgy10DMtKDBvQCRtDOdQ.png" /></figure><p>Moynul posted the first and third armadillo but does not know about second one yet.</p><p>Lexes did not post any armadillos but was online each time Moynul posted, so also knows about the first and the third armadillo.</p><p>Cristee posted the second armadillo and was online for the first armadillo but does not yet know about the third one.</p><p>When everyone is online, the missing armadillos can be exchanged and everyone will have all three. The problem will be in deciding which armadillo is second and which is third. If the group cannot arrive at the same order, they will be unable to synchronise.</p><p>A simple method for ordering the armadillos is using timestamps. If all the armadillos have a timestamp with them, this is easy. However, not all phones keep exactly the same time. And agreeing on a “universal” clock to use — like from a server or something — is just relying on a centralised service.</p><p>Using a timestamp also presents an opportunity for someone to deliberately put a false timestamp on an armadillo, so that their armadillo appears before another one.</p><p>It would be preferable for the ordering to be built into the oplog somehow. Fortunately, there is an easy way to do just that.</p><p>Cristee will observe the armadillos in “wall clock” order — meaning she will see them in the order they would be observed by someone who was always online. Moynul and Lexes will see the last two armadillos in the opposite order, because they learned about the second one <em>after</em> learning about the third.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-fO2UfxXRelTgEdiiE5jow.png" /></figure><h3>Creating a partial ordering of armadillos</h3><p>The armadillo network should order the armadillos the same for everyone. To achieve this, the oplog first creates a <em>partial ordering</em> of the armadillos.</p><p>Creating a partial ordering is fairly straightforward. When a picture is added to the oplog, it also points to the last pictures in the oplog.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IHEZfvXT6RHfXpElvjIClA.png" /></figure><p>With this information, the oplog can be viewed as a <em>directed acyclic graph</em>. Everyone will create the same graph, even if the armadillos are received in a different order.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*p2Y08OVn5FWXx8U0-BKjvA.jpeg" /></figure><p>“But, hold on,” you may ask. “Those armadillos aren’t in order.”</p><p>This is true. However, given an arbitrary method to pick the left or the right armadillo in the second row, the graph can always be ordered the same way by anyone. There are many trivial ways to break these kinds of ties.</p><p>And this graph captures the differing perspectives of Moynul, Lexes, and Cristee — they knew about the first armadillo together but learned about the next two at different times.</p><h3>Armadillo consistency</h3><p>Oplogs can be used to create a consistent ordering of items, even when many people are adding items that others don’t know about yet. The techniques explained above will work for oplogs of all sizes.</p><p>The current oplog can be continued by pointing the next armadillo to the armadillos at the end (the <em>leaf nodes</em>) of the graph.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3Gux888bdJxgGpmV94r2ag.png" /></figure><p>At Sylo, we use operation logs to achieve consistent ordering of items within our applications. This ensures the ordering of messages <em>you</em> see matches the ordering <em>your friend</em> sees. And we do this in a fully decentralised fashion — without relying on any centralised services.</p><p>Accessible, decentralised communication is a central pillar of what we see as a future worth looking forward to, for everyone.</p><h4>Stay tuned for more technical content</h4><p>Do you enjoy reading about the technical side of our decentralised technology? There is more content in the works, so give this post a clap if you want to see more stuff like it!</p><p>I really enjoy writing technical content and I have more to talk about in regards to our operation logs and the operation log synchronisation process.</p><p>If there is something specific you want to know more about, please reach out to us!</p><p><strong>~Paul</strong><br><strong><em>Sylo Backend Developer</em></strong></p><p>—</p><p><strong>Experience the Sylo Smart Wallet now by downloading from the </strong><a href="https://play.google.com/store/apps/details?id=io.sylo.dapp"><strong>Google Play</strong></a><strong> or </strong><a href="https://itunes.apple.com/app/apple-store/id1452964749"><strong>Apple App</strong></a><strong> stores.</strong></p><p>For further announcements, follow Sylo on<a href="https://t.me/sylo_io"> </a><a href="https://twitter.com/sylo">Twitter</a>, <a href="https://t.me/sylo_io">Telegram</a> or visit<a href="http://www.sylo.io/"> www.sylo.io</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a3b1df3b2b32" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Dawn of the Sylo Node]]></title>
            <link>https://medium.com/@paul_freeman/dawn-of-the-sylo-node-68968f4a7dca?source=rss-2f6b04f74013------2</link>
            <guid isPermaLink="false">https://medium.com/p/68968f4a7dca</guid>
            <category><![CDATA[p2p]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[decentralization]]></category>
            <category><![CDATA[cryptocurrency]]></category>
            <category><![CDATA[tech]]></category>
            <dc:creator><![CDATA[Paul Freeman]]></dc:creator>
            <pubDate>Fri, 23 Oct 2020 04:35:13 GMT</pubDate>
            <atom:updated>2020-10-23T04:35:13.901Z</atom:updated>
            <content:encoded><![CDATA[<h4>How you can contribute to the Sylo Network</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DhN1OxVnfrOdU1sHWmNk4g.png" /></figure><p>2020 has been a year of many things. Some of these things were… less than thrilling. But if you’re following the work at <a href="https://sylo.io/">Sylo</a> you’ll know that this quarter is bringing many amazing Sylo developments your way, all which build on our upcoming <a href="https://medium.com/sylo-io/introducing-the-oya-launch-56e9692369c1">Oya Launch</a>.</p><p>Amongst this excitement and one of the integral parts of the Oya Launch is the emergence of a project with which I’ve been heavily involved — the <strong>Sylo Node</strong>.</p><p>Over the past few months, I’ve <a href="https://medium.com/sylo-io/sylonetwork/home">written extensively</a> about the technology inside the Sylo Nodes and how we were bringing it together to make our decentralised platform even larger, while also enabling powerful new features in apps like the <a href="https://sylo.io/wallet/">Sylo Smart Wallet</a>. Our work has now reached the point that we can take our next <strong>big</strong> step forward.</p><p>Today is an exciting day for me. Today I get to invite all of you into the future. Today I get to truly unveil the Sylo Node to the world.</p><p>This post will be a brief overview — to give me the chance to show how the Sylo Nodes (and the <a href="https://sylo.io/network/">Sylo Network</a> they enable) are poised to revolutionise the decentralised space. In the coming weeks, I’m going to tell you more about how to setup, run, and explore your own Sylo Node, so that you are ready to run a Sylo Node after our Oya release.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dkr83S17lvjfHGkgFU0cEg.png" /></figure><h4>1. Powerful Infrastructure</h4><p>The Sylo Node is the foundation of a global, decentralised network. The distributed Sylo Nodes provide communication channels between any devices running the Sylo Protocol. Sylo Nodes are simple to run, so anyone can be part of the network.</p><p>The network scales with ease and is not bound to any centralised nodes. <br>All the Sylo-operated nodes could be removed and the Sylo Network would remain. Users are not bound to any specific node and can jump seamlessly to any other as necessary. This is literally an unstoppable network.</p><h4>2. Limitless Opportunity</h4><p>As the Sylo Network grows, there will be an increasing number of opportunities for those participating in the Sylo ecosystem. At Sylo, we take pride in moving quickly into new areas of decentralisation and bringing the best opportunities to our users and partners.</p><p>Operating a Sylo Node gives you a voice in which directions we move the technology and how we unfold the future together. We want to do it together — not alone.</p><h4>3. Fair Reward</h4><p>We understand that the success of the Sylo Network is dependent on a secure and robust method of fair reward. Our network has been designed from the ground up to provide incentivisations to Sylo Node operators.</p><p>The Sylo Protocol has built-in support for <em>probabilistic micropayments</em> and Sylo Nodes have been designed to accept these payments. This mechanism (and others in the pipeline) are brought together with the Sylo Token to ensure a marketplace of services that benefit all.</p><h4>4. Join Early</h4><p>Don’t get left out! We’re designing Sylo Nodes to be fast and easy to setup, so there is no reason to put it off. Being one of the earliest providers of Sylo Node services puts you in a prime position for early network incentives. Sylo will be working closely with our early node operators to facilitate their journey onto the network.</p><h4>5. Learn the Technology</h4><p>Setting up a Sylo Node early means having extra time to learn the ins and outs of a decentralised network. How can you join your node to the Sylo Network, acquire users, and provide the best service? How will you capitalise when important opportunities are announced. How many users do you want to support and which services will you offer? Do you want something custom from the network and can Sylo help you reach achieve it?</p><h4>6. Make Grand Plans</h4><p>It’s time to start dreaming big! The Sylo Network has the flexibility to support a wide range of decentralised visions — integrating communication, wallets, smart money, micropayments, and blockchains — then delivering it to every person on the planet with powerful privacy and security. The next big innovation to land on the Sylo Network could be your own!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4UqC9QEH_Go6D4XXj5xgig.png" /></figure><h3>Get Your Sylo Node</h3><p>Initially, Sylo Nodes are only being made available as Docker images. These images will become publicly accessible in the near future — watch this space! This will give interested parties the chance to deploy a node (or even a whole network) and attach to the existing global Sylo Network.</p><p>During the initial phases of deployment, you will not need to worry about servicing Sylo users. This is an opportunity for our early operators to understand the technology, learn and ask questions. Please reach out to our team with questions via contact@sylo.io.</p><p>Initially, our Sylo Nodes will require some technical setup, but our intention is to make running a Node an achievable feat for everyone. Over the coming months, we will be releasing detailed yet straightforward walk-throughs, set up guides and videos that make contributing to the Sylo Network easy.</p><p>My next post will discuss the details of joining the Sylo Network. This will be a technical dive into the product and will give you everything needed to get started. Personally, I am really excited to begin sharing this technology — and I know the rest of the Sylo team is in agreement.</p><p>Looking forward to the coming weeks and a decentralised future.</p><p><strong>~Paul</strong><br><strong><em>Sylo Backend Developer</em></strong></p><p><strong>Experience the Sylo Smart Wallet now by downloading from the </strong><a href="https://play.google.com/store/apps/details?id=io.sylo.dapp"><strong>Google Play</strong></a><strong> or </strong><a href="https://itunes.apple.com/app/apple-store/id1452964749"><strong>Apple App</strong></a><strong> stores.</strong></p><p>For further announcements, follow Sylo on<a href="https://t.me/sylo_io"> </a><a href="https://twitter.com/sylo">Twitter</a>, <a href="https://t.me/sylo_io">Telegram</a> or visit<a href="http://www.sylo.io/"> www.sylo.io</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=68968f4a7dca" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Let’s Code!]]></title>
            <link>https://medium.com/@paul_freeman/lets-code-971c4e26ae16?source=rss-2f6b04f74013------2</link>
            <guid isPermaLink="false">https://medium.com/p/971c4e26ae16</guid>
            <category><![CDATA[decentralization]]></category>
            <category><![CDATA[tech]]></category>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[apps]]></category>
            <dc:creator><![CDATA[Paul Freeman]]></dc:creator>
            <pubDate>Wed, 19 Aug 2020 07:44:17 GMT</pubDate>
            <atom:updated>2020-08-19T07:48:06.003Z</atom:updated>
            <content:encoded><![CDATA[<h4>Building a decentralised chat network</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xMaJD0LuoLLg8LAvYz0J2A.jpeg" /></figure><p>Today I want to do something a little different…</p><p>Instead of the usual post where I <em>talk</em> about the latest Sylo tech, I thought it would be fun to run you through an actual demo. I talk about the work of the Sylo team a lot but today, I want you to be able to actually <em>experience</em> it.</p><p>This article will be one for all the devs out there, as when I was first learning about peer-to-peer chat, this was exactly the kind of resource that I was seeking out.</p><p>So it’s time to fire up the ol’ code editor and get our hands dirty…</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bagPlY6MyAyUhBJHGzO2Gg.jpeg" /></figure><h3>Project Goals</h3><p>I’ve taught enough programming courses to know that you need to keep the goals as simple and clear as possible.</p><p>Here are my goals:</p><h4>One big chat room supporting many users</h4><p>Many of the chat examples out there are only for two people. I want one big internet chat room that anyone can join. What could go wrong? xD</p><h4>Decentralised — no servers</h4><p>In other words, there is one chat application and that’s it! Peers can help each other make connections, but there will be no centralised application state.</p><h4>All communication is peer-to-peer</h4><p>Using libp2p will take care of this for me. Each peer will communicate securely with the intended recipient via a peer-to-peer connection.</p><h4>Easy for anyone to join the chat</h4><p>My chat app is intended for everyone. I want it to work on Linux, Mac, Windows, Android, iOS, etc. Basically wherever possible.</p><p>Go will already cross-compile to many architectures and I’ll be using libp2p’s NAT service to make connections in hostile networking environments.</p><p>In other words, my app will probably work for almost everyone.</p><h4>Minimal code — keep it easy to explain</h4><p>As Blaise Pascal wrote, <em>“If I had more time, I would have written a shorter letter.”</em></p><p>I think this is true for code, as well. There are so many easy ways to expand things into more lines of code. Today, I’m going to try hard to keep it short, without making it confusing.</p><p>I should also note that this post is not designed to explain <em>how</em> to write the code. I will mostly be showing the code and explaining what it does in a way that is hopefully easy to follow.</p><p>I think this may be a long one, so let’s get started!</p><h3>Project Outline</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OGVicS07PjQjYQq8U6Z4Cg.jpeg" /></figure><p>I’m writing this in Go, as it’s the language used by libp2p. Go is also easy to read and understand (in my opinion).</p><p>Here is the rough outline of what the application needs to do.</p><h4>1. Parse command line arguments</h4><p>I’m going to need a bit of information at runtime, so I will get this information from the command line. This code alone could easily double the amount of code I need to write, so I’m going to endeavour to keep it minimal. But, at the very least, I will need these arguments:</p><ul><li>Bootstrap peers (at least 4 are needed to determine our NAT status)</li><li>User nickname (to display in the chat)</li><li>Relay flag (allows peer to provide TURN-like services to other peers)</li><li>Public IP (needed to display our connection address so peer can find us)</li><li>Read-only flag (the app won’t read from standard input)</li></ul><h4>2. Create message log</h4><p>I don’t think I need to keep the messages I’ve seen in a log, but this will ensure that each message is only printed once even if a peer sends it multiple times. This would also make it easy to add features, like requesting the last <em>N</em> messages for the group when you first join.</p><h4>3. Start a libp2p host</h4><p>I need to carefully configure the host so it will determine if it is behind a NAT and, if so, request a relay address from another peer. More on this later.</p><h4>4. Subscribe to messages</h4><p>When a message arrives I will add it to the message log. If it is not in the log already, I will also print it for the user.</p><h4>5. Connect to some bootstrap peers</h4><p>Without connections, I would be a network of one. If I make some connections to an existing network, I can take part in the conversation they are having.</p><h4>6. Send messages as the user enters them</h4><p>Each time the user enters a message, I need to send it to all the peers in the network. This should run continuously for the duration of the application.</p><h3>main.go</h3><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/b05cb2992868f829615bfef0cdb2a306/href">https://medium.com/media/b05cb2992868f829615bfef0cdb2a306/href</a></iframe><p>I’m aiming for something short, so I’m going to put all my code into one main.go file.</p><p>I’m importing the same logger used by libp2p. I’m not going to cover the logger today, but it’s just one of those things I tend to plan for at the beginning of any project.</p><p>Next, I create a constant string that will be used as the group “topic”. I will only receive messages from peers using the same topic string.</p><p>I have an empty message log struct at the top. I will fill that in with something. I turned logging on — as I will use it to print messages. Finally, I’ve copied my outline into the body of the main function.</p><p>This doesn’t look too intimidating at this point.</p><h3>1. command line arguments</h3><p>I’m going to get the command line arguments out of the way first. Keeping it simple is the way to go here. No need to over-engineer from the outset.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/2386916cb8d33e5b9d88993456022e15/href">https://medium.com/media/2386916cb8d33e5b9d88993456022e15/href</a></iframe><p>I’m using the Go flag module to do most of the work. This also makes it self-documenting. The only complicated part is the custom bootstraps type. This allows the user to provide the -bootstrap argument multiple times (I need at least 4, remember?).</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/f01c8de757c76cf1834e9983e00973c0/href">https://medium.com/media/f01c8de757c76cf1834e9983e00973c0/href</a></iframe><p>This means implementing the <a href="https://golang.org/pkg/flag/#Value">flag.Value</a> interface for the type. Here’s that code.</p><p>What’s nice about this is that I already have my <a href="https://pkg.go.dev/github.com/libp2p/go-libp2p-core/peer?tab=doc#AddrInfo">peer.AddrInfo</a> array ready to go when it comes to connecting to my bootstrap peers later.</p><h3>2. message log</h3><p>I put that messageLog type at the top of my main.go file. It’s often a good idea to work out the types before starting on the rest of the code so I’m going to take care of that now.</p><p>The log is maintained independently by each peer, but I want everyone to create essentially the same log. This is often called a conflict-free replicated data type. At Sylo, we use CRDTs for a variety of tasks.</p><p>My message log can be simple, so I’m going to use one of the simplest CRDTs — a grow-only set.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/b6252deb24abfbffce695d32fad39274/href">https://medium.com/media/b6252deb24abfbffce695d32fad39274/href</a></iframe><p>This log is essentially just a mapping of messages to empty structs (i.e. Go’s version of a set).</p><p>I also put in a clock variable which is an unsigned integer. I will increment this to always be larger than all the messages I’ve seen. Among other things, this will ensure that each message that gets put in the log is unique.</p><p>My log references a message type, as well. I will be using the following struct to represent messages.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/e3e7c0c9fdf297f302afe74224e8de56/href">https://medium.com/media/e3e7c0c9fdf297f302afe74224e8de56/href</a></iframe><p>The clock value is in there. Additionally, I include my peer ID, my nickname, and the text of my message. I’m using exported field names to take advantage of Go’s built-in JSON encoding.</p><p>Now to write the append function for the log. Yes, since it’s a grow-only set, I just need the one function. I’m also cheating a bit and printing the messages as they get appended.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/8a26f97d3ca5ec0ba018688dc6b23241/href">https://medium.com/media/8a26f97d3ca5ec0ba018688dc6b23241/href</a></iframe><p>Oh yes, and I actually need to create the log in our main function.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/dc4858afd03a59718ff694a2dcc96369/href">https://medium.com/media/dc4858afd03a59718ff694a2dcc96369/href</a></iframe><p>That takes care of the message log. Now I just call log.Append(message) whenever the app receives a message. Printing the message and incrementing the clock is taken care of automatically.</p><h3>Coding Break</h3><p>Hi! This feels like approximately the halfway point. Let’s take a little break.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mMjeN_VG5SAHrwYCS0iXVQ.jpeg" /></figure><p>What do you think about this format? I really like doing code walk-throughs but would really appreciate your feedback.</p><p>I would like to expand on this example code to add more features. It would be possible to wrap this into a simple mobile app. Or I could add security features to the messages. Or implement private groups.</p><p>I could also do something like this as a YouTube video. There are many possibilities.</p><p>Feel free to reach out to us on <a href="https://t.me/sylo_io">Telegram</a> or <a href="https://twitter.com/sylo">Twitter</a> if you would like to see more of these!</p><p>And, welcome back!</p><h3>3. libp2p host</h3><p>The libp2p host is the heart of my chat application. It is powerful machine and I am relying on it to do a lot of the hard work.</p><p>So while I’m only showing you a few lines of code, they are the most important. I’ll spend time explaining almost every line. Here we go.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/00848cbc2fc3fe5b8d09b21935c4c75d/href">https://medium.com/media/00848cbc2fc3fe5b8d09b21935c4c75d/href</a></iframe><h4>Background context</h4><p>Right off the bat, I start a background context. This is a very standard Go practice for long-running functions.</p><h4>Relay configuration</h4><p>Next I configure the relay. Relay service is one that allows peers who cannot be dialed directly to use another peer through a peer-to-peer circuit. The configuration option is a bit confusing because libp2p.EnableRelay() means the host will <em>use</em> other peers as a relay and libp2p.EnableRelay(relay.OptHop) means that the host will <em>be</em> a relay for others. I choose based on the relay command line flag provided by the user.</p><h4>Listening address</h4><p>Now to start the host. I have zeroed out the listening address for simplicity. The system will assign me a port and I will replace the local IP address with the public IP address if I have one. If I don’t have (or know) my public IP, the NAT service will take care of getting me onto the network anyway.</p><p>If I wanted to use a specific port, I could add another flag and pass one in from the command line.</p><h4>Routing</h4><p>The next option is for peer routing, which is essentially how we find other peers on the network. Without it, we would have to know everyone we wanted to chat with at the start.</p><h4>NAT service</h4><p>The libp2p NAT service is designed to help other peers determine if they are trapped behind a NAT.</p><p>When a peer connects to one running the NAT service, the service peer will reply with the IP address it observes for the peer. If 4 peers reply with the same address, the peer asks them to try to dial it. If successful, the peer can then advertise it as a public IP address.</p><h4>Enable relay</h4><p>I determined the relay type previously and provide it to the function now.</p><h4>Enable auto relay</h4><p>All peers enable auto relay. Peers who know or can determine a public IP address will advertise themselves as a relay. Peers who cannot be dialed can request another peer to relay for them.</p><p>I execute the new host function and, of course, check for an error. Otherwise, my peer-to-peer host should be started and ready to go!</p><h3>4. subscribe</h3><p>I have a P2P host and a message log. The next step is to subscribe to the messages I want and send them over to the message log as they arrive.</p><p>I will be using <em>pubsub</em> to achieve this. Pubsub is implemented in libp2p as a basic peer-to-peer network overlay. There are a few implementations to choose, but I will be using the FloodSub implementation.</p><p>Floodsub is the most “brute force” approach but, again, keeps things simple for this demo. It will ensure everyone who is interested in my chat messages receives them.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/6ca6a9a463392408d535a8e70e5b7a81/href">https://medium.com/media/6ca6a9a463392408d535a8e70e5b7a81/href</a></iframe><p>I create the new FloodSub object. Then I join the topic I defined at the top of the file. Finally, I subscribe to the topic. If any of these produce an error, I exit the program. No sense carrying on if I’m not going to get any messages.</p><p>Now I need to do something with the new messages as they arrive. I should receive the message, process it (if needed), and add it to the message log. Keep in mind that the message log will automatically print the message if it’s new, so I don’t need to worry about that.</p><p>Also, I want to do this in a separate <em>goroutine</em>. This will allow the program to continue and wait for messages at the same time.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/bfc7fc95509b5821053a7fae5535bb96/href">https://medium.com/media/bfc7fc95509b5821053a7fae5535bb96/href</a></iframe><p>Here is my goroutine. It’s a loop that runs until the context ends — that’s what that first select statement checks. Then it waits for the next item from the subscription. When a message arrives, it is decoded from JSON. If it decodes correctly, I append it to the message log. Rinse and repeat.</p><p>This feels like it’s starting to come together! Just a couple more parts to go.</p><h3>5. connect</h3><p>It’s time to connect to some peers and officially join the chat. I already have a list of bootstrap peers, so this will be pretty easy. I just need to tell the host who to dial.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/971c9740bd09a12ab2551b3d9939e36b/href">https://medium.com/media/971c9740bd09a12ab2551b3d9939e36b/href</a></iframe><p>Not much to talk about here. I connect to all the bootstrap peers and log any errors. The host will maintain the network connections for me after this, additionally connecting to other peers if needed.</p><p>There is one friction point I need to deal with now. To help ensure reliable relay peers, libp2p will not advertise peers as relays until they have been online for 15 minutes. I could code around this restriction, but I’m going to accept it for now. I’m just going to print a reminder message and put the program to sleep for 15 minutes. Only when the relay is ready will I print the connection information. This will ensure users are aware what is going on — even if it is a bit inconvenient.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/0bce580cc56926433fa8da57e4d39273/href">https://medium.com/media/0bce580cc56926433fa8da57e4d39273/href</a></iframe><p>When I print the connection information, I cycle through the addresses until I find the localhost address. Then I replace the localhost address with the public IP address provided by the user and print it on the screen.</p><p>I’m up and running now. If someone sends a message, I should receive it.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/d8cd6e51736052eee20f9d220e9e5dc3/href">https://medium.com/media/d8cd6e51736052eee20f9d220e9e5dc3/href</a></iframe><p>If the user passed the read-only flag, then I’m done. I provided the read only flag as an option to simplify the process of deploying a few peers for testing. Since I need 4 relay peers to jump start the system, I wanted to be able to run a few peers on some AWS instances and not have them hooked up to standard input.</p><p>If this were a widely used global network (like the <a href="https://sylo.io/network/">Sylo Network</a>), then I wouldn’t need this.</p><h3>6. send messages</h3><p>I can now start sending messages!</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/b046f14846fb969bf5ad92353a2f760b/href">https://medium.com/media/b046f14846fb969bf5ad92353a2f760b/href</a></iframe><p>First, I print a welcome message, so the user knows the system is ready. Then I run a scanner over the standard input. This scanner will run in a loop for the rest of the program.</p><p>When the user enters some text, I put the text into a message struct. I also include the other fields — clock, ID, and nickname.</p><p>I encode the message as JSON and publish it using the libp2p pubsub topic created earlier. Libp2p will handle sending it to all the other peers who are online.</p><p>If the scanner fails at some point, the program will exit with an error.</p><p>That’s it! The program is complete. You can view the entire file at <a href="https://github.com/paul-freeman/go-group-chat/blob/master/main.go">this link on GitHub</a>.</p><h3>Running the chat network</h3><p>To finish up, I’ll quickly talk about how to setup the network and try out the chat.</p><h4>Build the app</h4><p>To build the app, simply run go build -v in the directory with your main.go file.</p><p>In my case, I was building on a Linux machine but knew I wanted to try my app with someone using a Windows machine. So I also built a version for Windows using the cross-compiling feature of Go.</p><pre>GOOS=windows GOARCH=amd64 go build -v</pre><h4>Setup a network</h4><p>You need a network of 4 peers to initiate a stable network. They need to have known IP addresses. In my case, I had access to some AWS instances, so I’m using those, but you could also set this up on a LAN or by hooking up some Docker instances.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lRrR8mP7oevJvRQjin_YjA.png" /></figure><p>In my case, I copied the app onto my 4 instances and executed the app using the relay flag, the read only flag, and providing the public IP address of the instance. Then I waited 15 minutes for the network the stabilise and for the app to print the connection address for the peer.</p><h4>Chat</h4><p>To demonstrate the chat, I started the app on my local machine and passed all the bootstrap peer addresses to the app using the -bootstrap flag. I also provided a nickname.</p><p>Then I sent the Windows executable to a friend so I could test it with someone who wouldn’t be part of my local network. I gave them the bootstrap peers information.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dmtWMKH2EdckAUdc53QWMQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zz7AC-NaCOrBmQNNfUm3Rw.jpeg" /></figure><p>It worked!</p><p>So, in around 200 lines of code, I was able to create a decentralised, peer-to-peer chat application. I was able to demonstrate communication between two peers through NAT (<em>I discovered I didn’t have a dialable address</em>) and across architectures.</p><p>As someone who works on decentralised networks all day, you might think writing a simple app like this would be boring. On the contrary, I find that reducing an application to its simplest form teaches you a great deal about the technology and solidifies understanding. And, of course, being forced to explain it is always useful, too.</p><p>I’ll probably end things here. A big thank you to the libp2p team for providing the underlying peer-to-peer technology — and to my Sylo team, for giving me the time to write exciting walk-throughs like this.</p><p>—</p><p><strong>Wanna try our ‘chat app’? ;)</strong></p><p><strong>Experience the Sylo Smart Wallet now by downloading from the</strong><a href="https://play.google.com/store/apps/details?id=io.sylo.dapp"><strong> Google Play</strong></a><strong> or</strong><a href="https://itunes.apple.com/app/apple-store/id1452964749"><strong> Apple App</strong></a><strong> stores.</strong></p><p>For further announcements, follow Sylo on<a href="https://twitter.com/sylo"> Twitter</a>,<a href="https://t.me/sylo_io"> Telegram</a> or visit<a href="http://www.sylo.io/"> www.sylo.io</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=971c4e26ae16" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>