Javier Castro - Fotolia
For most organizations, IoT has been mostly about more and better widgets connected in more and better ways to produce more and better data and decisions. But IoT is also implicitly about automating everything. And that implies bringing a lot of business concepts along for the ride -- including the idea of a contract to govern business transactions by.
Contract law has a rich history, with several centuries of common law practice and legislation. So, when forward thinkers propose to make "smart" contracts on blockchain, it's both exciting and daunting. How the concept actually evolves has a lot to do with future IoT initiatives. There are legal complexities to be considered, as well as potential problems such as unanticipated bugs in both the code and the contracts themselves.
IoT and smart contracts on blockchain intersect
"One of the biggest issues in IoT is knowing who you are connecting to. That requirement for trust mechanisms across millions or billions of sensors is what makes a distributed system like a blockchain vital," said Richard Mark Soley, Ph.D., executive director of the Industrial Internet Consortium, based in Needham, Mass.
But marrying contracts and IoT -- "smart contracts" -- may be a different matter.
Where blockchain distributes a ledger system, the "contract" concept extends the function of the ledger to include a language for terms of agreement and measurements to determine if certain conditions have been met. "A smart contract can be designed to execute automatically when both the buyer and the seller conditions are met," said Bill Fearnley Jr., a research director of worldwide compliance, fraud and risk analytics strategies and blockchain at IDC. Those conditions could include that the price of a commodity and the required delivery date all match with what a person is willing to pay and when they require delivery. In other words, a smart contract could potentially work across a blockchain to facilitate business activity and commerce.
Fearnley said there are already automated buy-sell contracts, but, with blockchain, you can take code and contract terms and put them in a ledger that is shared by multiple parties.
"The advantage is the buy-sell contract is executed and then the payment contract is executed, too," Fearnley said. "The reason smart contracts get so much attention is that, while buy-sell can be done very quickly, post-trade settlement after the fact is often very messy and expensive. But, with blockchain, all of that paperwork flow is now automated and those records are put in the blockchain."
The buy-sell contract can be set up in advance, records can be logged automatically for traceability and records can be used to trace provenance for concerns, such as ingredient purity, Fearnley noted.
The trouble with smart contracts on blockchain
The so-called decentralized autonomous organization (DAO) hack of 2016 has set some on edge regarding blockchain. In that incident, the DAO was trying to provide a kind of participatory venture capital fund, which was launched through the Ethereum blockchain and crowdfunded via token sale in May 2016.
But in June 2016, parties unknown exploited an unnoticed code vulnerability and rerouted one-third of the funds. Reversing the theft prompted a controversial "fork" of the Ethereum blockchain. A new fork rolled back the ledger, resetting it so it appeared the event never happened and nominally restoring the funding to the DAO. However, those who disagreed with the move maintained an unforked blockchain known as Ethereum Classic.
Jason Epsteinattorney, Nelson Mullins
The ledger itself was never actually "hacked," rather a mistake in the code simply allowed unlimited withdrawals; but nonetheless, the event underscored the complexity of smart contracts. "As a result, companies, financial institutions and regulators are increasingly diligent about smart contracts to avoid similar mishaps in the future," Fearnley said.
"Call me a smart contract Cassandra, if you will; I think it is an interesting concept, but one to be approached with care," said analyst Martha Bennett, a principal analyst at Forrester Research. "For one thing, they are neither smart nor contracts." Bennett added that her simple way of describing smart contracts is as a species of business process automation. "If you strip away all the aspirational language, it is a set of business rules encoded in software," she said. "If calling them business rules is too much because you are libertarian-inclined, then call it a set of governance principles.
"Headlines are asserting that this new environment of code is law, but it isn't -- you still need a separate legal agreement in order to have something that is enforceable," Bennett added. "If you are looking at the wider blockchain environment, if those activities cross boundaries, you may need binding agreements regarding whose jurisdiction will be the governing law; it's something that will keep lawyers busy for years."
Jason Epstein, an attorney with Nelson Mullins, agreed. "While blockchain may be transformative, it isn't necessarily transforming the law." However, he noted, there are many existing legal principles that can be applied to blockchain. "A smart contract is just computer code that self-executes based on input and output, which is just like day trading," Epstein said. "In a blockchain smart contract, the agreement states that the code is the contract and neither party can repudiate it."
Beyond the semantics of whether a smart contract is really "smart," in Epstein's view, it can potentially be used for almost anything. However, he said, whether that is wise is another question. For instance, he noted if a situation might involve healthcare providers, one would want to make sure that terms and conditions protected you from Health Insurance Portability and Accountability Act privacy issues. "If you are talking about a complex negotiation or agreement, a smart contract becomes more and more challenging if you are going to try to cover all the legal issues," Epstein added.
The future of IoT and smart contracts on blockchain
In Soley's view, there is no doubt IoT combined with smart contracts on blockchain will be beneficial in industrial use cases. And, to that end, the Object Management Group, with which the Industrial Internet Consortium is affiliated, is looking at possible standardization of distributed contract mechanisms.
"It is early, Soley said. "At present, there are no standards, but we understand what the standards would do." Likewise, while Soley said he does know of some projects that are experimenting with IoT smart contracts, they are not yet in an approved test bed within the Consortium. But he expects that day is not far away.
"Things are moving faster than you would think," Soley said. "This year, we expect to see some interesting test beds with cognitive systems, [artificial intelligence] and machine learning. I think we will see the first blockchain standards in the next year and a distributed contract test bed this year."
Learn what Hyperledger and other vendors are doing to enable smart contracts on blockchain