<?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 Perrybiz on Medium]]></title>
        <description><![CDATA[Stories by Perrybiz on Medium]]></description>
        <link>https://medium.com/@percyding66?source=rss-ae55cd937f6------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*fre0jD23MdLLvjDL-EnjKg.png</url>
            <title>Stories by Perrybiz on Medium</title>
            <link>https://medium.com/@percyding66?source=rss-ae55cd937f6------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 21 Nov 2026 05:28:15 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@percyding66/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[Learning Crypto #22: Polkadot]]></title>
            <link>https://medium.com/@percyding66/learning-crypto-22-polkadot-692dab2100ca?source=rss-ae55cd937f6------2</link>
            <guid isPermaLink="false">https://medium.com/p/692dab2100ca</guid>
            <dc:creator><![CDATA[Perrybiz]]></dc:creator>
            <pubDate>Sun, 25 Sep 2022 07:56:09 GMT</pubDate>
            <atom:updated>2022-09-25T07:56:09.673Z</atom:updated>
            <content:encoded><![CDATA[<p>I am back! We will briefly discuss Polkadot — a novel blockchain that focuses on chain interoperability. It introduces some interesting concepts such as Relay chains and Parachains.</p><p>We will be covering the below topics:</p><ol><li>What is Polkadot?</li><li>How does Polkadot work?</li></ol><h3>What is Polkadot?</h3><p>Polkadot is founded by Gavin Wood, one of the co-founders of Ethereum and the creator of Polkadot.</p><p>Polkadot is described as the &quot;layer 0&quot; blockchain in many places. It is named &quot;layer 0&quot; not &quot;layer 1&quot; because it tackles one of the well-known issues in the crypto space: interoperability.</p><p>Why is interoperability a problem? In short, all the different blockchains flying around in the space are not connected. They cannot interact with each other. Just like computers cannot communicate with one another without the Internet(you can of course, but in general you cannot), blockchains need a way to bridge them together. Some well-known chains already have a solid foundation of ecosystems: hundreds and thousands of Dapps are built and deployed, Defi space continues to grow across different chains, and new NFT marketplaces are popping up not only on ETH but also on Solana and Polygon. As the crypto develops, it would be nice if different chains could interact with each other.</p><p>Polkadot attempts to create a solution for it, which is why it is described as a layer 0 blockchain — it connects other layer 1s.</p><p>Gavin understands that it takes a lot of effort and time to code an entire blockchain from scratch. What if he creates something that allows developers/creators to only focus on domain-specific logic without worrying about the underlying blockchain infrastructure? To achieve this goal, Gavin created Polkadot — a layer 0 blockchain(or ecosystem) that allows you to create your own domain-specific blockchain as the Parachains and rely on the Relay chain to manage infrastructure.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*p00u55Q0n26sQ9rD.png" /><figcaption>Source: <a href="https://wiki.polkadot.network/docs/getting-started">https://wiki.polkadot.network/docs/getting-started</a></figcaption></figure><h3>How does Polkadot work?</h3><p>Polkadot uses a novel consensus mechanism called Nominated Proof-Of-Stake blockchain that can process around 1000 transactions per second. The difference between NPOS and POS is there are two roles in the NPOS network — Validators and Nominators. Validators run validating nodes to secure the entire blockchain, and Nominators can choose to back select validators with their stake. NPOS is very similar to Delegated POS, where Nominators play a similar role as Delegators in the DPOS network.</p><p>The Polkadot blockchain itself is called the Relay Chain. It sits at the centre of the entire ecosystem and provides security to the Parachains. Relay chains only handle transactions related to staking, DOT transfer and governance. Most smart contracts related transactions are processed by the Parachains plugged into the Relay chains. Parachains do not need to use DOT but their own native tokens to pay transaction fees. According to Polkadot&#39;s documentation -<em>&quot;Parachains may have their own economies with their own native tokens.&quot;</em></p><blockquote>Parachains</blockquote><p>There are three types of Parachains, and the slot selection process is relatively different for each of the three types of Parachains due to the limited slot.</p><ol><li>Common good Parachains — &quot;Parachain slots reserved for functionality that benefits the ecosystem as a whole.&quot; Examples such as Bridges, which allows Parachains and Parathread to communicate with other cryptocurrency blockchains such as Bitcoin and Ethereum. Their slot is not allocated by the auction process(we will discuss shortly) but are selected by the on-chain <a href="https://wiki.polkadot.network/docs/learn-governance">governance</a>.</li><li>Parathread — allows Parachains to participate in Polkadot temporarily without the need to win an auction slot. It operates based on a Pay-As-You-Go model.</li><li><a href="https://wiki.polkadot.network/docs/learn-parachains">Standard Parachains</a> — application-specific blockchains that run parallel with and connect to the Relay Chains. They may have their own economies with their own native tokens and are interoperable with other Parachains.</li></ol><blockquote>Collators</blockquote><p>Collators maintain Parachains by collecting Parachain transactions from users and producing state transition proofs for Relay Chain validators. In other words, collators maintain Parachains by aggregating Parachain transactions into Parachain block candidates and producing state transition proofs for validators based on those blocks[8].</p><blockquote>Slot Auction</blockquote><p>Polkadot current supports 100 Parachains concurrently, so an auction is required once in a while to decide which Parachains will have the opportunity to win a slot on the Relay chain. To obtain a Parachain slot, projects need to succeed in the Parachain Slot Auction, just like an eBay bid. The auction is in the form of a <a href="https://en.wikipedia.org/wiki/Candle_auction">Candle Auction</a>, and it consists of two parts:</p><ol><li>The opening period lasts one day and eighteen hours. It serves as a buffer time for Parachain candidates to set up their initial bids and likely start executing their strategy on how to win the slot auction. During the opening phase, bids will continue to be accepted, but they do not affect the auction&#39;s outcome [5].</li><li>The ending period happens right after the opening period for another five days. During these five days, the <a href="https://wiki.polkadot.network/docs/learn-randomness##vrf">Verifiable Random Function (VRF)</a> automatically and randomly determines an ending time. The Parachain candidate with the highest bid at the <em>ending time</em> chosen by the VRF wins the slot.</li></ol><p>Most Parachains use Crowdloan to source DOT from their community to maximize their winning probability. This allows the community to delegate their DOT to the project and locked as part of the auction bid. As the return, community participants will receive the project coins or tokens if it wins the auction. This differs from an Initial Coin Offering(ICO) because investors&#39; DOTs are never sold but locked by Polkadot.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*rFuIx9FHDHhi9zVM.jpg" /><figcaption>Source: <a href="https://www.holdpolkadot.com/post/3-best-ways-on-how-to-participate-in-parachains-auctions-on-polkadot-via-crowdloans">https://www.holdpolkadot.com/post/3-best-ways-on-how-to-participate-in-parachains-auctions-on-polkadot-via-crowdloans</a></figcaption></figure><blockquote>Kusama</blockquote><p>Kusama is a <a href="https://guide.kusama.network/docs/kusama-getting-started/"><em>canary network</em></a> for Polkadot. It serves a similar function as a testnet but more than a testnet. Unlike traditional testnet, Kusama has real economic value and its own tokenomic. If you are interested in Kusama, feel free to check out their <a href="https://guide.kusama.network/docs/kusama-getting-started/">official guide</a>.</p><h3>Outro</h3><p>It has been a long time since the last blog post, and many things have happened; I will still try my best to write a blog biweekly but no guarantee of the timing.</p><p>For the next blog, we will discuss Polkadot&#39;s competitor — Cosmos.</p><h3>Reference:</h3><p>[1]<a href="https://wiki.polkadot.network/docs/getting-started">https://wiki.polkadot.network/docs/getting-started</a></p><p>[2]<a href="https://youtu.be/YlAdEQp6ekM">https://youtu.be/YlAdEQp6ekM</a></p><p>[3]<a href="https://youtu.be/gO7U3ibtCPA">https://youtu.be/gO7U3ibtCPA</a></p><p>[4]<a href="https://wiki.polkadot.network/docs/learn-consensus#nominated-proof-of-stake">https://wiki.polkadot.network/docs/learn-consensus#nominated-proof-of-stake</a></p><p>[5]<a href="https://wiki.polkadot.network/docs/learn-parachains">https://wiki.polkadot.network/docs/learn-parachains</a></p><p>[6]<a href="https://wiki.polkadot.network/docs/learn-auction">https://wiki.polkadot.network/docs/learn-auction</a></p><p>[7]<a href="https://www.holdpolkadot.com/post/3-best-ways-on-how-to-participate-in-parachains-auctions-on-polkadot-via-crowdloans">https://www.holdpolkadot.com/post/3-best-ways-on-how-to-participate-in-parachains-auctions-on-polkadot-via-crowdloans</a></p><p>[8]<a href="https://wiki.polkadot.network/docs/learn-collator">https://wiki.polkadot.network/docs/learn-collator</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=692dab2100ca" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Learning Crypto #21: ETH 2.0 Part 2]]></title>
            <link>https://medium.com/@percyding66/learning-crypto-21-eth-2-0-part-2-b9eb06873142?source=rss-ae55cd937f6------2</link>
            <guid isPermaLink="false">https://medium.com/p/b9eb06873142</guid>
            <dc:creator><![CDATA[Perrybiz]]></dc:creator>
            <pubDate>Sun, 14 Aug 2022 11:15:22 GMT</pubDate>
            <atom:updated>2022-08-14T11:15:22.047Z</atom:updated>
            <content:encoded><![CDATA[<p>Welcome back to part 2 of ETH 2.0! We briefly discussed the roadmap and details of the first milestone, &quot;The Merge&quot;, in last week&#39;s blog. We will focus on &quot;The Surge&quot; to finish this topic since it&#39;s a foreseeable milestone on the <a href="https://ethereum.org/en/upgrades/">roadmap</a>.</p><h3>The Surge</h3><p>The Surge focuses on improving the scalability of layer 2 rollups. If you are unsure what layer 2 rollups are, feel free to check out the <a href="https://medium.com/@percyding66/learning-crypto-10-scaling-solutions-part-2-ab395c706941">#10 blog </a>where we discussed rollups in detail.</p><p>The improvement is based on &quot;Sharding&quot;, a common computer science terminology that divides the database into smaller pieces to spread the load. There will be 64 shards after sharding is completed.</p><p>Each shard is like a smaller ETH chain, and validators do not need to store the entire blockchain history to validate transactions. This allows less powerful hardware to operate a validator node on the ETH blockchain, which enables more people to participate in the network and hence improves the overall security since it&#39;s more decentralised.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/861/1*JAvigWczU9ipDkfIdNZloA.png" /><figcaption>Source: <a href="https://twitter.com/vitalikbuterin/status/1466411377107558402">https://twitter.com/vitalikbuterin/status/1466411377107558402</a></figcaption></figure><p>There will be a total of 64 shards. Initially, 63 shards will only provide extra data, referred to as data shards. Data shards will not be able to process transactions or execute smart contracts. The current ETH mainnet chain will be part of the 64 sharding and the only shard that executes code — the &quot;smart&quot; shard. Layer 2 solutions can still benefit from this, since a data shard can provide the extra data required by the rollups to generate the rollups proof(validity proof for ZK rollups or fraud proof for Optimistic rollups). After sharding, ETH is expected to process 100,000 transactions per second. This is a significant milestone as ETH currently only processes 15–20 transactions per second.</p><p>The next phase would be enabling code execution on data shards, but there are debates around this topic. Since the initial phase of sharding already gives an incredible boost to the network, do data shards really need code execution capability? No decisions have been made today, so keep an eye on <a href="https://ethereum.org/en/upgrades/sharding/">this page</a> for any updates.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*JAM81lzE_dOHBhLV.jpg" /><figcaption>Source: <a href="https://vitalik.ca/general/2021/04/07/sharding.html">https://vitalik.ca/general/2021/04/07/sharding.html</a></figcaption></figure><h3>Outro</h3><p>Apologise for the short blog today, I&#39;ve been pretty busy with school work and work lately and did not have much time to do a lot of research. However, I will try to include more information in the next blog.</p><p>See you around!</p><h3>Reference</h3><p>[1]<a href="https://youtu.be/ctzGr58_jeI">https://youtu.be/ctzGr58_jeI</a></p><p>[2]<a href="https://youtu.be/HXdIF2Kp5A8">https://youtu.be/HXdIF2Kp5A8</a></p><p>[3]<a href="https://ethereum.org/en/upgrades/sharding/">https://ethereum.org/en/upgrades/sharding/</a></p><p>[4]<a href="https://vitalik.ca/general/2021/04/07/sharding.html">https://vitalik.ca/general/2021/04/07/sharding.html</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b9eb06873142" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Learning Crypto #20: ETH 2.0 Part 1]]></title>
            <link>https://medium.com/@percyding66/learning-crypto-20-eth-2-0-part-1-b065b2ae1b8?source=rss-ae55cd937f6------2</link>
            <guid isPermaLink="false">https://medium.com/p/b065b2ae1b8</guid>
            <dc:creator><![CDATA[Perrybiz]]></dc:creator>
            <pubDate>Sun, 31 Jul 2022 09:46:23 GMT</pubDate>
            <atom:updated>2022-07-31T09:46:23.254Z</atom:updated>
            <content:encoded><![CDATA[<p>ETH 2.0 upgrade is probably one of the biggest events in the crypto space in 2022. Everyone in the ETH ecosystem has been asking the same question since last year: when is the actual upgrade? After several trials in the testnet, the actual upgrade is expected to happen in <a href="https://hackmd.io/@benjaminion/BkxQTpqpi9#Goerli-TTD">September </a>2022.</p><p>What will happen after the upgrade? What is the upgrade? What are the main differences between ETH 1.0 and ETH 2.0? I will discuss all the details in today’s blog and most likely for the next few ones since there is a lot of information regarding the most anticipated crypto event in 2022.</p><p>In today’s blog, I will explain the following topics:</p><ol><li>ETH 1.0 vs ETH 2.0</li><li>The Merge</li></ol><h3>ETH 1.0 vs ETH 2.0</h3><p><strong><em>TL;DR: The main difference between ETH 1.0 and ETH 2.0 is not only the transition from the Proof-Of-Work consensus model to Proof-Of-Stake, but also improves the overall infrastructure, even at the Ethereum Virtual Machine level.</em></strong></p><p>Let’s start with some clarification for the “re-branding” — ETH 2.0 does not mean that there will be a new version of the ETH coins. ETH is still ETH, but the underneath infrastructure will be upgraded. This upgrade process is broken into five milestones, and the consensus mechanism transition is only the first step.</p><blockquote>Roadmap</blockquote><p>The founder of Ethereum, Vitalik Buterin, posted this tweet at the end of 2021 which described the whole upgrade process at a high level:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*B-fEeoQRlPvZsXVk" /><figcaption>Source: <a href="https://twitter.com/vitalikbuterin/status/1466411377107558402">https://twitter.com/vitalikbuterin/status/1466411377107558402</a></figcaption></figure><ul><li>The Merge — This is the consensus mechanism transition that people anticipate the most. Ethereum currently utilises POW as its blockchain consensus and it does have many downsides. If you want to know more about POW &amp; POS and the Pros &amp; Cons of each consensus, feel free to check out my <a href="https://medium.com/@percyding66/learning-crypto-2-consensus-931dda016ade">previous blog</a>!</li><li>The Surge — This step is for dramatically increasing the scalability of the network by deploying a layer one scaling solution called “Sharding”, it not only further enables cheaper layer 2 scaling solution fees but also improves the network speed. Ethereum currently can process 15–20 transactions per second, which is expected to increase to 100,000 transactions per second after “The Surge.”</li><li>The Verge — This allows the validators to run nodes statelessly, meaning they can store less data on the machine by adopting the “<a href="https://vitalik.ca/general/2021/06/18/verkle.html">Verkle tree</a>” model. More users can participate in the network since there are fewer hardware restrictions, improving network decentralisation.</li><li>The Purge — This allows the purging of historical data stored on the hardware. The diagram shows that it depends on the Verkle tree model to manage state expiry.</li><li>The Splurge — Enhancement around the entire ecosystem, the “fun stuff”.</li></ul><blockquote>Execution</blockquote><p>Although “The Merge” is planned to roll out this year, the remaining four milestones are the long-term vision for Ethereum. Therefore, it can take another 5–10 years of development to complete the upgrade.</p><p>For now, the dev team is entirely focusing on “The Merge”, and it is what we are going to explain in the rest of today’s blog.</p><h3>The Merge</h3><p>As we have explained above, the POW to POS transition process is described as “The Merge”. So how does it work?</p><p>To understand how the transition work, we need first to know how the Ethereum blockchain currently runs:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gRGwMq1BGg6H13-vdH7jfA.png" /><figcaption>Source: <a href="https://youtu.be/8N10a1EBhBc">https://youtu.be/8N10a1EBhBc</a></figcaption></figure><p>The Execution Layer is what most ETH users interact with daily. It handles transactions, executes smart contracts, transfers NFT etc. On the outer shell, we have POW to protect the network against malicious activities.</p><p>After the merge, the blockchain will look like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/786/1*GOE7gtO0nxUpbKpXa822IQ.png" /><figcaption>Source: <a href="https://youtu.be/8N10a1EBhBc">https://youtu.be/8N10a1EBhBc</a></figcaption></figure><p>The Consensus Layer refers to the POS consensus mechanism, which ultimately replaces the current POW implementation. It contains the necessary information for the POS model to function correctly.</p><p>Therefore, nothing is changed from the users’ perspective because only the consensus layer is transitioning. Therefore, all the executions remain the same.</p><p>The next question is, how do we migrate the execution layer to the consensus layer? The answer is the Beacon Chain.</p><p>The Beacon Chain is the consensus layer shown above in the diagram and has already been deployed on 1st December 2020. Since then, it has been running parallel with the current Ethereum mainnet and is ready for migration.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/732/1*GH7iVX8xn89yThaPHQ7zZg.png" /><figcaption>Source: <a href="https://youtu.be/8N10a1EBhBc">https://youtu.be/8N10a1EBhBc</a></figcaption></figure><p>As soon as the official mainnet merge happens, the execution layer will be migrated to the Beacon Chain, and ETH will be in a new but better form:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*b85kQvdbvYTtxpE7ztEtJA.png" /><figcaption>Source: <a href="https://youtu.be/8N10a1EBhBc">https://youtu.be/8N10a1EBhBc</a></figcaption></figure><p>Of course, many things are going on behind the scenes to enable the transition, but the above diagrams are sufficient to understand the process from a high-level abstraction.</p><h3>Outro:</h3><p>There are more details about the upgrade process, and we will discuss “The Surge”, which focuses on the “Sharding” concept in the next blog.</p><p>Hope you enjoy the content and see you next week!</p><h3>Reference:</h3><p>[1] <a href="https://twitter.com/vitalikbuterin/status/1466411377107558402">https://twitter.com/vitalikbuterin/status/1466411377107558402</a></p><p>[2] <a href="https://youtu.be/8N10a1EBhBc">https://youtu.be/8N10a1EBhBc</a></p><p>[3] <a href="https://decrypt.co/105707/ethereum-merge-surge-verge-purge-splurge-vitalik-buterin">https://decrypt.co/105707/ethereum-merge-surge-verge-purge-splurge-vitalik-buterin</a></p><p>[4] <a href="https://vitalik.ca/general/2021/06/18/verkle.html">https://vitalik.ca/general/2021/06/18/verkle.html</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b065b2ae1b8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Learning Crypto #19: Next series]]></title>
            <link>https://medium.com/@percyding66/learning-crypto-19-next-series-ea3d3f8d3b94?source=rss-ae55cd937f6------2</link>
            <guid isPermaLink="false">https://medium.com/p/ea3d3f8d3b94</guid>
            <dc:creator><![CDATA[Perrybiz]]></dc:creator>
            <pubDate>Sun, 17 Jul 2022 11:42:21 GMT</pubDate>
            <atom:updated>2022-07-17T11:42:21.047Z</atom:updated>
            <content:encoded><![CDATA[<p>Since we have discovered all the topics from the #4 blog, it’s time to start a new series. I spent some time over the past week thinking about what topics I want to cover next, and the final decision is to analyse some of the most popular crypto projects:</p><p>Layer 1</p><ol><li>ETH 2.0</li><li>SOL</li><li>ADA</li><li>DOT</li><li>FTM</li><li>NEAR</li><li>AVAX</li><li>ALGO</li><li>ICP</li></ol><p>Scaling solution</p><ol><li>POLYGON</li><li>OP</li><li>SNX</li></ol><p>DeFi:</p><ol><li>AAVE</li><li>UNI</li><li>CRV</li></ol><p>GameFi:</p><ol><li>GALA</li><li>AXS</li><li>ENJ</li></ol><p>NFT:</p><ol><li>IMX</li><li>FLOW</li></ol><p>More projects will be added to the list if I think they are worth the time investment in research.</p><p>Reading the project documentation and roadmap will be fairly time-consuming, but I will try my best during the process.</p><p>Next week, let’s look at some of the latest updates for ETH 2.0, as it’s probably the most significant event in the near future.</p><p>Happy weekend!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ea3d3f8d3b94" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Learning Crypto #18: NFTs]]></title>
            <link>https://medium.com/@percyding66/learning-crypto-18-nfts-d69716e94e8c?source=rss-ae55cd937f6------2</link>
            <guid isPermaLink="false">https://medium.com/p/d69716e94e8c</guid>
            <dc:creator><![CDATA[Perrybiz]]></dc:creator>
            <pubDate>Sun, 10 Jul 2022 11:00:39 GMT</pubDate>
            <atom:updated>2022-07-10T11:00:39.199Z</atom:updated>
            <content:encoded><![CDATA[<p>Today’s blog will discuss the final topic from the #4 blog’s list — Non-Fungible Tokens, aka NFTs. We will explore:</p><ol><li>What NFTs are</li><li>How NFT work</li><li>My opinions on NFTs</li></ol><h3>What are NFTs?</h3><p>It’s easy to understand what NFTs are just by breaking down the name [Non-Fungible][Tokens].</p><ol><li>Tokens — we have already explained what tokens are in <a href="https://medium.com/@percyding66/learning-crypto-6-tokens-and-stablecoins-7a9c1a772d80">blog #6</a>(check it out if you need some knowledge refresh!). In short, a coin has its blockchain, whereas a token “borrows” a coin’s blockchain infrastructure and runs the network on top of it. Most ETH NFTs implement the <a href="https://ethereum.org/en/developers/docs/standards/tokens/erc-721/">ERC721 standard</a>.</li><li>Non-Fungible — it means the metadata of this token cannot be changed once created, and it must be unique. There is one and only one instance of a particular token. It’s different from other tokens considered as cryptocurrencies, where one token is the same as another. An example is the Polygon network’s MATIC token, an ERC20 standard token. A sidenote: Polygon is an Ethereum <a href="https://medium.com/@percyding66/learning-crypto-11-scaling-solutions-part-3-17fd40765236">sidechain</a>, so it “borrows” ETH’s blockchain infrastructure and hence the token.</li></ol><p>Other than the uniqueness, NFTs also hold these features:</p><ol><li>They are permanent. Unless the smart contract implementation allows burning, an NFT cannot be destroyed.</li><li>Owners can prove the ownership of a digital asset. This can be done by checking the owner history of a particular NFT. We will explain the details in the next section. When buying an NFT, you are purchasing the right to own that asset.</li></ol><p>NFTs are not just limited to those apes or pixelated profile pictures(at least that’s how I got to know NFTs). They also include:</p><ol><li>Collectables, each NFT has its unique combination of characteristics.</li><li>Digital arts, think of owning a one and only digital version of the Mona Lisa.</li><li>Domain names, an example is the ENS(Ethereum Name Services). A domain name ends with .eth is an ENS. It points to an ETH address.</li><li>Music</li><li>Sports event clips. For example, NBA top shots has its <a href="https://nbatopshot.com/">marketplace</a>.</li><li>Membership. Check out <a href="https://cointelegraph.com/news/croatian-web3-startup-offers-lifetime-netflix-and-spotify-membership-via-nfts">this</a> lifetime Netflix and Spotify membership by holding the limited NFTs.</li></ol><p>And more…</p><p>I genuinely believe there will be more potential in the NFT market when the hype around it fades away.</p><h3>How do NFTs work?</h3><p><strong>TL;DR: an NFT’s metadata is stored on the blockchain, but the content is stored on a file storage system/server.</strong></p><p>If you understand how tokens and coins work on a blockchain, NFT is somewhat similar but with some tweaks.</p><p>Just as a crypto wallet can hold/own cryptocurrencies in the form of coins or tokens, it can also own NFTs since the latter is the subset of tokens. NFTs can be bought and sold to other addresses on a secondary market, such as <a href="https://opensea.io/">OpenSea</a>, the largest NFTs marketplace. Owners can also transfer NFTs to different addresses, just like coins or tokens.</p><p>Because all the transaction history is recorded and trackable on the blockchain, the owner history is visible to the general public. Furthermore, as we just discussed in the blog, traceability allows everyone to verify the ownership of any NFTs, which means nobody can provide a fraudulent claim as long as the NFT is truly the original one.</p><p>While the metadata of an NFT is stored on the blockchain and owned by a crypto wallet, the content(images, GIF etc.) of the NFT is permanently stored and locked on decentralised file storage:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ryMaSK5720s8E2CA_rvUYg.png" /><figcaption>Details of a Bored Ape</figcaption></figure><p>An example of an NFT metadata:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/997/1*QzP8BOrcLCwqkwO-OrziFg.png" /><figcaption>The metadata for this Ape: <a href="https://opensea.io/assets/ethereum/0xbc4ca0eda7647a8ab7c2061c2e118a18a936f13d/9330">https://opensea.io/assets/ethereum/0xbc4ca0eda7647a8ab7c2061c2e118a18a936f13d/9330</a></figcaption></figure><h3>My opinions</h3><p><strong><em>NONE of the below statements is financial advice</em></strong>.</p><p><strong><em>NONE of the below statements is financial advice</em></strong>.</p><p><strong><em>NONE of the below statements is financial advice</em></strong>.</p><p>Many people foresee the true possibility of NFTs and are trying to build a healthy ecosystem. Unfortunately, countless NFT projects were created only because of hype and the amount of capital that flew into the market. Not many projects focus on the utility aspect until the start of 2022, where the NFT provides some form of membership access/pass and real-world benefits.</p><p>Will NFTs still exist in the future? I think yes, but in a better form: the holders truly understand the benefits of the ownership.</p><p>The opposite would be — “Oh, why is everyone buying NFTs? I need to get one as well”. To me, this means that the market is not yet mature enough to be adopted by the public.</p><h3>Outro</h3><p>Here is the end of today’s blog and the end of my first set of crypto topics to explore. It’s been some time since the first blog, and I hope you have learned something.</p><p>I will spend the next week thinking about the next set of topics I want to focus on and share the list in the next blog.</p><p>See you all next week!</p><h3>Reference</h3><p>[1]<a href="https://youtu.be/4dkl5O9LOKg">https://youtu.be/4dkl5O9LOKg</a></p><p>[2]<a href="https://youtu.be/1fwD-BBdBOk">https://youtu.be/1fwD-BBdBOk</a></p><p>[3]<a href="https://ethereum.org/en/developers/docs/standards/tokens/erc-721/#body">https://ethereum.org/en/developers/docs/standards/tokens/erc-721/#body</a></p><p>[4]<a href="https://nftexplained.info/where-is-an-nft-stored-a-simple-and-comprehensive-breakdown/#:~:text=NFTs%20are%20stored%20on%20the,through%20a%20file%20sharing%20system">https://nftexplained.info/where-is-an-nft-stored-a-simple-and-comprehensive-breakdown/#:~:text=NFTs%20are%20stored%20on%20the,through%20a%20file%20sharing%20system</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d69716e94e8c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Learning Crypto #17: Consensus Mechanism Part 5]]></title>
            <link>https://medium.com/@percyding66/learning-crypto-17-consensus-mechanism-part-5-cacf6f49bea0?source=rss-ae55cd937f6------2</link>
            <guid isPermaLink="false">https://medium.com/p/cacf6f49bea0</guid>
            <dc:creator><![CDATA[Perrybiz]]></dc:creator>
            <pubDate>Sun, 03 Jul 2022 10:28:42 GMT</pubDate>
            <atom:updated>2022-07-03T10:28:42.139Z</atom:updated>
            <content:encoded><![CDATA[<p>This is the last blog for the “Consensus Mechanism” series, and we are going to take a look at the last consensus mechanism from the list — Directed Acyclic Graph(DAG)</p><p>We will discuss:</p><ol><li>What DAG is</li><li>How DAG works differently than blockchains</li></ol><h3>What is DAG?</h3><p>Before we introduce more details about how DAG works as a distributed ledger, let’s understand what DAG is. If you have studied computer science at university or any algorithm courses, you might be familiar with or have heard of DAG.</p><p>Directed Acyclic Graph is a data structure from the graph theory. Here is an example of a typical DAG:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/440/0*kK7-y8AC6v44eyA0.png" /><figcaption>Source: <a href="https://en.wikipedia.org/wiki/Directed_acyclic_graph">https://en.wikipedia.org/wiki/Directed_acyclic_graph</a></figcaption></figure><p>In general, a graph consists of vertices and edges. In the above example, vertices are represented as circles annotated with letters, and edges are the lines that connect two vertices.</p><p>A DAG is a type of graph that has the below properties:</p><ol><li>It is Directed, meaning the edges have direction.</li><li>It is Acyclic, indicating the direction following the edges will never form a closed loop.</li></ol><p>A blockchain is the simplest(possibly) DAG since it satisfies all the properties:</p><ol><li>It is directed because a block(vertex or node, they can be used interchangeably) always points to another block in one direction.</li><li>It is acyclic, as there is no loop formed in a blockchain.</li></ol><p>Therefore, if a blockchain can be used to construct a distributed ledger, a DAG can also be implemented to achieve the same goal but with more enhancement.</p><p>In the next section, we will discuss a layer one project — IOTA, that implements DAG as the primary data structure for its distributed ledger.</p><h3>How does DAG work?</h3><p>To understand why DAG is adopted, let me explain some of the downsides of the blockchain-based distributed ledger:</p><ol><li>In the blockchain world, transactions are only included if it has been validated and written onto a block produced by the block producers. The block producers are referred to as the “miners” in POW and “validators” in POS. If the users are willing to pay a higher transaction fee, their transactions will have a higher chance of being validated and confirmed on the blockchain. This fee-based incentive creates a known issue, especially on POS blockchain — the gas war, where “gas” refers to the transaction fee. When the blockchain is throttled under high traffic, users often raise the gas fee so that validators can process their transactions as soon as possible. Can you imagine if you need to pay a $40 transaction fee for a $10 coffee?</li><li>Block producers(miners/validators) also compete against each other. For miners, you are more likely to produce a block if you have more computation resources (hash rate) since you can complete the “work” a lot quicker, but a higher computation resource means higher electricity consumption. For validators, you are more likely to be selected if you have staked more collateral since you have a lesser chance to act maliciously(otherwise, you will lose your stakes), but that means wealthier individuals(who stake more) have a higher chance to earn more.</li></ol><p>DAG solves these issues because there are <strong><em>no block producers. The</em></strong> users can attach a transaction to the ledger by themselves, as long as the message that contains the transaction details follows the protocol’s basic rules. We will discuss what these basic rules are later.</p><p>IOTA called this feature the “multi-threaded ledger” in their <a href="https://wiki.iota.org/learn/about-iota/an-introduction-to-iota">documentation</a> because transactions can be attached to the ledger in parallel. Allow me to borrow their diagram to illustrate this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Q6hmXkHzCCfhL0aj.png" /><figcaption>Source: <a href="https://wiki.iota.org/learn/about-iota/an-introduction-to-iota">https://wiki.iota.org/learn/about-iota/an-introduction-to-iota</a></figcaption></figure><blockquote>Latency improvement</blockquote><p>DAG can improve latency because any layer one blockchain can only attach one new block each time, meaning the blockchain can process a limited number of transactions. However, depending on the implementation, if the block time(time taken to produce a new block) is relatively long, for example, BTC block time is 10 minutes, the waiting time for a transaction can increase significantly.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/867/0*HgvXO_hT1sObBQsV.gif" /><figcaption>Blockchain in real-time</figcaption></figure><p>In DAG, each vertex(equivalent to the block concept in the blockchain) can be attached to multiple parent vertices <strong>in parallel </strong>to allow faster processing speed<strong>.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/867/0*26NYJOX_pFOYcg7i.gif" /><figcaption>DAG in real-time</figcaption></figure><blockquote>Feeless</blockquote><p>Users do not need to pay transaction fees in the IOTA network. As discussed above, a transaction is not written by block producers but published by users directly to the ledger(DAG). These transactions will be validated and confirmed by the IOTA nodes.</p><p>There is a significant difference between the validators in the IOTA network and other POS networks: In POS, transactions are validated <strong>AND</strong> written to the ledger(blockchain) by the validators. Hence the users need to pay the transaction fee to pay the validators for writing the transactions to the blockchain. On the other hand, in DAG, transactions are already written to the ledger(DAG) by the users, and IOTA nodes <strong>ONLY</strong> validate them, so no transaction fee is required.</p><p>But why do validations require no fee but producing blocks do? This is because a set of computations is performed to create a block, such as calculating the nonce/headers/payload, and all these steps consume resources(mainly electricity). On the other hand, validation is simpler by just running hash functions to verify.</p><blockquote>Consensus</blockquote><p>Lastly, let’s discuss how consensus works in DAG. How do nodes verify the validity of a particular transaction?</p><p>Recall that message that includes the transaction detail can only be considered valid if it follows some “basic rules”. In IOTA, these basic rules are referred to as the <strong><em>milestone — </em></strong><em>“All IOTA nodes validate messages and use different functions alongside messages in their confirmation to reach consensus. Currently, messages will only be considered valid if they reference a milestone</em>.”</p><p>In essence, a very special network node — the “Coordinator”, produces signed messages called “milestones” that other nodes trust and use to confirm messages. Messages produced by users will only be considered valid if and only if <em>“they are directly or indirectly referenced by a milestone that nodes have validated”. </em>If you are interested in the details, I highly recommend reading the IOTA <a href="https://wiki.iota.org/learn/about-iota/an-introduction-to-iota#the-coordinator">documentation</a>. It’s easy to read and relatively more straightforward to understand.</p><blockquote>My opinion</blockquote><p>I was impressed by the “no block producers” and “feeless” concepts when I read the IOTA documentation for the first time, but as I read more and understand the users’ responsibility, I think the “feeless” concept is somewhat incorrect.</p><p>We mentioned that users are responsible for producing and writing messages to the DAG, so they do not need to pay transaction fees to validators. However, similar to the block in a blockchain, a message in DAG also contains information such as headers, payload and nonces. Indeed, it’s great that users do not need to pay any transaction fees, but they now need to perform all the computations in order to produce a valid message(again, same concept as blocks in the blockchain), which is done by validators in other POS networks.</p><p>Quoted from one of my favourite <a href="https://youtu.be/mBdrvfytLDQ">consensus lectures</a>: “it’s like saying you don’t need to pay for electricity when running a fridge, but it depends on a hand-cranked electricity generator.”</p><h3>Outro</h3><p>This is the end of the consensus series for now. There are around 80+ different consensus models, and we only briefly touch the surface. I believe more and more novel consensus mechanisms will be proposed and implemented as the industry grows.</p><p>In my opinion, there isn’t a single best consensus out of all the variations but only the most optimal one depending on the use cases. Every consensus mechanism has its pros and cons.</p><p>Thank you again for reading the blogs. See you next time!</p><h3>Reference</h3><p>[1]<a href="https://wiki.iota.org/learn/about-iota/an-introduction-to-iota">https://wiki.iota.org/learn/about-iota/an-introduction-to-iota</a></p><p>[2]<a href="https://en.wikipedia.org/wiki/Directed_acyclic_graph">https://en.wikipedia.org/wiki/Directed_acyclic_graph</a></p><p>[3]<a href="https://tokens-economy.gitbook.io/consensus/chain-based-dag/direct-acyclic-graph-tangle-dag">https://tokens-economy.gitbook.io/consensus/chain-based-dag/direct-acyclic-graph-tangle-dag#:~:text=consensus-,Direct%20Acyclic%20Graph%20Tangle%20(DAG),are%20added%20to%20the%20Tangle.</a></p><p>[4]<a href="https://youtu.be/mBdrvfytLDQ">https://youtu.be/mBdrvfytLDQ</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cacf6f49bea0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Learning Crypto #16: Consensus Mechanism Part 4]]></title>
            <link>https://medium.com/@percyding66/learning-crypto-16-consensus-mechanism-part-4-8424c15b9e20?source=rss-ae55cd937f6------2</link>
            <guid isPermaLink="false">https://medium.com/p/8424c15b9e20</guid>
            <dc:creator><![CDATA[Perrybiz]]></dc:creator>
            <pubDate>Sun, 19 Jun 2022 12:44:02 GMT</pubDate>
            <atom:updated>2022-07-03T04:34:19.375Z</atom:updated>
            <content:encoded><![CDATA[<p>We discussed many &quot;Proof-Of-Something&quot; consensus mechanisms over the past few weeks, and we will explain a type of consensus mechanism that does not follow the general naming rule for consensus mechanisms — Unique Node List(UNL).</p><p>We will explore the below topics:</p><ol><li>What UNL is</li><li>How UNL works</li></ol><h3>What is Unique Node List?</h3><p>Unique Node List is a consensus mechanism proposed by Ripple, the company that created XRP — a layer 1 blockchain that focuses on providing a permissionless and decentralised ledger. It is highly scalable(3–5 seconds settlement time), low cost($0.0002 to transact) and environmentally friendly(carbon-neutral and energy-efficient).</p><p>According to Ripple&#39;s <a href="https://xrpl.org/faq.html#what-are-unique-node-lists-unls">documentation</a>, UNLs are &quot;<strong><em>the lists of validators a given participant believes will not conspire to defraud them. Each server operator can choose their own UNL, usually based on a default set provided by a trusted publisher. (A default set from a publisher is sometimes called a default UNL, or dUNL.).</em></strong>&quot;</p><p>Put in simple terms, unlike in POW, where miners need to do some &quot;work&quot; to participate in the network, or in POS, where validators need to stake some amount of coins as collateral, in the world of UNL, a participant chooses a list of validators and send transactions to them. Then, if most of them signed the transaction(which means it is valid), the participant will accept that transaction.</p><h3>How does Unique Node work?</h3><p>So how exactly does UNL work?</p><p>To participate in the network(i.e. producing blocks), you need to construct a list of nodes/validators you trust. Then, you can start feeding them transactions and ask them to sign valid ones. As explained above, if most of the validators from your own list(hence &quot;Unique&quot; Node List) sign the transaction, you can accept it and add it to the block.</p><p>You do not need to trust each of the validators on the list. Instead, you trust them as a whole collection and expect or assume that all the trusted validators will not act maliciously in a coordinated way.</p><p>Let&#39;s say there are 10 validators from your UNL. For a particular transaction, 8 of them sign it, but 2 of them reject it. Since the majority believe the transaction is valid, you will accept it and append the transaction to the block you are producing. If one transaction is rejected by most of the validators you trust, it is most likely fraudulent and should be discarded. The &quot;work&quot; is only to verify the signature.</p><p>UNL is very similar to how Certificate Authority(CA works). Just like you trust that the connection to a website is secure because the CA has verified it, you accept a transaction because the UNL validators have approved it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hdsmL6-wcAE-TZqLAAjAmQ.png" /><figcaption><em>Participants in the XRP Ledger Protocol. Source: </em><a href="https://xrpl.org/consensus.html#the-xrp-ledger-protocol-consensus-and-validation">https://xrpl.org/consensus.html#the-xrp-ledger-protocol-consensus-and-validation</a></figcaption></figure><p>It would be best if you always trusted the validators run by well-known institutions. Ripple publishes a list of recommended(or default, just as the default CA of your chrome browser) validators, and <a href="https://livenet.xrpl.org/network/validators">35 were listed</a> at the time of writing this blog. This list varies over time as validators can be added or removed from the list based on their performance.</p><p>Another organisation that also publishes a default list of high-quality validators is XRP Ledger Foundation or XRPL, a non-profit organisation that supports the development of the XPR ledger. They also publish a <a href="https://foundation.xrpl.org/unl/">free UNL</a>, consisting of validators run by &quot;commercial entities, universities and even individual members of the XRP Ledger ecosystem&quot;.</p><p>Note that the XRP network requires at least 90% ledger overlap to function correctly.</p><blockquote>Advantage:</blockquote><p>One of the most significant benefits of UNL is the network&#39;s security.</p><p>Let&#39;s say you want to attack the network by deploying many validators and attempting to approve fraudulent transactions. It will fail since your validators are not part of any participants&#39; UNL, and the block producer will not accept the transactions validated by you unless these malicious validators are also included in most of the network participants&#39; UNL.</p><blockquote>Disadvantage:</blockquote><p>But the downside of UNL is that it is relatively more centralised than other consensus mechanisms. This is because all the transaction validation is delegated to validators from UNL. So if they act maliciously in a coordinated way, the entire network will not function properly and start to accept fraudulent transactions.</p><h3><strong>Outro</strong></h3><p>We are getting close to the end of the &quot;Consensus Mechanism&quot; series. Next week will be the last blog on this topic.</p><p>See you next week!</p><h3>Reference</h3><p>[1]<a href="https://youtu.be/3QCykHU89To">https://youtu.be/3QCykHU89To</a></p><p>[2]<a href="https://youtu.be/f1aXZEVq_v8">https://youtu.be/f1aXZEVq_v8</a></p><p>[3]<a href="https://livenet.xrpl.org/">https://livenet.xrpl.org/</a></p><p>[4]<a href="https://xrpl.org/faq.html#what-are-unique-node-lists-unls">https://xrpl.org/faq.html#what-are-unique-node-lists-unls</a></p><p>[5]<a href="https://xrpl.org/consensus.html#consensus">https://xrpl.org/consensus.html#consensus</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8424c15b9e20" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Learning Crypto #15: Consensus Mechanism Part 3]]></title>
            <link>https://medium.com/@percyding66/learning-crypto-15-consensus-mechanism-part-3-8906371f7cdd?source=rss-ae55cd937f6------2</link>
            <guid isPermaLink="false">https://medium.com/p/8906371f7cdd</guid>
            <dc:creator><![CDATA[Perrybiz]]></dc:creator>
            <pubDate>Sun, 05 Jun 2022 12:27:23 GMT</pubDate>
            <atom:updated>2022-06-05T12:27:23.490Z</atom:updated>
            <content:encoded><![CDATA[<p>Continuing from last week’s content, we will discuss the next consensus mechanism from the list in blog #4 — Proof-Of-Space-Time.</p><p>Mainly, we will briefly discuss:</p><ol><li>What POST is</li><li>How POST works</li></ol><h3>What is Proof-Of-Space-Time?</h3><p>Computer scientist Stefan Dziembowski initially proposed POST<em> </em>in a 2013 <a href="https://eprint.iacr.org/2013/796">paper</a>. It is an alternative to the POW model, except that instead of the expensive computation required by POW, POST uses digital storage space as the requirement for the miners to participate in the network and receive rewards by producing blocks.</p><p>Some blockchains only store useless data, but others put useful information in the blocks. The latter blockchains are often designed as a decentralised distributed storage solution or decentralised storage network(DSN) as part of the Web3 ecosystem. For example, Filecoin and Arweave are both under the DSN category.</p><p>Users generally store their information on the blockchain and pay with the native coin. Miners who provide the storage and prove that they hold the data for a certain amount of time are rewarded with the native coin.</p><h3>How does Proof-Of-Space-Time work?</h3><p>For blockchains that only store useless information, miners allocate the unused storage space with useless data produced by special software. The software generates cryptographic numbers and arranges them as plots on the hard drive. Then, the nodes are randomly selected, and the network will check if the data remains persisted. Finally, the node will be allowed to produce a block and rewarded with the native blockchain coin if it does. Note that the chance of the node producing a block partially depends on the free storage space it has relative to the total storage space on the blockchain.</p><p>For blockchains that actually store meaningful data such as client information, each miner “must submit proofs that they are continuing to store unique copies” of client data to receive payment and rewards, according to <a href="https://docs.filecoin.io/reference/glossary/#proof-of-spacetime-post"><strong>Filecoin documentation</strong></a>. The network also randomly selects miners and challenges them to provide public proof that a given encoding of the data continuously existed in physical storage over time. If that is the case, miners can continue producing blocks and earning rewards, as discussed above.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/532/1*cQu5nMy9Yy8yfkvNoQ4HUw.png" /></figure><p>Arweave uses an advanced version of POST called Succinct Proofs of Random Access, which incentivises the miners to store as much data as possible for as long as possible. You can find the implementation details <a href="https://github.com/ArweaveTeam/arweave-standards/blob/ans-103/ans/ANS-103.md">here</a>. The goal of Arweave is to become the permanent decentralised storage solution.</p><h3>Outro</h3><p>Another short blog this week, I will be able to write longer blogs after the next two weeks when the uni work is over.</p><p>See you next time!</p><h3><strong>Reference</strong></h3><p>[1]<a href="https://youtu.be/9J1ttTzkwL8">https://youtu.be/9J1ttTzkwL8</a></p><p>[2]<a href="https://arweave.medium.com/the-arweave-network-is-now-running-succinct-random-proofs-of-access-spora-e2732cbcbb46">https://arweave.medium.com/the-arweave-network-is-now-running-succinct-random-proofs-of-access-spora-e2732cbcbb46</a></p><p>[3]<a href="https://github.com/ArweaveTeam/arweave-standards/blob/ans-103/ans/ANS-103.md">https://github.com/ArweaveTeam/arweave-standards/blob/ans-103/ans/ANS-103.md</a></p><p>[4]<a href="https://spec.filecoin.io/algorithms/pos/#section-algorithms.pos">https://spec.filecoin.io/algorithms/pos/#section-algorithms.pos</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8906371f7cdd" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Learning Crypto #14: Consensus Mechanism Part 2]]></title>
            <link>https://medium.com/@percyding66/learning-crypto-14-consensus-mechanism-part-2-1ec434bbac54?source=rss-ae55cd937f6------2</link>
            <guid isPermaLink="false">https://medium.com/p/1ec434bbac54</guid>
            <dc:creator><![CDATA[Perrybiz]]></dc:creator>
            <pubDate>Sun, 29 May 2022 11:37:31 GMT</pubDate>
            <atom:updated>2022-05-29T11:37:31.408Z</atom:updated>
            <content:encoded><![CDATA[<p>In today&#39;s blog, we will continue the exploration of the consensus mechanism. You probably have heard of Solana(SOL) if you are into crypto. It is one of the fastest blockchains in the ecosystem, and the backbone consensus mechanism of Solana is Proof-Of-History(POH).</p><p>I will discuss:</p><ol><li>What POH is</li><li>How POH works</li></ol><h3>What is Proof-Of-History?</h3><p>Proof-Of-History was initially proposed by Anatoly Yakovenko, the co-founder of Solana — a layer 1 blockchain with smart contract capability. If you are interested in the whitepaper, here is the <a href="https://solana.com/solana-whitepaper.pdf">link</a>.</p><p>Imagine this on a POW blockchain: two miners produce a new block simultaneously, so which one should be accepted? In fact, the blockchain temporarily splits into two chains, and whichever of the two chains produces a new block first becomes the official blockchain, and the transactions on the other chain will be discarded. This mechanism further degrades the efficiency of the POW blockchain, not to mention that the POW blockchain itself requires expensive computation.</p><p>For a POS blockchain, we know that the task of generating a block is assigned randomly to a validator one at a time(for most POS blockchains). After the block is generated, it is broadcast to the entire network so that other validators can quickly verify the validity of that block. Then the next validator will be chosen and continue the iteration.</p><p>Both POW and POS use this &quot;single thread&quot; mode of producing blocks and achieving consensus. The problem is that the network is relatively slow without any scaling solutions(check out the scaling solutions series for more details!!). For example, Bitcoin(POW) TPS is 10 and Avalanche(POS) is about 4500. Here is an image to illustrate this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*XupcimRBs6qpjFvK" /><figcaption>Source: <a href="https://pbs.twimg.com/media/Ek0ikcNVoAADbOC?format=jpg&amp;name=4096x4096">https://pbs.twimg.com/media/Ek0ikcNVoAADbOC?format=jpg&amp;name=4096x4096</a></figcaption></figure><p>ETH 2.0 is a different story, and we will discuss that in a future blog. The upgrade has been delayed again to August 2022 when writing this blog.</p><p>POH is technically not a consensus mechanism. It enhances Proof-Of-Stake by adding one additional variable to the block — timestamp. In a distributed system such as blockchain, time is an essential aspect because the order of each block is crucial. Nodes in many blockchains need to communicate back and forth to establish a consensus on the global time, which causes a significant computation overhead.</p><p>The idea of POH is that the nodes would simply trust the timestamp that is encoded in the message. From this, a POH blockchain still has blocks being validated via POS. However, with timestamps, you can have multiple validators working on the blocks before the previous block is validated, hence not throttling the network by waiting for a single validator to finish validating a block before assigning a new validator for the next one.</p><h3>How does Proof-Of-History work?</h3><p>So how does the timestamping work? How can all validators agree on a synchronised clock without communicating with others?</p><p>The POH is a Verifiable Delay Function. A VDF is <em>&quot;A function that takes a fixed amount of time to execute that produces a proof that it ran, which can then be verified in less time than it took to produce.&quot;, </em>according to the <a href="https://docs.solana.com/terminology#verifiable-delay-function-vdf">Solana documentation</a>. We will not explain the details of VDF as it is out of scope for this blog.</p><p>Solana&#39;s implementation utilises SHA265 to produce the output, the same hash function used by Bitcoin. The network <a href="https://medium.com/solana-labs/proof-of-history-a-clock-for-blockchain-cf47a61a9274"><em>&quot;runs over itself continuously with the previous output used as the next input. Periodically the count and the current output are recorded.&quot;</em></a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/360/1*Y2Q0jZV3MLMrTOSsqT9HSw.png" /><figcaption>POH Timestamps. Source: <a href="https://medium.com/solana-labs/proof-of-history-a-clock-for-blockchain-cf47a61a9274">https://medium.com/solana-labs/proof-of-history-a-clock-for-blockchain-cf47a61a9274</a></figcaption></figure><p>Now we have a global clock, and any data can be inserted into the above sequence:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mVrzZeUlXHAljPk2kGHhFQ.png" /><figcaption>Source: <a href="https://medium.com/solana-labs/proof-of-history-a-clock-for-blockchain-cf47a61a9274">https://medium.com/solana-labs/proof-of-history-a-clock-for-blockchain-cf47a61a9274</a></figcaption></figure><p>The user specified the previous timestamps hash <strong>0xdeadc0de </strong>in the message, so the validators are confident that the event happened after count <strong>510144806912. </strong>Hopefully, you can now see how the blocks&#39; ordering can quickly be validated without additional communication(network) overhead.</p><p>Using this mechanism, the blocks can be generated in parallel, and thus the speed of POH blockchains is not bounded by the software implementation but the hardware performance. The SHA256 can be verified within 0.25 milliseconds using a modern GPU.</p><h3>Outro</h3><p>There is a minimal number of resources explaining Proof-Of-History well. This is probably the longest time I spent on research for a single topic. If you have identified any misleading/incorrect information, please let me know and I will look into it. I hope the context is easy to understand.</p><p>See you next week!</p><h3>Reference</h3><p>[1]<a href="https://medium.com/solana-labs/proof-of-history-a-clock-for-blockchain-cf47a61a9274">https://medium.com/solana-labs/proof-of-history-a-clock-for-blockchain-cf47a61a9274</a></p><p>[2]<a href="https://docs.solana.com/">https://docs.solana.com/</a></p><p>[3]<a href="https://youtu.be/rywOYfGu4EA">https://youtu.be/rywOYfGu4EA</a></p><p>[4]<a href="https://youtu.be/1jzROE6EhxM">https://youtu.be/1jzROE6EhxM</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1ec434bbac54" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Learning Crypto #13: Consensus Mechanism Part 1]]></title>
            <link>https://medium.com/@percyding66/learning-crypto-13-consensus-mechanism-part-1-6508e6edff54?source=rss-ae55cd937f6------2</link>
            <guid isPermaLink="false">https://medium.com/p/6508e6edff54</guid>
            <dc:creator><![CDATA[Perrybiz]]></dc:creator>
            <pubDate>Sun, 08 May 2022 10:45:35 GMT</pubDate>
            <atom:updated>2022-05-08T10:45:35.955Z</atom:updated>
            <content:encoded><![CDATA[<p>It has been a busy week &amp; weekend for me, and I didn’t have much time to do research, so it will be a concise post this week.</p><p>As we have wrapped up the topics in scaling solutions, I will start a new series in Consensus Mechanism. Mainly, I will quickly discuss <strong>Proof-Of-Authority</strong>:</p><ol><li>What POA is</li><li>How POA works</li></ol><p>Before you continue reading this post, I highly recommend you have a basic understanding of how Proof-Of-Stake works. Feel free to check out the previous posts for more details!</p><h3>What is Proof-Of-Authority?</h3><p>POA was invented by one of the Ethereum co-founders and former CTO — Gavin Wood. He is also the co-founder of Polkadot(DOT) — A popular smart contract-based layer one blockchain similar to Ethereum, Solana and Cardano, etc.</p><p>Unlike the Proof-Of-Stake consensus model, which uses coins/tokens as stakes to be the validators, POA utilises the identity/reputation as stakes. It requires the nodes to connect to institutional or individual identities to produce blocks. These institutional/individual identities are referred to as the Authority Nodes. They are equivalent to the validators in the Proof-Of-Stake model.</p><p>We trust authority nodes because we assume they will not misbehave. Otherwise, they will ruin their reputation as blockchain is transparent, and all transactions are exposed to the community. Malicious authority nodes may even end up in court since everyone knows their true identity[1]. These authority nodes are often run by well-known companies such as Google, Binance, Ubisoft, Sony, Samsung etc.</p><h3>How does Proof-Of-Authority work?</h3><p>We can briefly summarise how POA works in the following steps:</p><ol><li>Nodes send transactions to the authority node(s)</li><li>Authority node(s) validate and sign the transactions</li><li>Authority node(s) broadcast the latest state of the blockchains to all nodes</li><li>Nodes update their blockchain based on the received state to achieve consensus</li></ol><blockquote>Pros</blockquote><p>One of the significant advantages of the POA blockchain is its speed. They are fast, and most of them are faster than the Proof-Of-Stake blockchains. This is because no staking or mining(and thus no expensive computation) is required to be part of the network. The only factor that contributes to the speed is the hardware.</p><blockquote>Cons</blockquote><p>However, the POA blockchains are relatively centralised compared to other models. If you want to join the network, you need to be approved by the authority nodes. Some projects leverage a novel POA model(sometimes called Delegated POA) to allow permissionless third parties to participate, providing additional security and decentralisation.</p><h3>Outro</h3><p>Apologies for today’s short blog. I will be pretty busy for the next few weeks as it’s getting close to the end of university semester 1(so lots of assignments are due in the upcoming weeks). Therefore, I will try my best to continue writing one blog per week, but the length will be shorter.</p><p>Happy Mother’s Day!</p><h3>Reference:</h3><p>[1]<a href="https://youtu.be/9J1ttTzkwL8">https://youtu.be/9J1ttTzkwL8</a></p><p>[2]<a href="https://wiki.polkadot.network/docs/glossary">https://wiki.polkadot.network/docs/glossary</a></p><p>[3]<a href="https://academy.binance.com/en/articles/proof-of-authority-explained">https://academy.binance.com/en/articles/proof-of-authority-explained</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6508e6edff54" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>