Isolated power systems, i.e., those not using an interconnection with another, larger power system, should be energy self-sufficient. At any time during the operation of this system, energy demand should be balanced with generation. In order to balance the system, both generation and consumption levels can be controlled, as far as the technical means and possibilities allow. The trend towards decarbonisation in the power sector is directing interest towards renewable energy sources, whose generation profile does not have to correspond to the typical load profile in grids. Therefore, tools are needed to enforce the matching of energy supply and demand profiles, enabling energy management in such a system. One of the simplest and most motivating tools for users is price signals (variable energy prices), indicating in which periods the use of energy from the grid is most desirable and in which periods it is least desirable. Thus, the development of an energy settlement system that stimulates the most efficient use of low-cost renewable resources is an important problem to solve from the point of view of the economics of sustainable system operation and the electricity grid. Modern information technology provides new tools and methods. The possibility of better observability, controllability and prediction in such a structure is related to the desirability of adjusting the settlement methods between the participants forming the power system.
Cryptocurrencies are a chain of blocks in which data is recorded—a ledger containing a list of transactions made on a given blockchain network. New transactions are recorded in a single block on the cryptocurrency chain, and new units are issued (according to an established protocol). Cryptocurrencies are based on a peer-to-peer network. An application is used to transfer them, and the entire network of users is responsible for disseminating the transfer information. A cryptocurrency coin is a digital version of a base value, which can be considered a unit representing the value of electricity produced by a specific technology under specific conditions and sent through a specific electricity network to a user.
2.1. Evolution of Forms of Energy Use and Settlement
Technological developments are causing changes in energy use. New types of loads appear, on the one hand, more energy-efficient, but on the other hand, the energy demand is increasing 
. The lockdown experience of 2020 has shown that some work activities can be carried out away from the workplace, so consumers’ energy use profiles are changing and will continue to change 
. On the other hand, technology provides opportunities for RES power generation in distributed sources, which have their own specificities 
Users become prosumers who can exchange energy with each other. If the prosumer has the ability to transfer energy at the desired time (having, for example, their own energy storage), they become a so-called flexumer 
. Sharing economy becomes a modern-day energy trading scheme based on dispatching the energy directly from prosumer (flexumer) to end-user depending on smart grid technical possibilities.
With the proliferation of prosumer installations and the energy sharing model, the term “Transactive Energy” 
has emerged as a term for conducting energy production and trading using automated control 
. The pillars of this approach are decentralised energy nodes that address different energy production and consumption levels. These nodes can continuously communicate with each other. A natural feature of the structure is interoperability, understood as the ability to communicate and share energy data while maintaining operational and service constraints 
. In this concept, both network operators and individual customers can act as a single layer and interact with each other to achieve the ultimate benefits of optimisation. The cited definition of Transactive Energy states that it consists of “techniques for managing the generation, consumption and flow of electricity in the power system that allow a dynamic balancing of demand and supply taking into account the constraints of the overall network” 
. This approach in particular should be applied to isolated power systems. It is a systemic linkage of technical methods of controlling network traffic and ways of influencing users by means of economic-market mechanisms based on well-designed settlement methods for the energy used. Thus, structures and forms of settlement for energy use need to be adapted to the evolving energy paradigm.
A settlement between users can take place directly in a peer-to-peer (P2P) system 
or via a special entity—the “Community-based p2p market” (the function of a community manager can be fulfilled, for example, by a DSO) 
. It is also possible to combine the possibility of settlement in both forms in one system (Hybrid P2P market) 
. Increasingly, the creation of local energy markets is being considered as part of new operational models for the control of local (distributed) generation units 
, a solution that is predestined for isolated systems. Energy sharing within the smart grid, supported by modern communication and IT technologies (e.g., Internet of Things, machine learning, artificial intelligence, cloud computing, blockchains, payment interfaces), means that we are no longer dealing with a transformation towards a “smart grid”, but with an “Energy Internet” 
2.2. Blockchain and DLT for Energy Settlement
Proposed transactive management platform architectures for such structures are typically based on blockchain technology 
. However, blockchain is only the most popular implementation of structures, generally forming Distributed Ledger Technologies (DLTs). Although, other DLT technologies also exist, for example, Tangle, Hashgraph, Sidechain, Holochain, Plasma, solutions different from blockchain are based on the Direct Acyclic Graph (DAG) approach 
In the case of energy trading, adequate control of access to the registration and settlement platform is desirable, as false orders can lead to imbalances in the power system. In addition, here we are dealing with sensitive data, which must be made available to the relevant institutions and energy companies. In addition, the mechanism should provide sufficient capacity for transaction possibilities. Hence, at present, among DLTs it is blockchain that seems appropriate 
. A decentralised approach to trading in the era of prosumption and distributed generation is much needed. Blockchain technology provides the basis for peer-to-peer energy transactions and eliminates the problems associated with centralisation 
. Blockchain tokens can be used to represent both payments (units of currency) and units of transactable energy, possibly taking into account the source of origin (e.g., an energy certificate such as a Guarantee of Origin according to EU Directives 
). Simulations of a marketplace using the blockchain where prosumers can sell tokenised origin certificates to users willing to subsidise renewable energy producers were presented in 
Issues related to blockchain-based energy trading, based on a literature review of research and implementation attempts, are grouped in the paper 
into four areas: construction of the trading platform; economics, privacy and security of the trading mechanism; redundancy and scalability of the trading platform; and implementation of specific trading platform technology. These issues thus relate to the technical issues of conducting transactions. Among the identified areas, the issue of settlements using modern techniques was not singled out. It should be noted that the issue of settlement formulas is fundamental from the users’ point of view, as the entities for whom all these solutions are created. Settlements for energy use between the participants of such a system should provide clear incentives for appropriate activities and investments rationalising the use of infrastructure and available cheapest and ecological energy resources.
Appropriate methods are still being sought to allow blockchain-based trading platforms for renewable energy to function, enabling the efficient processing of increasing ranks of information 
. The trading platform should also be suitable for EV clearing, including in a V2G service 
. In 
, a transaction platform for prosumers, electric vehicle owners and energy companies based on exchanges of six different types of tokens related to the fulfilment of different functionalities in the system was proposed, comparing their implementation in the form of FT (Fungible-Tokens) and NFT (Non-Fungible-Tokens) in blockchain technology. Energy assets can be granted additional attributes, such as Guarantees of Origin 
, which affects their exchangeability so that they can be implemented as NFTs. If energy assets are considered interchangeable, the tokens representing them can also be exchanged in parts and implemented as FTs. An NFT or FT implementation requires an algorithmic definition of the life cycle of tokens from issuance to redemption. The choice of implementation depends on the specific use case, and no absolute attributes are found to indicate an absolute advantage of one implementation over the other 
. A comparison between FT and NFT is presented in Table 1
Features of Fungible Tokens (FT) and Non-Fungible Tokens. Own elaboration based on information from 
A collective overview of blockchain-based energy trading models, together with the identification of the scope of research on them, is provided in 
. An overview of projects investigating the feasibility of using blockchain technology in electricity grids is provided in 
. In addition, a broader overview and descriptions of blockchain applications in the modern energy sector (especially regarding smart grid operation) can be found in 
. The review of blockchain-based energy trading schemes is provided in 
. Investigation of implementing a demand response mechanism with the use of blockchain technology is reported in 
. In addition, the issue of smart grid cyber security in the context of blockchain is discussed in the 
. Implementation of a token-based transaction system to enable users to anonymously negotiate and perform transaction security in decentralised smart grid trading is also deliberated in 
Energy trading using blockchain technology involves the concept of a smart contract. The progenitor of smart contracts, Nick Szabo, defines smart contracts as “a set of promises, specified in digital form, including protocols within which the parties perform on these promises” 
. An overview and analysis of smart contract-based solutions in the energy industry can be found in 
, and of energy trading in particular in 
. In cryptocurrency, the smart contracts can also be deemed as wallets because they contain balance and account addresses like traditional cryptocurrency accounts 
The blockchain architecture implemented for the energy market can be divided into three layers 
Figure 1. The blockchain based electricity settlement system layers.
Protocol Layer—the software implementation with all rules that manage the energy market, and the protocol for the actual blockchain creation process (initialisation, configuration, evolution, etc.);
Network Layer—creating a peer-to-peer network of users (prosumers); and
Application Layer—energy trading smart contracts, providing the possibility of defining and implementing energy using specific business rules.
Appropriate use of blockchain technology for settlement purposes allows for:
Simultaneous acquisition of information from energy meters with the execution of a settlement contract algorithm for energy use;
Integration of energy consumption and cost signals with other parameters as input signals to various smart contracts;
Integration of this activity with the automatic control of energy use processes at the level of:
A structure that is a physical or virtual cooperative of users and/or prosumers/consumers (cooperatives, clusters, VPPs);
Cooperation of the user with different energy suppliers (e.g., in an island system, contracts triggered by specific characteristics of the consumption profile); and
Achieving a high degree of reliability in the collection of current consumption and settlement data;
Speeding up and automating the settlement execution process (blockchain-based currency can automatically transfer itself after each settlement time interval, e.g., every 15 min, with almost zero overhead);
Stability and a high degree of certainty in transactions—participants cannot change the smart contract formula;
The implementation of a settlement system based on a dedicated cryptocurrency to be exchanged for other units of value on a transparent basis; and
Increasing the accessibility of the service to the mass user.
As such a form of settlement develops, gaining popularity and trust, the system may be expanded. The cryptocurrency used may find applications as a more common means of payment and as an intermediary for exchanging other goods and services. It should be noted that the currency itself has a value assigned precisely by the user community or social group as a means of payment and circulation of value.
2.3. Cryptocurrencies and Energy Assets
One of the most popular applications of blockchain is the operation of cryptocurrency. Indeed, the capabilities of blockchain have enabled the emergence of efficient, decentralised and independent cryptocurrency systems. However, attempts to create such non-independent and anonymous systems were made much earlier. These attempts were unsuccessful due to the lack of technology to enable decentralisation (e.g., the DigiCash System 
Often, the terms token, coin and cryptocurrency are used interchangeably, which can lead to confusion in interpretation. Although coins and tokens are considered to be forms of cryptocurrency, they provide different functions. Coins are built on their own blockchain and were originally intended as a form of currency. When developing a settlement system that is intended to promote and stimulate certain attitudes and activities, it is important to determine whether it is to use only reward utility tokens or whether it could be the beginnings of a new cryptocurrency system.
A digital coin is created on its own blockchain and functions similarly to fiat (traditional money). It can be used to store value and as a medium of exchange between two parties. Tokens, on the other hand, are created on an existing blockchain and can function in many more ways than as currency (representing an exchange of value). They are programmable assets on which smart contracts can be executed. In particular, these smart contracts can establish ownership of assets outside the blockchain network.
The issue of cryptocurrencies in relation to energy often comes up in the context of the increasing energy demand associated with the handling of cryptocurrency-based transactions, especially Bitcoin (BTC) 
or carbon footprint analysis 
. A positive correlation is observed between trading volumes of cryptocurrencies and energy consumption 
. The reason for the energy intensity of handling BTC is related to the protocol of this cryptocurrency and the proof-of-work transaction consensus mechanism. However, other more energy-efficient solutions of consensus algorithms for use in handling cryptocurrencies are possible 
. In addition, it is possible to create special utility tokens and cryptocurrencies, mainly dedicated to specific types of transactions handled via blockchain (or another DLT). This is the second area of thematic connection between cryptocurrency issues and energy, namely the creation of settlement systems for the use of different forms of energy using dedicated cryptocurrencies. Properly designed, such a system can reward specific energy user behaviours, promote specific generation technologies and desired investments, and accelerate settlement, thus developing the ideas mentioned above of “Transactive Energy” and the “Energy Internet”.
The roles that a cryptocurrency can have involve not only settlement functions (medium of exchange), but also functions of verifying the transfer of assets and motivating the creation of new values (also social), supporting grassroots movements or desired activities. To a limited extent, a number of schemes to implement reward tokens have already been implemented, including cryptocurrencies related to energy settlements.
Some of the projects cited are directly related to electromobility. However, the potential of the concept of a dedicated cryptocurrency system can be used to conduct settlements for user energy use on the electricity grid, primarily with prosumer sources. Examples of such solutions include NRGcoin 
and SEB 
. New units of currency (tokens) are generated when electricity is generated at a grid-connected energy source and they are transferred to the owner(s) of the generation source in proportion to the kWh generated (NRGcoin), or in proportion to the capacity of the source, taking into account the individual contribution made by the investor in the creation of the energy source (SEB).
In the case of the NRGcoin project, the amount of NRGcoin a generator receives comes from two sources: from the DSO, as a network manager and transaction broker, and newly generated units awarded by the NRGcoin Protocol. (This is thus a direct analogy to the reward of a Bitcoin miner, who may be paid twice: for validating the transaction in the form of a commission on it, and additional units for mining a blockchain block with a record of the event). The user, to purchase energy, must pay a certain amount of NRGcoin to the DSO. The NRGcoin currency can be exchanged for other monetary units on the foreign exchange market. The algorithm causes the NRGcoin/kWh price to depend on the energy balance situation on the grid. As intended, NRGcoin, analogous to SolarCoin, is dedicated to settlements for energy from selected sources.
, the exact NRGcoin billing formulas related to one-unit energy generation are given. However, there is no in-depth discussion in the literature on the motivation for adopting the formulas and their parameter ranges defined there. Therefore, it seems advisable to carry out a more in-depth analysis and discussion of such formulas in terms of their impact on the (short- and long-term) objectives of the postulated settlement system, particularly the impact on the system’s stability, the development of the network and technical infrastructure and the promotion of desired attitudes and activities of users.
Energy is an asset, allowing its possessor to achieve economic benefits (an indispensable activity factor), so it can be treated as a sub-carrier of value. Energy-related money can offer a means to improve the monetary system, also stimulating the low-carbon energy transition 
. Thus, the concept of an energy-based currency made available to the grid or a selected DeKo user has been proposed 
. The concept of replacing the existing gold-backed currency system with one based on an “energy currency” was proposed in 1921 by Henry Ford (“New York Tribune”, 4 December 1921) 
. In the DeKo-based currency concept, its issuer must hold a portfolio of assets providing electricity. These assets can be claimed in the form of contracts for purchasing and delivering electricity from an energy producer. A practical mechanism implementing this concept to some extent is the SolarCoin project. The concept of P2P energy transactions using a blockchain model based on the digital currency SolarCoin in the smart grid was analysed in 
. The idea behind SolarCoin is that a unit of 1 SolarCoin cryptocurrency (SLR) is credited for every MWh of electricity generated from the sun, regardless of where in the world this energy was produced. Here, there has been a change in the consensus mechanism of the transaction from “proof-of-work” to “proof of generation”. This approach to money is intended to offer a combination of stable value with economic utility and to be characterised by the social utility for a specific community.
Finally, it is worth emphasising that money is constantly evolving, and its development is not straightforward. There is an informational component in the substance of money—it is tough to have a universal definition of money, just as it is challenging to have an ideal form of money 
. Currency is a shared informational protocol for enabling and accelerating value flows across potential economic networks 
. Whether cryptocurrencies linked to available units of energy will be an appropriate form of monetary units will depend on the details of the concept and social evaluation. A first test may be to open up new settlement systems for smart grid energy use based on cryptocurrencies or utility tokens.
3. Settlement System Concept
The unfolding climate catastrophe necessitates measures for the decarbonisation of the economy, particularly the power sector. This process, especially in regions heavily dependent on the fossil economy, should involve all actors and system users 
. Popular RES generation technologies have reached sufficient maturity 
. In order to achieve the suggested targets of reducing emissions and increasing the share of renewable generation, appropriate mechanisms should be used to promote specific behaviours and preferred generation technologies. An incentive of a financial nature appears to be one of the most effective. An appropriately designed settlement system should support sustainable development, in line with the postulates of an ecological approach to energy use.
Maintaining the electricity system requires ongoing financial investment to ensure that efficient technologies and appropriate management methods can be invested in. Regardless of the financial flows between actors in the energy market, in the final calculation, the end-user pays for all activities related to the generation and supply of energy. These costs must be distributed among users in a way justified by their individual consumption share. The specifics of the traditional electricity grid structure categorise users by tariffs. New methods to track flows, decentralise the structure and bring generation closer to consumers should be reflected in the settlement system. The problem of covering network operation costs should be solved, with users with specific technologies, especially prosumers, being able to use their own potential in this process by providing specific system services (becoming flexumers). All users should be rewarded for their contribution to system balancing, reduction in energy distribution losses and improvement of power supply quality and reliability, considering the demands of sustainable development in proportion to their involvement. A DSR-type programme should also be universally addressed to smaller user groups and extended to the possibility of providing appropriately identified ancillary services to the grid.
Research into the design of an appropriate settlement system between network users seems essential. The functionality of the settlement system should promote a balanced approach to the use of energy resources and ensure proper financing of the fulfilment of the functions assigned to electricity grids and systems. However, the available literature lacks an analysis of the concept of settlement for system services provided by energy users (flexibles) within a coherent energy settlement system, especially one based on a dedicated cryptocurrency.
An appropriately designed settlement system can exploit the advantages of the opportunities offered by cryptocurrencies, with the system being based on its own cryptocurrency, not linked to others already in existence (such as Bitcoin). The expected advantages include that a dedicated cryptocurrency system makes the billing layer for energy use independent of the macroeconomic situation (the linking will only occur at exchanging this cryptocurrency for other monetary units, such as traditional fiat currency). Furthermore, this approach will show which activities are desirable for the sustainability of the electricity grid, regardless of the current economic situation. That is, from the user’s point of view, the difference will be clearly shown between the operation of the electricity system, whose operation will directly translate into the flows and deployment of cryptocurrency units, and the economy-wide situation affecting commodity prices and exposure to speculation.
Another advantage is the transparency of currency flows. According to the blockchain principle, the users themselves can remain anonymous, but all the transactions carried out for energy will be visible to all participants. Furthermore, transaction information will be recorded on the subsequent blockchain. The visibility of the activities of individual users can motivate others to optimise and increase their own participation in the system, especially in terms of energy efficiency.
Other possible advantages of the system are achieving transparency and simplifying the settlement form between energy users and the chance for additional profits from energy and currency exchange activities (new business niches). A settlement system covering various activities related to energy use, using the concept of a dedicated cryptocurrency, should be further investigated from the point of view of its impact on the development of the power sector, including the financial sector, particularly by identifying opportunities and threats and pointing to elements for achieving the intended development goals.
3.2. Basic Assumptions
Among the emerging blockchain-based settlement concepts and energy trading platforms for systems with connected prosumer installations, one can distinguish between approaches proposing the use of dedicated cryptocurrencies (in the sense of coins), e.g., NRGcoin, SEB 
or using a blockchain model based on an existing digital currency (such as SolarCoin 
), and proposing the distribution of proprietary utility tokens (e.g., 
Cryptocurrency can be a convenient measure of value due to the elimination of the issuer. The guarantee of the authenticity of the unit is provided by blockchain technology. Moreover, there is an integration of the value of money with a programmable machine algorithm. The open nature of blockchain (as the most popular DLT) motivates participation in the system from the bottom up. The basic form of activity realisation according to the ideas of the system in question is smart contracts, which combine the logic of technical processes with a layer of civil law contracts. The information in the publicised libraries of smart contracts is publicly available and enables the creation of new business systems of the desired complexity. Smart contracts can be established between two or more parties, with contracts being able to influence each other during execution as they themselves have the ability to undertake and participate in transactions. The cryptocurrencies or certain utility tokens required for smart contract execution, as carriers of value, combine the characteristics of a convertible means of payment with those of a control signal. They thus integrate responsibility and financial obligations with process control automation. This results in a reduction in the effort and time required to create and operate individual relationships, both business and technical. The creation of complex multi-partner structures is possible here without the need for centralisation and mediator involvement 
Based on the descriptions in 
, a general concept of a settlement system for energy use in a designated electricity system using a proprietary cryptocurrency can be formulated. The basic elements of this system can be assigned to two layers:
As the implementation of the contract concerns an event that takes place in real space, concerns a physical quantity and can be objectively measurable (the amount of energy at a specific moment in time), it is necessary to define a linking element between the realm of physical events and the realm of representation in the digital layer by means of technology. Such a link should be a technological interface. The responsibility for creating such an interface could be entrusted to the grid operator, who would simultaneously use it to control the compliance of the contracts with the accepted rules and technical capabilities of the grid itself and the power system.
The technological interface can be understood as the place of technical (physical) and financial and legal (including business, tax, etc.) interactions integrated into the blockchain environment. It enables the automatic execution of contracts with automated technical processes through the communication methods of the nodes of the blockchain network with the environment within the execution of the smart contract code. There is an exchange of information and a flow of values stored in the form of cryptocurrency tokens. The interface thus understood has an IT layer and a hardware layer, enabling the execution of the contract programme according to the established algorithm. At the same time, as these areas are at the border of environments, the processes themselves in these areas no longer need to be covered by the authentication and access control methods characteristic of blockchain. Instead, they require using the usual means (for common and regulated activities). Specialised interface areas should therefore be subject to interest and safeguards by the relevant regulators. For example, for energy applications, areas of technological interfaces to ensure trading and settlement compliance can be found at the interface level with:
Market participants in a broad sense: grid operators, metering operators, settlement intermediaries, generators, energy sales intermediaries (independent sellers), service aggregators, energy cooperatives, energy clusters, virtual power plants, users, additional grid service providers (including prosumers and flexumers);
Power grid infrastructure and IoT technology devices, also smart grid, smart building, smart city;
Financial institutions, including entities that allow the conversion of cryptocurrency into another monetary unit (exchange offices); and
State authorities (fulfilment of tax or other obligations arising from current legislation governing the power sector).
At the digital layer is the possibility to exchange the accumulated units of account (cryptocurrencies) for other carriers of value (including fiat currency) in an external exchange market (currency exchange office). The unit of account in this concept is a dedicated cryptocurrency referred to in the paper as CCE (Cryptocurrency for Energy) as a means of payment for energy use activities in a designated electricity system. The rules related to its issuance, flows and exchange are defined in the CCE Protocol. The protocol is also intended to define the structure of the blockchain as a distributed database to ensure the secure exchange of digital money in the virtual realm. CCE is to be understood as a recognised value equivalent and intermediary for exchanges enabling energy use by networked participants. However, cryptocurrencies are not considered to have many of the characteristics of money and do not fulfil all the functions that should be ascribed to money 
DLT and blockchain technology (smart contracts and cryptocurrencies), together with a technological interface aggregating smart metering capabilities, enable faster settlement for energy actually delivered and consumed (without the need for estimation and forecasting) and without holding up payments until the end of the billing period, in addition to the implementation of dynamic tariffs and DSR programmes. Participants can only transact with each other based on predefined rules consistent with the developed system specification. A full settlement system based on a dedicated cryptocurrency can consist of multiple cryptocurrencies, convertible into other monetary units (traditional currencies—fiat), just as a larger electricity system can consist of multiple subsystems, able to self-balance and which do not need to have constantly active connections between each other (systems that can operate as islands—isolated). The operations used for asset management are available to regulators and energy companies, who can track changes to maintain the reliability of the electricity network.
Isolated systems in which settlement would occur based on the concept of a dedicated cryptocurrency could use an internal cryptocurrency to set the price of services offered on the electricity grid and to settle transactions for energy use between users connected to the grid within the isolated system. Cryptocurrencies from different systems could be exchangeable in pairs in an asymmetric manner. The exchangeability of pairs in a given direction would be conditioned by the technical possibilities of transferring energy between systems (existence and capacity of interconnections), including the network topology. Asymmetric exchange ratios would generate exchange rate spreads (analogous to the classical currency market), as depicted in Figure 2.
Figure 2. The ability to convert cryptocurrencies between energy exchange systems.
A participant in this conception can be presented as a node of a network to which four streams flow: electricity, fiat money and dedicated cryptocurrency, as well as measurement and control signals (information), while in general, these streams may come to the participant in both directions (depending on the role of the participant and the situation in the system—Figure 3).
Figure 3. Streams reaching a user in the system.
Within the overall structure, participants can be divided into groups:
Customer group (entities)
Energy generators (G)—in addition to the typical generators, this group includes prosumers and flexumers ready to feed surplus electricity back into the grid, as well as facilities with the generation and storage (including, for example, electric vehicles).
Consumers (C)—typical (conservative) end-users, including prosumers who do not cover their entire demand themselves, including storage units used for arbitrage (stationary and mobile).
The customer group has been subdivided above from a functional point of view for the system, as one of two modes of operation in relation to the grid (energy input or energy output) is possible at any given time. The belonging of a particular entity to Group G or C is not absolute and depends on the technical possibilities and the current situation (market and network). The customer group may also include other electricity systems (networks) connected to the system in question in a way that allows energy exchange. In addition, there may be aggregators and intermediaries in the structure as entities representing other participants who are unwilling or unable to participate directly in the cryptocurrency-based structure. These entities may also aggregate smaller participants into relevant groups to be functionally more visible in the structure. In particular, this group can also include providers of ancillary services for the stable operation of the electricity system (Group G).
Distribution System Operator (DSO)—an entity that manages the technical operation of the power distribution grid, responsible in particular for infrastructure maintenance and grid operation.
Metering Operator (MO)—depending on legal requirements, a separate entity or one that is within the DSO structure, dealing with customer meter service issues and managing metering on the grid.
Platform for the exchange of cryptocurrency into other monetary units (exchange office)—a structure operating on a market basis allowing the exchange (purchase, sale) of cryptocurrency units into other currencies (including fiat currencies).
Cryptocurrency protocol—a set of rules and an algorithm for the generation (also possible redemption) of cryptocurrency units, and also the creation of records (blocks) according to the Distributed Ledger Technologies (DLT) blockchain.
Technological interface—providing connectivity between the physical layer (monitoring and recording of energy flows) and the digital informative layer (translation of energy use facts and events into the DLT settlement sphere, smart contract recording).
Information platform—an area for the exchange and collection of information on the state of the network and the power system, aggregating data on the current generation and energy demand in the grid area, taking into account the current constraints; a place used by the grid operator to form the demand for ancillary services to the grid.
The power grid as a medium for the transmission of energy between participants.
Strictly technical objects are not participants in the structure, as by definition, participants by their actions influence the way the structure works and can be parties to smart contracts. Customer entities and intermediary entities can be parties to smart contracts. Within a smart contract, it is possible to pay network charges and taxes to the DSO from coins paid by the user. The smart contract validates and records user-reported energy flows and payments.
Among the participants in Group G and Group C, users can be distinguished:
Flexible, i.e., able to adapt their energy use position (supply and off-take respectively) to a certain extent to the current situation (signals) on the power grid; and
Rigid, i.e., enforcing certain states of grid operation due to the technology used—forced generation (RES units without direct cooperation with storage) and rigid off-take (e.g., critical loads).
The characteristics that Transactive Energy should have (economical, efficient, reliable and resilient) translate into a demand to use energy when it is cheaper. Thus, the supply of energy (from RES sources) is primary, to which demand should be adjusted. A variable price is a tool to stimulate such an effect.
3.4. Outline of the General Concept of the CCE Cryptocurrency Settlement System
The researchers present a generalised concept, based on the idea of dedicated cryptocurrencies, for a settlement system for electricity use in the power grid. The concept developed is based on publications 
The schematic flow of signals, energy and value between potential participants and objects in the generalised version of the concept is depicted in Figure 4. The CCE and information flows are realised in the execution of the smart contract. CCE units can be accumulated by the participants (G and C energy users and the grid operator) in virtual accounts after smart contract execution. This information is stored in blockchain technology. CCE units can be exchanged for other values (fiat currency) via an exchange market (exchange office). Fiat currency, as a more universal store of value, can be held in an account at a bank. The CCE–fiat exchange market is a place of possible speculation, so appropriate mechanisms should be provided to safeguard CCE users. This issue is a separate research topic.
Figure 4. General functional diagram of a CCE-based settlement system.
The structure’s purpose is to dispatch the energy generated by the producer to the end-user on the grid via a kind of chain within the power system. In parallel, there is a reverse chain for the conversion of local cryptocurrencies (with any spreads covering the costs of subsequent contract stages). The flow of value of cryptocurrencies is thus opposite to the flow of energy along the path between the essential participants (generator and user). The identical direction is, of course, the case with traditional forms of settlement (fiat currency); however, there are other intermediaries in the path of the payment flow.
Consumption of energy from the grid can be treated as an implementation of a smart contract in blockchain technology. A user searching for energy supply offers can use a mechanism to aggregate market information. In order to effectively integrate automatic search functions, the access point for such functionality should be the blockchain environment. The signing of a contract by the user takes place after market selection by calling the function of the selected contract. This call contains an attribute with the amount transferred from the orderer’s account to the contract account at the time of the call (i.e., not immediately to the producer’s or operator’s account). The funds deposited in the contract account are distributed between the participants in the contract, depending on the contract. Calling and transferring the monetary value are prerequisites for the performance of the contract. The parties to the contract can track and detect a change in its status. The system operator (or metering), in addition to the generator and user, should be a party to the contract, as it is responsible for the technical implementation of the delivery through the grid and should therefore have access to information about the transaction, retaining influence over its course. This operator can be considered as an intermediate link in the execution of the transaction. Each party is identified by its public address, which is its individual account number. It is, therefore, not possible to trigger anonymous activity 
The execution of the contract itself involves a chain of operations: matching–clearing–settlement–payment. In a smart contract, the individual phases of contract formation and exchange execution do not require the participation of a guarantor or the crediting of obligations and their subsequent enforcement, so there is no need for forward contacts. The smart contract code in the blockchain network defines the rules for the virtual coexistence of the commercial and technical layers. The role resulting from the capabilities of blockchain technology is to register an event and execute a programme in the virtual space of the contract (transaction).
The settlement system in this model is primarily dedicated to isolated power systems capable of self-balancing with significant energy storage capacities and with a high proportion of prosumer installations, for which energy exchange with the grid would be a second-choice option (after self-consumption). Purchasing energy from the grid would practically have the characteristics of a spot market transaction through the CCE exchange market, organised on the principle of a CCE exchange (buying as close to the moment of demand as possible and selling at the moment of feeding energy into the grid, price depending on the current relationship between supply and demand, which brings the de facto settlement method closer to a time-varying pricing scheme 
Purchases analogous to the forward market in this model would be possible in the form of P2P transactions for CCE purchase options so that they would occur in the financial market, i.e., outside the structure of the relevant CCE-based settlement system for energy use.
The initiation and progression of the basic settlement operation according to the presented concept would follow the following steps (Figure 5):
Figure 5. Flow chart of basic settlement operations in a CCE-based concept.
Prosumer gives back to the grid the energy he/she has not consumed as a G generator (this is registered by the grid operator and/or metering operator, the technological interface initiates the start of the smart contract transaction).
Prosumer, as generator G, is allocated an appropriate number of CCE units according to the protocol (in the general warrant, there is the possibility to vary the rates of CCE units/kWh allocated depending on the generation technology, promoting specific RES solutions).
Prosumer, as generator G, puts the received CCE units up for sale on the CCE–fiat exchange market (in the form of a spot exchange or directly to another user in the form of a P2P); user C declares payment of a certain amount in the desired currency for the corresponding number of CCE units.
Prosumer G receives payment in the desired currency; user C receives the desired number of CCE units.
User C transfers the appropriate number of CCE units to the system operator.
The system operator enables the delivery of the appropriate amount of energy according to the amount paid in the CCE. The technological interface records the flow and allows the transaction to be closed.
As a result of a full cycle of energy delivery through the network of the designated system between users, the C-consumer has received the corresponding amount of energy (kWh), the prosumer delivering the energy has accumulated the corresponding value in fiat currency and the operator has accumulated the corresponding amount of CCE units. As the clearing system, the CCE–fiat exchange market and the network within the designated system (the number of users) develop, the structure will become more complex, new functional links between participants will be possible and complex participation strategies will be built. In particular, an operator could feed stored CCEs into the exchange market to increase momentary energy demand, reducing their price in fiat currency. Furthermore, the network operator’s operating costs could be covered by a mandatory subscription fee paid by all participants (G and C) connected to the network outside the CCE system. In this way, the operator would not have to speculate in the CCE exchange market to generate revenue.
In this concept, an energy storage entity (including the dispatcher of the electric vehicle) could participate. When taking energy from the grid, this entity would have the status of a consumer C and, when handing over, the status of a generator G. The profitability of these activities would result from the respective strategy of the manager of this entity based on the detailed rules within the concept and the current price on the CCE–fiat exchange market. Two smart contacts would thus be realised separately for the purchase and sale of energy.
The settlement of prosumers for the energy given to the grid is commonly implemented on a net-metering or net-billing basis 
. The settlement method influences the profitability of the investment in the installation from the prosumer’s point of view 
. The settlement concept presented here, based on dedicated CCE cryptocurrencies, can be realised in more detail by adapting to both forms.