Font Size: a A A

The Design And Implementation Of Plugin For Developing Hyperledger Fabric Smart Contracts

Posted on:2022-03-18Degree:MasterType:Thesis
Country:ChinaCandidate:T G LiFull Text:PDF
GTID:2518306725984229Subject:Master of Engineering (field of software engineering)
Abstract/Summary:
With the digital transformation continues to accelerate in recent years,all walks of life begin to pay attention to the way of data storage.As a distributed data stor-age architecture,which is traceable,immutable,and decentralized,blockchain has set off a global boom.Blockchain architecture represented by Hyperledger Fabric can not only serve the financial field nowadays,but also provide a new method to reduce the cost of trust and transaction for various industries such as regulatory technology,pay-ment,and logistics.At the same time,as the only intermediary between developers and blockchain networks,methods of developing smart contracts need more attention.However,mainstream Integrated Development Environment(IDE)lacks support for developing smart contracts currently.On the one hand,it is difficult to code smart con-tracts,which affects developing efficiency and code quality.On the other hand,it is difficult to debug smart contracts in blockchain networks,since modification requires complex deployment process every time and there is a lack of tools to run and test smart contracts off-chain.Therefore,this thesis designs a scheme for Node.js smart contracts in Hyperledger Fabric,which facilitates its coding,debugging,and test.It also implements a tool in the form of IDE plugin to help developers develop smart contracts off-chain.This thesis develops the plugin based on Intelli J platform and Dev Kit SDK,which uses Free Marker template technology to generate initial smart contracts and applies GPT-2 natural lan-guage processing model to provide code intelligent hints for Hyperledger Fabric smart contracts.The plugin implements simulation invocation and test of smart contracts by Hyperledger Fabric mock stub,Mocha framework and other technologies.It can be combined with IDE debugging mode and support breakpoints and single-step debug-ging if exception occurs during invocation of smart contracts.This thesis describes design and implementation of a plugin for smart contracts development,which is easy to use.The plugin provides developers with a lightweight off-chain development tool for smart contracts.It can not only reduce the cost of time when publishing smart contracts but also fix the challenge in the aspect of complexity of operation.The plugin improves the efficiency of development and deployment and enhances code quality of smart contracts.It helps developers ensure correctness of code and business logic before publishing smart contracts in blockchain networks.
Keywords/Search Tags:Blockchain, Hyperledger Fabric, Smart Contracts, Node.js, IntelliJ Plugin
Related items