The use of blockchain technology and smart contracts is progressively spreading to real-world applications, especially to those that deal with critical services, such as water management systems. In fact, these applications can exploit the immutability, enforceability, and trustworthiness of such technology while promoting a more reliable, tamper-resistant way to collect and store data. At the same time, the development of decentralized applications poses challenges with respect to scalability, efficiency, management, and security. To address these problems, some design patterns, such as the factory pattern, have been proposed in the literature, to deal with modularity and scalability; at the same time, these proposed solutions apply some common concepts of role-based access control (RBAC), by adapting them to the smart contract context. This paper extends prior work by extending the definition of a hierarchical factory pattern, enhanced with multirole authentication and authorization capabilities, and applying it in the context of a water management system. It provides an extensive description of both advantages and disadvantages of this solution, discussing why the ability to instantiate a hierarchical family of contracts is essential in some application domains, and how a finer management of dynamic roles and permissions can be achieved in this kind of design. This paper also performs an extensive analysis of the performance and scalability capabilities of the proposed solution, and discusses some security aspects by considering its ability to overcome certain security attacks.
A Smart Contract Architecture Using Hierarchical Factory Pattern and Multirole Access Control
Saif, Muhammad Bin;Migliorini, Sara;Spoto, Fausto
2026-01-01
Abstract
The use of blockchain technology and smart contracts is progressively spreading to real-world applications, especially to those that deal with critical services, such as water management systems. In fact, these applications can exploit the immutability, enforceability, and trustworthiness of such technology while promoting a more reliable, tamper-resistant way to collect and store data. At the same time, the development of decentralized applications poses challenges with respect to scalability, efficiency, management, and security. To address these problems, some design patterns, such as the factory pattern, have been proposed in the literature, to deal with modularity and scalability; at the same time, these proposed solutions apply some common concepts of role-based access control (RBAC), by adapting them to the smart contract context. This paper extends prior work by extending the definition of a hierarchical factory pattern, enhanced with multirole authentication and authorization capabilities, and applying it in the context of a water management system. It provides an extensive description of both advantages and disadvantages of this solution, discussing why the ability to instantiate a hierarchical family of contracts is essential in some application domains, and how a finer management of dynamic roles and permissions can be achieved in this kind of design. This paper also performs an extensive analysis of the performance and scalability capabilities of the proposed solution, and discusses some security aspects by considering its ability to overcome certain security attacks.| File | Dimensione | Formato | |
|---|---|---|---|
|
Saif_et_al-2026-Journal_of_Network_and_Systems_Management.pdf
accesso aperto
Tipologia:
Versione dell'editore
Licenza:
Creative commons
Dimensione
2.28 MB
Formato
Adobe PDF
|
2.28 MB | Adobe PDF | Visualizza/Apri |
I documenti in IRIS sono protetti da copyright e tutti i diritti sono riservati, salvo diversa indicazione.



