Nicolò Romandini, Carlo Mazzocca, Kai Otsuki, Rebecca Montanari
Blockchain and smart contracts have garnered significant interest in recent years as the foundation of a decentralized, trustless digital ecosystem, thereby eliminating the need for traditional centralized authorities. Despite their central role in powering Web3, their complexity still presents significant barriers for non-expert users. To bridge this gap, Artificial Intelligence (AI)-based agents have emerged as valuable tools for interacting with blockchain environments, supporting a range of tasks, from analyzing on-chain data and optimizing transaction strategies to detecting vulnerabilities within smart contracts. While interest in applying AI to blockchain is growing, the literature still lacks a comprehensive survey that focuses specifically on the intersection with AI agents. Most of the related work only provides general considerations, without focusing on any specific domain. This paper addresses this gap by presenting the first Systematization of Knowledge dedicated to AI-driven systems for blockchain, with a special focus on their security and privacy dimensions, shedding light on their applications, limitations, and future research directions.
Smart contracts are self-executing programs that run on blockchain platforms, most notably Ethereum.They automate transactions and enforce agreements without intermediaries, forming the foundation of decentralized finance (DeFi), non-fungible tokens (NFTs), and decentralized applications (dApps).Despite their growing importance, smart contracts remain prone to security vulnerabilities.Exploited bugs can lead to irreversible financial losses, service disruptions, and systemic failures.Although machine learningbased tools have emerged to aid vulnerability detection, two critical challenges remain: (1) limited fault localization at the function level, and (2) a lack of interpretable, human-readable explanations that enable developers to understand and fix issues effectively.This thesis addresses both challenges by proposing a unified framework that combines graph-based neural network modeling with explainable language model techniques.Specifically, the contributions consist of: (1) a function-level vulnerability detection system using Sub-Graph Neural Networks (Sub-GNNs), and (2) an explanation generation mechanism based on synthetic data and Chain-of-Thought (CoT) prompting using large language models (LLMs).These two components aim to improve both the technical granularity and practical usability of smart contract security analysis.The first part of the thesis introduces a novel function-level detection method that decomposes smart contracts into subgraphs centered around individual functions.While prior approaches using Graph Neural Networks (GNNs) operate at the contract level, they fail to pinpoint specific sources of vulnerabilities, limiting their value for debugging and remediation.To overcome this, we construct function-level subgraphs that incorporate controlflow and data-flow dependencies, preserving the semantic and structural context of each function.We then apply a Sub-GNN model to perform vulnerability classification at this finer granularity.Empirical evaluation on a curated synthetic dataset demonstrates that the proposed method achieves high precision in localizing faulty functions.Although it trades off a small margin of global classification accuracy compared to full-graph models, the localized predictions are significantly more actionable for developers.A benchmark comparison quantifies this trade-off and validates the effectiveness of subgraph-based analysis in practical settings.To facilitate this line of work, we develop a synthetic dataset of smart contracts with function-level vulnerability labels.The dataset includes diverse vulnerability types such as reentrancy, integer overflows, access control flaws, and unhandled exceptions.Each function is annotated with corresponding vulnerability types and contains metadata for constructing control and data flow graphs.This dataset fills a gap in the current landscape, which largely lacks fine-grained, labeled corpora for training and evaluating function-level detectors.The second component of the thesis tackles the issue of explanation.While detecting a vulnerability is important, understanding why it occurs and how to resolve it is crucial for real-world usability.Most existing detection tools output low-level indicators such as line numbers or vulnerability labels without offering semantic explanations.To address this gap, we propose an explanation generation system that produces structured, human-readable justifications for detected vulnerabilities.We construct another synthetic dataset where each entry consists of a vulnerable function, its formal label, and a professionally formatted explanation describing the issue, its cause, and suggested remediation steps.These explanations are derived from real-world audit patterns and follow a consistent template.Together, these two components form a comprehensive framework for smart contract vulnerability analysis.The Sub-GNN-based detector provides precise localization of faulty functions, while the CoT-guided explanation generator delivers semantic insight into the causes and consequences of the vulnerabilities.This dual capability bridges the gap between vulnerability detection and developer comprehension.The thesis concludes with a discussion of future directions.On the detection side, extending the Sub-GNN architecture to support inter-function and inter-contract reasoning could enable the modeling of call chains and complex compositional vulnerabilities.On the explanation side, integrating user feedback to iteratively refine generated explanations could support interactive auditing tools.Furthermore, we propose exploring multimodal models that combine graph-based embeddings with textual features to enhance both detection and explanation tasks.
R. Vettriselvan, Palanivel Rathinasabapathi Velmurugan, P. Shalini, T. C. Catherin · 6 authors
As financial systems grow increasingly digitized, money laundering methods have become more complex and harder to detect. This chapter explores the dual role of AI in the digital economy,both as a tool for combating illicit financial activity and as a potential risk. With the rise of cryptocurrencies, decentralized finance, and automated financial platforms, traditional compliance mechanisms are struggling to keep pace. AI technologies offer powerful tools for improving transaction monitoring, identifying suspicious behavior, and enhancing real-time risk analysis. However, these technologies also raise concerns about bias, opacity, and regulatory accountability. Drawing on theoretical frameworks such as Routine Activity Theory and Strain Theory, the chapter examines structural vulnerabilities in digital finance. It also analyzes the current regulatory gaps that hinder effective enforcement. The study concludes with recommendations for ethically integrating AI into AML systems, strengthening global coordination, and updating compliance models for the digital era
Alvaro Gómez Vieites, Christian Delgado-von-Eitzen, Diego Estévez Garcia
For years, combining the immutability associated with blockchain technology with the European Union’s General Data Protection Regulation (GDPR) has been considered a practically unsolvable conflict due to the very nature of blockchain and the GDPR. This article presents the GAVIN project (GDPR-Compliant Blockchain-Based Architecture for Universal Learning, Education and Training Information Management), a pioneering initiative that overcomes this challenge through an innovative technical and legal approach to trusted digital academic certification. Developed by atlanTTic (University of Vigo) and funded by the European Union, GAVIN proposes a scalable architecture that combines off-chain storage, encrypted Hash-Based Message Authentication Code (HMAC) anonymization, access notarization, and blockchain-based access control. The legal validation of the working prototype under development demonstrates that blockchain decentralization is compatible with GDPR compliance. The model is presented as a replicable reference for institutions wishing to leverage distributed ledger technologies without compromising personal data protection. This paper details the legal design, technical architecture, and compliance mechanisms, offering a practical framework for implementing decentralized systems with privacy by design.
Smart contracts, self-executing agreements on the blockchain, have emerged as a transformative force in blockchain technology, automating agreements and enabling decentralized applications. However, the stakes are extraordinarily high—manual coding errors in smart contracts have repeatedly led to financial losses. Notable incidents, such as the DAO hack that resulted in a loss of approximately $50 million [36] and the Parity wallet vulnerability that froze approximately $280 million in assets [45], underscore the immense economic risks involved. To support manual development tasks, recent advancements in artificial intelligence (AI) powered by large language models (LLMs) have transformed how software is developed and maintained by automating various software engineering tasks. This research explores the capabilities of generative AI tools for efficient and secure smart contract development. The methodology involves two phases: 1) we distribute a mixed methods survey for blockchain and smart contract developers (𝑛 = 114) to investigate their perspectives towards utilizing LLMs; and 2) we evaluate the effectiveness of generative AI tools, such as ChatGPT, Google Gemini, and ChainGPT, for smart contract development. This evaluation is based on comparing the LLM-generated smart contract code with human-written code, using a diverse dataset of smart contracts gathered from GitHub. Static analysis tools and unit testing are employed to validate the accuracy, correctness, efficiency, and security of the generated code. Our findings highlight the potential of these tools to accelerate smart contract development processes, while also emphasizing the need for human oversight, contributing to the advancement of blockchain technology and its applications.
Artificial Intelligence (AI) development in all major fields including healthcare, finance, and intelligent infrastructure raised the need for private, transparent, and secure learning systems. Federated Learning (FL) addresses data privacy by enabling parties to cooperate to train machine learning models without sharing their raw data; however, conventional FL paradigms are based on central aggregators, which introduce vulnerabilities such as single points of failure, decreased transparency, and trust issues among the cooperating parties. This work proposes a novel theoretical framework that integrates blockchain, smart contracts, and Federated Learning to develop a fully decentralized, secure, and auditable AI training platform where smart contracts manage major processes like model aggregation, verification, and reward distribution, disentangling third-party coordination. Blockchain is used as an immutable ledger that openly keeps track of all the updates to the models and participant behavior, enhancing auditability and building trust. The design further incorporates a token- based reward system that will be used to incentivize honest behavior and discourage malicious behavior, addressing root problems of data poisoning and free- riding. This decentralized approach not only improves data confidentiality and system resilience but also promotes fairness and accountability in multi- stakeholder settings. By conceptual analysis and theoretical modeling, the paper lays the foundation for an ethical and scalable AI system that takes advantage of the strengths of Federated Learning, blockchain, and smart contracts, which is a key step towards decentralized intelligence without compromising privacy, integrity, or trust.
<ns3:p>The emergence of Web 3.0 and the Metaverse marks a transformative shift in the evolution of the internet and digital ecosystems. This paper explores the foundational principles of decentralization, user autonomy, and data transparency that underpin Web 3.0 technologies, including blockchain, smart contracts, and digital wallets. We analyze how these innovations are reshaping business models, enabling new forms of value creation, and redefining digital ownership and governance. In parallel, we examine the Metaverse as a virtual, immersive environment integrating Web 3.0 infrastructure, and its potential to revolutionize sectors such as logistics, education, finance, and data management. The study also highlights the critical role of a holistic framework encompassing technological, economic, and legal pillars. A special focus is given to data provenance, privacy-preserving computation, and the need for coherent regulatory strategies in light of GDPR, the AI Act, and the Data Act (European Parliament, 2016; European Parliament, 2023; European Parliament, 2024). Finally, we identify emerging challenges related to NFT authenticity, system sustainability, and user experience, proposing a multidisciplinary and lean governance approach to guide future developments.</ns3:p>
Purpose. The purpose of this article is to conduct a philosophical-legal analysis of the evolving capabilities and structural constraints within smart contracts, viewed through the lens of practical philosophy. This analysis seeks to comprehend the contradictory nature of the digital transformation of legal reality.Design / Method / Approach: This work employs an interdisciplinary approach, integrating philosophical-legal analysis with elements of the dialectical method and critical research on technological innovations. The methodological foundation comprises concepts of practical philosophy, the theory of legal autonomy, and approaches from the critical theory of technology.Findings. The study reveals the evolving nature of smart contracts, which manifests in the simultaneous expansion of opportunities through the elimination of institutional intermediaries and the creation of new structural limitations via algorithmic rigidity. It is established that technological liberation from traditional forms of dependence generates qualitatively new forms of technological dependence. Furthermore, it is shown that technical complexity creates new forms of legal inequality between individuals with varying levels of technical literacy.Theoretical implications. The research results contribute to the development of philosophical-legal theory in the digital age by conceptualizing the dialectical nature of technological transformations in law, thereby enriching the understanding of the contradictions between technological efficiency and legal flexibility.Practical implications. The findings provide a theoretical basis for developing balanced regulatory approaches to smart contracts that account for their contradictory nature and for formulating principles of responsible design of technological systems.Originality / Value. A dialectical approach is proposed for analyzing smart contracts as a unity of opposites, where the expansion of opportunities and structural limitations mutually condition each other within a single technological phenomenon. The conceptual framework is expanded for understanding the contradictory nature of the digital transformation of legal reality through the prism of practical philosophy.Research limitations / Future research. Further in-depth research is needed on the philosophical-legal aspects of determinism in the execution of smart contracts, including an analysis of the transformation of legal temporality and issues of unforeseen circumstances in algorithmic systems.Paper type. Theoretical.
This study presents an exploration of NFTs and Metaverse collaborations, examining their innovations, opportunities, and challenges in the evolving digital economy. Non-fungible tokens (NFTs) have revolutionized digital ownership, enabling creators to monetize art, music, and virtual assets with blockchain technology. In parallel, the Metaverse is emerging as an interconnected virtual ecosystem, where NFTs facilitate decentralized economies, digital identity, and immersive experiences. These innovations present vast opportunities for industries such as gaming, fashion, real estate, and entertainment, fostering new revenue models and user engagement strategies. However, challenges remain, including scalability, environmental concerns, regulatory uncertainty, and issues related to intellectual property rights. Additionally, market volatility and security risks pose significant barriers to mainstream adoption. This study critically examines the intersection of NFTs and the Metaverse, reshaping digital interactions while addressing the ethical and technical complexities involved.
The proliferation of autonomous systems, from collaborative AI agents to decentralized decision-making units, has introduced a new dimension of machine-to-machine interaction. However, the communication between intelligent agents, especially in critical domains such as cybersecurity, defense, and finance, remains vulnerable to interception, spoofing, impersonation, and logic poisoning. This paper proposes a novel security-first communication framework designed specifically for AI-to-AI interaction. We explore foundational agent communication models, identify key security challenges in inter-agent exchange, and develop a comprehensive architecture embedding authentication, message integrity, encryption, trust verification, and agent self-defense mechanisms. A prototype implementation demonstrates how secure session establishment, encrypted payload exchange, and identity attestation can be achieved using modern cryptographic methods in a distributed agent swarm. Evaluations highlight both the threat landscape and performance implications of adding secure layers to agent dialogues. This work provides a blueprint for designing resilient AI systems that can securely reason, coordinate, and act in untrusted environments.
Driven by blockchain technology, numerous industries are increasingly adopting smart contracts to enhance efficiency, reduce costs, and improve transparency. As a result, ensuring the security of smart contracts has become critical. Traditional detection methods often suffer from low efficiency, are prone to missing complex vulnerabilities, and have limited accuracy. Although deep learning approaches address some of these challenges, issues with both accuracy and efficiency remain in current solutions. To overcome these limitations, this paper proposes a symmetry-inspired solution that harmonizes bidirectional and generative semantic patterns. First, we generate distinct feature extraction segments for different vulnerabilities. We then use the Bidirectional Encoder Representations from Transformers (BERT) module to extract original semantic features from these segments and the Generative Pre-trained Transformer (GPT) module to extract generative semantic features. Finally, the two sets of semantic features are fused using a multi-attention mechanism and input into a classifier for result prediction. Our method was tested on three datasets, achieving F1 scores of 93.33%, 93.65%, and 92.31%, respectively. The results demonstrate that our approach outperforms most existing methods in smart contract detection.
Qazi Muhammad Osama, Usman Ali, Tahira Ali, Danish Ali
The rapid rate of technological development necessitates a comprehensive and morally sound framework to guarantee acceptable integration between commercial innovation, mechanical systems, and artificial intelligence (AI). This review article presents a unified approach to integrated technology management by examining the intersection of future business models, mechanical sustainability, and AI ethics. The study emphasizes the significance of matching innovation with long-term environmental and societal objectives by analyzing the ethical ramifications of AI deployment—such as algorithmic bias, transparency, and accountability—as well as developments in sustainable mechanical engineering, such as eco-efficient machinery, lifecycle optimization, and circular manufacturing. Additionally, it explores revolutionary business models that are changing value generation and operational efficiency in the contemporary technology ecosystem, including platform economies, digital twins, decentralized finance (DeFi), and Industry 5.0 frameworks. Cross-sectoral synergies that support scalability, equality, and resilience are given particular attention. In order to balance the ethical use of AI with sustainable engineering methods and progressive entrepreneurship, the assessment also emphasizes the crucial roles that legislative frameworks, data governance, and stakeholder collaboration play. In the end, this integrated viewpoint offers practical advice to academics, politicians, and business executives working to create technology systems that are nimble, sustainable, and responsible in a time of complexity and ongoing innovation.
The rapid integration of AI into IoT systems has outpaced the ability to explain and audit automated decisions, resulting in a serious transparency gap. We address this challenge by proposing a blockchain-based framework to create immutable audit trails of AI-driven IoT decisions. In our approach, each AI inference comprising key inputs, model ID, and output is logged to a permissioned blockchain ledger, ensuring that every decision is traceable and auditable. IoT devices and edge gateways submit cryptographically signed decision records via smart contracts, resulting in an immutable, timestamped log that is tamper-resistant. This decentralized approach guarantees non-repudiation and data integrity while balancing transparency with privacy (e.g., hashing personal data on-chain) to meet data protection norms. Our design aligns with emerging regulations, such as the EU AI Act’s logging mandate and GDPR’s transparency requirements. We demonstrate the framework’s applicability in two domains: healthcare IoT (logging diagnostic AI alerts for accountability) and industrial IoT (tracking autonomous control actions), showing its generalizability to high-stakes environments. Our contributions include the following: (1) a novel architecture for AI decision provenance in IoT, (2) a blockchain-based design to securely record AI decision-making processes, and (3) a simulation informed performance assessment based on projected metrics (throughput, latency, and storage) to assess the approach’s feasibility. By providing a reliable immutable audit trail for AI in IoT, our framework enhances transparency and trust in autonomous systems and offers a much-needed mechanism for auditable AI under increasing regulatory scrutiny.
The fast spread of Internet of Things (IoT) devices has created major difficulties to uphold data security and maintain its reliability and integrity for interconnected systems. Traditional centralized systems cannot protect electronic evidence sufficiently in zero-trust environments because they lead to evidence that becomes vulnerable to unauthorized tampering. Blockchain technology solves these issues effectively through decentralized data processing and unalterable databases that remain easily viewable to all users. The research investigates blockchain smart contracts as a solution to improve IoT electronic evidence reliability by implementing automated access verification and data integrity assessment and event activation. Automated smart contract technology establishes transparent data security through policy enforcement which happens without third-party organizations. The research demonstrates how blockchain technology and smart contracts assist different industries like healthcare facilities and supply chains and industrial Internet devices and smart cities to operate. This research describes the principal obstacles within the field like scalability problems together with resource constraints and legal complications while offering recommendations about possible future academic investigations. Through blockchain technology alongside smart contracts this research develops a framework which enhances the reliability and security of IoT electronic evidence while benefiting IoT ecosystem reliability and safety.
As governmental health information systems become increasingly digitized, the need for collaborative analytics across decentralized regions has intensified.However, privacy concerns, regulatory constraints, and infrastructure disparities have limited the extent to which sensitive health data can be aggregated and analyzed across jurisdictions.This paper explores the integration of blockchain technology with federated learning (FL) to enable privacy-preserving data analytics across distributed governmental health information systems.By combining FL's decentralized model training capabilities with blockchain's immutable, transparent ledger and consensus mechanisms, the proposed framework ensures secure, auditable, and policy-compliant data collaboration without requiring raw data exchange.The framework leverages smart contracts to automate access control, consensus validation, and compliance enforcement among participating health institutions.Each node (representing a governmental health entity) trains models locally and shares only encrypted model parameters, which are validated and recorded on the blockchain.This eliminates the need for centralized authorities and reduces the risk of data leakage or manipulation.A core contribution of this work lies in addressing public-sector constraints such as legacy infrastructure, heterogeneous data standards, and institutional trust gaps through a modular, interoperable design.The system includes support for dynamic node participation, real-time updates, and compatibility with health data standards such as HL7 and FHIR.Use-case simulations across municipal, regional, and national health departments demonstrate improved efficiency in outbreak prediction, chronic disease surveillance, and population-level risk stratification while maintaining strict compliance with data protection regulations.This paper advances a scalable and trustworthy architecture for cross-border health collaboration, offering a blueprint for digital public health infrastructures in the age of data sovereignty and distributed intelligence.
With the advance application of blockchain technology in various fields, ensuring the security and stability of smart contracts has emerged as a critical challenge. Current security analysis methodologies in vulnerability detection can be categorized into static analysis and dynamic analysis methods.However, these existing traditional vulnerability detection methods predominantly rely on analyzing original contract code, not all smart contracts provide accessible code.We present ETrace, a novel event-driven vulnerability detection framework for smart contracts, which uniquely identifies potential vulnerabilities through LLM-powered trace analysis without requiring source code access. By extracting fine-grained event sequences from transaction logs, the framework leverages Large Language Models (LLMs) as adaptive semantic interpreters to reconstruct event analysis through chain-of-thought reasoning. ETrace implements pattern-matching to establish causal links between transaction behavior patterns and known attack behaviors. Furthermore, we validate the effectiveness of ETrace through preliminary experimental results.
Smart contracts are self-executing programs that facilitate trustless transactions between multiple parties, most commonly deployed on the Ethereum blockchain. They have become integral to decentralized applications in areas such as voting, digital agreements, and financial systems. However, the immutable and transparent nature of smart contracts makes security vulnerabilities especially critical, as deployed contracts cannot be modified. Security flaws have led to substantial financial losses, underscoring the need for robust verification before deployment. This survey presents a comprehensive review of the state of the art in smart contract security verification, with a focus on Ethereum. We analyze a wide range of verification methods, including static and dynamic analysis, formal verification, and machine learning, and evaluate 62 open-source tools across their detection accuracy, efficiency, and usability. In addition, we highlight emerging trends, challenges, and the need for cross-methodological integration and benchmarking. Our findings aim to guide researchers, developers, and security auditors in selecting and advancing effective verification approaches for building secure and reliable smart contracts.
The rapid integration of artificial intelligence (AI) into high-stakes domains such as healthcare, finance, defense, and governance has created an urgent demand for transparent, auditable, and tamper-resistant decision-making frameworks. While AI models, particularly deep learning architectures, provide unparalleled predictive power, their opaque "black-box" nature often results in accountability gaps, regulatory non-compliance, and ethical challenges. Traditional logging mechanisms fail to capture the complexity and sensitivity of AI-driven decisions, especially in multi-stakeholder ecosystems. Blockchain technology, with its inherent features of immutability, decentralization, and verifiability, presents itself as a transformative solution to this problem. This manuscript proposes and evaluates blockchain-based logging systems for AI auditing, highlighting how distributed ledgers can establish immutable trails of model inputs, intermediate reasoning, and final outputs. The study conducts a comprehensive literature review on AI auditability, trust mechanisms, and blockchain applications, followed by a methodological framework integrating permissioned blockchains with explainable AI (XAI). A statistical analysis is presented to compare blockchain-logging versus traditional logging systems in terms of latency, transparency, energy consumption, scalability, and regulatory compliance. Results indicate that blockchain-based logging improves transparency by 78%, strengthens compliance traceability by 65%, and reduces auditing disputes by 52%, albeit at a moderate computational cost. The paper concludes that blockchain-based logging is not merely a technical enhancement but a regulatory and ethical necessity for next-generation AI systems. Future research directions include hybrid blockchain models, privacy-preserving logging protocols, and AI-governed adaptive consensus mechanisms.
A persistent semantic gap separates the low-level revert data emitted by smart contracts from the high-level explanations Web3 users need when a transaction fails. Existing automated analyzers treat such reverts as hints of hidden vulnerabilities and do not tell users what actually went wrong. To close this gap and give users useful feedback, I present ErrorExplainer, an automated error-explanation framework rather than another bug detector. ErrorExplainer takes a novel two-phase approach. A lightweight static analysis of verified source code lifts every transaction-reverting statement into a canonical error representation of an origin function, a guard condition, and an expected error message. At runtime, when a failure occurs, ErrorExplainer first checks the invariant part of the error data with the error representation of the called function. If no hit appears, it expands the candidates to call traces until a match is found and then shows the matched record as a clear, human-readable explanation. The evaluation results show that ErrorExplainer could effectively identify 6284 normalized error records from a reverting-related dataset of SC-Bench. The high information completeness (0.952) and matching fitness (0.954 and 0.604 at the function and trace levels, respectively) indicate that the extracted error context of ErrorExplainer can provide more understandable information to users on failed operations.
Smart contracts automate agreements in blockchain systems but their immutable nature makes them vulnerable to permanent flaws once deployed. This thesis evaluates 256 smart contract vulnerability detection tools developed between 2018 and 2024, including approaches such as fuzzing, symbolic execution, formal verification, and artificial intelligence–based analysis. Tools were classified by detection strategy (static, dynamic, hybrid), domain (academic or industry), and scope. The evaluation involved a theoretical review of architecture, usability, and documentation, alongside an empirical assessment of accuracy, speed, and false positive rates. Findings show that while certain tools excel in specific areas, none achieve balanced performance or comprehensive coverage. To address these gaps, a modular six-layer evaluation framework is introduced, defining functional areas such as code analysis, coverage, integration, and user experience. The framework offers a benchmark for tool assessment and future development. Additionally, a graph-based detection model is proposed, demonstrating improved accuracy in both binary and multi-class settings.
As multi-agent artificial intelligence (AI) systems become increasingly integral to complex societal functions, ensuring ethical decision making within these networks emerges as a critical challenge. This research introduces the Holistic Ethical Commons (HEC) protocol, a novel framework that synthesizes ancient philosophical principles with contemporary distributed computing techniques to facilitate dynamic, collective moral reasoning among autonomous agents. Drawing inspiration from Aristotle’s virtue ethics and Confucian role ethics, the HEC protocol establishes a communal space of moral norms through a Distributed Moral Ledger and an Adaptive Ethical Genome, enabling agents to co-evolve their ethical commitments in response to environmental changes and stakeholder feedback. Core principles of the HEC include community-building, transparent accountability, adaptive governance, and consensus-based moral updating, which collectively promote fairness, safety, and social alignment within multi-agent interactions. The framework integrates real-time decision logging, collective feedback loops, and adaptive mutation of ethical principles, fostering a resilient and context-aware ethical landscape. While the HEC protocol offers significant advantages in scalability, accountability, and adaptability, it also presents limitations such as computational overhead, potential for power concentration, and challenges related to ethical fragmentation. By addressing these challenges, the HEC protocol aims to set a trend for future ethical frameworks in AI, advocating for adaptable, transparent, and collectively governed moral systems that align with human values. This study provides a foundational step towards responsibly integrating multi-agent AI systems into societal infrastructures, ensuring their actions contribute positively to human flourishing.