Font Size: a A A

Research And Implementation Of Blockchain Based System For Resource Sharing In A Smart City

Posted on:2021-09-11Degree:MasterType:Thesis
Country:ChinaCandidate:Y ChenFull Text:PDF
GTID:2518306308969669Subject:Computer Science and Technology
Abstract/Summary:PDF Full Text Request
Smart cities were born to improve the quality of life in modern cities.With the development and expansion of the city,the urban resources are still very limited,making full use of the idle resources through sharing methods becomes an inevitable trend to improve the quality of life of cities.Data centralized storage in traditional sharing methods is vulnerable to tampering or attacks,resulting in unsafe data storage.In addition,the traditional sharing method can not establish an objective and real credit mechanism for the bad-behavior users,thus causing security risks.The decentralization,tamper-proof and the ability to record transactions permanently of blockchain technology help solve above problems.Blockchain technology can build distributed applications through smart contracts,which have the ability to automate transaction generation,decision-making and data storage.Thus,this paper builds a smart city resource sharing system based on blockchain technology and the smart contract.In this paper,we expound the working principle of blockchain layer by layer from the perspective of blockchain technology architecture,analyze and compare the characteristics of the platform mechanism,and then study the operation mechanism of the smart contract and The Ethereum Gas mechanism.Considering the performance and stability of the system,we carry on the model research on the structural optimization factor of the smart contract,put forward Gas optimization theory to optimize the smart contract structure,and put forward an algorithm to predict trading time and Gas consumption,which provides reference for the selection of the smart contract organization architecture for the specific system.On the premise of safe storage and reasonable sharing of urban resources,based on blockchain technology,a sharing system is established with the smart contract as the core and mobile terminal.In the process of system design,the hierarchical architecture is refined and implemented for specific domain use cases,which makes the system model both universal and practical.In the process of system implementation,a single type of smart contract organization structure is selected for the system by the predictive algorithm,and the circuit breaker mode is designed to ensure the security of the smart contract.Through the decentralized verification of account information and data packaging into the block,we ensure the secure storage of resource information.By establishing a credit mechanism for users through the non-tamperable transaction behavior of permanent records,the secure sharing of resource information can be guaranteed.Through the automatic positioning of mobile terminal,the reasonable sharing of resource information is strengthened.Finally,the system is tested to verify its effectiveness and availability,and the code structure of the smart contract is optimized according to Gas optimization theory.
Keywords/Search Tags:blockchain, smart contract, smart city, sharing
PDF Full Text Request
Related items