Article: Smart Contracts — A Few Tips to Avoid Being Outsmarted

Origignally published at the JD Supra Platform

Exploring the Relationship Between Smart Contracts and IoT Devices

Proponents of digital innovations such as blockchain, the Internet of Things (IoT) and smart devices have hailed the introduction of such technology as the Fourth Industrial Revolution. When used together, they may create self-executing “smart contracts” for a variety of transactions. Smart contracts do not need to rely on IoT devices, but when they do, these devices are critical to the system, most importantly because they collect and transfer the transaction-related data that triggers the execution of the contracts. But how is that data verified, and what happens if the IoT devices are wrong? This alert lays out a basic understanding of the relationship between smart contracts and IoT devices and identifies a few tips to help avoid some of the potential risks of integrating smart contracts into your business.

What Is a Blockchain?

A blockchain acts as a distributed and immutable ledger for recording transactions including those involving smart contracts. Businesses most often use permissioned blockchains, which allow only authorized users to access the blockchain on a shared network and add data blocks, such as transactions, to it. There is no single “master copy” of the blockchain, but everyone can be confident that her copy of the blockchain is accurate because when one participant adds a transaction to the ledger, it is visible to all others on the network. These participants independently verify the new transaction and come to a consensus in real-time about whether it should be permanently added to the blockchain. The chain cannot be altered once the new transaction is verified, time-stamped and linked sequentially to the chain.

What Is a Smart Contract?

A smart contract, in turn, is a data block that is added to a blockchain ledger for verification. This data block is made up of a line of code that sets the contract provisions between the parties. In the simplest sense, smart contracts are a series of if–then conditions that provide data transmission in accordance with the parties’ agreement. Once added to the ledger, individual computers in the blockchain network — also known as “nodes” — collect and verify data demonstrating a party’s performance of the “if” condition, make a cryptographic signature in the smart-contract code, and then automatically transfer something of value, e.g., money or cryptocurrency, to the counterparty’s account. This allows contracts to be performed and signed simultaneously, thereby dispensing with future obligations or renegotiations.

What Is the Role of IoT Devices?

While smart contracts constitute blocks on the chain, IoT devices are the nodes integrated into a blockchain’s network. This integration allows smart contracts to reflect real-world conditions by relying on IoT devices to verify data inputs instantaneously that then trigger smart contract conditions. Generally speaking, an IoT device is an electronic product that connects to a wireless network to collect, store and transfer data among other IoTs. These devices are all around us: smart watches, home security systems, pet and baby monitors, smart appliances, pacemakers and home assistants. And the demand for IoT devices is growing exponentially. This year, the IoT market is expected to grow 18% to more than 14 billion connections. As the market expands, so too will the ways in which businesses use IoT devices to optimize operations.

Here is one example of how a smart contract could work together in the health and life sciences industry: a manufacturer wins a contract to supply a national pharmacy with insulin. With every delivery, the manufacturer must provide the pharmacy with proof of origin, chain-of-custody, and certification that the product was maintained at a temperature between 36° and 46° Fahrenheit between the time of shipping all the way through its final delivery. The manufacturer enters a smart contract with a shipping company, which is written into a code on a permissioned blockchain, and IoT devices with access to the blockchain network (such as GPS tracking devices and temperature gauges) collect relevant data that also is recorded on the blockchain. Once the devices verify the insulin has been delivered to a location specified in the smart contract and that it was always maintained within the appropriate temperature range, the contract is fulfilled, and payment is automatically transferred from the national pharmacy to the insulin manufacturer and from the manufacturer to the shipping company.

Tips for Use of Smart Contracts

The use of smart contracts may create efficiencies when IoT devices successfully capture relevant data points, such as reducing costs of resources otherwise required to ensure performance, automating recordation of essential characteristics to remove the risk of human error and minimizing the need to litigate contract breaches. The prospect of guaranteed performance and mitigating transaction costs is a tempting benefit, but it does not come without risk. Thus, at a minimum, anyone contemplating a smart contract should:

  • Know the identity of your counterparty. Although businesses almost certainly will use permissioned blockchains, which make the identity of your counterparty more easily detectible, permissionless blockchains allow the user to act with complete anonymity. There are many reasons this is important. For example, it is important to know your counterparty to evaluate risk of nonperformance or malperformance.
  • Know the location of your counterparty. While location of performance may be easily discernible from the smart contract, the physical location of your counterparty may trigger additional obligations, e.g., data privacy laws.
  • Know your coder. The information on the blockchain cannot be changed once it is entered. It is important that the information being added to the blockchain is written correctly to avoid unintended (and irreversible) consequences.
  • Know who is responsible if a smart device makes a mistake. IoT device integration is designed to minimize human inefficiencies related to contract performance, but these devices may create new inefficiencies because they do not allow for intervention in unforeseen circumstances during contract performance. IoT devices are not infallible. Using the example above, it is possible that a smart device in the insulin contract reports the wrong temperature, exchange rate, interest rate or location of delivery. Any one of these incorrectly reported variables could detrimentally affect a party to the smart contract.

https://www.jdsupra.com/legalnews/smart-contracts-a-few-tips-to-avoid-6197322/