<?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 Alfonso Delgado on Medium]]></title>
        <description><![CDATA[Stories by Alfonso Delgado on Medium]]></description>
        <link>https://medium.com/@legalblock?source=rss-6462730863d2------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*eu69VYjPbsEr3rkI.</url>
            <title>Stories by Alfonso Delgado on Medium</title>
            <link>https://medium.com/@legalblock?source=rss-6462730863d2------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 21 Nov 2026 10:12:09 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@legalblock/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[Data Regulations For Business]]></title>
            <link>https://medium.com/credify/data-regulations-for-business-743c69ee327b?source=rss-6462730863d2------2</link>
            <guid isPermaLink="false">https://medium.com/p/743c69ee327b</guid>
            <category><![CDATA[application]]></category>
            <category><![CDATA[credify]]></category>
            <category><![CDATA[business]]></category>
            <category><![CDATA[data]]></category>
            <category><![CDATA[privacy]]></category>
            <dc:creator><![CDATA[Alfonso Delgado]]></dc:creator>
            <pubDate>Mon, 16 Nov 2020 10:08:16 GMT</pubDate>
            <atom:updated>2020-11-16T11:48:58.827Z</atom:updated>
            <content:encoded><![CDATA[<h4><strong>Are You Experienced?</strong></h4><p>In this post, we explore recent trends in data regulation and discuss their implications for businesses at large, with a particular emphasis on the ASEAN region. In addition, we outline how businesses can utilise Credify’s suite of products to facilitate compliance with these regulations and — importantly — monetise their data in a lawful manner.</p><p>Sound too good to be true? Read on!</p><p><strong>Data Protection Is Trending</strong></p><p>The European Union’s General Data Protection Regulation (GDPR) came into force in 2018 and introduced a comprehensive, harmonised data protection regime. With limited exceptions, the regime applies to all data processing entities that deal with individuals in the EU, regardless of where they are based. As such, ASEAN businesses need to also familiarise themselves with the GDPR’s implications.</p><p>The GDPR contains a suite of rights designed to place consumers at the helm. As we have mentioned in <a href="https://medium.com/credify/credify-mission-statement-products-and-research-directions-aea975d26436">previous</a> <a href="https://medium.com/credify/the-next-data-frontier-c6e6e6dc9c72">articles</a>, many businesses have sought to exploit users’ personal data by selling it off to third parties in an opaque manner. Social media platforms have engaged in particularly egregious instances of abuse, with the Cambridge Analytica scandal still looming large over our heads.</p><p>Amongst the GDPR’s most consequential rights are the following:</p><ul><li><strong>Lawfulness of processing</strong> (Article 6): the user needs to have consented to the types of processing that the business will undertake (including transfers of user data to third parties).</li><li><strong>Right of access</strong> (Article 15): this requires businesses to provide users with a copy of the personal data that they hold upon request.</li><li><strong>Right to erasure</strong> (Article 17): users can request that their personal data be completely erased from a businesses’ systems, unless this needs to be kept for regulatory purposes.</li><li><strong>Right to data portability </strong>(Article 20):<strong> </strong>users have the right to request that their data be transferred from one service provider to another.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Xepc5n10v9DDd-8V" /><figcaption>Key principles underpinning the GDPR</figcaption></figure><p>Note that the GDPR requires businesses to <em>facilitate</em> these actions, as opposed to being mere bystanders. The fines for business that process personal data and do not comply with the GDPR can reach €20 million or 4% of global turnover (whichever is greatest!).</p><p>Although these fines may seem unnecessary punitive, they reflect the seriousness with which regulators are taking data processing activities. After all, many people spend the bulk of their working hours in front of a laptop, generating a greater footprint in the digital economy than in the tangible world. Regulators view personal data as a valuable form of personal property, no different than our tangible possessions. Consequently, unauthorised activities by data processing businesses are regarded as forms of data abuse or identity theft.</p><p><strong>Strengthening Local Regulations</strong></p><p>The GDPR is not the first (nor the last) data protection regime that ASEAN businesses need to act upon. There are, of course, local regulations that also come into play when dealing with users in specific geographies. Nonetheless, the GDPR is influencing the development of these regimes, pushing regulators towards a more comprehensive and consumer-centric model.</p><p>Vietnam is the perfect example to highlight this trend. At present, the country’s data protection regime is highly fragmented. Data protection laws are spread across 50 legal instruments on diverse subject matters, which hinders consistency and interpretability (to the detriment of both businesses and consumers). [1]</p><p>To address this situation, Vietnam’s Ministry of Public Security has presented a draft decree that aims to lay down a unified and extensive set of data protection rules. Many provisions in the decree mirror those of the GDPR, such as the need to process data within the boundaries of users’ consent and to notify users of activities involving their personal data. [2]</p><p>Singapore is in the process of updating their data protection regime, while Indonesia is in the process of finalising comprehensive data protection legislation (scheduled for November 2020). [3] We expect other countries in the ASEAN region to revamp their local regulations too. So far, Japan is the only neighbouring nation to have been granted GDPR-adequacy status by the European Commission, confirming the compatibility of their respective data protection regimes. [4]</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*waHM806v_d6BLYh0" /><figcaption>The World Federation of Advertisers maintains a helpful <a href="https://wfanet.org/knowledge/item/2020/09/21/WFA-Global-Privacy-Map">privacy map</a></figcaption></figure><p><strong>The Comply Advantage</strong></p><p>Now is the time for businesses to evaluate their data management processes and consider whether sufficient protections are being afforded to their customers. The failure to do so can leave businesses liable to not only regulatory sanctions, but also exposed to the potential loss of customers. As a result of this regulatory shift, consumers will increasingly demand that their data be handled in a lawful and transparent manner. On that basis, data management strategies should be at the forefront of businesses’ minds.</p><p>If you’ve come across our previous articles, you may already be aware of work that we’re pursuing at Credify (see e.g. <a href="https://medium.com/credify/credify-mission-statement-products-and-research-directions-aea975d26436">here</a> for an outline of our products). We think that Credify can be the perfect partner for businesses looking to undertake this regulatory transition. Credify’s business model is grounded on the need to provide consumers with greater control over their data. As such, its products respect the principles enshrined in regulations like the GDPR, facilitating the data management process in a transparent and efficient manner.</p><p>In particular, Credify’s idX system enables businesses to associate personal data with individual user accounts. Through Credify’s idPass application, users can monitor the personal data that each business is holding and track how their data is being used in an auditable log. The application also allows users to check whether their personal data is up to date; everyone hates correspondence that is sent to an old email or residential address. Importantly, businesses can obtain users’ consent for specific activities (such as sending data to an affiliate or commercial partner) through the idX system — a notification will appear on the idPass application and will record the users’ consent (or refusal) to the transfer.</p><p>Credify’s solution is privacy-centric, since Credify’s ability to access users’ data is highly restricted. In fact, we are proud to be working with world-renowned cryptographers and technologists to provide users and businesses with strong security assurances. At present, Credify is using proven technical standards (such as Open ID Connect) and the latest auditing technologies (such as blockchain) to meet our privacy and security objectives.</p><p><strong>Gaining An Edge</strong></p><p>Although this wave of regulation may pose initial challenges, it will also open up new opportunities for forward-thinking players. Businesses can still adopt processes to monetise their user data and acquire data from other businesses, so long as users’ rights are fully respected.</p><p>As we hinted above, Credify’s tools can also be used to support a lawful monetisation strategy. Let’s imagine that a marketplace is willing to share a user’s data with an insurance company, which is looking to build a diverse profile about a potential client. The marketplace requests the specific user’s consent and, once accepted by said user through the idPass, Credify can open up a direct channel between the businesses to handle the transfer. In turn, the audit log will be updated to reflect this activity.</p><p>We <a href="https://medium.com/credify/the-next-data-frontier-c6e6e6dc9c72">previously</a> introduced the concept of a data highway. To move data from one end-point to another, users are likely to ask for some sort of incentive (or “toll”). After all, their data is valuable and they are entitled to refuse the transfer if they so choose. Popular incentives can take the form of discounts or vouchers. In the example above, the insurance company may pass on savings attained in the due diligence process (as a result of the data transfer) in the form of lower premiums for participating users. We would also expect the insurance company to compensate the marketplace for each user that they are able to acquire. In short, every party is able to benefit from this transaction.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/0*d5PiV5exXQDH9yNY" /><figcaption>The digital economy is comprised of interconnected data highways</figcaption></figure><p><strong>Summing up</strong></p><p>We have provided a roadmap for the future of data regulations, with a focus on the ASEAN region. We encourage all businesses to start adapting to this regulatory shift, irrespective of how developed local data protection regimes currently are. This trend is set to strengthen in the coming years and there are significant risks to being caught off guard.</p><p>If you’re a business looking for a technological solution to these problems, as well as an avenue to monetise your data in a lawful manner, look no further. Credify has the tools that you need and is willing to work with you to facilitate your success.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/941/1*eiULYEHr40p9WCKIhaE5Gg.png" /><figcaption>Which side of the road are you on?</figcaption></figure><p><strong>About Credify</strong></p><p><a href="https://credify.one/">Credify</a> is a Singapore based software development company building technologies and services that empower individuals to take ownership of their digital identities, give businesses more effective user acquisition tools and address the need for trust in systems where counterparties to transactions are either anonymous or lack sufficient information for establishing a true basis for confidence in commercial engagements.</p><p>For more information, visit their website: <a href="https://credify.one/">https://credify.one/</a> or follow the <a href="https://www.linkedin.com/company/credifyone/">LinkedIn</a> page.</p><p><strong>About the Author</strong></p><p>Alfonso Rius is a Senior Research Advisor at Credify and a PhD student at Imperial College London, where he conducts research at the intersection of law, economics and computer science. Alfonso has worked with start-ups, investment funds, and government entities on opportunities in the realm of emerging technologies. He obtained an MSc in Law and Finance from the University of Oxford and in a previous (less enjoyable life) worked as a business lawyer.</p><p><strong>References</strong></p><p>[1] <a href="https://www.dataguidance.com/notes/vietnam-data-protection-overview">https://www.dataguidance.com/notes/vietnam-data-protection-overview</a></p><p>[2] <a href="https://www.bakermckenzie.com/en/insight/publications/2020/04/draft-decree-on-personal-data-protection">https://www.bakermckenzie.com/en/insight/publications/2020/04/draft-decree-on-personal-data-protection</a></p><p>[3] <a href="https://www.refinitiv.com/perspectives/big-data/navigating-gdpr-data-regulation-asia/">https://www.refinitiv.com/perspectives/big-data/navigating-gdpr-data-regulation-asia/</a></p><p>[4] <a href="https://www.regulationasia.com/data-privacy-in-asia-pacific-a-fragmented-landscape/">https://www.regulationasia.com/data-privacy-in-asia-pacific-a-fragmented-landscape/</a></p><p><em>Usual (boring) disclaimer: this article is not intended to comprise legal advice and should not be relied on as such. Credify does not warrant that this article is an accurate or up-to-date representation of international or local data protection regimes.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=743c69ee327b" width="1" height="1" alt=""><hr><p><a href="https://medium.com/credify/data-regulations-for-business-743c69ee327b">Data Regulations For Business</a> was originally published in <a href="https://medium.com/credify">credify</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Credify — Mission Statement, Products and Research Directions]]></title>
            <link>https://medium.com/credify/credify-mission-statement-products-and-research-directions-aea975d26436?source=rss-6462730863d2------2</link>
            <guid isPermaLink="false">https://medium.com/p/aea975d26436</guid>
            <category><![CDATA[digital-identity]]></category>
            <category><![CDATA[fintech]]></category>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[trust-systems]]></category>
            <category><![CDATA[financial-inclusion]]></category>
            <dc:creator><![CDATA[Alfonso Delgado]]></dc:creator>
            <pubDate>Mon, 25 May 2020 14:52:44 GMT</pubDate>
            <atom:updated>2020-05-25T14:52:44.685Z</atom:updated>
            <content:encoded><![CDATA[<h3>Credify — Mission Statement, Products and Research Directions</h3><p>The goal of this post is share more information about Credify with the Medium community, providing a window into our mission statement, products and research interests.</p><ol><li><strong>Introducing Credify</strong></li></ol><p><a href="https://credify.one/">Credify</a> is a Singapore-based company focusing on identity and data-sharing applications, with an emphasis on empowering end-consumers through privacy assurances and fair monetisation of their data.</p><p>Credify was founded in 2019 and is led by co-founders <a href="https://www.linkedin.com/in/makoto-tominaga/">Makoto Tominaga</a> and <a href="https://www.linkedin.com/in/shuichi-nagao/">Shu Nagao</a>, who have a wealth of experience in technology and entrepreneurship. At Credify, we regard our human capital as our greatest asset. We are fortunate to have assembled a diverse and geographically dispersed team with expertise in a variety of disciplines, spanning engineering, economics, finance and social sciences.</p><p>Earlier this year, Credify completed its <a href="https://medium.com/credify/credify-announces-seed-investment-by-beenext-and-deepcore-495c87ad2bd4?source=collection_home---2------2-----------------------">seed funding round</a> with participation from two leading ASEAN Venture Capital firms — <a href="https://www.beenext.com/">BEENEXT</a> and <a href="https://deepcore.jp/">DEEPCORE</a>. In addition, Credify was selected to take part in the <a href="https://medium.com/credify/credifys-plug-play-focus-week-8a288e149ab1">Plug and Play Tokyo Fintech Acceleration Program</a>. Last year, Credify won the <a href="https://www.gov.uk/government/news/426385.ja">UK Tech Rocketship: Future of Financial Services</a> award, sponsored by the UK’s Department of International Trade and Scottish Development International. Most recently, Credify became a member of the<strong> </strong><a href="https://medium.com/credify/credify-joins-the-singapore-fintech-association-b7c09e2af7ab">Singapore Fintech Association</a><strong>, </strong>a cross-industry non-profit initiative to facilitate a collaborative research agenda.</p><p><strong>2.1 The identity problem</strong></p><p>In the conduct of day-to-day life, our online footprint generates a ton of data. This data can carry useful information about our identity, our preferences and even our relationship to other persons. This user data is a valuable resource, and companies are keen to aggregate data about their user base to influence in-platform choices. This discrimination can be positive, for example if a user is willing to receive tailored recommendations about products that satisfy their preferences. At the same time, discrimination can be negative, for instance if platforms adopt a prejudicial treatment of users from certain geographies or communities.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XMQ-yKX_-xFciefQFO5-lQ.png" /></figure><p>There are also instances in which these platforms (data aggregators) have failed to observe ethical practices in their role as gatekeepers of user data. The <a href="https://www.theguardian.com/technology/2019/mar/17/the-cambridge-analytica-scandal-changed-the-world-but-it-didnt-change-facebook">Cambridge Analytica scandal</a> is the most prominent, but not last, in a series of exploits that have been unmasked by the media. While this scandal did lead to a temporary focus amongst regulators on data companies’ concentrated power, the current systems remain far from transparent, fair or consumer-centric.</p><p>There is an even more socially significant dimension to the identity challenge. Many citizens in less developed economies possess no form of state ID. This lack of identifiability complicates government or humanitarian action when faced with a national crisis or global catastrophe, such as the COVID-19 pandemic. In addition, it bars impersonal commerce and access to financial services. The “unbanked” are typically a subset of the “unidentified”, relegated to conducting economic activity within the informal sector and with little prospect of sparking economic growth.</p><p><strong>2.2 idX — Power to the users</strong></p><p>Credify’s solution to the identity problem is <strong>idX, </strong>a personal data management service and suite of applications. idX comprises a bottom-up response to this challenge, where users can sign up to the platform to create their very own data locker. Once the onboarding and verification process is complete, users are able to link their social media profiles, (where applicable) national IDs, and receive in-app rewards for doing so. Through this process, users are effectively creating a <em>data passport </em>for their personal data.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3nIfK4tdVlncLKhhP5E3aQ.png" /><figcaption><strong>idX</strong> — Credify’s answer to the identity problem</figcaption></figure><p>In turn, users are able to share information about their identity and data with select third parties, such as e-commerce marketplaces or financial institutions, in a controlled environment. This disclosure can be selective, allowing users to reveal only certain personal data points (such as their age and nationality). In exchange for disclosing information, users will also receive rewards from third parties in the form of vouchers, discounts and special offers.</p><p>idX has been engineered from the ground-up with a user-centric approach. To ensure that privacy is observed, Credify leverages a variety of cryptographic techniques. These prevents any unauthorised third parties from accessing user information without their consent, but also Credify itself from abusing its role as a <em>data broker</em>.</p><p>idX is at an advanced stage of development and will be released to iOS and Android users soon. In the meantime, check out this <a href="https://vimeo.com/399804048">demo</a> showing the application at work.</p><p><strong>3.1 The siloed data challenge</strong></p><p>The other side of the equation is, of course, the user data that companies <em>already</em> possess. Vast quantities of data are currently trapped in organisational silos. This system is opaque, as many users are unaware of the data that companies collect and generate about them. In addition, it is economically inefficient for companies wishing to learn more about their customers to start their due diligence from scratch. The process of acquiring and verifying user information consumes time and resources.</p><p>Financial institutions are a prime example of companies that are confronted with this problem when assessing new client applications. These institutions are typically required by law to undertake know-your-customer (KYC) processes. Once this process is completed and the cost has been sunk, the institutions have made a relationship-specific investment that fails to meet its maximum utility for both parties.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YXMXXWiuQ32z865PHVZvyA.png" /><figcaption>The siloed data challenge</figcaption></figure><p>This challenge is also addressed by our idX product. idX serves as a bridge between data silos while keeping the user in control of <em>what</em>, <em>when</em> and <em>with whom</em> their personal data is shared. Organisations are incentivised to allow users to passport their data through idX’s monetisation channel, where data consuming companies pay only for what the users have authorised them to access. We will expand on this dynamic in the following subsection.</p><p><strong>3.2 serviceX — A frictionless onboarding experience</strong></p><p>Credify has also developed a platform (<strong>serviceX</strong>) that allows participating organisations to make targeted offers to each other’s user bases. This service interfaces idX too, as users are required to give their consent before their data can be accessed. In effect, serviceX is a platform for <em>data discovery and acquisition</em>, enabling companies to identify mutually attractive data-sharing opportunities.</p><p>We think that serviceX can be a powerful ally for business-to-consumer companies. By enabling these companies to select the attributes for the users that they wish to target (e.g. adult users in ASEAN countries), they can drastically increase their acquisition rates and revenues. serviceX also facilitates the onboarding process for these new users. If they choose to accept an offer, serviceX will handle the creation of a new account in the offeror’s platform. Importantly, the entire process will be recorded on idX, so users can always monitor which companies they have chosen to share their data with.</p><p>By way of example, a marketplace may be willing to share data about one of its users with a financial institution that is evaluating said user’s credit risk for the purpose of extending a loan.</p><p>In effect, serviceX facilitates the formation of a <em>multi-lateral market</em> for data, in which every stakeholder in the transaction can benefit from the exchange.</p><ul><li><em>Data providers</em> receive a fee from data-consumers, enabling them to monetise an idle resource.</li><li><em>Data consumers</em> are able to draw information from a trusted commercial partner who has the benefit of having interacted with a user for a prolonged period of time.</li><li><em>End users</em> are empowered too, as their consent to the transfer is required. This mechanic forces data-consumers to adequately incentivise end-users with rewards, spanning offers to outright monetary compensation.</li></ul><p>In short, we have created a system that is transparent, flexible and — most importantly — fair.</p><p>serviceX is at an advanced stage of development and undergoing pilots with commercial partners. If you are excited about this product, go ahead and check out our <a href="https://vimeo.com/418316780">demo</a>!</p><h4>4. Research directions — fintech</h4><p>The team’s current focus is on finalising the idX and serviceX products. On a forward-looking basis, Credify is exploring applications in the domain of finance. In particular, we plan to extend idX to facilitate lending and the provision of third party collateral in a system we call trustX.</p><p>Consider the following scenario. Alice is willing to lend some spare cash to generate a return by way of interest. In turn, Bob wishes to borrow money to finance a business opportunity. Alice does not know much about Bob, so she needs some form of credible commitment from Bob, or a signal about his likelihood to default. Carol is a personal friend of Bob who is willing to place some collateral on his behalf to facilitate the transaction. When Bob pays back the loan, she will receive a portion of the interest as compensation for her vouching services.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6SQ22D4a3wdppOCKkyqOGA.png" /></figure><p>This fintech use case can be particularly powerful in the informal economy, where the are strong local information networks and reputation carries significant weight. In short, it can serve as a means of providing credit to the unbanked.</p><p>In addition, the use case can be scaled to enable companies to participate in the process. The transactional lifecycle is automated through the use of smart contract technology, with certain actions being triggered when a particular event occurs (such as the distribution of interest on repayment or the seizing of collateral on default). This can give rise to cost savings for commercial lenders and open the door for funding opportunities with a social impact.</p><p>Last, we plan to explore applications of machine learning to generate credit scores for users based on alternative data sources (including social media). Not only would this facilitate financial institutions’ modelling of credit risk, but it may also enable users with no verifiable financial history to gain access to financing on fairer terms.</p><p><strong>Want to learn more?</strong></p><p>We hope that this outline has sparked your interest. If you are a talented software engineer or business development manager based in the ASEAN region, please note that we are hiring! For more information about Credify and our products, check us out at <a href="http://www.credify.one/"><strong>https://credify.one</strong></a><strong> </strong>or visit our LinkedIn page at <a href="https://www.linkedin.com/company/credifyone"><strong>https://www.linkedin.com/company/credifyone</strong></a><strong>.</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=aea975d26436" width="1" height="1" alt=""><hr><p><a href="https://medium.com/credify/credify-mission-statement-products-and-research-directions-aea975d26436">Credify — Mission Statement, Products and Research Directions</a> was originally published in <a href="https://medium.com/credify">credify</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Uinspire Blockchain Course {Lesson 5: The Future of Distributed Ledger Technology}]]></title>
            <link>https://medium.com/uinspire/uinspire-blockchain-course-lesson-5-the-future-of-distributed-ledger-technology-eefc4ecf5192?source=rss-6462730863d2------2</link>
            <guid isPermaLink="false">https://medium.com/p/eefc4ecf5192</guid>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[crypto]]></category>
            <category><![CDATA[digital]]></category>
            <category><![CDATA[education-technology]]></category>
            <category><![CDATA[cryptocurrency]]></category>
            <dc:creator><![CDATA[Alfonso Delgado]]></dc:creator>
            <pubDate>Mon, 25 Jun 2018 04:31:41 GMT</pubDate>
            <atom:updated>2018-06-29T08:45:01.094Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AYsMA1k_bSiUxKBsfDSVBg.png" /></figure><p>In <a href="https://medium.com/uinspire/uinspire-blockchain-course-lesson-4-demystifying-icos-dapps-and-daos-c36208841899"><strong>Lesson 4</strong></a> we focused on three innovative applications that are powered by smart contracts: ICOs, DApps and DAOs. These applications are at the forefront of most of the current discussions regarding blockchain technology.</p><p>In this Lesson, we aim to provide an insight into recent and future developments within the world of DLT that may have a significant impact on this space. Building on the previous Lesson, we start by examining how DApps may collectively give rise to the distributed economy. We will then cover a range of exciting topics, including novel forms of fundraising, alternative consensus mechanisms and new DLT structures.</p><p><strong>The Distributed Economy</strong></p><p>The goal of most DApps (and DAOs) is to coordinate transactional activities between a large set of unknown actors and to reduce transactional frictions by removing central intermediaries. In order to achieve this goal, DApps are able to communicate with one another by passing on messages between their underlying smart contracts. The diagram below depicts these communications taking place between DApps on Ethereum, though much research is also being conducted in relation to cross-chain communications.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*xEM_ghcjKzrmWekCnRC5nQ.png" /><figcaption>Source: <a href="https://medium.com/swlh/the-synergies-gained-from-building-on-ethereums-decentralized-app-ecosystem-22a709a675d2">Kasireddy</a></figcaption></figure><p>In the long run, the increased interconnectivity of DApps will help to empower the <strong>distributed economy</strong>. This economic model will be characterised by the absence of central intermediaries and the automatability of communications and tasks associated with the negotiation and performance of virtual agreements. DApps will be able to exchange payments, information and products with minimal human intervention. This can be contrasted with the sharing economy, in which corporations that match service providers to consumers charge significant fees to satisfy their investors’ desire for financial returns.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*q-NqmeB4BDyUui__IdJwAg.png" /><figcaption>Source: <a href="https://medium.com/swlh/the-synergies-gained-from-building-on-ethereums-decentralized-app-ecosystem-22a709a675d2">Kasireddy</a></figcaption></figure><p>Let’s take the example of insurance. At the macroeconomic level, Ethereum provides the bottom-layer protocol which the DApps that run on top of the network must follow. At the microeconomic level, the figure above shows how a collection of DApps can offer insurance-related services to end users. In particular, users could interact directly with the Insurance DApp to obtain a particular policy to protect themselves against an identified risk. This Insurance DApp would then rely on uPort to perform the necessary Know-Your-Customer (KYC) checks before onboarding the user. The Insurance DApp could then use Golem to obtain crowdsourced predictions about the probability of the relevant risk materialising and request external pricing data from other insurance companies using Oraclize. The predictions and external pricing data could then be passed on to Golem’s distributed computing network to calculate an appropriate price for the insurance policy. With the addition of Aragon, the Insurance DApp can integrate an off-the-shelf governance system to process insurance claims and deal with disputes.</p><p>By way of caution, we are closer to the scenario of The DAO than to the vision of the distributed economy outlined above. Though we are still in the early stages of smart contract development, many resources are being deployed to achieve progress in this field. We can expect the rate of progress to accelerate as DApps become fully functional and the learning curve associated with blockchain technology begins to flatten.</p><p><strong>Alternative Forms of Token Distributions</strong></p><p>Over the past year, ICOs have come under the scrutiny of regulators from all around the world. This has raised serious concerns about the legality of ICOs, as project founders may have failed to comply with the applicable securities legislations.</p><p>Despite the evolving regulatory landscape, the sums raised via ICOs have carried on increasing in 2018 (compared to 2017). Nevertheless, many industry participants have lost confidence in this fundraising method after facing countless scams, projects with no track record, opaque information and the lack of a minimum viable product (MVP). As a result of these diverse tensions, a number of alternative token distribution mechanisms for DLT projects have started to gain traction.</p><p><em>Airdrops</em></p><p>In an airdrop, tokens are distributed directly to users without them having to contribute funds in exchange. This is typically done by allowing users to register their Bitcoin or Ethereum addresses on the project’s website in order to receive a fixed amount of the project’s tokens. Alternatively, some projects require users to perform certain actions before they are able to receive the new tokens, such as registering on the project’s Telegram group.</p><p>Given that the token issuers do not raise any funds in this process, the risk for opportunism and scams is far lower with airdrops than with ICOs. Users who receive tokens via an airdrop still have an incentive for the project to succeed, as they can expect the price of the tokens to grow as the demand associated with the project increases. Others may be interested in the utility of the tokens and may plan to use these once the project becomes functional.</p><p><em>The SAFT</em></p><p>The Simple Agreement for Future Tokens (SAFT) was developed by CoinList, a token sale platform that whitelisted projects can use to raise funds. The purpose of the SAFT is to allow a project to raise funds without having to distribute tokens at this initial stage. Instead, the tokens will be distributed at a future point in time. This is usually once the platform becomes reasonably functional. At this point, it is believed that the investors will gain the ability to sell the tokens received without breaching the applicable securities legislation.</p><p>The SAFT draws inspiration from Y Combinator’s <a href="https://www.ycombinator.com/documents/">Simple Agreement for Future Equity</a> (SAFE), which is frequently used by seed round investors. The SAFT itself is treated as a security under US law, which is why exemptions are relied on to avoid complying with the onerous regulations that apply to the sale of securities to the public. As such, CoinList restricts the use of the SAFT on their platform to accredited investors, which are exempt for these purposes. However, other projects such as <a href="https://medium.com/@Wefunder">WeFunder</a> have used their own SAFT that allows a limited number of non-accredited investors to participate, relying instead on a different <a href="https://medium.com/cryptos-today/icos-and-the-saft-why-what-and-how-9dee58cc0059">regulatory exemption</a>.</p><p>The usefulness of the SAFT as a means of achieving regulatory compliance has been questioned by <a href="https://cardozo.yu.edu/sites/default/files/Cardozo%20Blockchain%20Project%20-%20Not%20So%20Fast%20-%20SAFT%20Response_final.pdf">legal scholars</a>. The regulators have not yet pronounced themselves on this topic, though the amount of capital that is being raised privately by using SAFT is on the rise.</p><p>Note: a similar concept, known as the <a href="https://blog.colony.io/a-simple-agreement-for-future-tokens-or-equity-b8ef08608347">SAFTE</a>, was developed earlier by Jack du Rose from Colony.</p><p><strong>Alternative Consensus Mechanisms</strong></p><p>In the realm of DLT networks, concerns have been raised about the vast amounts of electricity that PoW systems consume. For instance, Bitcoin is said to currently consume as much electricity per year as <a href="https://digiconomist.net/bitcoin-energy-consumption">Chile</a>. <a href="https://hackernoon.com/the-bitcoin-vs-visa-electricity-consumption-fallacy-8cf194987a50">Some</a> debate the accuracy of these comparisons and argue that the banking system consumes far more electricity than Bitcoin. However, the banking system serves billions of people and allows a wide variety of financial services to be offered beyond the processing of payments.</p><p>In addition, we learned in <a href="https://medium.com/uinspire/uinspire-blockchain-course-lesson-2-the-bitcoin-revolution-a0d522e1c593">Lesson 2</a> that PoW systems have proven unable to effectively combat centralisation. In Bitcoin, a small number of mining pools dominate the block production process. Ethereum introduced an algorithm that prevents those who purchase specialised mining hardware from gaining an advantage, though significant levels of concentration can still be observed. There is still some heated debate in this regard, with recent <a href="https://media.consensys.net/are-miners-centralized-a-look-into-mining-pools-b594425411dc">research</a> suggesting that the networks may be less centralised than initially apparent.</p><p>In addition to these concerns, it appears that PoW is inherently hard to scale. We saw in <a href="https://medium.com/uinspire/uinspire-blockchain-course-lesson-2-the-bitcoin-revolution-a0d522e1c593">Lesson 2</a> and <a href="https://medium.com/uinspire/uinspire-blockchain-course-lesson-3-unlocking-smart-contracts-ethereum-122bfd4f6dc2">Lesson 3</a> that the throughput of Bitcoin and Ethereum is capped (at approximately 7 TPS and 14 TPS respectively). As a result of these issues, much emphasis is currently being placed on finding a more scalable consensus mechanism.</p><p>NB: miners (and mining) are terms that are typically associated with PoW networks. The umbrella term that can be used across different consensus algorithms is block producers. The term block validators is sometimes used in this context too. However, this can be confusing as every node in the network is usually in charge of validating new blocks (as opposed to producing them).</p><p><em>Proof-of-Stake</em></p><p>Used by: Peercoin, Cardano, Ethereum (soon)</p><p>Proof-of-stake (PoS) is a consensus mechanism that has recently become popular amongst DLT networks. In a PoS system, nodes can stake (i.e. lock up temporarily) the network’s native currency in exchange for the chance to produce a new block of transactions. There are several variants of PoS algorithms, though a node with X% of the total staked tokens will generally have X% chance of producing the next block.</p><p>It is often argued that PoS systems are better at combatting decentralisation, as it is usually more expensive to collect X% of the network’s currency than it is to amass X% of the total hashrate. However, much depends on how the network’s currency is initially distributed. Critics have also observed that PoS systems will favour wealthy users, though the same can be said about PoW in practice.</p><p><em>Delegated Proof-of-Stake</em></p><p>Used by: Steemit, Bitshares, Lisk, EOS</p><p><a href="https://hackernoon.com/explain-delegated-proof-of-stake-like-im-5-888b2a74897d">Delegated Proof-of-Stake</a> (DPoS) was invented by <a href="https://steemit.com/dpos/@dantheman/dpos-consensus-algorithm-this-missing-white-paper">Dan Larimer</a> and differs from PoS significantly. In DPoS systems, tokenholders vote to elect delegates that will serve as the network’s block producers. The number of block producers in a DPoS system is fixed and can range between 21 (as in EOS) and 101 (as in Lisk). This allows the delegates to organise themselves effectively and create designated time slots for each block producer to publish a new block. If a delegate continuously miss their slot or act maliciously, tokenholders will be able to vote for a new block producer to take that delegate’s position.</p><p>Some have criticised DPoS by arguing that the consensus mechanism is centralised in nature. However, centralisation will not necessarily be an issue in circumstances where those who have special administrative powers can be replaced easily if they misbehave or underperform. In other words, contestability (the ability to replace delegates or agents) can help to manage centralisation and prevent abuses from taking place, while still leaving room for scalability.</p><p><em>Federated Byzantine Agreement</em></p><p>Used by Ripple (permissioned) Stellar (unpermissioned)</p><p>In a <a href="https://towardsdatascience.com/federated-byzantine-agreement-24ec57bf36e0">Federated Byzantine Agreement</a> (FBA) system, a minimum fraction of nodes (the quorum) is required in order to achieve overall consensus. However, nodes can choose to trust only a limited number of other nodes, thereby achieving consensus within the relevant “quorum slice”. For instance, Node A can choose to trust a new set of transactions only if Node B and Node C both agree on the new transactions. These quorum slices should have some level of overlap with others, allowing overall consensus to emerge.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pvebX5v40o8ie7aJBz0orA.png" /><figcaption>Quorum slices (groups of trusting nodes) can intersect to meet the prescribed quorum for overall consensus. Source: <a href="https://towardsdatascience.com/federated-byzantine-agreement-24ec57bf36e0">Ray</a></figcaption></figure><p>Note: when quorum slices do not intersect, the system ends up with disjoint quorums. This is undesirable as it slows down and undermines the overall consensus.</p><p><strong>New DLT structures</strong></p><p>In Lesson 1, we learned that blockchain (in the narrow sense of the word) simply refers to a type of data structure. Other DLT structures have recently gained popularity to to deal with the scalability issue that is associated with blockchain (and the associated consensus algorithms). Most of these structures take the form of a <strong>Directed Acyclic Graph (DAG)</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*XqaSbZ7uwfaAnNAd5APR7g.png" /></figure><p>A DAG is a unidirectional data structure composed of a collection of vertices (squares) that are connected to each other by edges (arrows). In the context of DLT, the vertices represent transactions that have been added to the network’s ledger. The DAG model allows a transactional history to emerge as new transactions build on top of previous ones.</p><p><em>The tangle</em></p><p>The IOTA network uses a type of DAG structure called “<a href="https://blog.iota.org/the-tangle-an-illustrated-introduction-4d5eae6fe8d4">the tangle</a>”, in which a user has to approve two previous transactions before it can append a new transaction to the ledger. In theory, this network should have no transaction fees or processing delays, as there is no need to wait for transactions to be packaged into blocks. Instead, when users send new transactions to the network, they are at the same time confirming earlier transactions. As a result, IOTA offers support for micropayments and is thereby well-suited to the <a href="https://cointelegraph.com/news/internet-of-things-and-blockchain-technology-how-does-it-work">internet of things</a> (IoT) and the <a href="https://medium.com/bitcoin-center-korea/iota-the-catalyst-for-a-powerful-machine-to-machine-economy-aaecea7b1255">machine-to-machine</a> (M2M) economy.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6e-1ofvy3HdnLzW4cJYiig.png" /><figcaption>Source: <a href="https://assets.ctfassets.net/r1dr6vzfxhev/2t4uxvsIqk0EUau6g2sw0g/45eae33637ca92f85dd9f4a3a218e1ec/iota1_4_3.pdf">IOTA Whitepaper</a></figcaption></figure><p>However, it is too soon to tell whether IOTA is free from vulnerabilities or if it will be able to withstand cartel attacks. At the current stage of development, the IOTA network relies on a single node with special powers to reach consensus (The Coordinator), which is controlled by the IOTA Foundation. Every 2 minutes, The Coordinator sends a milestone transaction and all of the transactions that it links back to are considered to be confirmed. The IOTA team argues this centralised solution is necessary to protect the network during the early stages of development. An analogy can be drawn with Satoshi’s early mining in the Bitcoin network, which helped to make the network robust at the start. It is currently not known when the network will be robust enough to thrive without The Coordinator. <a href="https://medium.com/@ercwl/iota-is-centralized-6289246e7b4d">Some</a> have even argued (with admittedly little evidence) that the network will never be able to support itself without The Coordinator.</p><p><em>Hashgraph</em></p><p>Hashgraph is a DAG-based structure that was created by <a href="http://sammantics.com/blog/2016/7/27/hashgraph-consensus">Leemon Baird</a> from Swirlds in 2016. In the Hashgraph data structure, transactions are <em>stored</em> and <em>transmitted</em> in data packages called “events”, as opposed to blocks.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qNATgkBjPP8YQa9QTc5nKQ.png" /><figcaption>Source: <a href="https://medium.com/ibbc-io/hashgraph-for-dummies-90ddde3be9e2">Rb</a></figcaption></figure><p>In blockchain-based networks, the consensus mechanism selects a node to create a new block of transactions. However, in Hashgraph all of the networked nodes communicate the latest state of their information to each other. In addition, their communications are communicated to arrive at a graph of exchanged communications that looks as follows.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*xYsb1Ttz3XEJX8Rl2jP8pw.png" /><figcaption>Source: <a href="https://medium.com/ibbc-io/hashgraph-for-dummies-90ddde3be9e2">Rb</a></figcaption></figure><p>Hashgraph’s consensus mechanism, known as <a href="https://medium.com/@eburgwedel/hedera-hashgraph-and-a-few-thoughts-on-the-future-of-distributed-ledgers-648e9eefb901"><strong>Gossip about Gossip</strong></a>, is closely connected to the structure of this DAG. Standard Gossip protocols are used in all DLT networks to spread the news about transactional information. However, an additional consensus mechanism is required to establish an order of legitimate transactions.</p><p>In contrast, Gossip about Gossip goes one step further and enables nodes to communicate <em>when</em> and <em>from whom</em> they received new transactional information. This means that everyone knows exactly what everyone else knows. As such, Gossip about Gossip allows the nodes to reach consensus by simply examining the information that other nodes have relayed.</p><p>Thanks to the Gossip about Gossip algorithm, Hashgraph is highly scalable (limited only to the speed of the internet connection) and is thought to support up to 250,000 TPS in a permissioned environment. It is also computationally light and allows the chronological order of the transactions to be documented and guaranteed. This last point means that Hashgraph is the first asynchronous Byzantine Fault Tolerant (aBFT) system to be developed without compromising on scalability.</p><p>Hashgraph is patented by Leemon Baird and was initially designed to be implemented in permissioned networks. However, <a href="https://medium.com/@eburgwedel/hedera-hashgraph-and-a-few-thoughts-on-the-future-of-distributed-ledgers-648e9eefb901">Hedera</a> is the first public implementation of the Hashgraph data structure and the associated Gossip About Gossip consensus algorithm. In Hedera, users must pay transaction fees to nodes that process transactions, with 10% of the transaction fees going to Swirlds.</p><p>Hedera’s code is open review (as opposed to open source), which means that users may examine this and make suggestions, but may not use the code without a licence from Swirlds (except to build a wallet). In turn, the code can only be altered by agreement of the Hedera Governing Council, a group of 39 leading companies (with certain competing interests) that span 18 diverse industries and 6 continents. While software forks may still arise, nodes are encouraged to update their software to prevent their contributions from being deemed illegitimate.</p><p>Note: in the public implementation of Hashgraph, a Proxied Proof-of-Stake (PPoS) consensus mechanism will be used to reinforce Gossip about Gossip to prevent DDoS attacks. PPoS is a variant of DPoS where nodes can stake tokens against a specific node to increase that nodes weight in the voting process. Nodes in Hedera get paid interest in accordance with their accumulated stake, though they must share a proportion of their interest with those that staked on them.</p><p><em>Block-lattice</em></p><p>To make things even crazier, Nano came up with the block-lattice data structure, which is a hybrid of the blockchain and DAG structures.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6an_52c3FMzaGwBhau9naQ.jpeg" /></figure><p>Each account on Nano has its own blockchain, called an <strong>account-chain</strong>. Importantly, each account owner is in charge of updating their own account.</p><p>Note that light proof-of-work is used in IOTA and Nano when updating an account-chain to prevent DoS attacks (e.g. spam), as originally envisioned by the creators of this algorithm.</p><p><strong>Conclusion</strong></p><p>Congratulations on making it through! In this Lesson, we explored how the interconnectivity of DApps can help to give rise to the Distributed Economy. We also examined alternative forms of distributing tokens, various consensus mechanisms and novel DLT structures. Join our <a href="http://t.me/uinspire_academy">Telegram</a> group for more developments :)</p><p><strong>Consolidation exercises</strong></p><ol><li>Examine some of the airdrops that are currently live and take a look at what the requirements are in order to receive tokens</li></ol><p><a href="https://airdropalert.com/">Airdrop Alert | The Best Crypto Airdrops since 2017</a></p><p>2. Explore CoinList’s SAFT agreement, which is available at the link below</p><p><a href="https://saftproject.com/">The SAFT Project</a></p><p><strong>Extend your knowledge</strong></p><ul><li><a href="https://hackernoon.com/a-hitchhikers-guide-to-consensus-algorithms-d81aae3eb0e3">A Hitchhiker&#39;s Guide to Consensus Algorithms</a></li><li><a href="https://medium.com/@preethikasireddy/fundamental-challenges-with-public-blockchains-253c800e9428">Fundamental challenges with public blockchains</a></li><li><a href="https://hackernoon.com/blockchains-dont-scale-not-today-at-least-but-there-s-hope-2cb43946551a">Blockchains don’t scale. Not today, at least. But there’s hope.</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=eefc4ecf5192" width="1" height="1" alt=""><hr><p><a href="https://medium.com/uinspire/uinspire-blockchain-course-lesson-5-the-future-of-distributed-ledger-technology-eefc4ecf5192">Uinspire Blockchain Course {Lesson 5: The Future of Distributed Ledger Technology}</a> was originally published in <a href="https://medium.com/uinspire">Uinspire</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Uinspire Blockchain Course: {Lesson 4: Demystifying ICOs, DApps and DAOs}]]></title>
            <link>https://medium.com/uinspire/uinspire-blockchain-course-lesson-4-demystifying-icos-dapps-and-daos-c36208841899?source=rss-6462730863d2------2</link>
            <guid isPermaLink="false">https://medium.com/p/c36208841899</guid>
            <category><![CDATA[blockchain]]></category>
            <dc:creator><![CDATA[Alfonso Delgado]]></dc:creator>
            <pubDate>Mon, 21 May 2018 20:42:19 GMT</pubDate>
            <atom:updated>2018-05-22T14:50:21.363Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fsehya6aXUMbpQax4VGbog.png" /></figure><p>In <a href="https://medium.com/uinspire/uinspire-blockchain-course-lesson-3-unlocking-smart-contracts-ethereum-122bfd4f6dc2">Lesson 3</a> we learned that Ethereum is a general purpose DLT network that allows users to create smart contracts. In the Ethereum network, a smart contract is simply a program that has an ether balance and an internal storage. Users can interact with the smart contract to read or write to the smart contract’s internal state. While Bitcoin enables users to create smart contracts with limited functionality, Ethereum offers support for Turing-complete programming languages. This means that there is no limit to the computational logic that can be embedded within a smart contract.</p><p>In this Lesson, we examine how smart contracts can serve as the backbone for several powerful use cases. In particular, smart contracts are able to govern a set of ongoing virtual relations between a subset of network users. This Lesson focuses on distributed applications (DApps), distributed autonomous organisations (DAOs) and initial coin offerings (ICOs).</p><p><strong>Distributed applications (DApps)</strong></p><p>A <a href="https://www.cbronline.com/answer/dapp-explainer">DApp</a> is a distributed (or decentralised) application that runs its back-end code on a distributed ledger network. This is achieved by storing the code within a smart contract, which can then be linked to a website or mobile phone app to provide a more user-friendly experience. There are a number of general use cases that DApps can empower. For instance, a DApp may allow its users to exchange services or goods on a peer-to-peer basis and benefit from the automation of payments. Other DApps store users’ data on the blockchain to provide an auditable trail of activities. In contrast to traditional applications, DApps can be designed to be censorship-resistant and prevent a single point of failure or attack.</p><p>DApps have their own protocols, meaning that they are governed by the particular set of rules that have been specified in the smart contract. The protocol may also require specific tokens to perform actions within the DApp. As a result of the network effect, tokens linked to a particular protocol will become more valuable as the number of users of the associated network grows.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/749/1*Pg5X0c-VRjRMcIW2Z--IHg.png" /></figure><p>The following examples of DApps may help new blockchain projects and established companies to understand how tokens can be integrated into their product offering. The DApps selected are all linked to the Ethereum network, which thanks to its generalised protocol has current positioned itself as the main hub for DApps. In addition, Ethereum’s ERC20 token standard has facilitated the process of creating tokens that are compatible with wallets, exchanges and other DApps in Ethereum’s ecosystem.</p><ul><li>Storj: a decentralised cloud storage start-up that allows users (“farmers”) to offer their spare storage space through DApp.132 These farmers can then receive Storjcoins (STORJ) from other users who wish to upload their files into the collective storage space. These files are automatically encrypted and divided into many pieces, which are then spread across the computers in the network. Storj.io presents itself as a P2P alternative to centralised cloud storage platforms, such as those offered Google, Amazon and Dropbox.</li><li>Augur: this decentralised prediction market provides a good illustration of how different protocols (and tokens) can play an instrumental role within an DApp. Augur relies on the “wisdom of the crowd” to obtain more accurate outcome predictions. People from around the world can instantly create a market on their topic of choice, such as an upcoming national election. Other users can then place bets by buying shares in one of the event’s potential outcome. This first set of activities is facilitated by Augur’s exchange protocol. This protocol allows users to send ether to one of the DApp’s smart contracts, which will then redistribute the ether to those who predicted a given outcome correctly. In addition, Augur relies on a second protocol that lays down rules and procedures for users to report on the actual outcome of an event after it has taken place. In accordance with this reporting protocol, users who communicate the correct outcome will receive DApp-specific reputation tokens (REP), while those who provide inaccurate information will lose REP tokens.</li><li>Slock.it: this is the team that helped to launch The DAO, though the founders had previously started working on a solution that combines smart property and blockchain technology. The projects aims to allow DApp users to create smart contracts on the Ethereum network that register the ownership of a Slock (smart lock). For instance, a DApp user can attach a Slock to their bicycle. Thereafter, other users would be able to send ether to the relevant smart contract address, which would forward the Ether to the bicycle owner and unlock the Slock for a certain time period (depending on the amount of ether sent).</li></ul><p><strong>Should DApps have their own tokens?</strong></p><p>The Slock.it project evidences that DApps do not necessarily require a unique set of tokens to be generated. Some community members have argued that, in many cases, DApp tokens are not necessary and that economic frictions arise when they are converted into native tokens or vice versa. On the other hand, a range of benefits can also be ascribed to DApp tokens:</p><ul><li><em>Price separation:</em> a blockchain networks’ distributed ledger records the ownership of both native tokens and DApp tokens running on top of that network. In the case of Ethereum, ether will be used as gas to run the smart contracts underpinning a DApp. Despite this relationship, the price (and value) of DApp tokens is not directly linked to that of the ether. Instead, the price of a DApp’s tokens will be based on the demand for that DApp’s services and the utility of the unique set of tokens. This separation does have its limits, since we would expect the price of a DApp’s tokens to fall if the price of the underlying network’s native tokens plummets, endangering the value and stability of the network as a whole.</li><li><em>Incentive alignment:</em> tokens help to align the incentives of developers, tokenholders and future users with the end goal of helping the project succeed.137 In this order, developers can conduct an ICO to receive compensation for coding and promoting a DApp. The initial investors and backers receive tokens in proportion to the funds contributed. If these tokens are functional, tokenholders will be encouraged to support the project by informing other people about its goals and helping to make improvements. This is rationalised by the notion of network effects, where we can expect the value of functional token to increase in parallel to the number of DApp users, given that the supply of tokens is limited.</li><li><em>Microgovernance rights:</em> DApp users can benefit from having a governance system within their own community, separate from that which operates at the “macro level” across the entire blockchain network. Tokens can facilitate this form of microgovernance (or subgovernance) by providing tokenholders with voting rights in relation to a variety of key issues, such as fund allocation and the approval of new features. We can picture the blockchain network as a distributed economy that has its own currency and regulations that govern the relationship between all of its members. In turn, DApps are businesses that comply with these regulations but may have their own financial instruments and by-laws. Further, a DApp’s reliance on the blockchain network’s governance mechanism cannot be completely eliminated. For example, a significant number of miners could collectively agree to alter or distort the record of tokens owned by DApp users, as was the case with The DAO.</li><li><em>Micromonetary policy:</em> users may be able to dynamically manage the supply of DApp tokens or to create their own inflation/deflation mechanism. Apart from controlling inflation, users can vote on whether the token supply should be increased, for instance to raise further funds. Additionally, token reserves can be used to stabilise token prices, while buy-backs provide a guaranteed exit for unsatisfied tokenholders.</li></ul><p><strong>Initial Coin Offerings</strong></p><p>An Initial Coin Offering (ICO) is a form of financing in which a company or group of individuals offer tokens (or coins) that reside within a DLT network to members of the public. The act of generating and offering tokens to the public is also referred to as a crowdsale, token sale or Token Generation Event (TGE).</p><p>ICOs can be regarded as an application of the crowdfunding process to DLT networks. Generally, the funds raised will be used to build a new DLT network or to develop a distributed application that runs on top of such a network. ICOs are increasingly being used to fund a wide range of projects. For instance, music artist <a href="https://www.magneticmag.com/2017/11/gramatik-launches-grmtk-cryptocurrency-token-valued-at-9-million/">Gramatik</a> conducted an ICO to fund a new project that raised $9 million.</p><p>An ICO event takes place over a predefined period of time, typically a month or longer, during which members of the public are able to purchase a new set of tokens in exchange for established cryptocurrencies like bitcoin or ether. The ICO process is governed by a smart contract (or a group of them). This smart contract will generate a new set of tokens that run <a href="https://coincenter.org/entry/what-does-it-mean-to-issue-a-token-on-top-of-ethereum">on top</a> of a DLT network. When a contributor sends funds to the smart contract’s address, the smart contract will transfer the ownership of this new set of tokens to the sender’s address. In addition, the smart contract will track in its internal storage the addresses of the current tokenholders.</p><p>ICOs tend to have a minimum threshold for funding — if this threshold is not met by the end of the funding period, the smart contract will return all the contributions received to the original senders. The funds raised in a successful ICO event are used to compensate token issuers (the project’s founders) for the expenses incurred in setting up the project and for the work that remains to be done before this is fully-functioning. In exchange, contributors are able to contribute towards a project that they want to support or expect to become profitable in the future.</p><p>Whilst tokens can perform a variety of functions, their value tends to be linked to the performance and prospects of the project, along with its number of users and general speculation. As part of an ICO, issuers may enter into an agreement with a cryptocurrency exchange to list the new tokens. The creation of a secondary market enhances the liquidity of the tokens, enabling investors to exchange these tokens for other cryptocurrencies or fiat money.</p><p><strong>The current ICO landscape</strong></p><p>The first project to launch an ICO was Mastercoin in 2013, which at the time managed to raise $5 million worth of BTC. Over the next three years, the ICOs of Ethereum and The DAO took place, with each of these projects raising a significantly larger sum than its predecessors (see the graph below). In total, the amount raised between 2013 and 2016 by way of ICOs exceeded $270 million.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SBS0Nd8PgyB-bf7HmGC83w.png" /><figcaption><a href="https://www.coindesk.com/research/state-blockchain-2018/">CoinDesk, State of Blockchain 2018</a></figcaption></figure><p>2017 was a record-breaking level of activity, with over $3.5 billion raised via ICOs. Concerns have been raised about the speculative nature of blockchain investments, with many drawing comparisons to the 1997–2001 Dotcom bubble.</p><p>At the expense of an expeditious and accessible funding process with low transactions costs come a number of important deficiencies. ICOs have been criticised for the lack of transparency involved in the funding process, the presence of opportunism on founders’ behalf, and investors’ inability to seek redress for fraudulent or self-interested behaviour. As a result, there have been calls for self-regulation, with members from the blockchain community emphasising the need to embrace best practices and encourage the responsible disclosure of information. In view of these issues, regulators in different countries have also started to shift their attention towards ICOs.77 In the present circumstances, an examination of the challenges that ICOs face and the tools available to address them is of paramount importance in shaping a sustainable ICO practice for future years.</p><p><strong>Comparing ICOs to other fundraising methods</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KmwqQqSNdJdAGMXMAH2RUg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YwngdbNvu0mC7IHsBfXF0g.png" /></figure><p>The differences between ICOs and IPOs have led community members to argue that the former term is misleading, since ICOs involve no transfer of shares and their legal status is unclear. Further, the term “ICO” is sometimes used when tokens have already been offered to the public, so that the subsequent sale cannot properly be described as “initial”. Though the terms token sale or token generation event (TGE) are broader and more accurate, “ICO” remains the more widely used term.</p><p><strong>Other ways of issuing tokens: forks</strong></p><p>Bitcoin (BTC) was the first token to be created, with both transfers of bitcoins and newly created bitcoins (used to reward for miners) being recorded in the network’s blockchain. Many of the tokens that followed Bitcoin’s lead were created through a process known as forking. Forking is often misunderstood since it has two separate meanings in the context of blockchain:</p><ol><li><strong>Software fork</strong>: forking generally refers to the process of modifying a software’s code in order to launch a customised version of that software. A software fork may alter the policy and/or consensus rules embedded in the software. Policy rules are variables that an individual can alter without breaking compatibility with the network. For example, miners can customise their own software to only validate transactions with high fees attached. In contrast, the consensus rules are aspects of the software that must remain unchanged for other nodes to recognise a user’s contributions as legitimate, since they form an integral part of the network’s protocol (its DNA). In particular, these rules outline how transactions are validated and assembled into the network’s distributed ledger. Alterations to the consensus rules can be (i) forward and backward compatible [<strong>soft fork</strong>]; (ii) only backward compatible [<strong>hard fork]</strong> or (iii) neither, when a new network is launched from scratch [<strong>altcoin fork</strong>].</li><li><strong>Ledger fork</strong>: this refers to temporary deviations from the main chain caused by divergent views about the record or order of transactions.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/843/1*uwk91y_9IT7Wg-FuyIvF3g.png" /></figure><p>In the diagram above, each colour represents a unique protocol with its own set of consensus rules. Changes to a network’s consensus mechanism are therefore depicted in a different colour. In turn, token symbols symbolise a network’s initial software, embodying the first set of consensus rules that were implemented in that network. The four main types of forks that can be carried out are:</p><ul><li><strong>Soft fork (SF)</strong>: this takes place when a forward (and backward) compatible change is made to a network’s protocol. Users agree to undertake a soft fork by stating or signalling their intention to use the updated software.87 An example of a soft fork is Bitcoin’s SegWit update, which removes the requirement to include certain non-transactional data within blocks by making it optional. Given that blocks in the Bitcoin network have a size limit of 1MB, the objective is to leave more room for transactions within each block. The SegWit update constitutes a soft fork since new blocks mined with the unupdated software would still be recognised as legitimate by the forked software.</li><li><strong>Hard fork (HF):</strong> this occurs when users alter the network’s protocol in a way that is only backward compatible. As such, non-unanimous hard forks may lead to the creation of two separate blockchains. Ethereum Classic and Bitcoin Cash are examples of tokens that were created via a hard fork.</li><li><strong>Altcoin fork (AF):</strong> when developers take a copy of a pre-existing network’s initial software and modify certain parameters to launch a new network (with its own protocol). The modified software is neither backward not forward compatible, but can be used by those who wish to join the new network. Since Bitcoin’s code is open source (freely available), developers can create “altcoin” networks with features derived from the software. For instance, Bitcoin’s software was forked by Litecoin (directly) and Dogecoin (indirectly).</li><li><strong>Ledger fork: </strong>the chain will show temporary splits (or forks) where two miners create a valid block at a similar time. The network is designed to resolve these splits so that only one of the blocks is built upon and becomes part of the main chain. For instance, miners may decide to build on whichever block is transmitted to them first, with the result that one chain will soon become longer than the other. Since miners are incentivised to build on the main (or “longest”) chain, these stale blocks (SB) will be left behind and forgotten.</li></ul><p><strong>The DAO</strong></p><p>The first large scale project to launch on the Ethereum network was “The DAO”, a distributed venture capital firm that embedded its bylaws in smart contract code. In 2016, the project raised over $160 million in ether (at the time) by conducting an ICO. In this ICO, contributors sent ether to a smart contract on Ethereum and received a proportional amount of DAO tokens in exchange. The ICO allowed The DAO to raise funds and distribute its tokens in an expeditious process that did not rely on financial intermediaries. The ether raised was to be invested in other DLT-based projects in accordance with the wishes of DAO tokenholders, as no directors or employees were said to be involved.</p><p>Shortly after the ICO took place, an unknown attacker was able to siphon off over $50 million (in ether) by exploiting a bug in The DAO’s code. This event gave rise to widespread controversy, with the result that a hard fork was eventually proposed by the Ethereum Foundation to address the exploit. The contentious hard fork would update Ethereum’s protocol by introducing a new rule to retrospectively invalidate the attacker’s removal of funds. While the hard fork was approved by the vast majority of ether holders, it was resisted by certain users who believed that it would undermine the terms and ethos of The DAO.</p><p>Given that The DAO’s website had indicated that the organisation would be governed by the principle of “code is law”, the opposition argued that the attacker had breached no rules in using features of the code to its advantage. As a result of this opposition, the network was split into two chains after the fork, each with their own cryptocurrency. Ethereum (ETC) was represented by the majority of the users, who accepted the proposed hard fork by updating their software. In contrast, Ethereum Classic (ETC) was formed by those nodes who continued to mine new blocks without adopting the revised protocol. This case study highlights the potential of smart contracts to give rise to novel forms of organisation and fundraising. At the same time, it indicates that caution must be exercised when dealing with smart contracts, as this is not yet a mature technology.</p><p><strong>Conclusion</strong></p><p>In this Lesson, we learned about various applications that are driven by smart contracts. DApps are distributed application that use smart contracts to govern the relationship between a subset of network users. In addition, they use smart contracts to run computations and store data on the network’s ledger. In turn, ICOs allow a project’s founders to issue a new set of tokens to members of the public and to use the proceeds of the sale to fund the development of their project. A DAO is an organisation that has its bylaws encoded in a smart contract and can be run without any employees. While smart contracts are powerful, caution must be exercised when dealing with what is still a nascent technology.</p><p><strong>Consolidation exercises</strong></p><ol><li>Visit State Of The DApps to browse a large number of projects that have been built on Ethereum.</li></ol><p><a href="https://www.stateofthedapps.com/">State of the DApps - A list of 3,734 blockchain apps for Ethereum, Hive, EOS, and more</a></p><p><strong>Extend your knowledge</strong></p><p><a href="https://coincenter.org/entry/what-does-it-mean-to-issue-a-token-on-top-of-ethereum">What does it mean to issue a token &quot;on top of&quot; Ethereum? | Coin Center</a></p><p><em>We are currently working on expanding this section. Please feel free to add suggested reading materials!</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c36208841899" width="1" height="1" alt=""><hr><p><a href="https://medium.com/uinspire/uinspire-blockchain-course-lesson-4-demystifying-icos-dapps-and-daos-c36208841899">Uinspire Blockchain Course: {Lesson 4: Demystifying ICOs, DApps and DAOs}</a> was originally published in <a href="https://medium.com/uinspire">Uinspire</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Uinspire Blockchain Course {Lesson 3: Unlocking smart contracts — Ethereum}]]></title>
            <link>https://medium.com/uinspire/uinspire-blockchain-course-lesson-3-unlocking-smart-contracts-ethereum-122bfd4f6dc2?source=rss-6462730863d2------2</link>
            <guid isPermaLink="false">https://medium.com/p/122bfd4f6dc2</guid>
            <category><![CDATA[blockchain]]></category>
            <dc:creator><![CDATA[Alfonso Delgado]]></dc:creator>
            <pubDate>Tue, 24 Apr 2018 10:14:09 GMT</pubDate>
            <atom:updated>2018-04-30T00:20:08.344Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UiCJx-6u9tXCyR1Z1xQHUw.png" /></figure><p>In <a href="https://medium.com/uinspire/uinspire-blockchain-course-lesson-2-the-bitcoin-revolution-a0d522e1c593">Lesson 2</a>, we learned that Bitcoin consists of a peer-to-peer payment system with an in-built virtual currency (BTC). A user can transfer the ownership of BTC by sending a transaction to the network and waiting for this to be confirmed, which will take place once the transaction is included in a new valid block. BTC is valuable because (i) it is limited in supply; (ii) it can be sent globally; (iii) transactions tend to be fast and cheap; and (iv) coins cannot be issued or spent without authorisation.</p><p>In this Lesson, we explore how the Ethereum network differs from Bitcoin. We also examine the nature of smart contracts and discuss the role that they play in the Ethereum network. As we go along, we will build on the technical concepts discussed in the previous <a href="http://medium.com/uinspire">Lessons</a> — make sure you check those out!</p><p><strong>Between Bitcoin and Ethereum</strong></p><p>Bitcoin is an <a href="https://coincenter.org/entry/what-is-open-source-and-why-is-it-important-for-cryptocurrency-and-open-blockchain-projects">open source</a> project, which means that users can audit the <a href="https://github.com/bitcoin/bitcoin">code base</a> that fuels the Bitcoin protocol and network. This transparency allows developers to verify the technical elements of the network and to flag up any vulnerabilities. At the same time, developers can copy Bitcoin’s code base and make some alterations to launch their own peer-to-peer payment networks. For instance, the team behind Litecoin decided to reduce the block-creation interval to 2.5 minutes and to create a native currency (LTC). Dogecoin is another Bitcoin-derived network that has its own native currency (DOGE). While this network was initially created as a joke, it has attracted a loyal following and is now valued at <a href="https://coinmarketcap.com/currencies/dogecoin/">$461 million</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*dzgxSpYzDcF_geC6p-e6zw.jpeg" /><figcaption>We encourage you to watch the video in the <a href="http://dogecoin.com/">Dogecoin</a> website. Share your thoughts on our <a href="http://t.me/uinspire_academy">Telegram</a> group</figcaption></figure><p>Within Bitcoin itself, users devised ways to transact with assets beyond BTC without having to change its code base. A popular way of achieving this involved “colouring” a particular set of coins (UTXOs) by embedding some metadata within a transaction. These <strong>coloured coins</strong> could be made to represent some right (e.g. access to a subscription service), another digital asset (e.g. an alternative cryptocurrency), or a real-world object (e.g. a share). By accessing the relevant coloured coin wallet, users could transfer and track the ownership of the coloured coins. This allowed users to take advantage of Bitcoin’s distributed infrastructure and robust consensus mechanism while using non-BTC assets. However, it meant that trust had to be placed on an external institution (and wallet software) to recognise the <a href="https://medium.com/tezos/making-sense-of-colored-coins-c0a9e3459b1e">legitimacy</a> of these coins, as the Bitcoin protocol does not recognise this metadata.</p><p>In the years that followed Bitcoin’s launch, many DLT networks were built from the ground up to offer support for services beyond processing payments. These include public networks like Nxt and Bitshares (decentralised exchanges) and permissioned networks like RippleNet (settlement of interbank transfers). However, each of these networks specialises in providing a particular service, which means that there is no one-shop-stop for users who wish to consume distributed services. To upgrade this set of features, the consent of most of the network participants will be needed, which can make the process of expanding the range of use cases very difficult.</p><p><strong>The Ethereum network</strong></p><p>Having been active in the Bitcoin community for some time, Vitalik Buterin noted the inefficiencies associated with having many application-specific DLT networks. Instead, Vitalik envisioned a single network capable of supporting many different applications from the get-go. In early 2014, Vitalik produced a <a href="https://github.com/ethereum/wiki/wiki/White-Paper">whitepaper</a> outlining the inner workings of the Ethereum network, which he conceived with the sole purpose of addressing this challenge.</p><p>Following a successful crowdfunding round in 2014, the team behind Ethereum raised $15 million to work on the development of the network. Ethereum went live in 2015 and has now become the second most valuable DLT network, with a market valuation of <a href="https://coinmarketcap.com/currencies/ethereum/">$59 billion</a>. While Bitcoin still dominates the crypto-asset market, Ethereum tends to have around 3X as many transactions per day as Bitcoin. In addition, most of the other crypto-assets have been launched on top of the Ethereum network (Lesson 4). Advocates of Ethereum jokingly refer to the day in which the network will surpass Bitcoin’s market valuation as the “<a href="https://www.flippening.watch/">Flippening</a>”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*i0hkJeTGV1fXlQA2bW0i0A.jpeg" /><figcaption>Vitalik Buterin at TechCrunch Disrupt in 2017. He is currently 24 years olds and is widely regarded as a genius</figcaption></figure><p>Though Ethereum was built from the ground up to serve as a general purpose platform, it borrows a number of technical features from the Bitcoin network. For instance, it is a public DLT network that relies on the blockchain data structure to group ledger entries and uses proof-of-work as its consensus mechanism. In addition, Ethereum has an native currency called ether (ETH) that can also be used as a means of payment.</p><p>On the other hand, Ethereum does not limit itself to the transfer of ether between users. Instead, it is a general purpose platform that is capable of supporting a wide range of applications and use cases. There are a number of other consequential differences between each of these networks. For instance, Ethereum’s block-creation interval is set at approximately 15 seconds, as opposed to 10 minutes. Ethereum also uses a hashing algorithm as part of its mining process that is resilient against ASICs, though high levels of hash rate concentration can still be observed.</p><p><strong>(i) Turing-completeness &amp; smart contracts</strong></p><p>There are two features of the Ethereum ecosystem that allow it to offer support for a wide range of applications. In this section we focus on the first of these features: Ethereum’s support for <strong>Turing-complete </strong>programming languages. This feature allows users to send any arbitrary instruction to the network that is capable of being processed by a computer (given enough time and storage space). The pieces of code that are embedded into transactions by way of instructions are referred to as <strong>smart contracts</strong>.</p><p>At its core, a smart contract is simply a computer program, that is, encoded logic that processes a set of inputs to arrive at one of several predefined outputs. Users can programme smart contracts to perform calculations, store data or hold tokens in escrow until some predefined condition is met.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6EzQR7VUX9C3Wcx3ibnR1Q.png" /><figcaption>We examine the notion of state below. Source: Gendal</figcaption></figure><p><em>Example:</em> Alice programs a smart contract to send 5 ether to Bob each month, thereby creating a direct debit that does not involve an intermediating bank.</p><p>It is helpful to examine in more detail some of the common use cases for smart contracts:</p><ul><li>Creating state-contingent payments: these are payments that will only be carried out once a predetermined set of conditions is met, such as the consent of several parties (as with multi-signature signatures), the receipt of funds (as in an ICO), or the occurrence of an external event (such as a fall in a stock’s price).</li><li>Acting as a data source: smart contracts can store data to create libraries that other contracts can access. In addition, smart contracts can be prompted to forward data to other smart contracts.</li><li>Storing valuable data: users may choose to store encrypted data within a smart contract, allowing entities who hold the decryption key to access the data remotely. In addition, meta-data (such as a hashes) can be stored in a smart contract to proof that a document was in existence at a specific point in time.</li><li>Creating new tokens and digital rights: smart contracts can be used to generate new Ethereum-based tokens and to govern a set of ongoing relations between a subset of networks users (Lesson 4).</li></ul><p>Ethereum’s support for various Turing-complete programming languages stands in sharp contract to Bitcoin. The latter has an in-built language called Script that is limited in functionality by design, as it is optimised to handle simple payment instructions and aims to reduce the network’s attack surface. Nevertheless, apart from enabling the creation of coloured coins, Script does allow users to create simple forms of smart contracts. For instance, users can create an on-chain escrow mechanism, where the BTC sent are encumbered by making a multi-signature (M-of-N) transaction that requires each of the specified key-owners to authorise the expenditure of those funds.</p><p><strong>(ii) The Ethereum Virtual Machine</strong></p><p>The second feature that allows Ethereum to function as a general purpose platform is the <strong>Ethereum Virtual Machine (EVM)</strong>. Instead of running a decentralised payment system, Ethereum is using the network’s computing resources to run a decentralised world computer (the EVM). By way of analogy, we can think of the EVM as an operating system that allows users to execute various types of programs (smart contracts).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/870/1*qqGDHAD6LLw3IsqVPhZgiw.png" /></figure><p>Just as each node maintains its own copy of the ledger, each node runs its own EVM and executes instructions independently. The purpose of this is to prevent any tampering by ensuring that every node in the network registers the right output and stores the same data.</p><p><strong>Ethereum’s state richfulness</strong></p><p>DLT networks can be described as transaction-based state machines. In this context, state refers to the current allocation of data and tokens in the network. Transactions push new data into the network, thereby triggering a change of state. While each transaction has the capacity to alter the network’s state, these changes are effected periodically when a new block is confirmed. The diagram below shows the state transitions from the genesis state to the current state (n).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*u2bo41-QYZwctRaJR7uEUA.png" /><figcaption>Source: Kasireddy</figcaption></figure><p>In the context of Ethereum, it is helpful to distinguish between the global state and state of a smart contract. The global state refers to the current distribution of data and tokens at the network-wide level. In contrast, a smart contract’s state merely represents the data and tokens that the smart contract is currently storing internally. In contrast to Bitcoin, where funds can only be spent or unspent, Ethereum provides <a href="https://hackernoon.com/ethereum-turing-completeness-and-rich-statefulness-explained-e650db7fc1fb">rich statefulness</a> by supporting Turing-complete programming languages, allowing multi-stage contracts to be formed.</p><p><strong>Types of accounts</strong></p><p>Ethereum’s global state is comprised of many objects (called “accounts”) that can interact with one another through a message-passing framework. Each account has a unique address, which comprises a 20-byte alphanumeric string, and an ether balance. In turn, accounts can be subdivided into two mutually exclusive types:</p><ul><li><strong>Externally-owned accounts</strong> have an associated private key that enables its holder to send (or “fire”) transactions to other accounts.</li><li><strong>Contract accounts</strong> do not have a private key and cannot send transactions, though they may be able to interact with other accounts when prompted to do so. Apart from having an ether balance, a contract code stores executable (smart contract) code and has internal storage.</li></ul><p>When a user sends ether to another user, the transaction is merely taking place between two externally-owned accounts. To deploy a smart contract, a contract-creating transaction bearing the smart contract’s code must be sent from an externally-owned account. This transaction will also generate a contract account (with an associated address) for the code to reside in. The transaction will be packaged by a miner into a new block, and, in the process of validating that block, other nodes will register the transaction into their own versions of the ledger. This reconciliation process allows the nodes to agree on a new global state, in which the relevant smart contract is registered as deployed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*k3mGj3L-RygAuwW3KxHMOw.jpeg" /></figure><p>An important characteristic of blocks in Ethereum is that, apart from containing a list of new transactions, they contain a snapshot (in the form of a hash) of the latest state of every account. To overwrite the state of a contract account, a transaction will need to be sent from an externally-owned account to the contract account’s address. This transaction will specify in the data field the function to be called and the parameters to be inputted. However, the transaction may instruct the smart contract to send a “message” to another contract account, which would serve as an indirect way of updating a contract account’s state. Unlike transactions, messages sent between contract accounts are not serialised and only exist within the EVM.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/836/1*iyY_0TesterpN7Ckp6lefw.png" /><figcaption>Source: <a href="https://luxsci.com/blog/understanding-blockchains-part-3-ethereum-moving-beyond-bitcoin.html">LuxSci</a></figcaption></figure><p><strong>The components of a transaction</strong></p><p>The following diagram depicts the fields that can be filled within a transaction:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/797/1*CK_B8rR9qi9dbdPeEMzNzA.png" /><figcaption>Note that state transitions take place collectively in blocks. Source: Kasireddy</figcaption></figure><ul><li>The <em>nonce</em> field shows the number of transactions that have been sent from the sender’s account and seeks to prevent users from double-spending funds.</li><li>The <em>gasPrice</em> and <em>gasLimit</em> fields are used to indicate the maximum “gas” fee that the sender is willing to pay to have the transaction confirmed by a miner. The concept of gas is discussed below in further detail.</li><li><em>To</em> indicates the address of the transaction recipient. While this must be specified when transferring ether to a pre-existing account, the field is left empty in a contract-creating transaction.</li><li>The <em>value</em> field contains the amount of ether (in wei subunits) that the sender wishes to transfer to the specified account. In the case of a contract-creating transaction, the value field serves as the starting balance of theassigned contract account.</li><li>The <em>v, r, s</em> fields of a transaction are used to generate the sender’s signature.</li><li>The <em>init</em> component is only present in contract-creating transactions and is used to initialise the contract. In contrast, the <em>data</em> field is used only when sending instructions to a pre-existing contract account, for instance to call a function in the smart contract code.</li></ul><p><strong>Gas: fees for computation and storage</strong></p><p>Every single operation on the Ethereum network is executed independently by each full node on their EVM. This helps to prevent malicious actors from tampering with the execution, as nodes will be able to detect an inconsistency with their own output. As a result of this redundancy, it is generally expensive to request that computational steps be carried out or to reserve storage space. Therefore, users must pay ether (by way of gas fees) to reward miners for registering new transactions within a block and executing the embedded instructions on their EVM. Gas is also required upfront to fuel any sub-executions that occur as a result of a transaction, such as messages sent from one contract account to another.</p><p>Given that Ethereum’s programming languages allow for loops, gas also helps to address vulnerabilities related to unbounded execution or non-termination of code. The gas balance that users commit to a transaction is depleted as each small instruction (or “<strong>opcode</strong>”) is carried out sequentially. Each opcode has a fixed gas cost which varies with the complexity of the instruction. If the gas runs out before the execution is complete, the node will throw an out-of-gas exception and exit the process. Any changes made during the execution to a contract account’s state will be reverted. Further, the gas fees will be kept by the miner to compensate for the wasted work. The gas mechanism also prevents malicious users from carrying out distributed denial-of-service (DDoS) attacks, as it would be prohibitively expensive to flood the network with resource-intensive instructions.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8hfl_u6pXCjXSfa6ORtLSg.png" /></figure><p>When sending a transaction, users specify a gas limit, representing the maximum units that they are willing to pay for, and a gas price per unit. The following equation is then applied:</p><p>gasPaid = gasPrice * min(gasUsed, gasLimit)</p><p>A high gas price can be used to incentivise a miner to confirm the transaction by prioritising its inclusion within a new block.</p><p><strong>Lesson recap</strong></p><p>In this Lesson, we learned that Ethereum is a general purpose platform that uses smart contracts to allow users to build their own decentralised applications. These smart contracts can be thought of as programs that have an ether balance and an internal storage. Users can track the state of a smart contract to keep track of their obligations and examine the history of transactions that have been sent to and from the associated contract account.</p><p><strong>Consolidation exercises</strong></p><ol><li>Browse the most recent block of transactions on <a href="https://etherscan.io/">Etherscan</a> and note how its contents differ from those of Bitcoin</li><li>You can view stats for the network in real time, such as the recommended gas price, on the following <a href="https://ethgasstation.info/">site</a></li><li>Use <a href="https://www.myetherwallet.com/">MyEtherWallet</a> to create a wallet for Ethereum-based cryptocurrencies. No need to buy ether, but keep your private key safe!</li></ol><p><strong>Extend your knowledge</strong></p><ul><li><a href="https://hackernoon.com/wtf-is-ethereum-c65e0d67ac09">WTF is Ethereum?</a></li><li><a href="https://medium.com/@preethikasireddy/how-does-ethereum-work-anyway-22d1df506369">How does Ethereum work, anyway?</a></li><li><a href="https://bitsonblocks.net/2016/10/02/a-gentle-introduction-to-ethereum/">A gentle introduction to Ethereum</a></li></ul><p>Finally, watch the following video of Vitalik to wrap it all up:</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FWSN5BaCzsbo%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DWSN5BaCzsbo&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FWSN5BaCzsbo%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/f6da0119b68e07057bfb20cf1213912b/href">https://medium.com/media/f6da0119b68e07057bfb20cf1213912b/href</a></iframe><p>In Lesson 4, we consider DApps, DAOs and ICOs, which are all powered by smart contracts.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=122bfd4f6dc2" width="1" height="1" alt=""><hr><p><a href="https://medium.com/uinspire/uinspire-blockchain-course-lesson-3-unlocking-smart-contracts-ethereum-122bfd4f6dc2">Uinspire Blockchain Course {Lesson 3: Unlocking smart contracts — Ethereum}</a> was originally published in <a href="https://medium.com/uinspire">Uinspire</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Uinspire Blockchain Course {Lesson 2: The Bitcoin Revolution}]]></title>
            <link>https://medium.com/uinspire/uinspire-blockchain-course-lesson-2-the-bitcoin-revolution-a0d522e1c593?source=rss-6462730863d2------2</link>
            <guid isPermaLink="false">https://medium.com/p/a0d522e1c593</guid>
            <category><![CDATA[cryptocurrency]]></category>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[bitcoin]]></category>
            <category><![CDATA[crypto]]></category>
            <category><![CDATA[digital-money]]></category>
            <dc:creator><![CDATA[Alfonso Delgado]]></dc:creator>
            <pubDate>Tue, 10 Apr 2018 12:06:43 GMT</pubDate>
            <atom:updated>2018-06-25T04:01:35.448Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LWD6ovi9RT_FqVX1NNwZRg.png" /></figure><p>In <a href="https://medium.com/uinspire/uinspire-blockchain-course-lesson-1-foundations-of-blockchain-technology-6342f139d101">Lesson 1</a>, we drew a distinction between DLT networks and blockchain data structures. The latter is merely a data structure that the network’s distributed ledger may adopt. In the appropriate setting, DLT networks can allow users to:</p><ol><li>Reduce transactions costs;</li><li>Streamline business processes;</li><li>Enhance the auditability of transactions;</li><li>Share and monetise information; and</li><li>Store data in a trust minimised environment.</li></ol><p>We now turn our attention to Bitcoin, which was the first network to implement the blockchain data structure. Brace yourselves, my friends, as we’re about to enter the rabbit hole of cryptocurrencies.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/785/1*7LzhJXDIubcYIOzWKBRaMA.jpeg" /><figcaption>Alice and her <a href="https://www.cryptokitties.co/">Cryptokitty</a> are looking for Bob</figcaption></figure><p><strong>Bitcoin, the first of its kind</strong></p><p>In 2008, Satoshi Nakamoto (pseudonym) introduced Bitcoin in a <a href="http://fermatslibrary.com/s/bitcoin">paper</a> that was sent to an online mailing list of cryptographers. Satoshi’s goal was to create a decentralised payment system with an in-built virtual currency. Since the 80s, <a href="https://bitcoinmagazine.com/articles/quick-history-cryptocurrencies-bbtc-bitcoin-1397682630/">many projects</a> had sought to issue their own versions of digital cash (e.g. DigiCash and b-money). Each of these earlier projects ended up failing, as they could not operate without a significant degree of centralisation. To address this challenge, Satoshi introduced the blockchain data structure and coupled this with a protocol that rewards users who maintain and update the shared data, allowing consensus to be reached in a distributed network.</p><p>In 2009, Satoshi created the first block of the Bitcoin network and added the following message to the block’s contents:</p><p><em>“The Times 03/Jan/2009 Chancellor on brink of second bailout for banks”</em></p><p>This message is taken from a <a href="https://news.bitcoin.com/bitcoins-quirky-genesis-block-turns-eight-years-old-today/">newspaper headline</a> and proves that Bitcoin did not commence its operations before the data stated. In addition, it indicates that Bitcoin was created as an alternative to the financial system, which had failed to prevent institutions from abusing the market and triggering a Global Financial Crisis. For some time, Nakamoto remained involved in the Bitcoin community by answering queries via email and blog posts. However, Nakamoto decided to disappear from the scene in December 2010, as an active community had already started to develop. Nakamoto never shared their personal details, thereby allowing the pioneering technology to be judged solely on its merits.</p><p><strong>The different meanings of Bitcoin</strong></p><p><em>“Writing a description for this thing for general audiences is bloody hard. There’s nothing to relate it to.” — </em><a href="http://satoshi.nakamotoinstitute.org/posts/bitcointalk/167/">Satoshi Nakamoto</a> (2010) [pre-disappearance]</p><p>With this remark in mind, it is helpful to begin our discussion by unpacking the ambiguity that surrounds the term Bitcoin. This can serve various meanings depending on the context in which it is used. In particular, the term Bitcoin can refer to:</p><p>(i) the protocol that nodes in the network must follow to share information;</p><p>(ii) the collective of nodes that are networked via the internet; and/or</p><p>(iii) the virtual currency — BTC — that is created by running the Bitcoin software.</p><p>By convention, we capitalise the word Bitcoin when referring to the protocol, the software, or the network as a whole. In contrast, we <em>do not</em> capitalise <a href="https://blog.blockchain.com/2014/12/29/drawing-the-distinction-between-the-uppercase-b-and-lowercase-b-in-bitcoin/">bitcoin</a> when referring to the virtual currency (BTC) alone, e.g. “the price of bitcoin is very high”. We will use BTC when referring to the currency component to avoid further confusion.</p><p><strong>The layers and functions of the Bitcoin network</strong></p><p>We can dissect the Bitcoin network into a series of layers with corresponding functions:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/509/1*_rpvB6IZ7A0SUAsl-5RTUg.jpeg" /><figcaption>The 3 layers of the Bitcoin network (left) and their function (right)</figcaption></figure><p>The protocol is the set of rules that nodes must follow to form part of the Bitcoin network. These rules specify the format that the shared data must adopt and the process by which nodes must update their ledgers with new data entries. We can think of the protocol, and the networked nodes that enforce it, as laying down the foundations for the Bitcoin payment system. In turn, the ledger entries record the transfer of BTC amongst network users. BTC is acting as the network’s native currency, allowing users to transfer value from one to another and pay fees to keep the network running.</p><p>BTC is often referred to as the first cryptocurrency, as it relies on a set of cryptographic techniques to prevent users from spending funds that they do not own or creating new BTC without prior authorisation. Unlike fiat currencies such as the US Dollar ($) or British Pound (£), BTC (₿) is not issued or controlled by a central bank. It is not backed by (or pegged to) a commodity like gold either. Instead, it derives its value from the willingness of network users to accept BTC as a means of payment and their believe in the integrity of the system (that is, its resistance against malicious attacks).</p><p>The price of BTC has soared in recent years, catching the attention of investors and news publications across the world. In early 2013, 1 BTC was worth around $100. Following a strong rally, it peaked at around $20,000 in December 2017. At the time of writing, the price of BTC has fallen to $6,500 and the market value of all the BTC in circulation is $113 Billion.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YoOQXqLjlsBk0wdEWYiKIw.png" /><figcaption>You can check the current price of 1 BTC and the combined market value at <a href="https://coinmarketcap.com/currencies/bitcoin/">CoinMarketCap</a></figcaption></figure><p>Given that the amount of BTC in circulation is limited, its price is driven by demand and supply principles. The speculation surrounding BTC’s potential for mainstream adoption has caused its price to skyrocket. Somewhat ironically, this volatility is discouraging the adoption of BTC amongst businesses, as it is too risky to accept BTC if the value is fluctuating vastly from one day to another. In January 2018, the exuberance of the BTC market started to take a noticeable hit. This can be attributed to two main factors. First, users have realised that the growth could no longer be justified, as this did not match the rate of adoption of BTC. Second, regulators have brought a wave of legal actions against people in this space who have violated securities legislation (Lesson 4). Many have warned of a coming <a href="https://news.bitcoin.com/transaction-data-suggests-crypto-recession-brewing/">crypto-recession</a> to correct for BTC&#39;s unprecedented growth. Others point out that Bitcoin has mistakenly been declared dead over 278 times in the past (and <a href="https://99bitcoins.com/bitcoinobituaries/">counting</a>).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/1*ofgiWoFxqm-ZxGiz6qot-A.gif" /><figcaption>2017: A man urges you to buy BTC while the (former) Chair of the Federal Reserve Board speaks</figcaption></figure><p><em>Note: this section is designed to give you an overview of the cryptocurrency mania. This should not be taken as financial advice and </em><a href="https://www.youtube.com/watch?v=g-zIbVEjVpQ"><em>blah blah blah</em></a><em>.</em></p><p><strong>The Bitcoin software</strong></p><p>The devices connected to the network are running Bitcoin-compatible software, which users can either download in one of its standard forms or build from scratch for greater customisation. In turn, Bitcoin-compatible software can be divided into node software and BTC wallets. Node software can be used to transfer BTC, store the entire blockchain data structure and/or confirm transactions. In Bitcoin, the subset of nodes that confirm transactions by incorporating them into new blocks are referred to as <strong>miners</strong>. We will examine the role of miners in the sections that follow.</p><p>On the other hand, wallet software is solely used to store and transfer BTC from one user to another. To calculate a user’s BTC balance, the wallet will initially run through the historical list of transactions taking place since the network launched. In going through the ledger entries, the wallet software will look for the amount of BTC that the user has received and not yet spent.</p><p><strong>The Bitcoin protocol</strong></p><p>In Lesson 1, we learnt that a protocol is a set of the rules that nodes must follow to form part of the network. The three most important rules in the Bitcoin protocol, programmed into all Bitcoin-compatible software, can be written in natural language as follows:</p><ol><li>users cannot send BTC that they have not previously received from another person (or via mining, see rule 3). Transactions that violate this principle are invalid and must be ignored by users of the software;</li><li>approximately every 10 minutes one of the nodes will have the chance to mine (or register) a new block, by which a group of valid, pending transactions will be confirmed; and</li><li>in exchange for mining this new block, the miner can create new BTC and keep this as a reward. In addition, it is expected that users will attach a voluntary fee to transactions, which will be collected by the miner who incorporates these transaction into a new block.</li></ol><p>While rules 1 and 3 are self-explanatory, rule 2 requires further elaboration. The Bitcoin network is composed of nodes that are distributed across the world and use the internet to pass on messages to one another. Since information can take some time to propagate itself across the network, a node is likely to receive data from those nodes that are geographically closest to it first. This means that if a node in China receives transactions in order (A, B, C), a US node may pick them up in reverse order (C, B, A). Therefore, rule #2 allows a single miner to create an authoritative record of transactions. Without this rule, it would be impossible for the nodes to agree on which data has already been confirmed, as there is no central entity to perform this task on their behalf.</p><p><strong>Bitcoin’s consensus mechanism: proof-of-work</strong></p><p>In Bitcoin, the mechanism by which a miner confirms a group of pending transactions is referred to as <strong>proof-of-work </strong>(PoW). Nodes that choose to participate in the PoW process are racing each other to solve a cryptographic puzzle. In general, whichever node is able to solve this cryptographic puzzle first will obtain the right to mine a new block of transactions and earn the associated reward.</p><p>In Lesson 1, we learned about the role of hashes in ensuring that alterations to the ledger entries can be detected and rejected with ease. Hashes also play an important (though slightly different) role in the mining process. Apart from being data-specific, hashes are produced by <strong>one-way </strong>functions. While it is easy to verify that a set of input data produces a specific hash, it is difficult to reverse engineer this process. In other words, it is hard to obtain the correct input data if you are only given the resulting hash.</p><p>When we talk about a cryptographic puzzle, what we mean is that miners have to come up with a piece of input data that leads to a special hash value. This hash is special because it will only be valid if it commences with a number that is lower than the prescribed <strong>target threshold.</strong></p><p>If the current target threshold is:</p><p>000000000000000000<strong>5</strong>02ab70000000000000000000000000000000000000000</p><p>Then any input data that creates a hash below that number will be valid. Here’s an example of a valid hash (though many combinations are possible):</p><p>000000000000000000<strong>3</strong>02cb70000000000000000000000000000000000000000</p><p>To find this hash, miners must add a variable (called a <strong>nonce)</strong> to the block before they start hashing its contents. This nonce is a number that miners will increment until a valid hash is obtained. This process allows miners to look for a valid solution without having to modify the other contents of the block — there is no need to replace the transactions that they have already selected for inclusion. Once a valid solution is reached, it will be stored in the block’s <strong>header</strong> section along with the previous block’s hash value.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3O-2eNn9qTaDczkEUIpvUQ.jpeg" /></figure><p>The process of finding a valid nonce requires miners to pursue a method of trial and error (“brute force”) and consume significant computing resources (“work”). The target threshold is adjusted periodically to ensure that a valid nonce is discovered by a miner every 10 minutes (on average). This period is referred to as the <strong>block-creation interval</strong>. To keep this interval consistent, the target value will be adjusted approximately every 2 weeks to account for changes in the network’s mining power (the total “<strong>hash rate</strong>”). For instance, if more nodes decide to join the race, or miners start using more powerful computers, the target value will decrease to narrow down the set of valid solutions. In turn, this increase in the <strong>mining</strong> <strong>difficulty</strong> will keep the block-creation interval consistent. In theory, the protocol could be modified to reduce this interval. However, this is deliberately kept at 10 minutes to provide ample time for nodes across the network to incorporate the new block to their ledgers and join the new race before the next block is found.</p><p><strong>The purpose of mining</strong></p><p>Mining is <em>not</em> the process by which nodes <strong>validate</strong> transactions. Transactions are continuously being validated by <em>every</em> node in the system, whether they are participating in the mining race or not. For instance, nodes verify that these relate to existing funds and have been signed by the appropriate private key. In addition, when a new block is broadcast by a miner, every node will check that its contents are valid. The process of validating both transactions and blocks is simple, enabling nodes to discard erroneous and malicious data.</p><p>Mining is the process by which a node <strong>confirms</strong> a new block of transactions and instructs others to add this block to their ledgers. As such, mining creates an authoritative order of transactions and allows consensus to be formed in a distributed environment. The mining process is deliberately expensive, as it requires a lot of electricity to be consumed. This incentivises miners to refrain from producing invalid blocks, as these will be rejected by the system and the miner will receive no compensation for its work.</p><p>Mining also doubles up as the network’s currency issuance mechanism. The winning miner in each period will be compensated for the computing resources consumed with newly-issued BTC. Indeed, every BTC in existence has been generated via mining, a process that was started by Satoshi in 2009. The first transaction in each block is called the <strong>coinbase transaction</strong> and indicates that new BTC have been generated to reward the miner. The amount of this reward is based on a <a href="https://en.bitcoin.it/wiki/Controlled_supply">predefined schedule </a>and cannot be arbitrarily set by the miner. However, miners also get to keep the fees that users attach to their transactions. In the year 2140, the supply of BTC will have reached its predefined maximum. At this point, it is intended that the network will be able to rely only on fees, as no further BTC will be issued.</p><p>In theory, PoW is designed to ensure that a <em>random</em> miner wins the race in each interval. This is done to prevent attacker from maliciously influencing or attacking a miner, as the attacker cannot predict which miner will be the first to find a valid nonce and win the race. In practice, the mining process is far from random: a miner with X% of the total hash rate has X%<em> </em>chance<em> </em>of mining the next block. Wealthy individuals can afford to buy specialised mining computers to ensure that you and I have little chance of winning. Further, many miners have organised themselves into profit-sharing collectives known as <strong>mining pools </strong>to combine their computing resources. The diagram below shows the current hash rate distribution (i.e. X%) across the network, which is concentrated amongst a small number of mining pools.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/944/1*8ER2Abnws4rUQF_FA9-9VA.png" /><figcaption>Source: <a href="https://blockchain.info/pools">Blockchain.info</a></figcaption></figure><p>This concentration is problematic because it makes <strong>51% attacks</strong> more likely. With a majority of the hashing power, attackers could prevent certain transactions from being included in the ledger while they are in control. In addition, an attacker could <strong>double spend</strong> transactions by sending the same funds to multiple addresses, temporarily tricking users into thinking that a valid payment has been made. To be clear, neither attacks allows the malicious entity to spend other user’s funds, as nodes in the network would refrain from adding invalid transactions to their ledgers. It is often argued that it would be prohibitively expensive for a single attacker to conduct an attack. Similarly, groups of attacks could face coordination issues and lack the incentive to act maliciously, as this would lead users to abandon the network. Nevertheless, the concentration levels depicted above raise questions about the extent to which the network is decentralised and attack-resistant.</p><p><strong>Public-key cryptography</strong></p><p>Since Bitcoin launched in 2009, millions of transactions have been added to the network’s ledger. The main transactional information contained in each block can be depicted as follows:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PN0-AM-MocROsVYJ-m3dIQ.jpeg" /></figure><p><a href="https://blog.vrypan.net/2013/08/28/public-key-cryptography-for-non-geeks/">Public-key cryptography</a> plays a crucial role in the transactional process. Each party to a transaction can be identified by reference to a unique string of characters known as a blockchain <strong>address</strong>. This address is similar to a bank account number that allows users to send and receive BTC in a pseudonymous manner (without sharing their personal details). Users can generate addresses in a costless manner by using Bitcoin-compatible software. Apart from creating an address, this process will also generate a <strong>private key</strong> and a <strong>public key</strong> for that address. Each of these keys also comprises a unique string of characters that is mathematically related to the other (and to the address).</p><p>A private key can be thought of as a password that enables users to sign off transfers of BTC from the corresponding address. Each time a transfer is made, the software will enter the private key into a signing algorithm to produce a transaction-specific signature. This signature will then be embedded into the transaction message itself, along with the user’s public key. The nodes in the network can use this public key and the verification algorithm to confirm that the signature was produced by the user’s private key. Importantly, the algorithm does not reveal the private key itself and each signature can only be used once. This mechanism is designed to ensure that only the private key-holder can authorise the expenditure of those funds.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/758/1*WtxnOCvE6hLPtqqOIVZx_g.png" /><figcaption>Source: <a href="https://www.cryptocompare.com/wallets/guides/how-do-digital-signatures-in-bitcoin-work/">CryptoCompare</a></figcaption></figure><p><strong>BTC: A collection of inputs and outputs</strong></p><p>Let’s take a closer look at how a Bitcoin transaction works under the hood. When you send BTC to another address, you are not really sending anything directly to the other person.<strong> </strong>Instead, your wallet is reassigning the ownership of BTC from one address to another by adding a transaction to the ledger.</p><p>Unlike credit in a bank account, BTC is not fully fungible. Consider the following scenario. You generate a new address using the wallet software and send 3 BTC to this new address. In addition, Alice sends 0.2 BTC and 0.01 BTC to your new address in two different transactions.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/952/1*PtquITgvgHGzjmxqq2pNgQ.png" /></figure><p>These transactions will be confirmed once they are registered within a new block. At this point, your wallet software will conveniently report that your balance is 3.21 BTC. However, if you were to virtually peek into the wallet, you would observe three distinct amounts that are grouped together by reference to their previous transaction — the BTC received do not mix.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/289/1*pOq55RYAlHzD77tQJB4Qkw.png" /></figure><p>The amounts that you received via those three transactions are called outputs, or more formally, <strong>U</strong>nspent Transaction (<strong>Tx)</strong> <strong>O</strong>utput<strong>s (UTXOs). </strong>Each of these UTXOs are waiting to be spent and will remain <em>locked</em> until you provide them as <strong>inputs</strong> for a new transaction.</p><p>Let’s say that you now decide to send 0.15 BTC from your wallet to Bob’s address. Your wallet software would use the 0.2 BTC as an input for your transaction, as this is closest to the sum you wish to send. The transaction will send 0.15 BTC to Bob, which will now reside in Bob’s wallet as an output. In addition, it will create 0.05 BTC in <strong>change</strong>, which will be sent back to your wallet as an output too.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/974/1*juRvES23xGfkp0P6tz-AqQ.png" /><figcaption>Source: <a href="https://www.ccn.com/bitcoin-transaction-really-works/">CryptoCoinsNews</a></figcaption></figure><p>The UTXOs system prevents users from spending the same amount of BTC more than once. Once an output is spent, it is <em>destroyed</em> and a corresponding set of inputs will be <em>created</em>. Once a set of UTXOs has been destroyed, it can no longer be used as an input for a transaction. Equally, you cannot send BTC which you have not previously received as an output from a prior transaction.</p><p>Note: As an exception, a coinbase transaction has no inputs (only outputs). However, UTXOs will be used to pay transactions fees (not depicted above). More than one set of UTXOs can be sent in a single transaction. Technically, you <em>receive</em> BTC to an address and <em>send</em> BTC from your wallet (which contains the collection of private keys that correspond to your addresses).</p><p><strong>The Merkle tree data structure: hashes of hashes</strong></p><p>In the Bitcoin network, a transaction is a merely a string of bits that carries a message. Amongst other data, this message will contain (i) the address of the sender and recipient, (ii) the UTXOs to be spent, (iii) the sender’s public key, and (iv) the transaction-specific signature. Apart from incorporating this transaction into a block, a miner will hash the transaction and store this in a data structure known as a <strong>Merkle tree</strong> (named after its <a href="http://www.merkle.com/">creator</a>).</p><p>A Merkle tree is a hierarchical data structure that is composed solely of hashes and is also stored in a block. Once an individual transaction has been hashed, the new hash values will be grouped in two and hashed again. This process will be repeated until a final hash value is obtained — the <strong>Merkle root</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/645/1*otbXh8OXN2u-BLjD5O4VlA.png" /><figcaption>Transactions are stored separately inside the block too. Source: <a href="https://link.springer.com/chapter/10.1007/978-3-319-49806-5_19">Ghoshal &amp; Paul</a></figcaption></figure><p>The Merkle tree data structure is useful for two reasons. First, it maintains the integrity of the transactional data. If any transactions are altered, the Merkle root will change and the other nodes will dismiss this version of the block. Second, it enables nodes to use a method called simple payment verification (SPV) to check whether a particular transaction has been included within a block without having to store all of its contents. These nodes are referred to as <strong>light nodes</strong>, as opposed to <strong>full nodes</strong> that store the entire blockchain.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JEsCdO05ccJ2MV0HiSQx0g.png" /><figcaption>Source: <a href="https://www.safaribooksonline.com/library/view/mastering-bitcoin/9781491902639/ch07.html">Mastering Bitcoin</a></figcaption></figure><p>If a node wants to verify whether Transaction K has been included in a block, it starts by hashing the relevant transaction (in green). If this hash is found in the tree, the node will work its way up until it reaches the Merkle root or encounters a disparity. The data that the node needs to retrieve to complete this process is coloured in blue. The blue dashes indicate the data that the node can generate itself, while the remaining data can be discarded. Wallets tend to be light nodes, as they download only block headers and use this process to verify whether a user’s transactions have been confirmed.</p><p><strong>Lesson recap</strong></p><p>It may take some time to digest all of the elements that we covered in this lesson. The following diagrams provide a detailed overview of how these different elements serve an important function in the Bitcoin network.</p><p>Overview of the transaction life cycle:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CmdbUfMASzeDUma78zHIqA.png" /><figcaption>Source: <a href="https://www.bambora.com/en/ca/learn/blog/bitcoin-explained/">Bambora</a>. A more comprehensive version of this diagram can be found <a href="https://www.zerohedge.com/sites/default/files/images/user3303/imageroot/2013/05/20130512_BTC.jpg">here</a></figcaption></figure><p>Components of a Bitcoin block:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/514/1*182y1aQ4dftehkrdCpXa2w.png" /><figcaption>Source: <a href="https://bitsonblocks.files.wordpress.com/2015/09/bitcoin_blockchain_infographic1.pdf">Bits on blocks</a></figcaption></figure><p>The images above are each taken from a larger infographic. Please click on their respective links to browse these infographics in their entirety — they are the optimal resources for you to consolidate on the material covered.</p><p><strong>Exercises</strong></p><ol><li>Check out the BTC transactions that taking place in real time with <a href="http://bitcointicker.co/transactions/">Bitcoin Ticker</a> and <a href="http://bitbonkers.com/">BitBonkers</a>.</li><li>Browse a recent Bitcoin block using this block explorer:</li></ol><p><a href="https://blockexplorer.com/block/00000000000000000045cc1cae37b2fc5f714b081d18b579034d428516ab65f5">Bitcoin Block Explorer</a></p><p>3. Access a wallet provider to create a Bitcoin address (no need to buy BTC):</p><p><a href="https://blockchain.info/wallet/">Bitcoin Wallet - Blockchain</a></p><p><em>Note: somewhat confusingly, “Blockchain” is the trading name of a popular Bitcoin wallet provider.</em></p><p>4. Enter your Bitcoin address into the block explorer — your balance should show up a zero, but feel free to take a peek at other users’ addresses too ;)</p><p><strong>Extend your knowledge</strong></p><p>We have curated a set of articles for you to consolidate and expand on the material we covered in this lesson. Please make an effort to go through these!</p><ul><li><a href="http://preshing.com/20140127/what-is-a-bitcoin-really/">What Is a Bitcoin, Really?</a></li><li><a href="https://coincenter.org/entry/what-is-bitcoin-mining-and-why-is-it-necessary">What is Bitcoin Mining, and Why is it Necessary? | Coin Center</a></li><li><a href="https://medium.com/@micheledaliessi/how-does-the-blockchain-work-98c8cd01d2ae">How Does the Blockchain Work?</a></li><li><a href="https://bitsonblocks.net/2015/09/01/a-gentle-introduction-to-bitcoin/">A gentle introduction to bitcoin</a></li></ul><p><strong>Watch the following in-depth video to consolidate your knowledge:</strong></p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FbBC-nXj3Ng4%3Fstart%3D368%26feature%3Doembed%26start%3D368&amp;url=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DbBC-nXj3Ng4&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FbBC-nXj3Ng4%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/de480216895f4d11ee0dd79b5f7e8cf0/href">https://medium.com/media/de480216895f4d11ee0dd79b5f7e8cf0/href</a></iframe><p>In <a href="https://medium.com/uinspire/uinspire-blockchain-course-lesson-3-unlocking-smart-contracts-ethereum-122bfd4f6dc2">Lesson 3</a>, we focus on the Ethereum network and smart contracts. As always, don’t forget to join the discussion on our <a href="http://t.me/uinspire_academy">Telegram</a> group!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a0d522e1c593" width="1" height="1" alt=""><hr><p><a href="https://medium.com/uinspire/uinspire-blockchain-course-lesson-2-the-bitcoin-revolution-a0d522e1c593">Uinspire Blockchain Course {Lesson 2: The Bitcoin Revolution}</a> was originally published in <a href="https://medium.com/uinspire">Uinspire</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Uinspire Blockchain Course {Lesson 1: Foundations of Blockchain Technology}]]></title>
            <link>https://medium.com/uinspire/uinspire-blockchain-course-lesson-1-foundations-of-blockchain-technology-6342f139d101?source=rss-6462730863d2------2</link>
            <guid isPermaLink="false">https://medium.com/p/6342f139d101</guid>
            <category><![CDATA[cryptocurrency]]></category>
            <category><![CDATA[emerging-technology]]></category>
            <category><![CDATA[crypto]]></category>
            <category><![CDATA[learning]]></category>
            <category><![CDATA[blockchain]]></category>
            <dc:creator><![CDATA[Alfonso Delgado]]></dc:creator>
            <pubDate>Sun, 01 Apr 2018 12:08:40 GMT</pubDate>
            <atom:updated>2018-06-23T14:49:41.941Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vqM0tsdkqImVoxqRwV_DhQ.png" /></figure><p>Blockchain technology first came to prominence as the technology underpinning <a href="http://fermatslibrary.com/s/bitcoin">Bitcoin</a>, a data network introduced by Satoshi Nakamoto in 2008. Over the past year, blockchain technology has featured in every major news publication across the world. This is largely due to the surge in the price of blockchain-based digital assets, which currently have a combined market value of <a href="https://coinmarketcap.com/charts/">$350 billion</a>. To put this in perspective, this exceeds the market value of Facebook and the GDP of Denmark.</p><p>Here’s an overview of the current sentiment towards digital assets:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/998/1*1vrz7vr0ymU8-eq4kvvroQ.jpeg" /></figure><p>While blockchain technology has allowed these digital assets to be brought to life, there is a much broader set of applications that we have not yet capitalised on. Data can be described as the oil of the <a href="https://www.economist.com/news/leaders/21721656-data-economy-demands-new-approach-antitrust-rules-worlds-most-valuable-resource">digital era</a> — our most valuable resource. In turn, blockchain technology is a tool that enables us to store, share and monetise our data in a secure manner. Many have compared this technology to the internet, as it is building new digital roads to interconnect people, computers and data. Recognising this potential, the <a href="https://www.coindesk.com/world-economic-forum-governments-blockchain/">World Economic Forum</a> has predicted that by 2027, 10% of the world’s GDP will emanate from blockchain networks.</p><p>We are still at the beginning of this journey and we are yet to unlock the technology’s full potential. To explore new use cases, it is instrumental that we understand the core elements of blockchain technology and the challenges that it aims to address. There is a lot of misinformation being posted online about the technology’s workings. This is a product of the hype that blockchain has amassed, but also indicates that the technology is intricate and <a href="https://patrickmn.com/security/why-blockchain-is-so-hard-to-understand/">interdisciplinary</a>.</p><p><strong>The Uinspire Blockchain Course</strong></p><p>The goal of this course is to provide you with a solid understanding of how blockchain technology works. We also want to bring you up to speed with the latest developments in the field and to equip you with the tools required to form part of this digital revolution. By the end of this course, you will be ready to embark on your own blockchain project. We hope that you will use the knowledge acquired to teach others about blockchain and leave your footprint in this space.</p><p>The course is divided into 5 lessons:</p><ol><li><strong>Foundations of blockchain technology</strong></li><li><strong>The Bitcoin revolution</strong></li><li><strong>Unlocking smart contracts: Ethereum</strong></li><li><strong>The distributed economy: ICOs, DApps and DAOs</strong></li><li><strong>Permissioned networks and new DLT structures</strong></li></ol><p>Each lesson should take approximately 45 minutes to complete, including the exercises and additional material. If you find an area challenging, carry on reading to see if your doubts are clarified at a later stage. It is also helpful if you take notes as you go along and write down any questions that you have at the end. Blockchain is a promising technology with many use cases and we strongly believe that your efforts will be rewarded.</p><p><strong>Meet your instructors</strong></p><p><a href="https://uk.linkedin.com/in/kieranarasaratnam">Kieran Arasaratnam</a> is the Founder &amp; CEO of Uinspire, a social enterprise that aims to disrupt old models of impact investment. He has a career in investment banking spanning 15 years and has contributed to a number of charitable initiatives around the world. Kieran recently created the Uinspire Digital Academy to educate talented minds on the impact of emerging technologies and drive social change. Kieran has also launched a venture capital firm called Emerchain Capital, which will invest in promising projects within the blockchain ecosystem.</p><p><a href="https://uk.linkedin.com/in/alfonso-delgado-de-molina-82307483">Alfonso Delgado</a> is undertaking a PhD in Computer Science at Imperial College London. His research focuses on the practical applications of smart contracts on the global economy. Alfonso has also given talks on the legal and economic aspects of blockchain and has written various papers to tackle this subject. Prior to this, Alfonso obtained an MSc in Law and Finance from Oxford and worked as a blockchain consultant. Alfonso has joined the Uinspire team to teach young people who are driven to harness the value of emerging technologies.</p><p>You can find out more about Uinspire’s team and our shared goals <a href="http://uinspire.projectstatus.in/aboutus">here</a>. You can also join our <a href="http://t.me/uinspire_academy">Telegram</a> chat to discuss these topics with other motivated students and receive updates about the blockchain ecosystem. When you’re ready, scroll down to begin the first lesson of the course!</p><p><strong>The perils of centralised databases</strong></p><p>For many decades, data has traditionally been stored in <a href="https://www.linkedin.com/pulse/blockchain-technology-very-special-kind-distributed-meunier/?trk=mp-reader-card"><strong>centralised databases</strong></a>. A database is simply a structured collection of data. Centralised databases are maintained by a central administrator and stored in a single location. This administrator is an intermediary that is trusted to safeguard data on behalf of its owner. Users who want to access this data must send a request to the administrator’s server, which then decides whether the user is authorised to receive the data requested and the terms of service are being complied with. In other words, users can only <strong>read</strong> the data, while the administrator and the data owner can each <strong>write</strong> (ie. add to), <strong>alter</strong> or <strong>delete</strong> the data too.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/264/1*Y6lhfr2t3io6dcFFUwYdQw.jpeg" /><figcaption>A centralised network architecture: users (clients) request data from a central entity (server)</figcaption></figure><p>Most of the data on the internet is stored in this manner —a website’s data is stored on the administrator’s server on behalf of a website owner. If you, as a user, are authorised to browse the website’s data, your request will be approved by the administrator and the data will appear on your screen. The same is true when a computer queries data from a website’s server by using a data channel, known as an Application Programming Interface (API). This traditional model is generally efficient, as it is proven to be fast and scalable.</p><p>On the other hand, we cannot guarantee that the administrator will refrain from using its powers to maliciously alter or delete the data. The data is kept in a sort of black box, which data owners cannot directly monitor. Additionally, the administrator could abuse its position by charging high fees for the storage services. Even if the administrator is not malicious, the system gives rise to single point of failure issues. This means that if the server goes down, due to a technical issue or for maintenance purposes, users will not be able to access the server’s data. Further, it is possible for attackers to infiltrate the server and corrupt the data in an irrecoverable manner, as the data is being stored in a single location.</p><p>It is precisely this set of issues that motivated Satoshi Nakamoto to pioneer the use of blockchain technology, allowing data to be stored and maintained by network users themselves, without having to rely on a central administrator.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sorGYP6fCrRWsqxpucp6NQ.jpeg" /><figcaption>A group of banks is drawing information from a database to conduct their operations. Source: <a href="https://scooblr.com/blockchains-vs-centralized-databases/">Bits on blocks</a></figcaption></figure><p><strong>Blockchain’s core attributes</strong></p><p>Blockchain technology has the capacity to alter the fabric of business and social interactions. Despite its potential for disruption, there is no agreed definition as to the meaning of the term blockchain. The technology is evolving at a very fast rate and new features are being tested on a regular basis, which makes it hard to isolate a set of defining attributes.</p><p>As a result, it is helpful to distinguish between the broad and narrow uses of the term. In broad terms, blockchain is used to describe the suite of technologies that allow (i) computers in a peer-to-peer network (ii) to reach agreement over (iii) shared data. Let’s examine each one of these elements in more detail:</p><p>(i) In a distributed <strong>peer-to-peer</strong> (P2P) network, a group of computers is making part of their resources available to perform a range of computing tasks. These computers are commonly referred to as <strong>nodes</strong>. Importantly, the tasks are not controlled or coordinated by a central node or intermediating party. Rather, these tasks are distributed across the different nodes in the network, which coordinate by passing on messages to one another.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rknrMcCowWDG9BmbncQMQA.png" /><figcaption>The hands represent control over the network. The big circles show nodes that are trusted to maintain the network’s data, which other nodes (small circles) can access but not control. Source: <a href="https://blog.maidsafe.net/2015/12/04/evolving-terminology/">MaidSafe Blog</a></figcaption></figure><p>(ii) In a distributed P2P network, a <strong>consensus mechanism</strong> is required for the dispersed nodes to create a record of the shared data. For this purpose, each blockchain network has its own <strong>protocol</strong>, which consists of rules and procedures that nodes must follow to share and verify the data. In addition, the protocol lays down economic incentives to reward nodes that carry out these activities in a compliant manner and stay synchronised with each other.</p><p>(iii) The task of maintaining the agreed data record is distributed amongst the nodes in the network. This shared data record is often described as a <strong>ledger </strong>(or journal), as it is composed of a series of entries that are linked to accounts and show every transaction that has been confirmed. Given that nodes in the network maintain its <em>own</em> copy of the ledger, they are able to independently audit the ledger entries to identify and reject any inconsistencies.</p><p>Though the word blockchain, in its broad sense, is often used to describe these 3 elements, the term <strong>distributed ledger technology (DLT)</strong> is more accurate in this context. This distinction is relevant because there is a narrower (and more natural) meaning of the word blockchain, which we turn to examine now.</p><p><strong>Blockchain as a data structure</strong></p><p>In the more narrow sense, blockchain refers to a specific data structure that a network’s shared data usually (though not necessarily) will adopt. A data structure is a way of organising and storing data so that it can be used efficiently. In a blockchain data structure, the data in the ledger is organised into a series of interlinking blocks. These blocks are indexed in a similar way to page numbers. Each block contains a timestamp and a link to the previous block, with the result that a chain of blocks is created.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/885/1*_nyMcoYo3Bc_T6Y4o4NtEQ.png" /><figcaption>A miner is a node that creates a new block and receives its reward (Lesson 2)</figcaption></figure><p>The blockchain data structure makes it simple for computers to verify the consistency of a long and growing number of ledger entries. Blocks are signed with a “digital fingerprint”, known as a <strong>hash </strong>value, which takes the form of a string of characters that is fixed in length. Each block also stores the hash of the previous block in the chain.</p><p>Hashes are useful because they are data-specific. If an alteration is made to the data within a block, the block’s hash will change and the chain will break. Should a person attempt to distribute a corrupt ledger, for instance by replacing one of the addresses in a previous block for their own, other nodes will identify the misalignment and reject that version of the ledger. Therefore, this simple tool enables nodes in the network to agree on which entries should be rejected.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/558/1*C0KqoQHQhVgrFj-zDD4STw.jpeg" /><figcaption>Minor variations in the input data produce noticeably different hash values</figcaption></figure><p>The mechanism for creating a block is laid down in the network’s protocol. For example, the protocol will specify the format that the shared data needs to follow and the maximum size of each block. It will also establish a procedure to allocate the responsibility for the creation of new blocks to particular nodes in the network. In addition, the protocol lays down an economic reward for nodes that are selected to perform this task.</p><p><strong>Overview of the block creation process</strong></p><p>When users wants to add data to the ledger, they start by sending a transaction to one of the networked nodes. In this context, a transaction refers to a cryptographically signed message that contains some form of data. This data does not necessarily have to relate to the transfer of a digital asset. For instance, in a network where ledger entries relate to the ownership of physical assets (e.g. cars), a transaction could be sent to register the ownership of a particular car.</p><p>When nodes receive the new transaction, they will first validate it to ensure that it has been adequately signed. Following this verification process, the nodes will broadcast the data by sending messages to other nodes in the network. This process of propagating data across the network is essential to ensure that the nodes are able to form consensus, as each node maintains and updates their own copy of the network’s ledger.</p><p>The transaction will be pending until it is incorporated into a new valid block, at which point it can generally be regarded as settled and confirmed. The user will be able to browse the relevant block to observe that her transaction has been successfully added to the shared ledger.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oFh3WeapMuQHtKzDqmDWsA.jpeg" /><figcaption>Source: <a href="http://usblogs.pwc.com/emerging-technology/a-primer-on-blockchain-infographic/">PwC</a> (adapted)</figcaption></figure><p><strong>Public vs permissioned DLT networks</strong></p><p>In <strong>public networks</strong> like Bitcoin and Ethereum, any user can run a node to maintain their own copy of the ledger and form part of the consensus mechanism. Whichever node is selected to add a new block will obtain the right to write<strong> </strong>a new set of entries in the ledger. Meanwhile, all others nodes will be able to read the data to confirm its validity and detect malicious alterations. The idea is that nodes should not be able to alter or delete the ledger entries once confirmed, as this would cause a break in the chain and destabilise the system.</p><p>In <strong>permissioned networks</strong> like Ripple (ILP) and R3 Corda, only authorised users can maintain a copy of the ledger and participate in the consensus process. Permissioned networks can be divided into <strong>fully-private</strong> and <strong>consortium</strong> networks, depending on whether the right to participate in the network is governed by a single entity or a group of nodes. Once a node is accepted into the network, it will be able to read and write data to the ledger. Permissioned networks are typically used in the business-to-business (B2B) sector, as they tend to offer greater privacy and scalability. As the participants in the system are known, it is also easier to attach legal liability to transactions taking place in the network.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/594/1*vLp5uB6-SM6PwpRS5sT30A.png" /><figcaption>Source: <a href="https://bitsonblocks.net/2017/01/09/distributed-ledgers-shared-control-not-shared-data/">Bits on blocks</a></figcaption></figure><p>It is important to emphasise that the choice between DLT and centralised database systems comes down to a series of trade-offs. As <a href="https://scooblr.com/blockchains-vs-centralized-databases/">Rose Vern</a> states, “if you’re blinded by the hype and deafened by the noise, you’re unlikely to make that choice objectively”. DLT is far from being a solution that is looking for a problem, but in some cases there may there is a wide range of alternatives that merit consideration.</p><p><strong>The value added by DLT</strong></p><p>DLT is a foundational technology that can be implemented to achieve a wide range of goals, rather than an application in itself. DLT has 5 important advantages:</p><ol><li>the blockchain data structure creates a tamper-resistant and transparent data trail that can be audited and monitored by the nodes in the network;</li><li>payments conducted in a DLT network can be automated, in so far as they are generally confirmed shortly after transmission;</li><li>there is no need to rely on a central authority to validate transactions. Instead, trust is distributed to deter any single user from taking advantage of others by manipulating transactions;</li><li>the absence of centralised control (for instance by banks or payment processors) and the standardisation of data can help to reduce transaction costs; and</li><li>DLT networks are distributed and have no single point of failure — a node can enter or leave the network at any time without causing disruption.</li></ol><p><strong>The limitations of DLT</strong></p><p>While we will comment on the limitations of DLT as we go along, here are 5 important ones:</p><ol><li>DLT networks are far from <a href="https://medium.com/@preethikasireddy/eli5-what-do-we-mean-by-blockchains-are-trustless-aa420635d5f6">trustless</a> or immune to attacks — we still need to ensure that the participants in the system (i.e. users, nodes and developers) refrain from forming cartels to conduct malicious actions;</li><li>DLT networks are not fully <a href="https://bitsonblocks.net/2016/02/29/a-gentle-introduction-to-immutability-of-blockchains/">immutable</a>. While the data in the ledger cannot be directly removed, indirect actions can be taken retrospectively to invalidate or alter the data in the ledger (Lesson 4);</li><li>it is usually expensive to send large packages of data into the network, as every node will need to store a copy of that data once it is included in a valid block. This makes DLT networks impractical for storing images and documents;</li><li>the process of adding data to the ledger tends to be slower than with centralised databases, as it needs to go through a network-wide confirmation process. This limits the throughput of DLT networks and may cause periods of temporary congestion;</li><li>in DLT networks, users are in charge of their own security. They must safeguard their private key to sign transactions and ensure that these are sent in a compliant manner. DLT networks are not user friendly and hackers are constantly taking advantage of users’ mistakes.</li></ol><p><em>Note: some of these advantages and limitations do not apply to permissioned networks — we examine these in detail in Lesson 5. The lists are non-exhaustive.</em></p><p><strong>Lesson recap</strong></p><p>In this lesson, we examined the foundational elements of blockchain technology. In particular, we learned that a blockchain is a data structure that allows nodes in a P2P network to reach consensus on shared data. The use of hashes is instrumental in this regard, as it prevents malicious alterations to the agreed data record (or ledger) from going undetected. In combination, this suite of distributed ledger technologies allows data to be maintained without having to trust a central entity to adequately safeguard the data record.</p><p>To make the most out of this course, please go through the exercises and materials that follow to build on our discussion.</p><p><strong>Consolidation exercises</strong></p><ol><li>Generate some hashes by entering your own selection of data:</li></ol><p><a href="http://www.xorbin.com/tools/sha256-hash-calculator">SHA-256 hash calculator. Online SHA-256 hash generator. Mining Bitcoin</a></p><p>2. Have a go now at building your own basic blockchain:</p><p><a href="https://blockchaindemo.io/">Blockchain Demo</a></p><p><strong>Extend your knowledge</strong></p><ul><li><a href="https://coincenter.org/entry/what-is-blockchain-anyway">What is &quot;Blockchain&quot; anyway? | Coin Center</a></li><li><a href="https://hackernoon.com/wtf-is-the-blockchain-1da89ba19348">WTF is The Blockchain? | HackerNoon</a></li><li><a href="https://bitsonblocks.net/2015/09/09/a-gentle-introduction-to-blockchain-technology/">A gentle introduction to blockchain technology</a></li></ul><p><strong>Finally, watch this video to prepare for Lesson 2</strong></p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2Ft5JGQXCTe3c%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3Dt5JGQXCTe3c&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2Ft5JGQXCTe3c%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/032f77ae9492d280754ab9d7c7feeebd/href">https://medium.com/media/032f77ae9492d280754ab9d7c7feeebd/href</a></iframe><p>Don’t worry if you have not yet digested some of the more technical points. If you have any questions, please comment on our <a href="http://t.me/uinspire_academy">Telegram</a> group. We look forward to seeing you in <a href="https://medium.com/uinspire/uinspire-blockchain-course-lesson-2-the-bitcoin-revolution-a0d522e1c593">Lesson 2</a>, where we will explore together the components of the most popular blockchain network: Bitcoin!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6342f139d101" width="1" height="1" alt=""><hr><p><a href="https://medium.com/uinspire/uinspire-blockchain-course-lesson-1-foundations-of-blockchain-technology-6342f139d101">Uinspire Blockchain Course {Lesson 1: Foundations of Blockchain Technology}</a> was originally published in <a href="https://medium.com/uinspire">Uinspire</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>