Full Program »
Smart Contract Code Generation From Platform Specific Model For Hyperledger Go
Model Driven Architecture (MDA) together with Unified Modelling Language (UML) presents a framework which transfers the emphasis of devel-opment from source code to the higher level of abstraction i.e., models. In this paper, we demonstrate the application of MDA principles for generating smart contract code executed on a blockchain. Even though blockchain smart contracts are not in all cases a classic type of object-oriented software, which UML is in-tended for, we demonstrate the possibility to adapt to this specific implementa-tion platform. MDA Platform Specific Model (PSM) is used as an input for trans-formation algorithm which maps PSM metamodel elements to Go Chaincode el-ements and produces Go chaincode. In PSM, UML class and sequence diagrams are used for specifying structural and behavioural aspects of the smart contract. MOFM2T transformation language and Acceleo tool are employed for the im-plementation of this algorithm. The results of the algorithm execution were demonstrated using example chaincode for machine learning model validation.