<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Rodolphe Vanderaspoilden</title>
    <description>The latest articles on DEV Community by Rodolphe Vanderaspoilden (@rvanderaspoilden).</description>
    <link>https://dev.to/rvanderaspoilden</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1000289%2F03289fb7-7c9a-4a22-8ef6-bf6a72ed88bb.jpeg</url>
      <title>DEV Community: Rodolphe Vanderaspoilden</title>
      <link>https://dev.to/rvanderaspoilden</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/rvanderaspoilden"/>
    <language>en</language>
    <item>
      <title>What is a smart contract ?</title>
      <dc:creator>Rodolphe Vanderaspoilden</dc:creator>
      <pubDate>Wed, 11 Jan 2023 08:55:41 +0000</pubDate>
      <link>https://dev.to/jetdev/what-is-a-smart-contract--3a18</link>
      <guid>https://dev.to/jetdev/what-is-a-smart-contract--3a18</guid>
      <description>&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--v5ohXMH1--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/brzhnpgey6ggntldnoi3.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--v5ohXMH1--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/brzhnpgey6ggntldnoi3.jpg" alt="Image description" width="880" height="503"&gt;&lt;/a&gt;&lt;br&gt;
Image by pch.vector on Freepik&lt;/p&gt;

&lt;h2&gt;
  
  
  Origin of the Smart contract
&lt;/h2&gt;

&lt;p&gt;Nick Szabo, an expert in cryptography, is the creator of the concept of "smart contracts," more commonly known as "smart contracts." In 1998, he designed the first decentralized digital mechanism, "Bit gold," recognized as the precursor to "Bitcoin." However, it was never implemented due to lack of funding.&lt;/p&gt;

&lt;p&gt;Nick Szabo defines a smart contract as a computer program inscribed in the blockchain consisting of predefined conditions designed to execute specific code when these are met.&lt;/p&gt;

&lt;p&gt;The main goal is to simplify the contractual conditions of everyday life such as payment issues but not only. It also allows the need for a third party of trust to verify transactions between peers to be reduced.&lt;/p&gt;

&lt;h2&gt;
  
  
  Its specificities
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Immutable&lt;/strong&gt; : The conditions having been predefined in the contract ensure operation governed by code without human intervention being possible. Be careful, since the smart contract is written in the blockchain, it cannot be modified or deleted. This has many advantages but in the event of human error in the code, it will be irreversible. We have already witnessed stories of funds blocked on a smart contract that cannot be withdrawn due to code errors. I'll let you take a look at this &lt;a href="https://cryptoactu.com/fiasco-nft-34-millions-dollars-bloques-smart-contract/"&gt;article&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Integral&lt;/strong&gt; : The smart contract being inscribed in the blockchain allows everyone to read the contract conditions, but also to see each transaction that has been made since the deployment of the smart contract (in the case of a public blockchain).&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Secure&lt;/strong&gt; : Each transaction involves digital and encrypted signatures to verify the identity of the actors.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Transparent&lt;/strong&gt; : A smart contract is transparent, every transaction is visible to all in the case of a public blockchain. We can therefore deduce the confidentiality problems in the case where we want to store &lt;em&gt;"sensitive/private"&lt;/em&gt; data. There are always solutions to this, of course (through protocols of the &lt;a href="https://z.cash/technology/zksnarks/"&gt;zk-SNARKs&lt;/a&gt; type like the Z-Cash blockchain, for example).&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Transaction cost&lt;/strong&gt; : Writing to the blockchain has a cost, we call it &lt;strong&gt;gas fees&lt;/strong&gt;. When the smart contract executes a transaction, the applied gas fees will be used to compensate the actors who secure the blockchain. These fees vary depending on the activity of the blockchain but also on its architecture and the optimization of the smart contract. We have seen fees exceeding hundred of dollars on &lt;strong&gt;Ethereum&lt;/strong&gt; during periods of high activity, against a few cents of dollars on &lt;strong&gt;Polygon&lt;/strong&gt;. It is therefore important to keep this in mind when choosing your blockchain as it may be an issue to your project.&lt;/p&gt;

&lt;h2&gt;
  
  
  Some examples of use
&lt;/h2&gt;

&lt;p&gt;Smart contracts have an interesting added value, we can think of many use cases such as insurance, real estate, voting systems, supply chain, etc. Here are a few examples:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Insurance&lt;/strong&gt; : The smart contract can be used to define the terms and conditions of an insurance policy. For example, in the event of a natural disaster, the smart contract can automatically trigger the payment of insurance to policyholders affected by the disaster.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Real estate&lt;/strong&gt; : The problem in this sector is the need for a third party of trust (the notary) to carry out the contract and payments between sellers and buyers. With a smart contract on the blockchain, we could do without this third party of trust because it guarantees the transaction. The signature of the smart contract would be equivalent to that of the notary.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Voting systems&lt;/strong&gt; : The smart contract can be used to ensure the integrity and transparency of voting systems.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Artistic sector&lt;/strong&gt; : The authenticity of a digital work can be verified by its smart contract as in the case of NFT (Non-Fungible Token). It is composed of certain predefined conditions that allow:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;To manage the transfer of rights between its owner and its future purchaser&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;To verify the funds of the purchaser before buying the work&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;To retrieve the link to the image of the NFT. This is a vast subject that deserves an article of its own.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;Due to its specificities, the smart contract could revolutionize the world of tomorrow. Its adoption curve is strongly progressing. &lt;/p&gt;

&lt;p&gt;As for me, I am convinced that there are great things to be done to solve problems of our daily lives and thus improve the comfort of society. &lt;/p&gt;

&lt;h2&gt;
  
  
  More informations
&lt;/h2&gt;

&lt;p&gt;(Paper of Nick Szabo about smart contracts)&lt;br&gt;
&lt;a href="https://www.fon.hum.uva.nl/rob/Courses/InformationInSpeech/CDROM/Literature/LOTwinterschool2006/szabo.best.vwh.net/smart.contracts.html"&gt;https://www.fon.hum.uva.nl/rob/Courses/InformationInSpeech/CDROM/Literature/LOTwinterschool2006/szabo.best.vwh.net/smart.contracts.html&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;(Introduction to smart contracts)&lt;br&gt;
&lt;a href="https://ethereum.org/fr/developers/docs/smart-contracts/"&gt;https://ethereum.org/fr/developers/docs/smart-contracts/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;(What is blockchain ?)&lt;br&gt;
&lt;a href="https://www.ibm.com/fr-fr/topics/what-is-blockchain"&gt;https://www.ibm.com/fr-fr/topics/what-is-blockchain&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;(Analysis of smart contract's market)&lt;br&gt;
&lt;a href="https://reports.valuates.com/market-reports/QYRE-Auto-31L1599/global-smart-contracts"&gt;https://reports.valuates.com/market-reports/QYRE-Auto-31L1599/global-smart-contracts&lt;/a&gt;&lt;/p&gt;

</description>
      <category>blockchain</category>
      <category>smartcontract</category>
      <category>crypto</category>
    </item>
    <item>
      <title>Qu'est ce qu'un smart contract ?</title>
      <dc:creator>Rodolphe Vanderaspoilden</dc:creator>
      <pubDate>Wed, 11 Jan 2023 08:55:30 +0000</pubDate>
      <link>https://dev.to/jetdev/quest-ce-quun-smart-contract--4d3l</link>
      <guid>https://dev.to/jetdev/quest-ce-quun-smart-contract--4d3l</guid>
      <description>&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F8f6850xqnjbj6eu4zjxi.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F8f6850xqnjbj6eu4zjxi.jpg" alt="Image description" width="800" height="457"&gt;&lt;/a&gt;&lt;br&gt;
Image by pch.vector on Freepik&lt;/p&gt;

&lt;h2&gt;
  
  
  Origine du Smart contract
&lt;/h2&gt;

&lt;p&gt;Nick Szabo expert en cryptographie est le créateur du concept de “contrats intelligents” plus connus sous le nom de “smart contract”. En 1998 il conçoit le premier mécanisme numérique décentralisé le “Bit gold”, reconnu comme étant le précurseur du “Bitcoin”. Cependant il n’a jamais été implémenté par manque de financements. &lt;/p&gt;

&lt;p&gt;Nick Szabo définit un smart contract comme étant un programme informatique inscrit dans la blockchain composé de conditions prédéfinies ayant pour but d'exécuter un code particulier quand celles-ci sont remplies. &lt;/p&gt;

&lt;p&gt;L’objectif principal étant de simplifier les conditions contractuelles de la vie courante telles que les problématiques de paiement mais pas que. Il permet aussi de réduire le besoin d’avoir un tiers de confiance pour vérifier les transactions entre pairs. &lt;/p&gt;

&lt;h2&gt;
  
  
  Ses spécificités
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Immuable&lt;/strong&gt; : Les conditions ayant été prédéfinies dans le contrat assurent un fonctionnement régi par le code sans intervention humaine possible. Attention, étant donné que le smart contract est écrit dans la blockchain: il ne peut être modifié ni supprimé. Cela a beaucoup d’avantage mais en cas d’erreur humaine dans le code, ce sera irréversible. Nous avons déjà pu assister à des histoires de fonds bloqués sur un smart contract ne pouvant être retirés par faute de code. Je vous laisse jeter un oeil à cet &lt;a href="https://cryptoactu.com/fiasco-nft-34-millions-dollars-bloques-smart-contract/" rel="noopener noreferrer"&gt;article&lt;/a&gt;. &lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Intègre&lt;/strong&gt; : Le smart contract étant inscrit dans la blockchain permet à tous de lire les conditions du contrat, mais aussi de voir chaque transaction qui a été effectuée depuis le déploiement du smart contract (dans le cas d'une blockchain publique).&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Sécurisé&lt;/strong&gt; : Chaque transaction implique des signatures numériques et cryptées afin de vérifier l’identité des acteurs.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Transparent&lt;/strong&gt; : Un smart contract est transparent, toute transaction est visible par tous dans le cas d'une blockchain publique. On en déduit donc les problématiques de confidentialité dans le cas où nous souhaitons stocker de la donnée &lt;em&gt;“sensible/privée”&lt;/em&gt;. Il existe toujours des solutions pour palier à cela bien sûr (par le biais de protocoles de type &lt;a href="https://z.cash/technology/zksnarks/" rel="noopener noreferrer"&gt;zk-SNARKs&lt;/a&gt; comme la blockchain Z-Cash par exemple).&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Coût de transaction&lt;/strong&gt; : Écrire sur la blockchain a un coût, on appelle ça les frais de gas (gas fees). Lorsque le smart contract exécute une transaction, les gas fees appliqués vont servir à rémunérer les acteurs qui sécurisent la blockchain. Ces frais sont variables en fonction de l’activité de la blockchain mais aussi de l’architecture de celle-ci et de l'optimisation du smart contract. On a pu assister à des frais dépassant une centaine de dollars sur la blockchain &lt;strong&gt;Ethereum&lt;/strong&gt; pendant les périodes de forte activité, contre quelques centimes de dollars sur la blockchain &lt;strong&gt;Polygon&lt;/strong&gt;. Il faut donc garder à l’esprit ce point là lors de votre choix de blockchain car il peut être un frein à votre projet.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Quelques exemples d'utilisation
&lt;/h2&gt;

&lt;p&gt;Les smart contracts ont une plus-value intéressante, on peut naturellement penser à des secteurs d’activité auxquels ils pourraient servir : le bancaire, l'immobilier, les assurances...&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;L’immobilier&lt;/strong&gt; est un bon exemple; la problématique de ce secteur est la nécessité d'avoir un tiers de confiance (le notaire) pour effectuer le contrat et les paiements entre les vendeurs et acquéreurs. Avec un smart contract sur la blockchain on pourrait se passer de ce tiers de confiance car ce dernier garantit la transaction. La signature du smart contract serait équivalente à celle du notaire.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Dans le cas des assurances&lt;/strong&gt;, on se rend compte que son fonctionnement peut être régi par un smart contract :&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Si le véhicule A percute le véhicule B alors le véhicule A est en tort et doit indemniser le véhicule B.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Cette condition exécuterait une transaction dans le cas où elle est vérifiée. Tiens tiens, ne serait-ce pas la définition d’un smart contract ? 😉&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Dans le secteur artistiques&lt;/strong&gt;, l'authenticité d'une oeuvre numérique peut être vérifiée par son smart contract comme dans le cas des &lt;strong&gt;NFT&lt;/strong&gt; (Not Fongible Token). Il est composé de certaines conditions prédéfinies qui permettent : &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;De gérer le transfert de droit entre son propriétaire et son futur acquéreur&lt;/li&gt;
&lt;li&gt;De vérifier les fonds de l'acquéreur avant d’acheter l'œuvre&lt;/li&gt;
&lt;li&gt;De récupérer le lien vers l’image du NFT. Il s’agit d’un vaste sujet qui mérite un article à lui tout seul.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Le mot de la fin
&lt;/h2&gt;

&lt;p&gt;De par ses spécificités, le smart contract pourrait révolutionner le monde de demain. Il n’en est qu’à ses débuts  mais sa courbe d'adoption est en forte progression. &lt;/p&gt;

&lt;p&gt;Quant à moi je suis convaincu qu’il y a de grandes choses à faire pour résoudre des problématiques de notre quotidien et ainsi améliorer le confort de la société. &lt;/p&gt;

&lt;h2&gt;
  
  
  En savoir plus
&lt;/h2&gt;

&lt;p&gt;(Explications de  Nick Szabo à propos des smart contracts)&lt;br&gt;
&lt;a href="https://www.fon.hum.uva.nl/rob/Courses/InformationInSpeech/CDROM/Literature/LOTwinterschool2006/szabo.best.vwh.net/smart.contracts.html" rel="noopener noreferrer"&gt;https://www.fon.hum.uva.nl/rob/Courses/InformationInSpeech/CDROM/Literature/LOTwinterschool2006/szabo.best.vwh.net/smart.contracts.html&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;(Introduction aux smart contracts)&lt;br&gt;
&lt;a href="https://ethereum.org/fr/developers/docs/smart-contracts/" rel="noopener noreferrer"&gt;https://ethereum.org/fr/developers/docs/smart-contracts/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;(Qu’est ce que la blockchain ?)&lt;br&gt;
&lt;a href="https://www.ibm.com/fr-fr/topics/what-is-blockchain" rel="noopener noreferrer"&gt;https://www.ibm.com/fr-fr/topics/what-is-blockchain&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;(Rapport d'analyse du marché des smart contracts)&lt;br&gt;
&lt;a href="https://reports.valuates.com/market-reports/QYRE-Auto-31L1599/global-smart-contracts" rel="noopener noreferrer"&gt;https://reports.valuates.com/market-reports/QYRE-Auto-31L1599/global-smart-contracts&lt;/a&gt;&lt;/p&gt;

</description>
      <category>career</category>
      <category>cybersecurity</category>
      <category>networking</category>
      <category>productivity</category>
    </item>
  </channel>
</rss>
