TL;DR
This paper introduces Lorikeet, a Model-Driven Engineering (MDE) tool that streamlines the development of blockchain applications for managing both business processes and digital assets. By integrating these two domains, Lorikeet enables the creation of more robust and secure decentralized applications, reducing development complexity and potential vulnerabilities.
What Problem Does This Paper Address?
Developing blockchain applications, especially those involving smart contracts, is notoriously challenging. The immutability of deployed code and the potential for vulnerabilities mean that even small errors can have significant consequences. Furthermore, managing both complex business processes and digital assets (like cryptocurrencies or unique digital items) on a blockchain requires intricate coordination. Existing approaches often tackle these domains separately, leading to fragmented development and integration difficulties. This paper addresses the need for a unified, model-driven approach that simplifies the creation of integrated blockchain solutions for business processes and asset management, covering aspects like asset registration, conditional payments (escrow), and asset swaps.
Methods
The core of this work is the Lorikeet tool, which implements an integrated Model-Driven Engineering (MDE) approach. Key methodological components include:
- Integrated Modelling: Lorikeet extends the Business Process Model and Notation (BPMN) 2.0 standard with custom elements to model interactions between business processes and asset registries. It also provides templates for defining fungible (e.g., ERC-20 tokens) and non-fungible (e.g., unique digital assets) asset registry data schemas.
- Smart Contract Generation: The tool automatically translates these models into smart contracts written in Solidity, a common language for Ethereum. This includes generating smart contracts for business process execution and standardized ERC-20/ERC-721 compliant asset registries.
- Blockchain Interaction: Lorikeet handles the compilation, deployment, and communication with deployed smart contracts on a blockchain, abstracting away much of the low-level blockchain interaction complexity.
Datasets
Not discussed in the paper. The evaluation uses four industrial use cases (ICO process, quality tracing, task outsourcing, and grain title creation) that were modeled based on publicly available information or industry discussions.
Key Insights and Ideas
- Unified MDE for BP and Assets: The most significant insight is that a single MDE framework can effectively bridge the gap between complex business process logic and the management of diverse digital assets on the blockchain. This integration is crucial for real-world decentralized applications.
- Reducing Vulnerabilities through Models: By generating code from high-level, well-understood models, MDE significantly reduces the risk of introducing vulnerabilities. This is particularly important given the immutable nature of smart contracts.
- Standardization for Interoperability: Leveraging existing standards like ERC-20 and ERC-721 for asset registries ensures that the generated smart contracts are interoperable with the broader Ethereum ecosystem, enhancing liquidity and usability.
- Developer Productivity Boost: The tool abstracts away much of the low-level Solidity coding and blockchain interaction, allowing developers to focus on the business logic and domain-specific aspects, thus improving productivity and quality.
Key Results
- Feasibility and Correctness: Lorikeet was successfully used to model and generate smart contracts for four diverse use cases, demonstrating the feasibility of the approach. The generated smart contracts were functionally correct and accurately enforced process logic, as validated by a test suite.
- Gas Efficiency: The generated smart contracts showed a favorable gas consumption compared to general transactions on the Ethereum blockchain, averaging 59,497 gas per transaction, which is about 68.9% of the global average. This suggests that the MDE approach does not introduce significant overhead and can lead to more efficient blockchain operations.
- Reduced Development Effort: Developers using Lorikeet can model complex processes and asset interactions without writing extensive Solidity code, significantly simplifying the development of integrated blockchain solutions.
Limitations and Future Work
- Limitations: The authors acknowledge that the gas cost analysis is based on a specific test case (grain title creation) and that the comparison with general Ethereum transactions is indicative rather than definitive, as the functions of other smart contracts are unknown.
- Future Work: The authors plan to extend the MDE approach to support more comprehensive access control policies across all types of generated smart contracts. They also aim to explore applying this MDE approach to a broader range of blockchain applications beyond business processes and asset management.
Summary updated