Search results

1 – 4 of 4
Article
Publication date: 5 April 2024

Xiaohong Shi, Ziyan Wang, Runlu Zhong, Liangliang Ma, Xiangping Chen and Peng Yang

Smart contracts are written in high-level programming languages, compiled into Ethereum Virtual Machine (EVM) bytecode, deployed onto blockchain systems and called with the…

Abstract

Purpose

Smart contracts are written in high-level programming languages, compiled into Ethereum Virtual Machine (EVM) bytecode, deployed onto blockchain systems and called with the corresponding address by transactions. The deployed smart contracts are immutable, even if there are bugs or vulnerabilities. Therefore, it is critical to verify smart contracts before deployment. This paper aims to help developers effectively and efficiently locate potential defects in smart contracts.

Design/methodology/approach

GethReplayer, a smart contract testing method based on transaction replay, is proposed. It constructs a parallel transaction execution environment with two virtual machines to compare the execution results. It uses the real existing transaction data on Ethereum and the source code of the tested smart contacts as inputs, conditionally substitutes the bytecode of the tested smart contract input into the testing EVM, and then monitors the environmental information to check the correctness of the contract.

Findings

Experiments verified that the proposed method is effective in smart contract testing. Virtual environmental information has a significant effect on the success of transaction replay, which is the basis for the performance of the method. The efficiency of error locating was approximately 14 times faster with the proposed method than without. In addition, the proposed method supports gas consumption analysis.

Originality/value

This paper addresses the difficulty that developers encounter in testing smart contracts before deployment and focuses on helping develop smart contracts with as few defects as possible. GethReplayer is expected to be an alternative solution for smart contract testing and provide inspiration for further research.

Details

International Journal of Web Information Systems, vol. 20 no. 4
Type: Research Article
ISSN: 1744-0084

Keywords

Article
Publication date: 4 April 2023

Chao Ren, Xiaoxing Liu and Ziyan Zhu

The purpose of this paper is to test the invulnerability of the guarantee network at the equilibrium point.

Abstract

Purpose

The purpose of this paper is to test the invulnerability of the guarantee network at the equilibrium point.

Design/methodology/approach

This paper introduces a tractable guarantee network model that captures the invulnerability of the network in terms of cascade-based attack. Furthermore, the equilibrium points are introduced for banks to determine loan origination.

Findings

The proposed approach not only develops equilibrium analysis as an extended perspective in the guarantee network, but also applies cascading failure method to construct the guarantee network. The equilibrium points are examined by simulating experiment. The invulnerability of the guarantee network is quantified by the survival of firms in the simulating progress.

Research limitations/implications

There is less study in equilibrium analysis of the guarantee network. Additionally, cascading failure model is expressed in the presented approach. Moreover, agent-based model can be extended in generating the guarantee network in the future study.

Originality/value

The approach of this paper presents a framework to analyze the equilibrium of the guarantee network. For this, the systemic risk of the whole guarantee network and each node's contribution are measured to predict the probability of default on cascading failure. Focusing on cascade failure process based on equilibrium point, the invulnerability of the guarantee network can be quantified.

Details

Kybernetes, vol. 53 no. 8
Type: Research Article
ISSN: 0368-492X

Keywords

Article
Publication date: 16 April 2024

Ziyan Lu, Feng Qiu, Hui Song and Xianguo Hu

This paper aims to solve the problems molybdenum disulfide (MoS2) nanosheets suffer from inadequate dispersion stability and form a weak lubricating film on the friction surface…

Abstract

Purpose

This paper aims to solve the problems molybdenum disulfide (MoS2) nanosheets suffer from inadequate dispersion stability and form a weak lubricating film on the friction surface, which severely limits their application as lubricant additives.

Design/methodology/approach

MoS2/C60 nanocomposites were prepared by synthesizing molybdenum disulfide (MoS2) nanosheets on the surface of hydrochloric acid-activated fullerenes (C60) by in situ hydrothermal method. The composition, structure and morphology of MoS2/C60 nanocomposites were characterized. Through the high-frequency reciprocating tribology test, its potential as a lubricant additive was evaluated.

Findings

MoS2/C60 nanocomposites that were prepared showed good dispersion in dioctyl sebacate (DOS). When 0.5 Wt.% MoS2/C60 was added, the friction reduction performance and wear resistance improved by 54.5% and 62.7%, respectively.

Originality/value

MoS2/C60 composite nanoparticles were prepared by in-situ formation of MoS2 nanosheets on the surface of C60 activated by HCl through hydrothermal method and were used as potential lubricating oil additives.

Peer review

The peer review history for this article is available at: https://publons.com/publon/10.1108/ILT-10-2023-0321/

Details

Industrial Lubrication and Tribology, vol. 76 no. 4
Type: Research Article
ISSN: 0036-8792

Keywords

Article
Publication date: 3 June 2024

Maosheng Wen, En Zhu Hu, Xingpeng Fei and Kunhong Hu

This paper aims to use an ionic liquid (IL, [HMIM]PF6) to improve the lubrication performance of liquid metal (LM) as a lithium grease additive and to expand the application range…

Abstract

Purpose

This paper aims to use an ionic liquid (IL, [HMIM]PF6) to improve the lubrication performance of liquid metal (LM) as a lithium grease additive and to expand the application range of LM.

Design/methodology/approach

In this paper, the different mass ratios of [HMIM]PF6/LM mixtures were added into the lithium grease on a four-ball tribo-meter to investigate the effects of its tribological behavior. Scanning electron mircoscope/energy dispersive spectroscopy and X-ray photoelectron spectroscopy were used to reveal the anti-wear and friction-reducing mechanism of the additives.

Findings

When the load was used at 461 N, the average coefficient of friction (ACOF) and average wear scar diameter (AWSD) of steel ball Lubricated with grease with an optimal ratio of 2:3 ([HMIM]PF6/LM) were reduced by 32.8% and 30.5%, respectively. Friction and wear mechanisms are ascribed to friction-induced additive components that can simultaneously form a composite lubrication film consisting of FePO4, FeF3, Ga2O3, In2O3 and SnO2.

Research limitations/implications

Compared with the pure lithium-based grease, when [HMIM]PF6/LM was added with an optimal ratio of 2:3, the ACOF and AWSD were reduced by 12.4% from 0.097 to 0.085 and 23.8% from 552.117 µm to 420.590 µm under 392 N, respectively. When at 461 N, the ACOF and AWSD of steel ball were reduced by 32.8% from 0.122 to 0.082 and 30.5% from 715.714 µm to 497.472 µm, respectively. It was shown that the simultaneous addition of LM and [HMIM]PF6 can form a composite lubrication film consisting of FePO4, FeF3, Ga2O3, In2O3 and SnO2.

Originality/value

In this paper, [HMIM]P F6 is added with LM simultaneously to improve the lubrication properties of lithium grease, and expand the application scope of LM.

Peer review

The peer review history for this article is available at: https://publons.com/publon/10.1108/ILT-01-2024-0017/

Details

Industrial Lubrication and Tribology, vol. 76 no. 5
Type: Research Article
ISSN: 0036-8792

Keywords

Access

Year

Last 6 months (4)

Content type

1 – 4 of 4