Techniques for Using Server-side Node.js Modules with the Truffle Ethereum Development Framework
Truffle is a framework that provides compiling, testing and systematic project management for developing Ethereum decentralized applications. As of now, Truffle provides a way to easily deal with bundling node.js modules of decentralized application using the webpack tool. However, due to the Truffle project structure, server-side node.js modules such as network communication modules are not usable in a direct way. In this paper, to address this issue, we propose a method to use server-side node.js modules through Ethereum smart contracts and event processing mechanism. In the proposed method, a separate node application is associated to the server-side module to execute the module in response to the request of the decentralized application. To this end, we introduce the notion of function gateway, a smart contract for connecting two applications with Ethereum's event-watch processing technique. Also, to use the function gateway contract in a robust way, we introduce a robust function gateway that includes the process of confirming whether or not the event-watch has occurred and the node.js module function has been executed. In addition, we present a decentralized application using node.js module for sending actual e-mails based on the function gateway.
Authors
- Hyunmin Eom (ORCID: https://orcid.org/0000-0002-4006-7475)
- Jae-Hwan Jin
- Myung-Joon Lee
Publication Details
- Journal
- International Journal of Engineering & Technology
- Published
- 2026-02-17
- DOI
- https://doi.org/10.14419/ijet.v8i1.4.25455
- Primary Topic
- Software System Performance and Reliability
- Type
- article
- Field-Weighted Citation Impact
- 0.00
Funders
- University of Ulsan