Font Size: a A A

Research On Performance Test And Smart Contract Inline Assembly Of Blockchain

Posted on:2022-12-15Degree:MasterType:Thesis
Country:ChinaCandidate:Z LiaoFull Text:PDF
GTID:2518306764976849Subject:Computer Software and Application of Computer
Abstract/Summary:PDF Full Text Request
As a decentralized and immutable global ledger,blockchain has many applications based on blockchain.Smart contracts are autonomous programs running on the blockchain,inheriting the characteristics of the blockchain.They are transparent and immutable in the execution process.It is the emergence of smart contracts that enables the realization and development of decentralized applications.However,with the development of the blockchain,the most commonly used smart contract execution virtual machine EVM(Ethereum Virtual Machine)has gradually been unable to meet the needs of users in terms of performance,so more and more public chains support or are developing The WASM(Web Assembly)virtual machine that executes smart contracts at a faster speed,but the performance of the WASM virtual machine on the blockchain has not been well verified.As the most popular programming language for smart contract development at present,Solidity allows the use of inline assembly for more fine-grained and lower-level development functions.But the prevalence of inline assembly in smart contracts,why it is used,and what it can do are not well explained.Therefore,in order to solve the above problems,this paper has done the following two studies:(1)Performance test and comparison of WASM virtual machine and EVM.This paper measures and compares the performance of the two virtual machines on different indicators on three clients on Ethereum and Plat ON,two public chains that support EVM and WASM virtual machines.At the same time,the limitations of the WASM smart contract development tool chain on three clients are analyzed.The results show that the functions of these WASM smart contract development tool chains are still very limited at present,and they cannot realize complex and highly robust smart contracts? and on the five indicators proposed in this paper,the WASM virtual machine cannot reach the performance of EVM.These results can help further development of the WASM virtual machine,while also helping some developers become more aware of the limitations of the development toolchains they use.(2)An empirical study of inline assembly of smart contracts on Ethereum.After devising new approaches to address several technical challenges,this paper is the first to conduct a large-scale empirical study of inline assembly of more than 7.6 million open-source Ethereum smart contracts from three perspectives: source code,bytecode,and transactions.Through a thorough quantitative and qualitative analysis of the collected data,the results show that 11.9% of all open source smart contracts use inline assembly,and inline assembly can often be used to implement features that are not supported in Solidity and save Gas et al.These conclusions have guiding significance for the development of Solidity language,and can also help Solidity smart contract developers to better understand inline assembly and use this feature in development work to achieve special functions,such as address manipulation,gas saving,etc.
Keywords/Search Tags:Ethereum, Smart Contracts, EVM, WebAssembly, Solidity, Inline Assembly
PDF Full Text Request
Related items