<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Archiving and Interchange DTD v1.0 20120330//EN" "JATS-archivearticle1.dtd">
<article xmlns:xlink="http://www.w3.org/1999/xlink">
  <front>
    <journal-meta />
    <article-meta>
      <title-group>
        <article-title>Based Framework for Eficient Vehicle to Grid Management</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Aurora Guaresi</string-name>
          <email>aurora.guaresi@studenti.unimi.it</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Chiara Braghin</string-name>
          <email>chiara.braghin@unimi.it</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Stelvio Cimato</string-name>
          <email>stelvio.cimato@unimi.it</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="editor">
          <string-name>Vehicle-to-grid, Avalanche, Smart Contract, dApp</string-name>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Dipartimento di Informatica, Università degli Studi di Milano</institution>
          ,
          <country country="IT">Italy</country>
        </aff>
      </contrib-group>
      <pub-date>
        <year>2025</year>
      </pub-date>
      <abstract>
        <p>Electric vehicles (EVs) are widely recognized as one of the most efective solutions for reducing oil consumption and lowering gas emissions. Furthermore, EVs can be connected to the power grid for charging and/or discharging, leading to a great impact to our society for eficient management of electric grid infrastructure. This paper investigates and discusses the potential integration of blockchain technology into vehicle-to-grid (V2G) systems to address some of the challenges associated to its large-scale adoption. Specifically, we examine the advantages and security improvements provided by using Avalanche, a blockchain platform, within the V2G context. We also introduce AvaDrive, a decentralized application (dApp) we have developed to facilitate eficient transaction management in V2G systems.</p>
      </abstract>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>1. Introduction</title>
      <p>
        According to the latest report by the International Energy Agency’s (IEA) on the global electric vehicle
(EV) market, more than one over five cars sold are electric [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ]. Moreover, the number is expected to
continue raising, both compared to the last two years and over the last decade. In fact, despite the
European automotive industry’s crisis [
        <xref ref-type="bibr" rid="ref2 ref3">2, 3</xref>
        ], some brands such as BMW Group [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ], Toyota Motor Europe
[
        <xref ref-type="bibr" rid="ref5">5</xref>
        ], and Lucid Group [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ] have registered an increment in hybrid (HEVs) and EVs sales. Furthermore,
companies like Chevrolet [
        <xref ref-type="bibr" rid="ref7">7</xref>
        ], Jaguar [
        <xref ref-type="bibr" rid="ref8">8</xref>
        ], and Honda [
        <xref ref-type="bibr" rid="ref9">9</xref>
        ] have announced diferent initiatives in the EV
sector. This trend is expected to expand also across emerging economies, including Vietnam, Thailand,
CEUR
Workshop
      </p>
      <p>ISSN1613-0073
transformation of the energy industry, underscores the need for strong trust relationships among all
stakeholders. At the same time, it highlights the importance of maintaining core security properties,
such as those defined by the CIA Triad (i.e., confidentiality, integrity, and availability).</p>
      <p>This paper aims to integrate blockchain technology into V2G, V2B, and V2H systems to address
some of the major challenges hindering their large-scale adoption. Specifically, we explore the
potential benefits, limitations, and security implications of applying Avalanche, a relatively new and
underexplored blockchain platform, to the V2G domain. As a proof of concept, we developed AvaDrive,
a decentralized application built on the Avalanche platform to facilitate energy sharing. The dApp
provides users with realistic, context-aware estimates for energy transfer times, taking into account
the specific characteristics and conditions of each vehicle. For the user interface (UI), we utilized the
Angular framework [20], combined with the Taiga UI component library [21], Lucide icon set [22], and
3D models to enhance interactivity and usability. Authentication is handled through the integration of
a third-party service, Web3Auth [23]. To simulate charging station behavior, we employed the “SAP –
e-Mobility Charging Stations Simulator” [24], which communicates via WebSocket [25] and adheres to
the Open Charge Point Protocol (OCPP) [26]. Our framework ofers the following key features:
• Decentralized Authentication &amp; Privacy: authentication is decentralized, and privacy-oriented,
relying on a Web3-based third party service;
• Eficient and Scalable Management of Energy Transactions : our framework relies on Avalanche
blockchain to achieve fast, low-latency, and energy-eficient transaction processing, ensuring
scalability and strong security;
• Development of Appealing GUI with good User eXperience: the interface relies on advanced modules
ofering backward compatibility with Web2 application;
• Simulation Environment for V2G: our solution integrates a professional Charging Station (CS)
emulator interacting with the developed dApp.</p>
      <p>In particular, the final dApp is developed through the Avalanche blockchain platform, which adopts
a peculiar consensus mechanism and network topology to support scalability. Thanks to these
characteristics, the validation of transactions always takes around two seconds, guaranteeing eficiency,
which is independent of the arranged gas price, and protection from typical cyberattacks.</p>
      <p>The paper is organized as follows: Sect. 2 provides background on the key concepts underlying the
proposed solution, with a focus on V2G systems and the Avalanche platform. Sect. 3 reviews related
work in the field. Sect. 4 presents the proposed architecture, detailing its components and key features.
Finally, Sect. 5 concludes the paper and outlines potential directions for future development of the
dApp.</p>
    </sec>
    <sec id="sec-2">
      <title>2. Background</title>
      <sec id="sec-2-1">
        <title>2.1. Electric Vehicles recharging process</title>
        <p>To optimise the HEVs and EVs charging process, it is important to understand its mode of operation.
Inside a vehicle, we can have only three types of powertrain [27]. Then, we refer to an HEV when
the vehicle integrates a bigger battery than traditional thermal engines (ICEV), recharged through
regenerative braking, and which usually supports only low-speed driving. On the other hand, Plug-In
Hybrids (PHEVs) can also be driven in a fully-electric mode like EVs (or BEVs). In short, we can have
three grades of hybridisation based on how much the Internal Combustion Engine (ICE) is supported or
completely replaced by the electric motor.</p>
        <p>The recharging process can be performed through conductive charging, wireless charging, or over
battery swapping. As the latter two technologies are still in their early phase of development [28],
we are going to focus only on conductive V2G. In this context, three keys properties of the vehicle’s
battery must be considered: the capacity declared in kWh, and the maximum charge and discharge
power declared in kW. Factors such as the material composition of the electric cell, its cooling system,
which consumes electricity as well, the chosen charging mode and the CS itself all play an important
role in the recharging time and the cell’s life cycle. In practice, the full capacity of the battery is not
always utilized eficiently.</p>
        <p>From a security perspective [29], communication between the vehicle and the charging station (CS)
presents several vulnerabilities that can be exploited by attackers. For example, an attacker could
manipulate the system to receive more energy than paid for or, in bidirectional systems, falsely report
having injected more energy into the grid than actually delivered. Cybercriminals may also intercept
communication between hybrid or electric vehicles and the CS to extract sensitive information about
the vehicle or its owner, or to disrupt the charging process entirely. For a detailed analysis of attack
prediction and mitigation strategies targeting CSs, refer to [30].</p>
        <p>To minimise the recharging time and prevent service disruptions, voltage fluctuations, and energy
losses, the adoption of smart infrastructure is essential. Smart charging ofers a more controlled and
eficient alternative to unmanaged or delayed charging, helping to extend battery life and mitigate peak
demand issues. Given the critical nature of these systems, it is crucial to apply rigorous risk analysis and
management techniques, identifying vulnerabilities in the same way a cybercriminal might. One such
vulnerability is the presence of a Single Point of Failure (SPoF) in centralized architectures, which can
pose significant threats to both system reliability and data privacy. From the PUVEC (Urban Platform
for Connected Electric Vehicles) project [31], we see that the communications are heterogeneous, and
there is heavy trafic among the vehicles and the road infrastructure: an HEV or EV can be attacked
by manipulating the information that they need to provide to the server, or they can be forced to not
collaborate; an unauthorised node can also interfere to collect private data, and the network itself can
be subjected to Denial of Service (DoS) attacks, for instance. A possible solution to obtain a more
reliable and eficient system consists of integrating bidirectional charging through V2G [27]. In this
way, the HEV or EV acts as an accumulator and can supply power to the electric grid when it does not
recharge in Grid-to-Vehicle (G2V) mode. The vehicle can also provide energy to a single building in
V2B, when other sources have peak requests and high prices, consequently. If these users were to use
V2H at night and V2B at their workplace, we could have multiple advantages, such as obtaining a better
Load Frequency Control (LFC) and “zero energy buildings” [32]. However, we should consider cells’
degradation and their cooling systems as well as the charging times, establishing coordination between
all the involved parties. There, the installation of DERs, particularly renewable ones like home solar
panels, can be beneficial.</p>
        <p>In the last few months, the American automaker Ford has partnered with Resideo, a smart home
solutions company and Honeywell spin-of founded in 2018, on the “EV-Home Power Partnership”
project [33] designed to explore the potential of electric vehicle batteries to support optimal home
energy management. To illustrate the practical impact of this initiative, we can refer to home energy
consumption data from the latest study conducted by Istat (Istituto Nazionale di Statistica) during
2020–2021. Due to the COVID-19 pandemic, energy use was elevated during this period, with the
average Italian household consuming approximately 16 kWh per day [34]. Taking as an example
the Ford F-150 Lightning, an all-electric version of Ford’s iconic F-150 pickup truck equipped with
Vehicle-to-Home (V2H) capabilities and a 131 kWh battery, we can estimate that the vehicle could
power an average Italian household for up to eight days, aligning with Ford’s own claims [35]. From
a financial perspective, the base model of the F-150 Lightning pick-up costs around 60,000 Euros. In
comparison, a typical home energy storage system is estimated to cost approximately 1,000 Euros per
kWh of capacity [36]. Based on this metric, using the vehicle as an energy storage unit can result in
significant savings, especially in terms of the initial investment.</p>
        <p>
          The EU encourages the adoption of V2G in Regulation 2023/1804 [37] and in Directive 2024/1275,
which plans the adoption of V2B [38]. However, for implementing V2G, V2B and V2H, we may need
more complex infrastructures, as well as continuous and reliable communications [39]. Finally, the
automotive sector has already taken some steps in the V2G, V2B and V2H direction. In fact, scholar
buses have a huge decrease in the cost for each seat when they implement V2G [
          <xref ref-type="bibr" rid="ref14">40</xref>
          ]. Moreover, beyond
the aforementioned Ford F-150 Lightning, several other automotive manufacturers have also embraced
these technologies. Notable examples include initiatives by KIA [
          <xref ref-type="bibr" rid="ref15">41</xref>
          ], Nissan since 2016 [
          <xref ref-type="bibr" rid="ref16 ref17">42, 43</xref>
          ], the
Renault Group [
          <xref ref-type="bibr" rid="ref18 ref19">44, 45</xref>
          ], and Lucid’s innovative RangeXchange system [
          <xref ref-type="bibr" rid="ref20">46</xref>
          ].
        </p>
        <p>
          The mobility sector has been strongly influenced by the emergence of the SE [
          <xref ref-type="bibr" rid="ref11">11</xref>
          ]. This influence is
evident in the shift among car manufacturers toward promoting the variable costs of car-sharing services
over the fixed costs associated with vehicle ownership. Although the definition of the SE remains
somewhat ambiguous, encompassing a range of consumption models, a comprehensive classification
of sharing services within a unified framework is provided in [
          <xref ref-type="bibr" rid="ref21">47</xref>
          ]. These services also embody the
concept of prosumerism, as previously discussed. In this context, establishing a strong foundation of
trust among all participants is essential to ensure both security and privacy, particularly when handling
sensitive personal data.
        </p>
      </sec>
      <sec id="sec-2-2">
        <title>2.2. Blockchain applications</title>
        <p>
          The blockchain is often associated with cryptocurrencies and the financial sector, but its applications
can be extended to healthcare, logistics, and the energy industry too [
          <xref ref-type="bibr" rid="ref22 ref23">48, 49</xref>
          ]. Recognizing this broader
potential, in 2018, an alliance of companies and associations including Continental, Marelli, SAE
International, Stellantis, Honda, and General Motors established the Mobility Open Blockchain Initiative
(MOBI) to promote the integration of Web3 solutions within the mobility sector [
          <xref ref-type="bibr" rid="ref24">50</xref>
          ].
        </p>
        <p>
          Briefly, blockchain is a distributed database maintained across a decentralized network. It operates
as a linear sequence of blocks, where each block contains a timestamp, transaction data, and the
cryptographic hash of the previous block, ensuring data integrity and resistance to tampering. This
structure inherently supports transparency, as all participants in the network have access to the same
version of the ledger. In open and permissionless networks, where the number of participants is
theoretically unlimited, consensus algorithms are essential for coordinating cooperation and defending
against malicious actors. Distributed systems must solve the consensus problem, where each node must
independently verify the validity of received information [
          <xref ref-type="bibr" rid="ref25">51</xref>
          ]. Common consensus mechanisms include
Byzantine Fault Tolerance (BFT), Proof of Work (PoW), Proof of Stake (PoS), Proof of Authority (PoA),
and the Stellar Consensus Protocol (SCP). Additionally, blockchain technology enables the execution of
Smart Contracts (SCs) [
          <xref ref-type="bibr" rid="ref26">52</xref>
          ]. These are self-executing contracts with the terms of the agreement directly
written into code. Once predefined conditions are met, the contract automatically executes without the
need for a trusted intermediary.
        </p>
        <p>
          Building on the previous discussion, we can now assess the key advantages and limitations of
blockchain technology [
          <xref ref-type="bibr" rid="ref23">49</xref>
          ]. One of its primary strengths is decentralization, which eliminates the need
for trusted intermediaries. Additionally, because data stored on the blockchain is publicly accessible
and cannot be altered or deleted without consensus, it ensures integrity, transparency, traceability,
immutability, and persistence. However, several challenges must also be considered. These include
the high energy consumption of certain consensus mechanisms, the lack of interoperability due to
software forking, and the risk of centralization if the number of active participants is too low. Moreover,
blockchain adoption often requires a significant initial investment, and most platforms are still not
suficiently user-friendly for individuals without prior technical experience.
        </p>
        <p>
          Cybersecurity and privacy are also critical in systems like transportation and energy. To address these
concerns, blockchain implementations must incorporate robust cryptographic and privacy-preserving
techniques [
          <xref ref-type="bibr" rid="ref27 ref28 ref29">53, 54, 55</xref>
          ]. Furthermore, thorough evaluations of each blockchain platform are necessary
to mitigate common threats such as 51% attacks, double-spending [
          <xref ref-type="bibr" rid="ref23">49</xref>
          ], and the deployment of malicious
smart contracts (Criminal Smart Contracts, or CSCs) [
          <xref ref-type="bibr" rid="ref28 ref30 ref31 ref32">54, 56, 57, 58</xref>
          ]. Formal verification of smart
contract code is essential, and Machine Learning (ML) methods can be applied to monitor decentralized
networks in real time for anomalous behavior.
        </p>
        <p>
          Blockchain proves advantageous over traditional databases in scenarios where data immutability,
lack of a central authority, and limited trust between parties are critical requirements [
          <xref ref-type="bibr" rid="ref13">13</xref>
          ]. As such,
it is well-suited for sectors like the Internet of Things (IoT), Industrial IoT (IIoT), and Industry 5.0,
particularly in energy and mobility applications. Major players in the oil and gas industry, such as Saudi
Aramco, BP, Shell, Equinor, Chevron, Total, and Iberdrola, have already invested in blockchain-based
energy trading platforms to improve transparency and traceability.
        </p>
        <p>
          Blockchain also enhances the smart charging ecosystem by improving interactions between electric
vehicles (EVs) and smart grids [
          <xref ref-type="bibr" rid="ref33">59</xref>
          ]. This integration of ICT with electric systems forms part of the
Internet of Energy (IoE), a digitally coordinated network that includes smart grids, buildings, hybrid
and electric vehicles, and distributed energy resources (DERs). IoE enables the creation of Virtual Power
Plants (VPPs), which eficiently manage shared data and energy flow across prosumers and infrastructure
components [
          <xref ref-type="bibr" rid="ref34">60</xref>
          ]. As the energy landscape shifts toward decentralization and renewable sources, where
multiple parties can access the energy network without restriction, the existing infrastructure must
continue to ensure both security and eficiency. In this context, HEVs and EVs become strategic assets,
reducing the cost of installing and maintaining charging stations. Importantly, IoE allows us to augment,
rather than replace, existing infrastructure with technologies that enhance eficiency, transparency, and
security.
        </p>
        <p>
          Blockchain can be beneficial to the IoE, optimising energy consumption through SCs, thanks to its
properties of transparency and traceability. The most common platforms for energy trading applications
are Ethereum and Hyperledger Fabric. Particularly, consortium or permissioned blockchains are often
favored in energy contexts for their enhanced security models [
          <xref ref-type="bibr" rid="ref35 ref36">19, 61, 62</xref>
          ]. Avalanche is a layer-1,
open-source blockchain platform compatible with the Ethereum Virtual Machine (EVM) [17]. Unlike
Ethereum, Hyperledger Fabric, Polygon, IOTA, or Hedera, Avalanche was initially designed for the
ifnancial sector and employs a unique consensus mechanism focused on scalability and decentralization.
This method belongs to the “Snow protocol family” [
          <xref ref-type="bibr" rid="ref37">63, 17</xref>
          ]: a subset of randomly chosen nodes must
take the same decision on the validation of a transaction for a determined number of consecutive times.
During each decision, the majority of nodes influences more and more the ones which did not agree
initially, and transactions that generate conflicts are rejected. For example, we can have twenty nodes
and assume that if fourteen out of these twenty confirm a transaction twenty consecutive times, we
have reached the consensus. This penalises malicious nodes’ behaviours while supporting eficiency
and scalability because the number of validator nodes is independent of the network. Avalanche uses
PoS, requiring 2000 AVAX tokens to operate as a validator on the Primary Network. In addition, it has
a particular network topology. In the Avalanche Mainnet, we find a network of networks providing
isolation, which supports eficiency and better work assignment for validator nodes. More in detail, the
Primary Network contains three subnetworks: the Contract Chain (C-Chain), an EVM implementation
to execute SCs, the Platform Chain (P-Chain), which manages validators and subnetworks, and the
eXchange Chain (X-Chain), which is responsible for Avalanche Native Tokens’ operations like AVAX.
Moreover, the platform admits the creation of permissioned subnetworks.
        </p>
        <p>
          While Avalanche is less widely adopted than some alternatives, its consensus mechanism and network
topology make it a compelling choice for energy and mobility applications that demand scalability,
resilience, and eficiency [
          <xref ref-type="bibr" rid="ref32 ref38 ref39">58, 64, 65</xref>
          ].
        </p>
      </sec>
    </sec>
    <sec id="sec-3">
      <title>3. Related work</title>
      <p>Building on the previous considerations, it is evident that P2P energy trading, V2G systems, and
blockchain technology have the potential to reshape the mobility sector, especially the automotive
industry. Blockchain can be leveraged not only for energy distribution but also for secure and transparent
payment mechanisms, addressing several of the security concerns previously discussed.</p>
      <p>
        There are numerous industrial initiatives exploring the integration of blockchain into energy and
transportation infrastructures. Among the most notable is the Brooklyn Microgrid project, which
combines P2P energy trading with blockchain [
        <xref ref-type="bibr" rid="ref33 ref40 ref41 ref42 ref43 ref44 ref45">59, 66–71</xref>
        ]. It is similar to the Swiss pilot project
Quartierstrom. In these cases, citizens from Brooklyn and Walenstadt, respectively, could keep track of
their energy consumption from a mobile dApp. Power Ledger is an award-winning software company
that develops decentralised platforms to facilitate P2P solar energy trading [
        <xref ref-type="bibr" rid="ref46">72</xref>
        ]. For example, they have
collaborated with Tata Power to support the relations between the Indian company and prosumers who
also own CSs or batteries and accumulators. On the other hand, the Energy Web Foundation (EWF)
uses Ethereum to help various energy companies towards the Web3 transition [
        <xref ref-type="bibr" rid="ref47">73</xref>
        ]. In 2018, Tokyo
Electric Power Company Holdings, Inc. (TEPCO) started investing in blockchain integration, including
the P2P market Conjoule [
        <xref ref-type="bibr" rid="ref48">74</xref>
        ], and the EWF. The EU has also supported the P2P energy trading platform
SunContract [
        <xref ref-type="bibr" rid="ref49">75</xref>
        ]. The latter involves more than 10,000 prosumers in Slovenia who can buy and sell
renewable energy. Regarding Africa, the startup Lightency was founded in 2018 to facilitate energy
trading among local communities. In this way, they can become more economically independent, and
the electricity cost should decrease [
        <xref ref-type="bibr" rid="ref50">76</xref>
        ]. Moreover, in the US, there is the V2H project JuiceNet [
        <xref ref-type="bibr" rid="ref51">77</xref>
        ], in
Germany, the Ethereum-based Share &amp; Charge V2G dApp [
        <xref ref-type="bibr" rid="ref52">78</xref>
        ], and in Italy, the energy management
platform PROSUME [
        <xref ref-type="bibr" rid="ref53">79</xref>
        ]. Despite these promising initiatives, many still lack a suficiently large number
of users to fully assess their security, reliability, performance, and scalability. Moreover, evaluating
system interoperability, in particular communication between diferent blockchain platforms, remains a
significant challenge [
        <xref ref-type="bibr" rid="ref54">80</xref>
        ].
      </p>
      <p>
        Beyond the aforementioned use cases, various research institutions have proposed alternative
solutions. For example, Chonbuk National University in South Korea has explored the use of Hyperledger
Fabric for a P2P energy trading system, introducing a ’Parking Lot Local Controller’ (PLLC) to
dynamically switch between consumer and producer roles based on smart grid conditions [
        <xref ref-type="bibr" rid="ref55">81</xref>
        ]. In Italy, the
University of Palermo, in collaboration with four industrial partners, has developed a blockchain-based
platform designed for Energy Communities and bidirectional charging scenarios [
        <xref ref-type="bibr" rid="ref56">82</xref>
        ].”
      </p>
      <p>
        So far, Avalanche has not been adopted for the design of P2P energy trading systems, and this
motivates our choice for the development of the PoC. Let us remember that this blockchain is based
on the EVM, but it uses a particular consensus mechanism to obtain more scalability and eficiency in
the transactions’ approval process. Moreover, even if it is less known, important companies such as
Mastercard and KKR have collaborated with Avalanche [
        <xref ref-type="bibr" rid="ref57">83</xref>
        ].
      </p>
      <p>Then, the PoC takes as a reference [19] and [18]. In detail, the first source proposes a Hyperledger
Fabric-based system for validating users and paying for energy transactions. Moreover, it focuses
on solving the oracle problem using a Certified Authority (CA) to guarantee the true identities of
participants. The second article compares diferent blockchains to develop eficient SCs, which store
data related to unidirectional EVs recharging. The group of Swiss researchers have chosen Ethereum to
govern the energy transactions between hotels and their clients who own the vehicles. In fact, via a
web interface, the hotels’ managers can control the architecture in real-time while creating accounts for
the clients who can oversee their HEVs and EVs charging process through a mobile application. There
is a major focus on “transaction fees” and costs attributed to clients without using cryptocurrencies,
while future developments are centred on scalability and the respect of privacy properties for data that
is stored on-chain. In this particular paper, we can notice the use of specific data structures to memorise
the information related to energy transactions. By the way, our contribution is characterised by peculiar
elements, apart from the choice of Avalanche. In efect, we integrate a third-party service for users’
decentralised authentication and remain in a simulation environment for the electric operations. In
addition, we continue to consider V2G and bidirectional charging, distancing ourselves from the second
reference. Finally, the project has been managed through an incremental process.</p>
    </sec>
    <sec id="sec-4">
      <title>4. Under the Hood: AvaDrive’s Architecture and Core Features</title>
      <p>AvaDrive is a decentralized application developed as a proof of concept to explore the advantages,
limitations, and security aspects of leveraging the Avalanche blockchain in the context of bidirectional
charging, with a particular focus on storing data related to V2G energy transfers. The primary objective
is to build a system that is secure, fully decentralized, and accessible, even to users with no prior
experience in Web3 technologies.</p>
      <p>The AvaDrive architecture is structured around three core components (Figure 1 illustrates the system
architecture, including all integrated components):
1. dApp: this component manages user authentication and facilitates interaction with the blockchain
via an RPC endpoint, ensuring seamless communication between the front end and the
decentralized network.
2. Blockchain layer : this layer is responsible for securely recording energy transaction data and
executing the smart contract that governs the logic of bidirectional charging operations.
3. Charging Station simulator : this component was designed to emulate real-world charging
infrastructure. It includes an OCPP server running on the backend. The server acts as the central
management system, handling transaction logging and communication with simulated charge
points. Validated energy transactions can then be forwarded to the Avalanche blockchain for
permanent, tamper-resistant storage.</p>
      <p>The process flow is structured as follows: a user first authenticates, then he/she initiates an energy
transaction — input if acting as a consumer, output if a producer, or bidirectional if a prosumer.
Once the energy transfer is completed, the corresponding financial transaction takes place. The entire
operation is then permanently recorded on the blockchain, ensuring transparency and immutability.</p>
      <sec id="sec-4-1">
        <title>4.1. Components and their integrations</title>
        <p>
          AvaDrive GUI. For the development of AvaDrive, we selected Angular [20] as the front-end
framework due to its widespread adoption and maturity within the industry. The user interface (UI) and user
experience (UX) are responsive and visually appealing, built using Taiga UI [21], a well-documented and
actively maintained component library developed by Tinkof Bank. To further enhance the interface,
we integrated Lucide icons [22], 3D models sourced from Sketchfab [
          <xref ref-type="bibr" rid="ref58">84</xref>
          ], and layout inspiration drawn
from Polestar’s minimalist design approach [
          <xref ref-type="bibr" rid="ref59">85</xref>
          ].
        </p>
        <p>
          Web3 has been defined as the new Internet era where the fundamental concept is “user-centrism”,
where individuals own their data and identities, supported by concepts like Self-Sovereign Identity
(SSI) and privacy by design. This model leverages decentralization and interoperability, though it
still faces key challenges such as Web2 compatibility, the absence of standardized protocols,
energyintensive scalability, and maintaining robust security properties [
          <xref ref-type="bibr" rid="ref60 ref61">86, 87</xref>
          ]. With these principles in
mind, we evaluated several third-party authentication solutions and ultimately chose Web3Auth [23]
as our authentication provider. Specifically, we implemented the “Plug and Play Web Modal SDK,”
which integrates smoothly with JavaScript-based frameworks like Angular and ofers a user-friendly,
out-of-the-box authentication experience without requiring extensive customization of the UI or UX.
        </p>
        <p>Figure 2 presents three screenshots of the AvaDrive dApp: the homepage on a mobile device, the
Web3Auth login modal from a laptop, and a sample energy transaction request as displayed on a
vehicle’s dashboard.</p>
        <p>AvaDrive Smart Contract. We developed a smart contract to manage energy transfers for producers,
consumers, and prosumers using Solidity within the Hardhat framework [89, 90]. Hardhat is a powerful
development environment tailored for building, testing, and deploying smart contracts on
Ethereumcompatible blockchains, including Ethereum itself, Avalanche’s C-Chain, Polygon, and other networks
that support the Ethereum Virtual Machine (EVM).</p>
        <p>The smart contract distinguishes between: public functions, which can be called externally, private
functions, which are restricted to internal contract logic, view functions, which read but do not modify
state, and pure functions, which operate independently of state and storage. We also made use of
Solidity’s memory management: storage for persistent data tied to the contract’s state, and memory for
temporary data during function execution, and calldata for handling function inputs eficiently. These
distinctions are crucial for optimizing gas costs and ensuring the contract remains lightweight and
cost-efective.</p>
        <p>To handle user roles, we implemented a structured mapping system that categorizes users into
producers, consumers, and prosumers. Each energy transaction is associated with a unique hash, which
helps prevent duplicate executions by the same user. We also implemented safeguards to verify correct
contract execution, along with an internal function for cryptocurrency-based payments—tailored for
our V2G simulation context. Figure 3 presents an excerpt of the Solidity code, showing: a mapping
for user classification, a public function using memory to store prosumer data, and a view function to
retrieve a user’s charging history.</p>
        <p>The smart contract was successfully deployed to the Avalanche C-Chain Fuji Testnet. To facilitate
interactions with the blockchain, we integrated a third-party service for handling Remote Procedure
Calls (RPCs). Based on the oficial Web3Auth documentation, we chose Ankr [88] as our RPC provider.
The dApp communicates with the blockchain via Ankr RPC endpoints and the Viem library [91]. For
testing purposes, we utilized two wallets funded with AVAX from the Fuji Testnet faucet. A MetaMask
wallet is used by the dApp user, while a Core wallet serves as the transaction counterparty for each
interaction.</p>
        <p>Charging Station Simulator. To simulate the V2G environment, we integrated the “SAP e-Mobility
Charging Stations Simulator” [24], which is part of the professional SAP e-Mobility platform [92].
This simulator operates using the OCPP-J protocol [26, 93]. To interface with it, we developed a
Node.js server inspired by [94], supporting WebSocket communications [25]. Our dApp connects to the
simulator’s UI Server using the WebSocket API [95], and its JSON responses are parsed in order to be
easily understood by the final user.</p>
        <p>In addition to the standard setup, our implementation includes a function that estimates energy
transmission time whenever a transaction is requested. This estimation considers key parameters like
battery capacity, max charge/discharge power, and the selected charging system, along with contextual
variables such as weather conditions. The resulting (semi-randomized) duration is converted into
milliseconds for simulation purposes. Once the simulated transfer completes, the energy transaction is
recorded on the blockchain, and the corresponding payment is processed (Figure 4). Figure 5 illustrates
a TypeScript code snippet that gets a casual element, estimates the charging duration, and handles the
execution of the energy transaction.</p>
      </sec>
      <sec id="sec-4-2">
        <title>4.2. Experimental Results</title>
        <p>Despite the relative novelty of some of the technologies used, we successfully integrated them to develop
AvaDrive, a decentralized application designed for producers, consumers, and prosumers within the V2G
ecosystem. In particular, even if Web3Auth, Viem, Taiga UI, and Avalanche are not the most adopted
in their respective sectors, they should be appreciated for their reliability. Avalanche’s ecosystem is
quite vast and accessible, and it easily cooperates with other systems because it is based on the EVM.
Moreover, it facilitates scalability thanks to its consensus mechanism and network of networks topology.
This avoids congestion, so we can obtain transactions’ confirmations in around two seconds as well as
other benefits against common blockchain cyberattacks, such as the “double spending” one. On the
other hand, a bad management of the subnetworks may undermine the blockchain’s decentralisation.</p>
        <p>Scalability and eficiency are crucial for V2G because we have a huge information trafic from diferent
users. Security and privacy are important as well. Then, we can do some theoretical considerations
using a system’s DFMEA [96] and the data analysed in the OWASP Top 10 [97]. Focusing on high
severity and RPNs values, we can delineate which failure modes are more dangerous than others and
need more attention. In particular, we notice that high RPNs are especially due to their respective
occurrence. We also did not prevent DoS attacks or the execution of CSCs. All of these aspects can
become real security requirements in the redesign of some fundamental functionalities. Of course, we
should also respect privacy [98]. Nevertheless, coming out of the simulation environment, given the
whole real system architecture, we could apply other security analyses, such as the TARA [99].</p>
        <p>As previously seen, we chose a fixed value for the “gas fee”, equal to 60000 WEI or 0.00000000000006
ETH and, in January 2025, 0.0000000002 euros: a paltry cost that can be managed by producers and
prosumers or included in the final user’s expenses. From the public ledger, we can really observe that
the cost for a single energy transmission contains 0.000000025 AVAX for the total “gas price”. We
decided to assign 0.000001 ETH for each kWh and we can see that an energy transaction costs from
0.00006000000006 to 0.00161232 AVAX. This means that the cost of energy is the most influential factor.
We can also confirm that each transaction is validated in two seconds at maximum, independently of
the paid fees. More in detail, we can take a look at the simultaneous automatic registration of two users
to check this statement (see Figure 6).</p>
        <p>In conclusion, we showed an eficient and secure dApp for the simulation environment, which also
guarantees easy interactions with the blockchain for the final users, like a Web2 experience.</p>
      </sec>
    </sec>
    <sec id="sec-5">
      <title>5. Conclusions and Future work</title>
      <p>We started analysing the recharging process of HEVs and EVs to optimise it from a security perspective.
We also briefly examined the economic context that is influencing the mobility sector, which can be
correlated to the emergence of new P2P-based technologies. So, we analysed blockchain to guarantee
fundamental security properties when diverse parties do not have a common bond of trust. Since this
happens in IoT, V2G, and their variations, we can apply ICTs, including blockchain, to obtain the IoE.
Therefore, data integrity, sharing, reliability, and scalability are essential to get resilience to failures
as well as increase DERs adoption. In this context, HEVs and EVs are true assets. Then, we saw some
business and research use cases, which applied blockchain to energy transfers and payments. After a
comparison with other platforms, we have chosen two references to implement our Avalanche-based
PoC. After, we described the advantages and disadvantages of the dApp AvaDrive for V2G energy
transactions.</p>
      <p>HEVs and EVs are modifying our day-to-day life and the current economy, V2G has the potential
to act in an analogous way. Therefore, AvaDrive has been an opportunity to attest how blockchain,
particularly the less-known platform Avalanche, can support the maintenance of essential security
properties that optimise V2G.</p>
      <p>In the future, we should redesign some functions that imply security, including cryptographic
techniques and considering the storage of private data of-chain to comply with the right to be forgotten,
imposed by the EU Regulation 2016/679 (GDPR) [100], for instance. Realising a physical infrastructure,
we should also examine in-depth the interdependencies between the dApp and external systems to
avoid DoS, the execution of CSCs, and eventually report temporary failures to users. Leaving the
simulation environment, we can also integrate the “IDRO” mentioned in [38]. This would permit an
easy identification of CSs from the dApp itself as well as prosumers’ simple registration to the same
register. From a practical point of view, a consumer or prosumer can benefit from the dApp directly in
their vehicles or by scanning a QR code on the chosen CS. Moreover, we can integrate a payment method
alternative to cryptocurrency, maybe ofered by a third party. If we scale the architecture outside of the
emulation field, we should exploit all of Avalanche’s capacities, using multiple subnetworks, maybe
distributed geographically, and letting them communicate through the Teleporter protocol, for example.</p>
      <p>For all the mentioned reasons, AvaDrive can be a useful starting point to delve into the application of
blockchain to V2G in our everyday life.</p>
    </sec>
    <sec id="sec-6">
      <title>6. Acknowledgement</title>
      <p>This work was supported in part by project SERICS (PE00000014) under the NRRP MUR program funded
by the EU - NGEU. Views and opinions expressed are however those of the authors only and do not
necessarily reflect those of the European Union or the Italian MUR. Neither the European Union nor
the Italian MUR can be held responsible for them.</p>
    </sec>
    <sec id="sec-7">
      <title>Declaration on Generative AI</title>
      <p>The authors have not employed any Generative AI tools.
14 Md Moniruzzaman, Abdulsalam Yassine, and Rachid Benlamri, “Blockchain and cooperative game
theory for peer-to-peer energy trading in smart grids”, International Journal of Electrical Power
&amp; Energy Systems, vol. 151, 2023.
15 Serkan Seven, Yeliz Yoldas, Ahmet Soran, Gulay Yalcin Alkan, Jaesung Jung, Taha Selim Ustun,
and Ahmet Onen, “Energy Trading on a Peer-to-Peer Basis between Virtual Power Plants Using
Decentralized Finance Instruments”, Sustainability 14, no. 20: 13286, 2022.
16 Maria Zrikem, Inas Hasnaoui, and Rajaa Elassali, “Vehicle-to-Blockchain (V2B)
Communication: Integrating Blockchain into V2X and IoT for Next-Generation Transportation Systems”,
Electronics 12, no. 16: 3377, 2023.
17 https://build.avax.network/docs
18 Marina Dorokhova, Jérémie Vianin, Jean-Marie Alder, Christophe Ballif, Nicolas Wyrsch, and
David Wannier, “A Blockchain-Supported Framework for Charging Management of Electric
Vehicles”, Energies 14, no. 21: 7144, 2021.
19 Prince Waqas Khan, and Yung-Cheol Byun, “Blockchain-Based Peer-to-Peer Energy Trading and</p>
      <p>Charging Payment System for Electric Vehicles”, Sustainability 13, no. 14: 7962, 2021.
20 https://angular.dev
21 https://taiga-ui.dev
22 https://lucide.dev
23 https://web3auth.io
24 https://github.com/sap/e-mobility-charging-stations-simulator
25 Ian Fette and Alexey Melnikov, “The websocket protocol”, 2011.
26 https://openchargealliance.org/protocols/open-charge-point-protocol
27 Morsy Nour, José Pablo Chaves-Ávila, Gaber Magdy, and Álvaro Sánchez-Miralles, “Review of
Positive and Negative Impacts of Electric Vehicles Charging on Electric Power Systems”, Energies
13, no. 18: 4675, 2020.
28 Trupti Dhanadhya, Swaraj Kadam, Shashikant Prasad, and Harshal Vaidya, “Advancements
and Challenges in Electric Vehicle Battery Charging: A Comprehensive Review”, E3S Web of
Conferences, vol. 601, 2025.
29 Alessandro Brighente, Mauro Conti, Denis Donadel, Radha Poovendran, Federico Turrin, and
Jianying Zhou, “Electric Vehicles Security and Privacy: Challenges, Solutions, and Future Needs”,
ArXiv abs/2301.04587, 2023.
30 Mansi Girdhar, Junho Hong, Hyojong Lee, and Tai-Jin Song, “Hidden Markov Models-Based
Anomaly Correlations for the Cyber-Physical Security of EV Charging Stations”, IEEE
Transactions on Smart Grid, vol. 13, no. 5, pp. 3903-3914, 2022.
31 Yosra Fraiji, Lamia Ben Azzouz, Wassim Trojet, and Leila Azouz Saidane, “Cyber security issues
of Internet of electric vehicles”, 2018 IEEE Wireless Communications and Networking Conference
(WCNC), Barcelona, Spain, pp. 1-6, 2018.
32 Yaolin Lin, Shengli Zhong, Wei Yang, Xiaoli Hao, and Chun-Qing Li, ”Towards zero-energy
buildings in China: A systematic literature review”, Journal of Cleaner Production, vol. 276, 2020.
33
https://media.ford.com/content/fordmedia/fna/us/en/news/2023/12/07/ford-and-resideo-launchev-home-power-partnership-project-drivin.html
34 https://www.istat.it/informazioni-sulla-rilevazione/consumi-energetici
35 https://www.ford.com/trucks/f150/f150-lightning/2023/features/intelligent-backup-power
36
https://senec.com/it/blog/quanto-costa-un-accumulatore-di-energia-fotovoltaico-le-fasce-diprezzo
37 https://eur-lex.europa.eu/legal-content/EN/TXT/?uri=CELEX
38 https://eur-lex.europa.eu/legal-content/EN/TXT/?uri=CELEX
39 Jan Lukas Demuth, Johannes Buberger, Annsophie Huber, Emma Behrens, Manuel Kuder, and
Thomas Weyh, “Unveiling the power of data in bidirectional charging: A qualitative
stakeholder approach exploring the potential and challenges of V2G”, Green Energy and Intelligent
Transportation, vol. 3, Issue 6, 2024.
88 https://www.ankr.com
89 https://hardhat.org
90 https://soliditylang.org
91 https://viem.sh
92 https://www.sap.com/products/scm/e-mobility.html
93 Binod Vaidya and Hussein T. Mouftah, “Deployment of Secure EV Charging System Using Open
Charge Point Protocol”, 2018 14th International Wireless Communications &amp; Mobile Computing
Conference (IWCMC), Limassol, Cyprus, pp. 922-927, 2018.
94 https://github.com/mikuso/ocpp-rpc
95 https://developer.mozilla.org/en-US/docs/Web/API/WebSockets_API
96 IEC, “IEC 60812:2018 - Failure modes and efects analysis (FMEA and FMECA)”, Geneva,
Switzerland, 2018.
97 https://owasp.org/Top10
98 Oluwafemi Akanfe, Diane Lawong, and H. Raghav Rao, “Blockchain technology and privacy
regulation: Reviewing frictions and synthesizing opportunities”, International Journal of Information
Management, vol. 76, 2024.
99
https://www.mitre.org/news-insights/publication/threat-assessment-and-remediation-analysistara
100 https://eur-lex.europa.eu/eli/reg/2016/679/oj/eng</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          <string-name>
            <surname>1</surname>
            <given-names>IEA</given-names>
          </string-name>
          , “
          <source>Global EV Outlook</source>
          <year>2024</year>
          ”, Paris https://www.iea.org/reports/global-ev-outlook-
          <year>2024</year>
          ,
          <year>2024</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          <article-title>2 The crisis facing the EU's automotive industry | Think Tank | Parlamento Europeo https</article-title>
          ://www. europarl.europa.eu/thinktank/it/document/EPRS_ATA(
          <year>2024</year>
          )
          <fpage>762419</fpage>
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          <article-title>3 European carmakers brace for a deeper and longer downturn https://www</article-title>
          .ft.com/content/7e0ca35e-d6a8
          <string-name>
            <surname>-</surname>
          </string-name>
          48b7
          <string-name>
            <surname>-</surname>
          </string-name>
          b657-cf547f3994cb
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          4 https://www.press.bmwgroup.com/global/article/detail/T0447427EN/bmw-group
          <article-title>-maintains-bevgrowth-path-inchallenging-market-situation-in-2024</article-title>
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          5 https://newsroom.toyota.
          <article-title>eu/multi-pathway-approach-to-co2-reduction-leads-to-all-time-salesrecord-for-toyota-motor-europe-in-2024</article-title>
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          6 https://lucidmotors.com/media-room/lucid-q3-2024
          <string-name>
            <surname>-</surname>
          </string-name>
          financial-results
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          7 https://news.reliant.com/press-releases/press-release-details/2024/Reliant-and
          <string-name>
            <surname>-GM-EnergyAdvance-Renewable-</surname>
          </string-name>
          Energy-
          <article-title>Mission-with-New-EV-Charging-Plan/default</article-title>
          .aspx
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          8 https://media.jaguar.com/en-gb/news/2024/12/jaguar-unveils-type-00
          <string-name>
            <surname>-</surname>
          </string-name>
          unmistakable-unexpecteddramatic
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>9 https://global.honda/en/newsroom/news/2025/c250108aeng.html</mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          <string-name>
            <surname>10</surname>
            <given-names>IEA</given-names>
          </string-name>
          , “Grid Integration of Electric Vehicles”, Paris https://www.iea.org/reports/grid
          <article-title>-integration-ofelectric-</article-title>
          <string-name>
            <surname>vehicles</surname>
          </string-name>
          ,
          <year>2022</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          11
          <string-name>
            <given-names>Mokter</given-names>
            <surname>Hossain</surname>
          </string-name>
          , “
          <article-title>Sharing economy: A comprehensive literature review”</article-title>
          ,
          <source>International Journal of Hospitality Management</source>
          , vol.
          <volume>87</volume>
          ,
          <year>2020</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref12">
        <mixed-citation>
          12 https://documents1.worldbank.org/curated/en/177911513714062215/pdf/122140-
          <string-name>
            <surname>WP-PUBLICDistributed-Ledger-Technology-</surname>
          </string-name>
          and
          <article-title>-</article-title>
          <string-name>
            <surname>Blockchain-</surname>
          </string-name>
          Fintech-Notes.pdf
        </mixed-citation>
      </ref>
      <ref id="ref13">
        <mixed-citation>
          13
          <string-name>
            <given-names>Mohammad</given-names>
            <surname>Jabed Morshed Chowdhury</surname>
          </string-name>
          , Alan Colman, Muhammad Ashad Kabir, Jun Han, and Paul Sarda, “Blockchain Versus Database:
          <string-name>
            <given-names>A Critical</given-names>
            <surname>Analysis</surname>
          </string-name>
          <string-name>
            <surname>”</surname>
          </string-name>
          ,
          <year>2018</year>
          17th IEEE International Conference On Trust,
          <source>Security And Privacy In Computing And Communications / 12th IEEE International Conference On Big Data Science</source>
          And Engineering (TrustCom /BigDataSE), New York, NY, USA, pp.
          <fpage>1348</fpage>
          -
          <lpage>1353</lpage>
          ,
          <year>2018</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref14">
        <mixed-citation>
          40
          <string-name>
            <given-names>Lance</given-names>
            <surname>Noel</surname>
          </string-name>
          and
          <string-name>
            <surname>Regina McCormack</surname>
          </string-name>
          , “
          <article-title>A cost benefit analysis of a V2G-capable electric school bus compared to a traditional diesel school bus”</article-title>
          ,
          <source>Applied Energy</source>
          , vol.
          <volume>126</volume>
          , pp.
          <fpage>246</fpage>
          -
          <lpage>255</lpage>
          ,
          <year>2014</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref15">
        <mixed-citation>
          41 https://www.press-eu.kia.com/d/RCR5enVsPVWn/latest-news#
          <article-title>/2023/ kia-outlines-smart-technologies-to-connect-and-charge-the-next-generation-of-sustainable-mobility-solutions: 39609</article-title>
        </mixed-citation>
      </ref>
      <ref id="ref16">
        <mixed-citation>
          42 https://global.nissannews.com/en/releases/nissan-to
          <article-title>-create-electric-vehicle-ecosystem</article-title>
        </mixed-citation>
      </ref>
      <ref id="ref17">
        <mixed-citation>
          43 https://global.nissannews.com/en/releases/nissan-to
          <article-title>-launch-afordable-vehicle-to-gridtechnology-in-2026</article-title>
        </mixed-citation>
      </ref>
      <ref id="ref18">
        <mixed-citation>
          44 https://media.renaultgroup.
          <article-title>com/vehicule-electrique-le-cea-et-renault-group-developpent-unchargeur-embarque-bidirectionnel-a-tres-haut-rendement/?lang=fra</article-title>
        </mixed-citation>
      </ref>
      <ref id="ref19">
        <mixed-citation>
          45 https://media.renaultgroup.com/renault-group
          <article-title>-we-drive-solar-and-mywheels-join-forces-withthe-city-of-utrecht-to-launch-europes-first-v2g-enabled-car-sharing-service</article-title>
        </mixed-citation>
      </ref>
      <ref id="ref20">
        <mixed-citation>46 https://lucidmotors.com/charging</mixed-citation>
      </ref>
      <ref id="ref21">
        <mixed-citation>
          47
          <string-name>
            <given-names>Boyd</given-names>
            <surname>Cohen</surname>
          </string-name>
          and Pablo Muñoz, “
          <article-title>Sharing cities and sustainable consumption and production: towards an integrated framework”</article-title>
          ,
          <source>Journal of Cleaner Production</source>
          , vol.
          <volume>134</volume>
          ,
          <string-name>
            <surname>Part</surname>
            <given-names>A</given-names>
          </string-name>
          , pp.
          <fpage>87</fpage>
          -
          <lpage>97</lpage>
          ,
          <year>2016</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref22">
        <mixed-citation>
          48
          <string-name>
            <given-names>Pinyaphat</given-names>
            <surname>Tasatanattakool</surname>
          </string-name>
          and Chian Techapanupreeda, “
          <source>Blockchain: Challenges and applications”</source>
          ,
          <source>2018 International Conference on Information Networking (ICOIN)</source>
          ,
          <source>Chiang Mai, Thailand</source>
          , pp.
          <fpage>473</fpage>
          -
          <lpage>475</lpage>
          ,
          <year>2018</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref23">
        <mixed-citation>
          49
          <string-name>
            <given-names>Julija</given-names>
            <surname>Golosova</surname>
          </string-name>
          and Andrejs Romanovs, “
          <source>The Advantages and Disadvantages of the Blockchain Technology”</source>
          ,
          <source>2018 IEEE 6th Workshop on Advances in Information, Electronic and Electrical Engineering (AIEEE)</source>
          , Vilnius, Lithuania, pp.
          <fpage>1</fpage>
          -
          <lpage>6</lpage>
          ,
          <year>2018</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref24">
        <mixed-citation>50 https://dlt.mobi</mixed-citation>
      </ref>
      <ref id="ref25">
        <mixed-citation>
          <string-name>
            <surname>51 L. M. Bach</surname>
            ,
            <given-names>B.</given-names>
          </string-name>
          <string-name>
            <surname>Mihaljevic</surname>
            , and
            <given-names>M.</given-names>
          </string-name>
          <string-name>
            <surname>Zagar</surname>
          </string-name>
          , “
          <article-title>Comparative analysis of blockchain consensus algorithms</article-title>
          ”,
          <source>2018 41st International Convention on Information and Communication Technology, Electronics and Microelectronics (MIPRO)</source>
          , Opatija, Croatia, pp.
          <fpage>1545</fpage>
          -
          <lpage>1550</lpage>
          ,
          <year>2018</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref26">
        <mixed-citation>
          <string-name>
            <surname>52 Primavera De</surname>
            <given-names>Filippi</given-names>
          </string-name>
          , Chris Wray, and Giovanni Sileno, “Smart contracts”,
          <source>Internet Policy Review</source>
          ,
          <volume>10</volume>
          (
          <issue>2</issue>
          ),
          <year>2021</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref27">
        <mixed-citation>
          53
          <string-name>
            <given-names>Huaqun</given-names>
            <surname>Guo</surname>
          </string-name>
          and
          <article-title>Xingjie Yu, “A survey on blockchain technology and its security”</article-title>
          ,
          <source>Blockchain: Research and Applications</source>
          , vol.
          <volume>3</volume>
          ,
          <string-name>
            <surname>Issue</surname>
            <given-names>2</given-names>
          </string-name>
          ,
          <year>2022</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref28">
        <mixed-citation>
          54
          <string-name>
            <given-names>Jorge</given-names>
            <surname>Bernal</surname>
          </string-name>
          <string-name>
            <given-names>Bernabe</given-names>
            , Jose Luis Canovas, Jose L.
            <surname>Hernandez-Ramos</surname>
          </string-name>
          , Rafael Torres Moreno, and Antonio Skarmeta, “
          <article-title>Privacy-Preserving Solutions for Blockchain: Review and Challenges”</article-title>
          ,
          <source>IEEE Access</source>
          , vol.
          <volume>7</volume>
          , pp.
          <fpage>164908</fpage>
          -
          <lpage>164940</lpage>
          ,
          <year>2019</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref29">
        <mixed-citation>
          55
          <string-name>
            <given-names>Weiqin</given-names>
            <surname>Zou</surname>
          </string-name>
          , David Lo, Pavneet Singh Kochhar,
          <string-name>
            <surname>Xuan-Bach Dinh</surname>
            <given-names>Le</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Xin</surname>
            <given-names>Xia</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Yang</surname>
            <given-names>Feng</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Zhenyu Chen</surname>
          </string-name>
          , and Baowen Xu, “
          <article-title>Smart Contract Development: Challenges and Opportunities”</article-title>
          ,
          <source>IEEE Transactions on Software Engineering</source>
          , vol.
          <volume>47</volume>
          , no.
          <issue>10</issue>
          , pp.
          <fpage>2084</fpage>
          -
          <lpage>2106</lpage>
          ,
          <year>2021</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref30">
        <mixed-citation>
          56
          <string-name>
            <given-names>Xiaoqi</given-names>
            <surname>Li</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Peng</given-names>
            <surname>Jiang</surname>
          </string-name>
          , Ting Chen, Xiapu Luo, and Qiaoyan Wen, “
          <article-title>A survey on the security of blockchain systems”</article-title>
          ,
          <source>Future Generation Computer Systems</source>
          , vol.
          <volume>107</volume>
          , pp.
          <fpage>841</fpage>
          -
          <lpage>853</lpage>
          ,
          <year>2020</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref31">
        <mixed-citation>
          57
          <string-name>
            <given-names>Jing</given-names>
            <surname>Liu</surname>
          </string-name>
          and Zhentian Liu, “
          <article-title>A Survey on Security Verification of Blockchain Smart Contracts”</article-title>
          ,
          <source>IEEE Access</source>
          , vol.
          <volume>7</volume>
          , pp.
          <fpage>77894</fpage>
          -
          <lpage>77904</lpage>
          ,
          <year>2019</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref32">
        <mixed-citation>
          58
          <string-name>
            <given-names>Zibin</given-names>
            <surname>Zheng</surname>
          </string-name>
          , Shaoan Xie,
          <string-name>
            <surname>Hong-Ning</surname>
            <given-names>Dai</given-names>
          </string-name>
          , Weili Chen, Xiangping Chen, Jian Weng, and Muhammad Imran, “
          <article-title>An overview on smart contracts: Challenges, advances</article-title>
          and platforms”,
          <source>Future Generation Computer Systems</source>
          , vol.
          <volume>105</volume>
          , pp.
          <fpage>475</fpage>
          -
          <lpage>491</lpage>
          ,
          <year>2020</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref33">
        <mixed-citation>
          59
          <string-name>
            <given-names>Yihao</given-names>
            <surname>Guo</surname>
          </string-name>
          , Zhiguo Wan, and Xiuzhen Cheng, “
          <article-title>When blockchain meets smart grids: A comprehensive survey”, High-Confidence Computing</article-title>
          , vol.
          <volume>2</volume>
          ,
          <string-name>
            <surname>Issue</surname>
            <given-names>2</given-names>
          </string-name>
          ,
          <year>2022</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref34">
        <mixed-citation>
          60
          <string-name>
            <given-names>Khizir</given-names>
            <surname>Mahmud</surname>
          </string-name>
          , Behram Khan, Jayashri Ravishankar, Abdollah Ahmadi, and Pierluigi Siano, “
          <article-title>An internet of energy framework with distributed energy resources, prosumers and small-scale virtual power plants: An overview”</article-title>
          ,
          <source>Renewable and Sustainable Energy Reviews</source>
          , vol.
          <volume>127</volume>
          ,
          <year>2020</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref35">
        <mixed-citation>
          61
          <string-name>
            <given-names>Zhou</given-names>
            <surname>Su</surname>
          </string-name>
          , Yuntao Wang, Qichao Xu, Minrui Fei,
          <string-name>
            <surname>Yu-Chu Tian</surname>
          </string-name>
          , and Ning Zhang, “
          <article-title>A Secure Charging Scheme for Electric Vehicles With Smart Communities in Energy Blockchain”</article-title>
          ,
          <source>IEEE Internet of Things Journal</source>
          , vol.
          <volume>6</volume>
          , no.
          <issue>3</issue>
          , pp.
          <fpage>4601</fpage>
          -
          <lpage>4613</lpage>
          ,
          <year>2019</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref36">
        <mixed-citation>
          62 MyeongHyun Kim, KiSung Park, SungJin Yu, JoonYoung Lee, YoungHo Park,
          <string-name>
            <surname>Sang-Woo Lee</surname>
          </string-name>
          , and BoHeung Chung, “
          <article-title>A Secure Charging System for Electric Vehicles Based on Blockchain”</article-title>
          ,
          <source>Sensors</source>
          <volume>19</volume>
          , no.
          <volume>13</volume>
          :
          <issue>3028</issue>
          ,
          <year>2019</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref37">
        <mixed-citation>
          63
          <string-name>
            <given-names>Team</given-names>
            <surname>Rocket</surname>
          </string-name>
          , Maofan Yin, Kevin Sekniqi, Robbert van Renesse, and Emin Gün Sire, “
          <article-title>Scalable and probabilistic leaderless BFT consensus through metastability”</article-title>
          , arXiv preprint arXiv:
          <year>1906</year>
          .08936,
          <year>2019</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref38">
        <mixed-citation>
          64
          <string-name>
            <given-names>Dejan</given-names>
            <surname>Dolenc</surname>
          </string-name>
          , Jan Turk, and Matevž Pustišek, “
          <article-title>Distributed Ledger Technologies for IoT and</article-title>
          Business Dapps”,
          <source>2020 International Conference on Broadband Communications for Next Generation Networks and Multimedia Applications (CoBCom)</source>
          , Graz, Austria, pp.
          <fpage>1</fpage>
          -
          <lpage>8</lpage>
          ,
          <year>2020</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref39">
        <mixed-citation>
          65
          <string-name>
            <given-names>Morsy</given-names>
            <surname>Nour</surname>
          </string-name>
          ,
          <string-name>
            <surname>José Pablo</surname>
          </string-name>
          Chaves-Ávila, and
          <string-name>
            <surname>Álvaro</surname>
          </string-name>
          Sánchez-Miralles, “
          <article-title>Review of Blockchain Potential Applications in the Electricity Sector and Challenges for Large Scale Adoption”</article-title>
          ,
          <source>IEEE Access</source>
          , vol.
          <volume>10</volume>
          , pp.
          <fpage>47384</fpage>
          -
          <lpage>47418</lpage>
          ,
          <year>2022</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref40">
        <mixed-citation>
          66
          <string-name>
            <given-names>Qiang</given-names>
            <surname>Wang</surname>
          </string-name>
          and
          <string-name>
            <given-names>Min</given-names>
            <surname>Su</surname>
          </string-name>
          , “
          <article-title>Integrating blockchain technology into the energy sector - from theory of blockchain to research and application of energy blockchain”</article-title>
          ,
          <source>Computer Science Review</source>
          , vol.
          <volume>37</volume>
          ,
          <year>2020</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref41">
        <mixed-citation>
          67
          <string-name>
            <given-names>Wenbing</given-names>
            <surname>Zhao</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Quan</given-names>
            <surname>Qi</surname>
          </string-name>
          ,
          <string-name>
            <surname>Jiong Zhou</surname>
          </string-name>
          , and Xiong Luo, “
          <article-title>Blockchain-Based Applications for Smart Grids: An Umbrella Review”</article-title>
          ,
          <source>Energies</source>
          <volume>16</volume>
          , no.
          <volume>17</volume>
          :
          <issue>6147</issue>
          ,
          <year>2023</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref42">
        <mixed-citation>
          68
          <string-name>
            <given-names>Nasser</given-names>
            <surname>Al-Saif</surname>
          </string-name>
          , Raja Wasim Ahmad, Khaled Salah, Ibrar Yaqoob, Raja Jayaraman, and Mohammed Omar, “
          <article-title>Blockchain for Electric Vehicles Energy Trading: Requirements, Opportunities, and Challenges”</article-title>
          ,
          <source>IEEE Access</source>
          , vol.
          <volume>9</volume>
          , pp.
          <fpage>156947</fpage>
          -
          <lpage>156961</lpage>
          ,
          <year>2021</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref43">
        <mixed-citation>
          69
          <string-name>
            <given-names>Morsy</given-names>
            <surname>Nour</surname>
          </string-name>
          ,
          <string-name>
            <surname>José Pablo</surname>
          </string-name>
          Chaves-Ávila, and
          <string-name>
            <surname>Álvaro</surname>
          </string-name>
          Sánchez-Miralles, “
          <article-title>Review of Blockchain Potential Applications in the Electricity Sector and Challenges for Large Scale Adoption”</article-title>
          ,
          <source>IEEE Access</source>
          , vol.
          <volume>10</volume>
          , pp.
          <fpage>47384</fpage>
          -
          <lpage>47418</lpage>
          ,
          <year>2022</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref44">
        <mixed-citation>70 https://www.brooklyn.energy</mixed-citation>
      </ref>
      <ref id="ref45">
        <mixed-citation>71 https://quartier-strom.ch/index.php/en/homepage</mixed-citation>
      </ref>
      <ref id="ref46">
        <mixed-citation>72 https://www.powerledger.io</mixed-citation>
      </ref>
      <ref id="ref47">
        <mixed-citation>73 https://www.energyweb.org</mixed-citation>
      </ref>
      <ref id="ref48">
        <mixed-citation>74 https://www.tepco.co.jp/en/press/corp-com/release/2017/1443967_10469.html</mixed-citation>
      </ref>
      <ref id="ref49">
        <mixed-citation>75 https://suncontract.org</mixed-citation>
      </ref>
      <ref id="ref50">
        <mixed-citation>76 https://lightency.io</mixed-citation>
      </ref>
      <ref id="ref51">
        <mixed-citation>77 https://juicenet.ai</mixed-citation>
      </ref>
      <ref id="ref52">
        <mixed-citation>78 https://shareandcharge.com</mixed-citation>
      </ref>
      <ref id="ref53">
        <mixed-citation>79 https://prosume.io</mixed-citation>
      </ref>
      <ref id="ref54">
        <mixed-citation>
          80 Shekh S. Uddin, Rahul Joysoyal,
          <string-name>
            <surname>Subrata K. Sarker</surname>
            ,
            <given-names>S.M.</given-names>
          </string-name>
          <string-name>
            <surname>Muyeen</surname>
          </string-name>
          , Md. Firoj Ali, Md. Mehedi Hasan, Sarafat Hussain Abhi, Md. Robiul Islam, Md. Hafiz Ahamed, Md. Manirul Islam,
          <string-name>
            <surname>Sajal K. Das</surname>
          </string-name>
          ,
          <string-name>
            <surname>Md. Faisal R. Badal</surname>
          </string-name>
          ,
          <string-name>
            <surname>Prangon Das</surname>
          </string-name>
          , and Zinat Tasneem, “
          <article-title>Next-generation blockchain enabled smart grid: Conceptual framework, key technologies and industry practices review”</article-title>
          ,
          <source>Energy and AI</source>
          , vol.
          <volume>12</volume>
          ,
          <year>2023</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref55">
        <mixed-citation>
          81
          <string-name>
            <given-names>Felipe</given-names>
            <surname>Condon</surname>
          </string-name>
          <string-name>
            <given-names>Silva</given-names>
            , Mohamed A.
            <surname>Ahmed</surname>
          </string-name>
          , José Manuel Martínez, and
          <string-name>
            <surname>Young-Chon</surname>
            <given-names>Kim</given-names>
          </string-name>
          , “
          <article-title>Design and Implementation of a Blockchain-Based Energy Trading Platform for Electric Vehicles in Smart Campus Parking Lots”</article-title>
          ,
          <source>Energies</source>
          <volume>12</volume>
          , no.
          <volume>24</volume>
          :
          <issue>4814</issue>
          ,
          <year>2019</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref56">
        <mixed-citation>82 https://www.blorin.energy</mixed-citation>
      </ref>
      <ref id="ref57">
        <mixed-citation>83 https://www.avax.network/enterprise</mixed-citation>
      </ref>
      <ref id="ref58">
        <mixed-citation>84 https://sketchfab.com</mixed-citation>
      </ref>
      <ref id="ref59">
        <mixed-citation>85 https://media.polestar.com/global/en/media/photos/list?searchTerm=app</mixed-citation>
      </ref>
      <ref id="ref60">
        <mixed-citation>
          86
          <string-name>
            <given-names>Partha</given-names>
            <surname>Pratim</surname>
          </string-name>
          <string-name>
            <surname>Ray</surname>
          </string-name>
          , “
          <article-title>Web3: A comprehensive review on background, technologies, applications, zero-trust architectures, challenges and future directions”, Internet of Things and Cyber-Physical Systems</article-title>
          , vol.
          <volume>3</volume>
          , pp.
          <fpage>213</fpage>
          -
          <lpage>248</lpage>
          ,
          <year>2023</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref61">
        <mixed-citation>
          87
          <string-name>
            <given-names>Weikang</given-names>
            <surname>Liu</surname>
          </string-name>
          , Bin Cao, and Mugen Peng, “
          <article-title>Web3 Technologies: Challenges and Opportunities”</article-title>
          ,
          <source>IEEE Network</source>
          , vol.
          <volume>38</volume>
          , no.
          <issue>3</issue>
          , pp.
          <fpage>187</fpage>
          -
          <lpage>193</lpage>
          ,
          <year>2024</year>
          .
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>