About cookies on this site Our websites require some cookies to function properly (required). In addition, other cookies may be used with your consent to analyze site usage, improve the user experience and for advertising. For more information, please review your options. By visiting our website, you agree to our processing of information as described in IBM’sprivacy statement. To provide a smooth navigation, your cookie preferences will be shared across the IBM web domains listed here.
Publication
iThings/GreenCom/CPSCom/SmartData/Blockchain/CIT 2018
Conference paper
Auto-Generation of Smart Contracts from Domain-Specific Ontologies and Semantic Rules
Abstract
Smart contracts are essential in implementing and automating transactions in a blockchain network. The translation of existing business rules on transactions to a smart contract is challenging and time consuming. These types of constraints are often re-used among different contracts in a given application area. Automatic generation of smart contracts can reduce the level of expertise required for, along with the time and cost incurred in, specifying them. In this paper, we provide a novel framework for auto-generating smart contracts by enabling seamless translation of constraints encoded in a knowledge representation to blockchain requirements. Our framework uses ontologies and semantic rules to encode domain-specific knowledge and then leverages the structure of abstract syntax trees to incorporate the required constraints. We successfully demonstrate the functionality and effectiveness of our method in two different applications: Translating eligibility criteria for clinical trials and car rentals.