Monday, March 6, 2017

Some Thoughts Towards an Ontology for Smart Contracts

The concept of smart contracts has grown considerably since the birth of Ethereum. We've seen an explosion of interdisciplinary research and experimentation bundling legal, social, economic, cryptographic and even philosophical concerns into a rather strange milieu of tokenized intellect. Yet despite this digital cambrian explosion of thought, there seems to be a lack of a unified Ontology for smart contracts.

What exactly is an Ontology? Eschewing the philosophical sense of the word, an Ontology is simply a framework for connecting concepts or groups alongside their properties to the relationships between them. It's a fundamental word that generally is the attempt at bedrock for a topic. For example, it's meaningful to discuss the Ontology of democracy or the Ontology of mathematics.

Why exactly would one want to develop an Ontology for smart contracts? What is gained from this exercise? Is it mostly an academic exercise or is there a prescriptive value to it? I suppose there are more questions to glean, but let's take a stab at the why.

Smart contracts are essentially two concepts mashed together. One is the notion of software. Cold, austere code that does as it is written and executes for the world to see. The other is the idea of an agreement between parties. Both have semantical demands that humans have traditionally had issues with and both have connections to worlds beyond the scope in which the contract lives in.

Much of the focus of our current platforms such as Ethereum is on performance or security, yet abstracting to a more Ontological viewpoint, one ought to ask about semantics and scope.

From a semantical perspective, we are trying to establish what the authors and users of smart contracts believe to be the purpose of the contract. Here we have consent, potential for non est factum style circumstances, a hierarchy of enforceability and other factors that have challenged contract law. What about cultural and linguistic barriers? Ambiguity is also king in this land.

Where normal contracts tend to pragmatically bind to a particular jurisdiction and set of interpretations with the escape hatch of arbitration or courts to parse purposeful ambiguity, decentralized machines have no such luxury. For better or worse, there is a pipeline with smart contracts that amplify the semantical gap and then encapsulate the extracted consensus into code that again suffers from it's own gap (Loi Luu demonstrated this recently using Oyente).        

Then these structures presume dominion over something of value. Whether this dominion be data, tokens or markers that represent real life commitments or things such as deeds or titles. For the last category, like software giving recommendations to act on something in physical world, the program can tell one what to do, but someone has to do it.

So we have an object that combines software and agreements together that has a deep semantic and scope concern, but one could add more dimensions. There is the question of establishing facts and events. The relationship with time. The levels of interpretation for any given agreement. Should everything be strictly speaking parsed by machines? Is there room for human judgement in this model (see Szabo wet and dry code and this presentation)?

One could make a fair argument that one of the core pieces of complexity behind protocols like Ethereum is that it actually isn't just flirting with self-enforcing smart contracts. There are inherited notions from the Bitcoin ecosystem such as maximizing decentralization, maintaining a certain level of privacy, the use of a blockchain to order facts and events. Let's not even explore the native unit of account.

These concepts and utilities are fascinating, but contaminate attempts at a reasonable Ontology that could be constructive. A less opinionated effort has come from the Fintech world with both Clack's work on Smart Contract Templates and Brammertz work on Project ACTUS. Here we don't need immutability or blockchains. The execution environment doesn't matter as much. It's more about consensus on intent and evaluation to optimize processes.

What about the relationship of smart contracts with other smart contracts? In the cryptocurrency space, we tend to be blockchain focused, yet this concept actually obfuscates that there are three data domains in a system that uses smart contracts.

The blockchain accounts for facts, events and value. There is a graph of smart contracts in relation to each other. Then there is a social graph of nodes or things that can interact with smart contracts. These are all incredibly different actors. Adding relays into the mix, one could even discuss the internet of smart contract systems.

Perhaps where an Ontology could be most useful is on this last point. There seems to be economic value in marrying code to law for at least the purpose of standardization and efficiency, yet the hundreds of implicit assumptions and conditions upon which these systems are built need to be modelled explicitly for interoperability.

For example, if one takes a smart contract hosted on Rootstock and then via a relay communicates with a contract hosted on Ethereum and then connects to a data feed from a service like Bloomberg, then what's the trust model? What assumptions has one made about the enforceability of this agreement, the actors who can influence it and the risk to the value contained? Like using dozens of software libraries with different license, one is creating a digital mess.

To wrap up some of my brief thoughts, I think we need to do the following. First, decouple smart contracts conceptually from blockchains and their associated principles. Second, come to grips with the semantic gap and also scope of enforcement. Third, model the relationships of smart contracts with each other, the actors who use them and related system. Fourth, extract some patterns, standards and common use practices from already deployed contracts to see what we can infer. Finally, come up with better ways of making assumptions explicit.

The benefits of this approach seem to be making preparations for sorting out how one will design systems that host smart contracts and how such systems will relate to each other. There seems to be a profound lack of metadata for smart contracts floating around. Perhaps an Ontology could provide a coherent way of labeling things?

Thanks for Reading,
Charles


   

23 comments:

  1. there's a movement called #legaldesign - it's an attempt to surpas the old-timers' "dry-code" / "wet-code" phraseology. as long as the heteromaton is well designed /works - the wet-ware/dryware dichotomy is only minimally relevant?

    ReplyDelete
    Replies
    1. This is a really cool idea: http://legaldesign.it/ I love any attempt to visualize legal concepts. I'll reach out to them.

      Delete
    2. Investing online has been a main source of income, that's why knowledge plays a very important role in humanity, you don't need to over work yourself for money.All you need is the right information, and you could build your own wealth from the comfort of your home! Binary trading is dependent on timely signals, assets or controlled strategies which when mastered increases chance of winning up to 90%-100% with trading. It’s possible to earn $10,000 to $20,000 trading weekly-monthly in cryptocurrency(bitcoin) investment, just get in contact with Mr Bernie Doran my broker. I had almost given up on everything about binary trading and never getting my lost funds back, till i met with him, with his help and guidance now i have my lost funds back to my bank account, gained more profit and I can now trade successfully with his profitable strategies and signals! Reach out to him on Gmail ( BERNIEDORANSIGNALS@GMAIL.COM ) , or his WhatsApp : +1(424)285-0682 for inquiries






















      Perhaps where an Ontology could be most useful is on this last point. There seems to be economic value in marrying code to law for at least the purpose of standardization and efficiency, yet the hundreds of implicit assumptions and conditions upon which these systems are built need to be modelled explicitly for interoperability.

      For example, if one takes a smart contract hosted on Rootstock and then via a relay communicates with a contract hosted on Ethereum and then connects to a data feed from a service like Bloomberg, then what's the trust model? What assumptions has one made about the enforceability of this agreement, the actors who can influence it and the risk to the value contained? Like using dozens of software libraries with different license, one is creating a digital mess.

      Delete
  2. I have a real estate background and a seminar instructor once described a horror story arising over the ambiguity of the word "replace" as it related to roof gutters. One party thought the contract meant replace with new gutters while the other party thought it meant just to put the dismantled ones back in place. I think it folly to think a programming language could help with this basic issue unless, perhaps, there are cases where the code can be run ahead of time so that all the parties see what the various results can be. My high school business law teacher taught the creedo "Honest contracts make honest people out of honest people". Clear and concise HUMAN language is the key to accomplishing that but ideas such as "the contract is in the code" are just crazy. Such an attitude will likely get the developer in hot water. Many jurisdictions have laws against people writing contracts (for a fee) for other people and not being an attorney.

    I also see no benefit for creating a whole new programming language devoted to the task. There is no "best" language other than the one that both parties to the contract understand whether that be English, French, Chinese or what have you but, of them all, I think a new, unvetted programming language would have to be the absolute worst.

    I also see no need to create an alt coin specific for use in a smart contract. The payment medium that the parties use has nothing to do with the contract except that it finalizes and executes what is usually the final aspect. Delivery of payment and the acknowledgement of the receipt thereof are about the only issues and, in theory, could be a dump truck load of gravel as payment if that is what the parties agreed to.

    ReplyDelete
  3. Creating a smart contract ontology based upon a traditional legal contract ontology. I am writing Java classes with the OpenCyc ontology as the upper ontology. Following the UML diagrams published in http://kth.diva-portal.org/smash/get/diva2:7604/FULLTEXT01 . Thanks for the links to others doing the sort of work.

    ReplyDelete
  4. The concept of smart contracts has grown considerably since the birth of Ethereum. We've seen an explosion of interdisciplinary research and ...

    goldenslot
    สูตรบาคาร่า

    ReplyDelete
  5. Blockchain is the latest trend in the industry, Draglet is an expert in developing custom-made blockchain applications for financial and business purposes.

    ReplyDelete
  6. ONT was airdropped to NEO holders in March 2018. From this airdrop, 20 million ONT were distributed to the community by the NEO Council.Get more information at: NeonBeginner

    ReplyDelete
  7. This comment has been removed by the author.

    ReplyDelete
  8. Hey there! Great Info about Smart contracts. Was very useful!!

    ReplyDelete
  9. Hello everyone, Are you into trading or just wish to give it a try, please becareful on the platform you choose to invest on and the manager you choose to manage your account because that’s where failure starts from be wise. After reading so much comment i had to give trading tips a try, I have to come to the conclusion that binary options pays massively but the masses has refused to show us the right way to earn That’s why I have to give trading tips the accolades because they have been so helpful to traders . For a free masterclass strategy kindly contact (paytondyian699@gmail.com) for a free masterclass strategy. He'll give you a free tutors on how you can earn and recover your losses in trading for free..

    ReplyDelete
  10. Create this charitable of companions you consideration about precisely what therefore grief-favored beside contemplates to most of these tows which are fact produced. Nigh sum of the companies do negative habitat provide bolster involving executors digres Staking on Cardano

    ReplyDelete
  11. Excellent information provided by you through this post. I follow all the mentioned information about Ontology for Smart Contracts. If you are looking to know about How to Send Crypto From Coinbase to Binance? then you don’t need to take stress as we are available here at: www.cryptowalletsupport.com

    ReplyDelete
  12. Excellent information provided by you through this post. I follow all the mentioned information about Ontology for Smart Contracts. If you are looking to know about How to Send Bitcoin From Coinbase to Binance? then you don’t need to take stress as we are available here at: www.cryptowalletsupport.com

    ReplyDelete
  13. All thanks to Mr Anderson for helping with my profits and making my fifth withdrawal possible. I'm here to share an amazing life changing opportunity with you. its called Bitcoin / Forex trading options. it is a highly lucrative business which can earn you as much as $2,570 in a week from an initial investment of just $200. I am living proof of this great business opportunity. If anyone is interested in trading on bitcoin or any cryptocurrency and want a successful trade without losing notify Mr Anderson now.Whatsapp: (+447883246472 )
    Email: tdameritrade077@gmail.com

    ReplyDelete
  14. Yes, that's right. This is the new blob, i like it too. But i have one more want to show you all:
    토토사이트
    경마사이트

    ReplyDelete
  15. Thank you for writing such a useful and interesting article.

    ReplyDelete
  16. This comment has been removed by the author.

    ReplyDelete
  17. This comment has been removed by the author.

    ReplyDelete
  18. Thanks for sharing....
    https://blockgum.com

    ReplyDelete

  19. Your a section on the creation of cryptocurrency tokens is incredibly perceptive. Even people who are unfamiliar with blockchain technology will find your explanations of the The distinctions between them of this developing field to be understandable. In addition to being catchy, the titles you've suggested cover a lot of ground in this area.'Legal and Regulatory Aspects' and 'Tokenomics caught my attention in particular for crypto token development company. eager to read more about these topics in the future. Continue your fantastic work.

    ReplyDelete