{"version":"https://jsonfeed.org/version/1.1","title":"Stephen Ajulu","home_page_url":"https://ajulu.netlify.app/","feed_url":"https://ajulu.netlify.app/tags/digital-ledger/feed.json","description":"Hello, I'm Stephen Ajulu, a seasoned multidisciplinary tech professional with over a decade of experience. I build impactful solutions using design, tech, and engineering in the pursuit of impact.","icon":"https://ajulu.netlify.app/images/me.jpg","authors":[{"name":"Stephen Ajulu","url":"https://stephenajulu.com","avatar":"https://ajulu.netlify.app/images/me.jpg"}],"items":[{"id":"https://ajulu.netlify.app/posts/what-are-smart-contracts-smart-contracts-explained/","url":"https://ajulu.netlify.app/posts/what-are-smart-contracts-smart-contracts-explained/","title":"What are Smart Contracts? How Do They Work? Smart Contracts Explained","summary":"A smart contract is a computer program or a transaction protocol that is intended to automatically execute, control, or document legally relevant events and actions according to the terms of a contract or an agreement. The objectives of smart contracts are the reduction of need in trusted intermediates, arbitrations, and enforcement costs, fraud losses, as well as the reduction of malicious and accidental exceptions.\nThe code and the agreements contained therein exist across a distributed, decentralized blockchain network. The code controls the execution, and transactions are trackable and irreversible.\n","content_html":"\u003cp\u003eA \u003cstrong\u003esmart contract\u003c/strong\u003e is a computer program or a transaction protocol that is intended to automatically execute, control, or document legally relevant events and actions according to the terms of a contract or an agreement. The objectives of smart contracts are the reduction of need in trusted intermediates, arbitrations, and enforcement costs, fraud losses, as well as the reduction of malicious and accidental exceptions.\u003c/p\u003e\n\u003cp\u003eThe code and the agreements contained therein exist across a distributed, decentralized \u003ca href=\"https://stephenajulu.com/blog/what-is-blockchain-how-does-it-work-blockchain-explained/\"\u003eblockchain\u003c/a\u003e network. The code controls the execution, and transactions are trackable and irreversible.\u003c/p\u003e\n\u003cp\u003eSmart contracts permit trusted transactions and agreements to be carried out among disparate, anonymous parties without the need for a central authority, legal system, or external enforcement mechanism.\u003c/p\u003e\n\u003cp\u003eSmart contracts are made possible by \u003ca href=\"https://stephenajulu.com/blog/what-is-blockchain-how-does-it-work-blockchain-explained/\"\u003eblockchains\u003c/a\u003e, a network of computers that work together to enforce rules on the network without requiring the help of an intermediary.\u003c/p\u003e\n\u003ch3 id=\"how-smart-contracts-work\"\u003eHow smart contracts work\u003c/h3\u003e\n\u003cp\u003eSmart contracts work by following simple “if/when…then…” statements that are written into code on a blockchain. A network of computers executes the actions when predetermined conditions have been met and verified. These actions could include releasing funds to the appropriate parties, registering a vehicle, sending notifications, or issuing a ticket. The \u003ca href=\"https://stephenajulu.com/blog/what-is-blockchain-how-does-it-work-blockchain-explained/\"\u003eblockchain\u003c/a\u003e is then updated when the transaction is completed. That means the transaction cannot be changed, and only parties who have been granted permission can see the results.\u003c/p\u003e\n\u003cp\u003eWithin a smart contract, there can be as many stipulations as needed to satisfy the participants that the task will be completed satisfactorily. To establish the terms, participants must determine how transactions and their data are represented on the blockchain, agree on the “if/when\u0026hellip;then…” rules that govern those transactions, explore all possible exceptions, and define a framework for resolving disputes.\u003c/p\u003e\n\u003cp\u003eThen the smart contract can be programmed by a developer – although increasingly, organizations that use \u003ca href=\"https://stephenajulu.com/blog/what-is-blockchain-how-does-it-work-blockchain-explained/\"\u003eblockchain\u003c/a\u003e for business provide templates, web interfaces, and other online tools to simplify structuring smart contracts.\u003c/p\u003e\n\u003cp\u003eWith conventional contracts, a document outlines the terms of a relationship between two parties, which is enforceable by law. If one Party A violates the terms, Party B can take Party A to court for not complying with the agreement. A smart contract fortifies such agreements in code so the rules are automatically enforced without courts (or any third party) getting involved.\u003c/p\u003e\n\u003ch3 id=\"benefits-of-smart-contracts\"\u003eBenefits of smart contracts\u003c/h3\u003e\n\u003cul\u003e\n\u003cli\u003e\u003cstrong\u003eSpeed, efficiency, and accuracy:\u003c/strong\u003e Once a condition is met, the contract is executed immediately. Because smart contracts are digital and automated, there’s no paperwork to process and no time spent reconciling errors that often result from manually filling in documents.\u003c/li\u003e\n\u003cli\u003e\u003cstrong\u003eTrust and transparency:\u003c/strong\u003e Because there’s no third party involved, and because encrypted records of transactions are shared across participants, there’s no need to question whether information has been altered for personal benefit.\u003c/li\u003e\n\u003cli\u003e\u003cstrong\u003eSecurity:\u003c/strong\u003e Blockchain transaction records are encrypted, which makes them very hard to hack. Moreover, because each record is connected to the previous and subsequent records on a distributed ledger, hackers would have to alter the entire chain to change a single record.\u003c/li\u003e\n\u003cli\u003e\u003cstrong\u003eSavings:\u003c/strong\u003e Smart contracts remove the need for intermediaries to handle transactions and, by extension, their associated time delays and fees.\u003c/li\u003e\n\u003c/ul\u003e\n\u003ch3 id=\"what-can-smart-contracts-be-used-for\"\u003eWhat can smart contracts be used for?\u003c/h3\u003e\n\u003cp\u003eSome common ways of using smart contracts are:\u003c/p\u003e\n\u003cul\u003e\n\u003cli\u003e\u003cstrong\u003eMultisignature accounts\u003c/strong\u003e: Funds can only be spent when a required percentage of people agree.\u003c/li\u003e\n\u003cli\u003e\u003cstrong\u003eEncoding financial agreements\u003c/strong\u003e: Manage agreements between users. Say, if one person buys insurance from an insurance company, the rules of when the insurance can be redeemed can be programmed into a smart contract.\u003c/li\u003e\n\u003cli\u003e\u003cstrong\u003eAgreements based on the outside world\u003c/strong\u003e: Pull in data from the outside world (financial, political, or whatever) with the help of oracles.\u003c/li\u003e\n\u003cli\u003e\u003cstrong\u003eProvide the third party\u003c/strong\u003e: Similar to how a software library works, smart contracts can work with other smart contracts in a chain.\u003c/li\u003e\n\u003cli\u003e\u003cstrong\u003eStorage\u003c/strong\u003e: Store information about an application, such as domain registration information or membership records. Storage in a blockchain like Ethereum is unique in that the data is immutable and can\u0026rsquo;t be erased.\u003c/li\u003e\n\u003c/ul\u003e\n\u003ch3 id=\"examples-of-blockchain-platforms-supporting-smart-contracts\"\u003eExamples of \u003ca href=\"https://stephenajulu.com/blog/6-cryptocurrencies-blockchains-with-massive-potential/\"\u003eblockchain platforms\u003c/a\u003e supporting smart contracts\u003c/h3\u003e\n\u003cul\u003e\n\u003cli\u003e\u003cstrong\u003eBitcoin:\u003c/strong\u003e Provides a Turing-incomplete script language that allows the creation of custom smart contracts on top of Bitcoin like multisignature accounts, payment channels, escrows, time locks, atomic cross-chain trading, oracles, or multi-party lottery with no operator.\u003c/li\u003e\n\u003cli\u003e\u003cstrong\u003eCardano:\u003c/strong\u003e A blockchain platform for smart contracts, using proof of stake\u003c/li\u003e\n\u003cli\u003e\u003cstrong\u003eEthereum:\u003c/strong\u003e Implements a Turing-complete language on its blockchain, a prominent smart contract framework.\u003c/li\u003e\n\u003cli\u003e\u003cstrong\u003eEOS.IO:\u003c/strong\u003e A blockchain platform for smart contracts\u003c/li\u003e\n\u003cli\u003e\u003cstrong\u003eTezos:\u003c/strong\u003e A blockchain platform modifying its own set of rules with minimal disruption to the network through an on-chain governance model\u003c/li\u003e\n\u003c/ul\u003e\n","date_published":"2021-12-09T11:00:00+03:00","image":"https://ajulu.netlify.app/images/smart-contract-featured-image.png","tags":["technology","smart contracts","blockchain","decentralized","ledger","hyperledger","digital ledger","cryptocurrencies","crypto","bitcoin","ethereum"]}]}