Disclosure of Invention
The invention aims to provide a block chain-based multi-factor electric quantity transaction matching method, which aims to solve the problems of difficult matching, power transmission waste and the like caused by high selling price of clean energy in the traditional electric quantity transaction matching mode and is beneficial to solving the problems of high transaction cost, poor information safety and mutual distrust of transaction main bodies in centralized management of transaction information of a centralized institution.
In order to achieve the purpose, the invention adopts the following technical scheme:
the multi-factor electric quantity transaction matching method based on the block chain comprises the following steps:
s1, submitting power selling information in a period through a power selling node; the electricity selling information at least comprises an electricity selling user ID, an energy type, an electricity selling price, a periodic power supply quantity, a periodic available power quantity and a power supply position parameter;
s2, generating electricity selling records according to the electricity selling information and chaining and storing the electricity selling records;
the electricity selling records at least comprise an electricity selling record ID, an electricity selling user ID, an environment protection index, an electricity selling price, a periodic power supply quantity, a periodic available power quantity, an energy type, an electricity selling user credit value and a power supply position parameter;
s3, submitting power purchasing information in a period through a power purchasing node; the electricity purchasing information at least comprises an electricity purchasing user ID, an environment protection index, an electricity purchasing price, a period electricity demand quantity, pre-transmission loss, an energy type and an electricity purchasing position parameter;
s4, generating an electricity purchasing record according to the electricity purchasing information and performing chain link storage; the electricity purchasing record at least comprises an electricity purchasing record ID, an electricity purchasing user ID, an environmental protection index, an electricity purchasing price, a periodic required electric quantity, an energy type, an electricity purchasing user credit value and an electricity purchasing position parameter;
s5, pre-matching electricity selling records by adopting a dissimilarity degree calculation formula according to the electricity purchasing records, taking the electricity purchasing record and the electricity selling record with the minimum dissimilarity degree as an optimal matching record, and generating an electric quantity transaction pre-matching record;
the electric quantity transaction pre-matching record at least comprises a pre-matching record ID, an electricity selling user ID, an electricity purchasing user private key signature, a transaction price, a periodic transaction quantity, an environmental protection index, a transmission loss, an electricity selling record ID and an electricity purchasing record ID parameter;
s6, the electricity selling node obtains and authorizes the electricity quantity transaction pre-matching record through the block chain, and generates an electricity quantity transaction matching record and a new electricity selling record;
the electric quantity transaction matching record at least comprises matching record ID, electricity selling user private key signature, electricity purchasing user private key signature, transaction price, periodic transaction quantity, environmental protection index, transmission loss, electricity selling record ID and electricity purchasing record ID parameters;
s7, storing the electric quantity transaction matching records and the new electricity selling records in an uplink manner;
s8, the electricity purchasing node completes transaction account transfer according to the electric quantity transaction matching record, generates an electric quantity transaction account transfer record and carries out chain connection storage;
the electric quantity transaction transfer record at least comprises a transfer ID, an electric quantity transaction user ID, an electric quantity transaction matching record ID, an electric quantity purchase user private key signature, a transaction price, a periodic transaction quantity and a transfer amount parameter;
the electricity selling nodes are block chain nodes corresponding to electricity selling users, and the electricity purchasing nodes are block chain nodes corresponding to electricity purchasing users.
Preferably, in step S5, pre-matching the electricity selling records by using a dissimilarity degree calculation formula of a K-protocols algorithm;
the specific process of pre-matching is as follows:
the dissimilarity degree calculation formula of the K-prototypes algorithm is shown as formula (1):
d(Xj,Zi)=dm(Xj,Zi)+dn(Xj,Zi) (1)
in the formula, XjFor the jth power purchase record, ZiRecording the ith electricity sale; d (X)j,Zi) Indicating purchase record XjAnd selling electricity record ZiThe degree of dissimilarity of (a); dm(Xj,Zi) Is a degree of dissimilarity of numerical attributes, dn(Xj,Zi) The attribute dissimilarity degree is non-numerical;
the numerical attributes at least comprise unit electric quantity transaction price, periodic required electric quantity, environmental protection indexes, user credit values and transmission loss parameters, wherein the user credit values comprise electricity selling user credit values or electricity purchasing user credit values;
the calculation mode of the numerical attribute is shown in formula (2);
in the formula (d)mRepresenting Euclidean distance, P representing the number of numerical attributes, αlA weight representing a numerical attribute l; xjlThe l-th numerical attribute, Z, representing the j-th electricity purchase recordilThe ith numerical attribute represents the ith electricity selling record;
the non-numerical attribute comprises an energy type, and the calculation mode of the non-numerical attribute is shown as a formula (3);
in the formula (I), the compound is shown in the specification,
βqis the weight of a non-numeric attribute Q, Q representing the number of non-numeric attributes, XjqQ-th non-numerical attribute, Z, representing j electricity purchase recordsiqA qth non-numeric attribute representing an ith electricity sales record;
the degree of dissimilarity d (X) calculated by the formula (1)j,Zi) The minimum electricity purchasing record and electricity selling record are the best matching records;
and generating the electric quantity transaction pre-matching record based on the optimal matching record.
Preferably, step S8 is followed by the step of:
and S9, balance of allowance deviation is carried out, namely the intelligent ammeter is used for detecting the electric quantity flow of the electricity selling users and the electricity purchasing users, the electric quantity flow is compared with the electric quantity transaction matching records on the block chain, forced balance of the electric power allowance of the electricity selling users is completed, and violation behaviors are punished.
Preferably, the energy type comprises fire energy, wind energy, water energy, solar energy or biological energy;
the environmental protection index is the proportion of clean energy supply calculated according to the type of energy.
Preferably, the cycle power supply amount refers to the total power production amount of the electricity selling user in the cycle; the period available electric quantity is the residual electric quantity which is not sold by the electricity selling user in the period; the period required electricity quantity refers to the required electricity quantity of the electricity purchasing user in the period.
Preferably, the user reputation value is the user honesty degree obtained according to the matching records of the last 100 transactions of the user;
setting according to the quality of transaction completed by the user, wherein the initial value of the credit value is 100; normally completing a primary energy transaction credit value of +1, subtracting 10 from the primary punishment credit value, and not increasing the credit value after the credit value reaches 100;
the user reputation value comprises a power selling user reputation value or a power purchasing user reputation value.
Preferably, the pre-transmission loss refers to an expected transmission loss power amount acceptable to a user;
the transmission loss refers to the transmission loss of the power line calculated according to the power supply position and the electricity purchasing position.
Preferably, the electricity selling price is a unit electricity selling price customized by an electricity selling user; the electricity purchasing price is the unit electricity purchasing price defined by the electricity purchasing user, and the transaction price is the electricity selling price.
In addition, the invention also provides a multi-factor electric quantity transaction matching device based on the block chain, which adopts the following scheme:
multifactor electric quantity trade matching device based on block chain includes:
the electricity selling information submitting module is configured for submitting electricity selling information in a period;
the electricity selling record generating module is configured to generate electricity selling records based on the electricity selling information and carry out uplink storage;
the electricity purchasing information submitting module is configured to submit electricity purchasing information in a period;
the electricity purchasing record generating module is configured to generate electricity purchasing records and uplink the electricity purchasing records to store based on the electricity purchasing information;
the electricity purchasing and selling record pre-matching module is configured to calculate the dissimilarity degree of the electricity purchasing record and the electricity selling record, take the electricity purchasing record and the electricity selling record with the minimum dissimilarity degree as the best matching record and generate an electric quantity transaction pre-matching record;
the pre-matching record authorization module is configured to obtain and authorize an electric quantity transaction pre-matching record through a blockchain, and generate an electric quantity transaction matching record and a new electricity selling record;
the electric quantity transaction matching record uploading module is configured for uploading and storing the electric quantity transaction matching record and the new electricity selling record;
the electric quantity transaction transfer module is configured to complete transaction transfer based on the electric quantity transaction matching record, generate an electric quantity transaction transfer record and carry out chain storage;
the electricity selling information at least comprises an electricity selling user ID, an energy type, an electricity selling price, a periodic power supply quantity, a periodic available power quantity and a power supply position parameter;
the electricity selling records at least comprise an electricity selling record ID, an electricity selling user ID, an environment protection index, an electricity selling price, a periodic power supply quantity, a periodic available power quantity, an energy type, an electricity selling user credit value and a power supply position parameter;
the electricity purchasing information at least comprises an electricity purchasing user ID, an environment protection index, an electricity purchasing price, a period electricity demand quantity, pre-transmission loss, an energy type and an electricity purchasing position parameter;
the electricity purchasing record at least comprises an electricity purchasing record ID, an electricity purchasing user ID, an environmental protection index, an electricity purchasing price, a periodic required electric quantity, an energy type, an electricity purchasing user credit value and an electricity purchasing position parameter;
the electric quantity transaction pre-matching record at least comprises a pre-matching record ID, an electricity selling user ID, an electricity purchasing user private key signature, a transaction price, a periodic transaction quantity, an environmental protection index, a transmission loss, an electricity selling record ID and an electricity purchasing record ID parameter;
the electric quantity transaction matching record at least comprises matching record ID, electricity selling user private key signature, electricity purchasing user private key signature, transaction price, periodic transaction quantity, environmental protection index, transmission loss, electricity selling record ID and electricity purchasing record ID parameters;
the electric quantity transaction transfer record at least comprises a transfer ID, an electric quantity transaction user ID, an electric quantity transaction matching record ID, an electric quantity purchase user private key signature, a transaction price, a periodic transaction amount and a transfer amount;
the electricity selling node is a block chain node corresponding to an electricity selling user, and the electricity purchasing node is a block chain node corresponding to an electricity purchasing user.
Preferably, the multi-factor electric quantity transaction matching device further comprises a margin deviation balancing module;
the module is configured for margin deviation balancing, namely:
and detecting the flow of the electric quantity of the electricity selling user and the electricity purchasing user by using the intelligent electric meter, comparing the flow with the electric quantity transaction matching record on the block chain, finishing the forced balance of the electric power allowance of the electricity selling user, and punishing the illegal action.
The invention has the following advantages:
as described above, the method comprehensively considers various influence factors of electric quantity transaction, carries out targeted electric quantity transaction matching according to the requirements of both electric quantity transaction parties, effectively solves the problems of electric power transmission waste caused by the traditional electric quantity transaction matching mode and difficult matching caused by higher price of clean energy, and promotes quick selling of the clean energy of small-sized electricity selling users. Meanwhile, the multi-user free selling effectively controls the electricity price, and reduces the electricity purchasing cost for the purchaser. In addition, the method of the invention adopts the block chain technology to carry out point-to-point transaction matching, and the link points of each block are equal in position, thereby effectively solving the problems of high transaction cost, poor information safety and mutual distrust of transaction main bodies caused by centralized management of transaction information of centralized institutions.
Detailed Description
Examples
Fig. 1 is a scene schematic diagram of a multi-factor electricity quantity transaction matching method based on a block chain in an embodiment of the present invention.
The scene of the method application comprises the power generation and electricity selling access bodies with various energy sources and the corresponding block chain link points thereof, the electricity purchasing access main body and the corresponding block chain link points thereof, and the block chain link points are equal in level and can perform credible communication.
Fig. 2 is a block diagram of an overall architecture of a multi-factor electricity quantity transaction matching method based on a block chain in an embodiment of the present invention, and as can be seen from fig. 2, the overall architecture includes an electricity quantity transaction submission module, a block chain node module, a user management module, and an intelligent contract module.
The user management module is mainly used for a new user to submit registration information for user registration, a new block chain link point is obtained after the new user is successfully registered, and the new block chain link point is added into the block chain node module to participate in electric power transaction matching.
For example, a user wants to join a blockchain energy internet network, user registration information needs to be submitted, the system allocates corresponding blockchain nodes for the user according to the user registration information, deployment, installation and instantiation of an intelligent contract are conducted on new blockchain nodes through a system administrator node, and then the new blockchain nodes are added into a blockchain node module, so that the situation that the blockchain nodes of the new user are smoothly added into the blockchain network to participate in energy service processing is guaranteed.
The electric quantity transaction submitting module is mainly used for providing electricity selling information and electricity purchasing information for a user.
For example, after a certain user completes identity registration, the corresponding block link point may be added to the block link point module, as shown in fig. 1, the energy internet includes various access hosts and corresponding block link points, and the user may submit various electricity purchasing information through the block link nodes to participate in electricity quantity transaction matching.
The block chain node module is used for carrying out specific data transmission communication between the block chain node corresponding to each user and a block chain network, and the block chain node comprises a Peer node and an Orderer node.
The Peer nodes mainly comprise electricity selling nodes, electricity purchasing nodes and administrator nodes, and the administrator nodes are mainly used for carrying out remote contract deployment on the electricity selling nodes and the electricity purchasing nodes; the Orderer node is mainly used for collecting block chain transactions in a specific organization and carrying out Raft consensus; the specific data includes non-consensus blockchain transactions, etc.
In this embodiment, the overall architecture adopts a Raft consensus mechanism, and a specific flow is shown in fig. 3. For example, a block chain energy internet needs to be deployed in a certain region, deployment of corresponding system administrator nodes and Orderer nodes needs to be completed first, Peer nodes distributed to new users after registration need to be added into a block chain network, intelligent contract installation tests on the Peer nodes of the new users are completed remotely by the system administrator nodes, after the Peer nodes receive electricity selling and purchasing information, the electricity selling and purchasing information is packaged into block chain transactions and sent to specific Orderer nodes, consensus on the new transactions is completed among a plurality of Orderer nodes according to a Raft consensus mechanism, new blocks are finally generated, and all Peer nodes complete synchronous uplink storage of the new blocks through the Orderer nodes.
The Leader node in fig. 3 is responsible for interacting with the client, attaching a new request to the log of the client and sending the request to all Follow nodes, at most one of which exists in the system at the same time, the Follow nodes receive the request of the Leader node and add the request to the log of the client node, and return a confirmation message to the Leader, and when the failure of the Leader node is enough to initiate an application, voting is performed to become the Leader node.
The intelligent contract module provides intelligent contracts with corresponding functions for the block chain nodes and processes intelligent contract calling requests of all the nodes. The intelligent contracts in this embodiment include electricity sales record generation contracts and transaction matching settlement contracts.
As shown in fig. 4, a multi-factor electricity transaction matching method based on a block chain includes the following steps:
s1, the electricity selling users submit electricity selling information in a period through electricity selling nodes.
The electricity selling users refer to power supply users in the energy Internet, and the electricity selling nodes refer to block chain nodes corresponding to the electricity selling users.
The electricity selling information at least includes the electricity selling user ID, the energy type, the electricity selling price, the periodic power supply amount, the periodic available power amount, and the power supply location parameter, as shown in table 1.
TABLE 1 Electricity sales information
User ID
|
Type of energy
|
Price of electricity sold
|
Periodic power supply
|
Periodic available electric quantity
|
Location of power supply |
In table 1, the energy type refers to the type of energy for generating electricity, including fire energy, wind energy, water energy, solar energy, biological energy, and the like.
The electricity selling price is a unit electricity selling price defined by an electricity selling user; the periodic power supply amount is the total power generation amount of the power selling user in the period; the period available electric quantity is the residual electric quantity which is not sold by the electricity selling user in the period.
And S2, generating a contract for generating the electricity selling records according to the electricity selling information and chaining and storing the electricity selling records.
The electricity selling records at least comprise an electricity selling record ID, an electricity selling user ID, an environmental protection index, an electricity selling price, a periodic power supply quantity, a periodic available power quantity, an energy type, an electricity selling user credit value and a power supply position parameter, and are shown in a table 2.
TABLE 2 record of electricity sold
In table 2, the environmental index refers to the proportion of clean energy to be supplied calculated according to the type of energy. Wherein, wind energy, water energy, solar energy and biological energy are clean energy. The credit value of the electricity selling user refers to the honesty degree of the electricity selling user obtained according to the matching records of the latest 100 transactions of the electricity selling user.
The credit value of the electricity selling user is set according to the quality of the transaction completed by the electricity selling user, and the initial value of the credit value is 100; normally completing the primary energy transaction credit value +1, subtracting 10 from the primary punishment credit value, and not increasing after the credit value reaches 100.
And S3, submitting the electricity purchasing information in the period by the electricity purchasing user through an electricity purchasing node.
The electricity purchasing users are users consuming electricity in the energy Internet; the electricity purchasing node is a block chain node corresponding to an electricity purchasing user.
The electricity purchasing information at least includes an electricity purchasing user ID, an environmental protection index, an electricity purchasing price, a period demand electric quantity, a pre-transmission loss, an energy type, and an electricity purchasing location parameter, as shown in table 3.
TABLE 3 Purchase of electricity information
User ID
|
Environmental protection index
|
Price of electricity purchase
|
Periodic demand of electricity
|
Pre-transmission loss
|
Type of energy
|
Electricity purchasing location |
In table 3, the electricity purchase price is a unit electricity purchase price defined by the electricity purchase user, and the period required electricity is the electricity required by the electricity purchase user in the period; pre-transmission loss refers to the amount of transmission loss expected to be acceptable to the user.
And S4, generating an electricity purchasing record according to the electricity purchasing information by the transaction matching settlement contract and chaining and storing the electricity purchasing record.
And the transaction matching settlement contract is used for matching the electricity purchasing record with the electricity selling record and transferring the electricity quantity transaction.
The electricity purchasing record at least comprises an electricity purchasing record ID, an electricity purchasing user ID, an environmental protection index, an electricity purchasing price, a period electricity demand, an energy type, an electricity purchasing user credit value and an electricity purchasing position parameter, and is shown in table 4.
TABLE 4 Purchase of electricity
In table 4, the credit value of the electricity purchasing user refers to the honesty degree of the electricity purchasing user obtained according to the matching records of the last 100 transactions of the electricity purchasing user. The credit value of the electricity purchasing user is set according to the quality of the transaction completed by the electricity purchasing user, and the initial value of the credit value is 100; normally completing the primary energy transaction credit value +1, subtracting 10 from the primary punishment credit value, and not increasing after the credit value reaches 100.
And S5, the transaction matching settlement contract carries out pre-matching on the electricity selling records by adopting a dissimilarity degree calculation formula according to the electricity purchasing records, takes the electricity purchasing record with the minimum dissimilarity degree and the electricity selling records as the best matching record, and generates an electricity transaction pre-matching record.
Carrying out pre-matching on the electricity selling records by utilizing a dissimilarity degree calculation formula of a K-prototypes algorithm, wherein the specific process is as follows:
the dissimilarity degree calculation formula of the K-protocols algorithm is shown in formula (1), and specific related attributes need to be subjected to same-proportion conversion so as to ensure that the proportions of the attributes are the same.
d(Xj,Zi)=dm(Xj,Zi)+dn(Xj,Zi) (1)
In the formula, XjFor the jth power purchase record, ZiRecording the ith electricity sale; d (X)j,Zi) Indicating purchase record XjAnd selling electricity record ZiThe degree of dissimilarity of (a); dm(Xj,Zi) Is a degree of dissimilarity of numerical attributes, dn(Xj,Zi) The attribute dissimilarity degree is non-numerical;
the numerical attributes at least comprise unit electricity trading price, periodic electricity demand, environmental protection indexes, user credit values and transmission loss parameters, wherein the user credit values comprise electricity selling user credit values or electricity purchasing user credit values.
The calculation mode of the numerical attribute is shown in formula (2);
in the formula (d)mRepresenting Euclidean distance, P representing the number of numerical attributes, αlA weight representing a numerical attribute l; xjlThe l-th numerical attribute, Z, representing the j-th electricity purchase recordilThe ith numerical attribute represents the ith electricity selling record;
the non-numerical attribute comprises an energy type, and the calculation mode of the non-numerical attribute is shown as a formula (3);
in the formula (I), the compound is shown in the specification,
βqis the weight of a non-numeric attribute Q, Q representing the number of non-numeric attributes, XjqQ-th non-numerical attribute, Z, representing j electricity purchase recordsiqA qth non-numeric attribute representing an ith electricity sales record;
the degree of dissimilarity d (X) calculated by the formula (1)j,Zi) The minimum electricity purchasing record and electricity selling record are the best matching records.
And generating an electric quantity transaction pre-matching record based on the optimal matching record.
The electricity transaction pre-matching record at least comprises a pre-matching record ID, an electricity selling user ID, an electricity purchasing user private key signature, a transaction price, a periodic transaction amount, an environmental protection index, a transmission loss, an electricity selling record ID and an electricity purchasing record ID parameter, and is shown in table 5.
Table 5 electricity transaction prematch records
In table 5, the transaction price is the electricity selling price. The transmission loss refers to the transmission loss of the power line calculated according to the power supply position and the power purchase position. The electricity selling record ID is the ID of the electricity selling record and is mainly used for tracing and inquiring the transaction record; the purchase electricity record ID is the ID of the purchase electricity record and is mainly used for tracing and inquiring the transaction record.
And S6, the electricity selling node obtains the electricity transaction pre-matching record through the block chain and authorizes the electricity transaction pre-matching record to generate an electricity transaction matching record and a new electricity selling record. The electric quantity transaction matching record at least comprises matching record ID, electricity selling user private key signature, electricity purchasing user private key signature, transaction price, periodic transaction quantity, environmental protection index, transmission loss, electricity selling record ID and electricity purchasing record ID parameters, and is shown in table 6.
Table 6 electricity transaction matching records
The new electricity selling record is the same as the specific information of the electricity selling record, and the period available electric quantity is the electric quantity remained after the transaction is completed.
And S7, storing the electric quantity transaction matching records and the new electricity selling records in an uplink mode.
And S8, the electricity purchasing node completes transaction account transfer according to the electric quantity transaction matching record, generates an electric quantity transaction account transfer record and links the electric quantity transaction account transfer record for storage.
The electricity quantity transaction transfer record at least comprises a transfer ID, an electricity selling user ID, an electricity quantity transaction matching record ID, an electricity purchasing user private key signature, a transaction price, a periodic transaction quantity and a transfer amount parameter, and is shown in a table 7.
Table 7 electricity quantity transaction transfer record
The electric quantity transaction matching record ID is the ID corresponding to the electric quantity transaction matching record and is used for tracing and inquiring the transfer record.
And S9, balance deviation of the allowance is carried out, namely, the intelligent electric meter is used for detecting the electric quantity flowing of the electricity selling user and the electricity purchasing user, the electric quantity flowing is compared with the electric quantity transaction matching record on the block chain, forced balance of the electric power allowance of the electricity selling user is completed, illegal transactions caused by data counterfeiting of traders are prevented, and punishment is carried out on illegal behaviors so as to restrain the users from participating in the electric power transactions according to rules.
The specific violation penalties are as follows:
A. the actual power consumption of the electricity purchasing user does not accord with the transaction amount in the electricity transaction matching record, and if the deviation of the electricity is more than 10%, fund punishment is carried out on the electricity purchasing user and the credit value of the fund punishment is deducted;
B. and if the electricity selling user interrupts power supply in a period, performing fund punishment on the electricity selling user and deducting the credit value of the electricity selling user.
The method fully considers various influence factors of the electric quantity transaction, such as environmental protection indexes, energy types, transmission loss, user credit values and the like, matches electricity selling records by utilizing a dissimilarity degree calculation formula of a K-protocols algorithm based on the factors, solves the dissimilarity value of the electricity purchasing records and the electricity selling records, then takes the electricity purchasing records and the electricity selling records with the minimum dissimilarity degree as the best matching records, and generates an electric quantity transaction pre-matching record based on the best matching records, so that the method well ensures that the targeted electric quantity transaction matching is carried out according to the requirements of both sides of the electric quantity transaction, and effectively solves the problems of electric quantity transmission waste, difficult matching caused by high clean energy selling price and the like caused by the traditional electric quantity transaction matching mode.
In addition, the embodiment also provides a multi-factor electric quantity transaction matching device based on the block chain, which corresponds to the multi-factor electric quantity transaction matching method based on the block chain. The device comprises the following program modules:
the electricity selling information submitting module is configured for submitting electricity selling information in a period;
the electricity selling record generating module is configured to generate electricity selling records based on the electricity selling information and carry out uplink storage;
the electricity purchasing information submitting module is configured to submit electricity purchasing information in a period;
the electricity purchasing record generating module is configured to generate electricity purchasing records and uplink the electricity purchasing records to store based on the electricity purchasing information;
the electricity purchasing and selling record pre-matching module is configured to calculate the dissimilarity degree of the electricity purchasing record and the electricity selling record, take the electricity purchasing record and the electricity selling record with the minimum dissimilarity degree as the best matching record and generate an electric quantity transaction pre-matching record;
the pre-matching record authorization module is configured to obtain and authorize an electric quantity transaction pre-matching record through a blockchain, and generate an electric quantity transaction matching record and a new electricity selling record;
the electric quantity transaction matching record uploading module is configured for uploading and storing the electric quantity transaction matching record and the new electricity selling record;
and the electric quantity transaction transfer module is configured to complete the transaction transfer based on the electric quantity transaction matching record, generate the electric quantity transaction transfer record and carry out chain storage.
In addition, the multi-factor electric quantity transaction matching device based on the block chain further comprises a margin deviation balancing module.
The module is configured for margin deviation balancing, namely: the intelligent electric meter is used for detecting the electric quantity flowing of the electricity selling users and the electricity purchasing users, the electric quantity flowing is compared with the electric quantity transaction matching records on the block chain, the forced balance of the electric power surplus of the electricity selling users is completed, and the illegal behaviors are punished, and the specific content refers to the step S9, and the detailed description is omitted here.
Through the margin deviation balancing module, the forced balance of the electric power margin of the electricity selling user can be completed, illegal transactions caused by data counterfeiting of traders are prevented, and illegal behaviors are punished, so that the user is restrained from participating in the electric power transaction according to rules.
It should be understood, however, that the description herein of specific embodiments is not intended to limit the invention to the particular forms disclosed, but on the contrary, the intention is to cover all modifications, equivalents, and alternatives falling within the spirit and scope of the invention as defined by the appended claims.