Journal of Civil Aviation University of China ›› 2025, Vol. 43 ›› Issue (3): 68-74.

• Intelligent Information and Signal Processing • Previous Articles     Next Articles

Hierarchical gas deduction method based on Wasm code block

  

  1. College of Computer Science and Technology, CAUC, Tianjin 300300, China 
  • Received:2023-04-21 Revised:2023-06-20 Online:2025-07-12 Published:2025-07-12

Abstract:

Aiming at the problem of long latency in the process of gas deduction of blockchain smart contract virtual machine
based on WebAssembly (Wasm), the performance bottleneck in the process is analyzed, and a hierarchical gas deduction method based on code blocks is proposed. By designing instruction recorder and code block analyzer in
Wasm virtual machine, gas deduction based on code block is implemented. According to the structure of Wasm
module, hierarchical code block recognition rules are designed. The experimental results show that, compared with
the traditional instruction-by-instruction gas deduction method, the proposed method reduces the number of gas
deduction by 79.6%, and the execution average latency can be reduced by 17.0% and 18.8% in serial and parallel
transaction execution modes, respectively

Key words:

CLC Number: