<?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 Cibus Tech on Medium]]></title>
        <description><![CDATA[Stories by Cibus Tech on Medium]]></description>
        <link>https://medium.com/@cibustech?source=rss-c66d8f55eaf4------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*FbaYiEg7ISlsGxmL.</url>
            <title>Stories by Cibus Tech on Medium</title>
            <link>https://medium.com/@cibustech?source=rss-c66d8f55eaf4------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 03 Dec 2026 22:17:13 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@cibustech/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[What is an ICO file?]]></title>
            <link>https://medium.com/@cibustech/what-is-an-ico-file-c8e6082bd289?source=rss-c66d8f55eaf4------2</link>
            <guid isPermaLink="false">https://medium.com/p/c8e6082bd289</guid>
            <category><![CDATA[cibus]]></category>
            <category><![CDATA[ico]]></category>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[data-structures]]></category>
            <dc:creator><![CDATA[Cibus Tech]]></dc:creator>
            <pubDate>Fri, 27 Oct 2017 06:37:03 GMT</pubDate>
            <atom:updated>2017-10-27T06:37:03.828Z</atom:updated>
            <content:encoded><![CDATA[<p>An Initial Coin Offering, also commonly referred to as an ICO, is a fundraising mechanism in which new projects sell their underlying crypto tokens in exchange for bitcoin and ether. It’s somewhat similar to an Initial Public Offering ( IPO ) in which investors purchase shares of a company.</p><p>SOURCE : <a href="http://www.nasdaq.com/article/what-is-an-ico-cm830484">www.nasdaq.com/article/what-is-an-ico-cm830484</a></p><p>What is an initial coin offering?</p><p>DEFINITION of ‘Initial Coin Offering (ICO)’ An unregulated means by which funds are raised for a new cryptocurrency venture. … In an ICO campaign, a percentage of the cryptocurrency is sold to early backers of the project in exchange for legal tender or other cryptocurrencies, but usually for Bitcoin.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c8e6082bd289" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How does blockchain really work? I built an app to show you.]]></title>
            <link>https://medium.com/@cibustech/how-does-blockchain-really-work-i-built-an-app-to-show-you-dc2e6361f104?source=rss-c66d8f55eaf4------2</link>
            <guid isPermaLink="false">https://medium.com/p/dc2e6361f104</guid>
            <category><![CDATA[blockchain]]></category>
            <dc:creator><![CDATA[Cibus Tech]]></dc:creator>
            <pubDate>Mon, 04 Sep 2017 19:39:31 GMT</pubDate>
            <atom:updated>2017-10-27T06:40:29.286Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*1v2Ou1SwgtvFbC6A2wa9xQ.gif" /></figure><p>According to Wikipedia, a blockchain is:</p><blockquote>A distributed database that is used to maintain a continuously growing list of records, called blocks.</blockquote><p>That sounds nice, but how does it work?</p><p>To illustrate a blockchain, we will use an open source command-line interface called <a href="https://github.com/seanseany/blockchain-cli">Blockchain CLI</a>.</p><p>I also built a <a href="http://blockchaindemo.io/">browser-based version of this here</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*cdVD7nxyDPb35phEisVXww.png" /></figure><p>If you haven’t already, install <a href="https://nodejs.org/download/">Node.js</a>.</p><p>Then run the following in your terminal:</p><pre>npm install blockchain-cli -g<br>blockchain</pre><p>You should see 👋 Welcome to Blockchain CLI!and a blockchain → prompt ready to take commands.</p><p>To see your current blockchain, enter blockchain or bc into the command prompt. You should see a block like the image below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*Y3c_hIqCuiDH4x-8dObVyg.png" /><figcaption>A block on the blockchain</figcaption></figure><ul><li><strong>Index (Block #):</strong> Which block is it? (Genesis block has index 0)</li><li><strong>Hash:</strong> Is the block valid?</li><li><strong>Previous Hash: </strong>Is the previous block valid?</li><li><strong>Timestamp: </strong>When was the block added?</li><li><strong>Data: </strong>What information is stored on the block?</li><li><strong>Nonce: </strong>How many iterations did we go through before we found a valid block?</li></ul><p>Every blockchain will start with the🏆 Genesis Block. As you will see later, each block on the blockchain is dependent on the previous block. So, the Genesis block is needed to mine our first block.</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*SmJPc37pUbFySCvUdxnQxA.gif" /></figure><p>Let’s mine our first block. Enter mine freeCodeCamp♥︎ into the prompt.</p><p>The blockchain looks at the latest block on the blockchain for the index and previous hash. In this case Genesis block is the latest block.</p><ul><li><strong>Index:</strong> o+1 = 1</li><li><strong>Previous Hash: </strong>0000018035a828da0…</li><li><strong>Timestamp: </strong>When the block is added</li><li><strong>Data: </strong>freeCodeCamp❤</li><li><strong>Hash:</strong> ??</li><li><strong>Nonce:</strong> ??</li></ul><p>A <strong>hash value</strong> is a numeric <strong>value</strong> of a fixed length that uniquely identifies data.</p><p>The hash is calculated by taking the index, previous block hash, timestamp, block data, and nonce as input.</p><pre>CryptoJS.SHA256(index + previousHash + timestamp + data + nonce)</pre><p>The SHA256 algorithm will calculate a unique hash, given those inputs. The same inputs will always return the same hash.</p><p>The four leading 0’s is a minimum requirement for a valid hash. The number of leading 0’s required is called <strong>difficulty</strong>.</p><pre>function isValidHashDifficulty(hash, difficulty) {<br> for (var i = 0, b = hash.length; i &lt; b; i ++) {<br> if (hash[i] !== &#39;0&#39;) {<br> break;<br> }<br> }<br> return i &gt;= difficulty;<br>}</pre><p>This is also known as the <a href="https://en.wikipedia.org/wiki/Proof-of-work_system">Proof-of-Work system</a>.</p><p>A nonce is a number used to find a valid hash.</p><pre>let nonce = 0;<br>let hash;<br>let input;</pre><pre>while(!isValidHashDifficulty(hash)) { <br> nonce = nonce + 1;<br> input = index + previousHash + timestamp + data + nonce;<br> hash = CryptoJS.SHA256(input)<br>}</pre><p>The nonce iterates until the hash is valid. In our case, a valid hash has at least four leading 0’s. The process of finding a nonce that corresponds to a valid hash is <strong>mining</strong>.</p><p>As the difficulty <strong>increases</strong>, the number of possible valid hashes <strong>decreases</strong><em>.</em> With less possible valid hashes, it takes more processing power to find a valid hash.</p><p>It matters because it keeps the blockchain immutable.</p><p>If we have the following blockchain A → B → C, and someone wants to change data on Block A. This is what happens:</p><ol><li>Data changes on Block A.</li><li>Block A’s hash changes because data is used to calculate the hash.</li><li>Block A becomes invalid because its hash no longer has four leading 0’s.</li><li>Block B’s hash changes because Block A’s hash was used to calculate Block B’s hash.</li><li>Block B becomes invalid because its hash no longer has four leading 0&#39;s.</li><li>Block C’s hash changes because Block B’s hash was used to calculate Block C’s hash.</li><li>Block C becomes invalid because its hash no longer has four leading 0&#39;s.</li></ol><p>The only way to mutate a block would be to mine the block again, and all the blocks after. Since new blocks are always being added, it’s nearly impossible to mutate the blockchain.</p><p>I hope this tutorial was helpful for you!</p><p>If you would like to checkout a web version of the demo, head on over to <a href="http://blockchaindemo.io/">http://blockchaindemo.io</a></p><p><em>Originally published at </em><a href="https://medium.freecodecamp.org/how-does-blockchain-really-work-i-built-an-app-to-show-you-6b70cd4caf7d"><em>medium.freecodecamp.org</em></a><em> on September 4, 2017.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=dc2e6361f104" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>