{"id":3034,"date":"2024-10-22T12:49:22","date_gmt":"2024-10-22T12:49:22","guid":{"rendered":"https:\/\/apex-aiexperts.com\/?p=3034"},"modified":"2024-10-22T12:49:22","modified_gmt":"2024-10-22T12:49:22","slug":"what-is-a-smart-contract","status":"publish","type":"post","link":"https:\/\/apex-aiexperts.com\/ja\/what-is-a-smart-contract\/","title":{"rendered":"\u30b9\u30de\u30fc\u30c8\u30fb\u30b3\u30f3\u30c8\u30e9\u30af\u30c8\u3068\u306f\u4f55\u304b\uff1f"},"content":{"rendered":"<p class=\"wp-block-paragraph\">Ethereum is known as a \u201c<strong>smart contract platform<\/strong>\".<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">A&nbsp;<strong>\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0<\/strong>&nbsp;(or computing platform) is an operating environment in which a piece of software, like programs or applications, can be run (or \u201cexecuted\u201d).<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">But what the heck is a&nbsp;<strong>smart contract<\/strong>?<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u30b9\u30de\u30fc\u30c8\u30fb\u30b3\u30f3\u30c8\u30e9\u30af\u30c8\u3068\u306f\u4f55\u304b\uff1f<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Smart contracts are automated computer programs that are hosted and executed on a blockchain.&nbsp;<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/bpcdn.co\/images\/2022\/08\/07174222\/smart-contract-code.png\" alt=\"Smart Contract Code\" class=\"wp-image-228210\"\/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Despite its name, \u201csmart contracts\u201d aren\u2019t necessarily smart or legally binding.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\"<em>Automated<\/em>\u201d instead of \u201csmart\u201d and \u201c<em>program<\/em>\u201d instead of \u201ccontract\u201d would\u2019ve been a better name, but I\u2019m not the genius who came up with the concept!<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Nick Szabo<\/strong>&nbsp;\u2013 who coined the term in the late 90\u2019s \u2013 compared smart contracts to a vending machine.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Users insert coins into the machine and, assuming the inserted amount is correct, the machine \u201c<strong>self-executes<\/strong>\u201d and delivers the goods they requested. Nobody else was involved but you and the vending machine. No third-party involvement was required. Not even the vending machine owner.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The interaction requires little to no trust: the vending machine has no choice but to deliver the goods upon receiving the money.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/bpcdn.co\/images\/2022\/08\/08130304\/smart-contract-vending-machine-exanoke.png\" alt=\"Smart Contract Example\" class=\"wp-image-228246\"\/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Now imagine writing agreements that have terms as clear and predictable as a vending machine and then using blockchain technology to automatically implement the terms of an agreement between parties.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">That\u2019s what a smart contract does.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">In Ethereum, smart contracts are bits of coded instructions submitted onto the blockchain so that network participants can enforce and store these contracts in a secure and trustless manner.<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p class=\"wp-block-paragraph\">In slightly more technical terms, a smart contract is a collection of&nbsp;<strong>code and data<\/strong>&nbsp;that resides at a specific address on Ethereum\u2019s blockchain.<\/p>\n<\/blockquote>\n\n\n\n<p class=\"wp-block-paragraph\">Smart contracts are also&nbsp;<strong>deterministic<\/strong>&nbsp;so that those involved in the contract know what results to expect when the contract is executed.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Think of a smart contract as a software program on the blockchain that automatically executes when predetermined conditions are met.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">These predetermined conditions, directly written into<strong>&nbsp;lines of code,&nbsp;<\/strong>are the equivalent of the \u201cterms of agreement\u201d in a traditional contract.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Now that you know what smart contracts are, let me introduce you to what makes Ethereum a smart contract platform.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">What is EVM?<\/h2>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/bpcdn.co\/images\/2022\/08\/17121725\/evm-360x360.png\" alt=\"EVM\" class=\"wp-image-229161\"\/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">No, it\u2019s not a new type of electronic music.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If smart contracts are instructions written in code, it\u2019s the&nbsp;<strong>Ethereum Virtual Machine (EVM)<\/strong>&nbsp;that executes them on the Ethereum blockchain.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">A \"<strong>\u4eee\u60f3\u30de\u30b7\u30f3<\/strong>\u201d is a piece of software that behaves like an actual physical computer that can run programs and deploy apps.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">It\u2019s basically a software program on a physical computer that works like it is a&nbsp;<strong>\u30e1\u30a4\u30f3\u30fb\u30b3\u30f3\u30d4\u30e5\u30fc\u30bf\u30fc\u5185\u306e\u72ec\u7acb\u3057\u305f\u30b3\u30f3\u30d4\u30e5\u30fc\u30bf\u30fc<\/strong>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Why is a \u201cseparate computer\u201d needed to execute smart contracts (which are just computer programs)?<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Since not every Ethereum node (which are just computers) uses the same hardware, operating system (OS), and other settings, you need a way to \u201cabstract\u201d all this out so the code of the smart contract can just run without having to deal with all the different types of computer configurations with their specific requirements.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Otherwise, you\u2019d have to write a different version of the smart contract for each type of computer configuration!\u00a0<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Smart contracts don\u2019t want to deal with all this drama!&nbsp; It wants to be device-agnostic and OS-agnostic.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This is where the EVM comes in.\u00a0<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u3092\u63d0\u4f9b\u3059\u308b\u3002&nbsp;<strong>execution environment<\/strong>&nbsp;for smart contracts, meaning a smart contract can execute (\u201crun\u201d) in&nbsp;<em>any<\/em>&nbsp;environment (\u201cany computer or operating system\u201d).<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Developers can write a smart contract and be sure that it follows the software industry standard practice of \u201cWrite once, run anywhere\u201d (WORA), also known as \u201cWrite once, run everywhere\u201d (WORE).<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Basically, a smart contract is will run on any computer with an EVM, Cool huh?<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">But that\u2019s not the only cool thing.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Since the EVM\u2019s purpose is to be<strong>&nbsp;the computation engine embedded in all full Ethereum nodes.&nbsp;<\/strong>it is&nbsp;<strong>Turing-complete.&nbsp;<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">In computer-speak, \u201c<strong>Turing-complete\u201d<\/strong>&nbsp;means that EVM can theoretically compute anything you can think of computing.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">So, in theory, ANY computer application can be programmed and run on the Ethereum platform!<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Smart contracts are written in code using high-level programming languages like Solidity, Vyper, or Serpent.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This code gets compiled to something called \u201cbytecode\u201d by the EVM which then gets deployed to the Ethereum blockchain<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Thanks to EVM, the Ethereum blockchain can go beyond smart contracts and can be used to create&nbsp;<strong>decentralized applications (dApps)<\/strong>.<\/p>","protected":false},"excerpt":{"rendered":"<p>Ethereum is known as a \u201csmart contract platform\u201c. A&nbsp;platform&nbsp;(or computing platform) is an operating environment in which a piece of software, like programs or applications, can be run (or \u201cexecuted\u201d). But what the heck is a&nbsp;smart contract? What is a Smart Contract? Smart contracts are automated computer programs that are hosted and executed on a blockchain.&nbsp; Despite its name, \u201csmart contracts\u201d aren\u2019t necessarily smart or legally binding. \u201cAutomated\u201d instead of \u201csmart\u201d and \u201cprogram\u201d instead of \u201ccontract\u201d would\u2019ve been a better name, but I\u2019m not the genius who came up with the concept! Nick Szabo&nbsp;\u2013 who coined the term in the late 90\u2019s \u2013 compared smart contracts to a vending machine. [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[37,12],"tags":[],"class_list":["post-3034","post","type-post","status-publish","format-standard","hentry","category-beginners-guide-to-ethereum","category-learn-crypto"],"_links":{"self":[{"href":"https:\/\/apex-aiexperts.com\/ja\/wp-json\/wp\/v2\/posts\/3034","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/apex-aiexperts.com\/ja\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/apex-aiexperts.com\/ja\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/apex-aiexperts.com\/ja\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/apex-aiexperts.com\/ja\/wp-json\/wp\/v2\/comments?post=3034"}],"version-history":[{"count":1,"href":"https:\/\/apex-aiexperts.com\/ja\/wp-json\/wp\/v2\/posts\/3034\/revisions"}],"predecessor-version":[{"id":3035,"href":"https:\/\/apex-aiexperts.com\/ja\/wp-json\/wp\/v2\/posts\/3034\/revisions\/3035"}],"wp:attachment":[{"href":"https:\/\/apex-aiexperts.com\/ja\/wp-json\/wp\/v2\/media?parent=3034"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/apex-aiexperts.com\/ja\/wp-json\/wp\/v2\/categories?post=3034"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/apex-aiexperts.com\/ja\/wp-json\/wp\/v2\/tags?post=3034"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}