CN117421764A - Power transaction and access control scheme based on IPFS and blockchain - Google Patents

Power transaction and access control scheme based on IPFS and blockchain Download PDF

Info

Publication number
CN117421764A
CN117421764A CN202311307776.3A CN202311307776A CN117421764A CN 117421764 A CN117421764 A CN 117421764A CN 202311307776 A CN202311307776 A CN 202311307776A CN 117421764 A CN117421764 A CN 117421764A
Authority
CN
China
Prior art keywords
power
transaction
data
blockchain
ipfs
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202311307776.3A
Other languages
Chinese (zh)
Inventor
史世杰
张瑞芬
张嵘
白新
王梓霁
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ordos Power Supply Branch Of Inner Mongolia Electric Power Group Co ltd
North China Electric Power University
Original Assignee
Ordos Power Supply Branch Of Inner Mongolia Electric Power Group Co ltd
North China Electric Power University
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ordos Power Supply Branch Of Inner Mongolia Electric Power Group Co ltd, North China Electric Power University filed Critical Ordos Power Supply Branch Of Inner Mongolia Electric Power Group Co ltd
Priority to CN202311307776.3A priority Critical patent/CN117421764A/en
Publication of CN117421764A publication Critical patent/CN117421764A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/62Protecting access to data via a platform, e.g. using keys or access control rules
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/64Protecting data integrity, e.g. using checksums, certificates or signatures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/70Protecting specific internal or peripheral components, in which the protection of a component leads to protection of the entire computer
    • G06F21/78Protecting specific internal or peripheral components, in which the protection of a component leads to protection of the entire computer to assure secure storage of data
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q50/00Systems or methods specially adapted for specific business sectors, e.g. utilities or tourism
    • G06Q50/06Electricity, gas or water supply

Abstract

The invention belongs to the technical field of power transaction and access control, and discloses a power transaction and access control scheme based on IPFS and blockchain, which comprises the following scheme steps: s1: creating and maintaining a de-centralized power transaction data store on the IPFS network, storing power production data as a distributed file object including power amount, power quality index and power source information, storing power consumption data as a distributed file object including power amount, power quality index and power source consumption history, recording detailed information of power transaction including participant identity, power amount, price, transaction time and power quality data; s2: a power transaction smart contract is created on the blockchain network to verify the participant identity. The scheme allows the regulatory authorities to access the power market data, generate reports and perform reviews to ensure fairness and compliance of the market, which helps to improve the regulatory authorities' ability to supervise.

Description

Power transaction and access control scheme based on IPFS and blockchain
Technical Field
The invention belongs to the technical field of power transaction and access control, and particularly relates to a power transaction and access control scheme based on IPFS and blockchain.
Background
Power trading and distribution has been one of the core demands of modern society, and the traditional power market involves multiple participants, including power plants, power suppliers, distribution network operators, and end users, and these markets are often impacted by complex regulatory and compliance requirements, including ensuring fairness, transparency, and traceability of power trading, with the proliferation of renewable energy sources, such as solar and wind energy, which have led to a decentralized power production, and distributed energy sources, which allow end users to generate electricity themselves. This trend has raised a series of new challenges including real-time monitoring of power production and consumption data, traceability and security of power transactions, and regulatory and compliance requirements of regulatory authorities, traditional power market and transaction systems are typically based on centralized data storage and transaction processing. This mode presents some potential problems, including risk of data centralized storage, possibility of data tampering, and high transaction costs, thus suggesting an IPFS and blockchain based power transaction and access control scheme.
Disclosure of Invention
The present invention is directed to providing an IPFS and blockchain based power transaction and access control scheme to solve the above-mentioned problems.
In order to achieve the above object, the present invention provides the following technical solutions: an electric power transaction and access control scheme based on IPFS and blockchain comprises the following steps:
s1: creating and maintaining a de-centralized power transaction data store on the IPFS network, storing power production data as a distributed file object including power amount, power quality index and power source information, storing power consumption data as a distributed file object including power amount, power quality index and power source consumption history, recording detailed information of power transaction including participant identity, power amount, price, transaction time and power quality data;
s2: creating a power transaction smart contract on a blockchain network, verifying participant identities, including generating and verifying digital identity certificates, authorizing legitimate users to participate in power transactions, monitoring power data stores on an IPFS to obtain up-to-date power production and consumption information based on the results of blockchain identity verification, including periodically querying IPFS nodes, calculating power transaction prices from the power production and consumption data, considering supply-to-demand relationships, time factors and power quality, automatically recording details of the power transactions, including power amount, price, transaction time and power quality data, storing on the blockchain, automatically conducting power transaction settlement, including paying and receiving money, performing payments using the smart contract and recording payment history;
s3: and acquiring real-time data from the power production equipment and the power consumption equipment, configuring and connecting the intelligent ammeter and the sensor to monitor the power production and consumption in real time, collecting power consumption, power quality index and power source information, and periodically uploading the real-time data to the IPFS data storage to ensure the real-time property of the data.
Preferably, the detailed data used by the IPFS node in step S2 to store the power production and consumption includes power source information, power quality index, energy production and consumption history, and store the detailed data as an IPFS file object, and the specific operation steps thereof are as follows:
a1: storing power production data, namely dividing the power production data into different categories comprising renewable energy sources and non-renewable energy sources, creating independent IPFS file objects for each power production category, wherein the independent IPFS file objects comprise power quantity, power source information and time stamps, generating unique hash values for each IPFS file object by using an IPFS content addressing mechanism, and storing the hash values in a blockchain to ensure the non-tamper modification of the data;
a2: storing power consumption data, classifying the power consumption data into different categories including household, industrial and commercial power consumption, creating independent IPFS file objects for each power consumption category, wherein the independent IPFS file objects comprise power quantity, power quality index and time stamp, generating unique hash values for each IPFS file object by using an IPFS content addressing mechanism, and storing the hash values in a blockchain to ensure the non-tamper modification of the data.
A3: and storing transaction record data, creating an independent IPFS file object for recording detailed information of power transaction, including the participant of the transaction, the power quantity, the price, the transaction time and the power quality data, generating a unique hash value by using an IPFS content addressing mechanism, and storing the hash value in a blockchain to ensure the non-tamper property of the data.
Preferably, the blockchain network in the step S2 is composed of a plurality of participating nodes, each node includes an intelligent contract for electric power transaction, so as to ensure the decentralization and reliability of the transaction, and the specific operation is smooth as follows:
b1: setting and configuring a blockchain node, setting a plurality of nodes in a blockchain network of the power transaction system, wherein the nodes can be distributed at different geographic positions or maintained by different entities, and each node is assigned with a unique identity identifier and is ensured to be connected to the whole blockchain network;
b2: creating a blockchain smart contract, namely creating a power transaction smart contract for each blockchain node to ensure that each node can verify the validity of a transaction and participate in the processing of the power transaction, wherein the power transaction smart contract comprises functions such as identity verification, transaction verification, price calculation, record transaction and settlement, and each power transaction smart contract has the same rules and conditions to ensure the consistency of all nodes;
b3: communication between blockchain nodes, establishing a secure communication channel between blockchain nodes to transmit transaction data and the results of smart contract execution, using encryption techniques to ensure confidentiality and integrity of the communication to prevent unauthorized access or data tampering.
B4: maintenance of the blockchain network, periodically maintaining and updating blockchain nodes to ensure their performance and availability, ensuring consistency of the blockchain network, including implementation of consensus algorithms.
Preferably, the intelligent contract for electric power transaction in the step S2 can automatically execute electric power transaction, including calculating price, verifying participant identity, recording transaction and settling, and the specific operation steps are as follows:
c1: creating a power transaction request, wherein the participant creates the power transaction request, which comprises the power amount, the expected price, the participant identity and the transaction time of the appointed transaction, and the power transaction request comprises a digital signature or other identity verification methods, so that the validity of the request is ensured;
c2: transaction verification and identity verification, wherein the intelligent contract for the electric power transaction receives a transaction request and verifies the validity of the request, including verification of the identity and the digital signature of the participant, and the intelligent contract verifies whether the participant has the right to conduct the electric power transaction or not through blockchain identity verification;
and C3: calculating the final price of the power transaction according to the current power production and consumption data, the power amount in the transaction request and the expected price by the intelligent contract, wherein the price calculation possibly considers the supply-demand relationship, the time factor and the power quality;
and C4: transaction records and stores, smart contracts record details of power transactions, including amount of power, price, participant identity, transaction time, and power quality data, records stored on blockchain to ensure security and non-tamper ability of data;
c5: the power transaction settlement, the smart contract automatically performs the settlement of the power transaction, including payment and receipt of money, and the settlement process may include transferring money from the buyer's account to the seller's account, using encrypted or traditional currency for payment.
Preferably, the power transaction system in step B1 includes a blockchain smart contract for paying and settling power transactions, wherein the payment may be performed using encrypted currency or conventional currency, and the specific operation steps thereof are as follows:
d1: generation of a payment request, after completion of the power transaction, the smart contract generates a payment request including information of the payer and the payee, and a payment amount, the payment request including a digital signature or other security verification to ensure validity and integrity of the request;
d2: the method comprises the steps of payment authorization and verification, wherein the intelligent contract verifies the validity of a payment request, and comprises the steps of verifying a digital signature and an identity, and authorizing an account of a payer to pay a corresponding amount when the payment request is valid;
d3: payment execution, the smart contract executing a payment, transferring money from the payer's account to the payee's account, the payment may be in the form of encrypted goods or conventional currency;
d4: payment records and stores, details of smart contract records payment, including payers, payee, payment amount, and payment time, the payment records being stored on the blockchain to ensure security and non-tamper resistance of data;
d5: payment confirmation and notification, the smart contract sends a payment confirmation notification to the payer and payee to inform that the payment has been successfully performed, which may be sent via email, text message, or other communication means.
Preferably, the power transaction system in the step B1 includes a blockchain intelligent contract for supervision and compliance, and the specific operation steps thereof are as follows:
e1: creating a supervision compliance contract, namely creating a special blockchain intelligent contract for a supervision organization to ensure that the intelligent contract can access the power transaction data and the supervision market, wherein the intelligent contract comprises an identity verification and authorization mechanism of the supervision organization to ensure that only legal supervision organizations can access the data;
e2: data sharing and monitoring, intelligent contracts automatically share specific power market data to regulatory authorities that use to monitor market operation and ensure compliance;
e3: report generation and submission, the smart contracts can generate standard reports or on-demand reports to meet the needs of regulatory authorities, the generated reports can include information on market operating conditions, power price trends, vendor activities, and the like;
e4: compliance reviews, intelligent contracts allow regulatory authorities to conduct compliance reviews, including auditing whether the activities of participants are in compliance with regulations and policies, the results of which can affect marketing operations and policy formulation;
e5: security and privacy protection, the intelligent contracts ensure that the authorities can only access their authorized data, protecting the privacy of the participants, security measures including data encryption, authentication and access control.
The beneficial effects of the invention are as follows:
the present invention stores power production data as a distributed file object by creating and maintaining a de-centralized power trading data store on an IPFS network, including power amount, power quality index and power source information, stores power consumption data as a distributed file object, including power amount, power quality index and power source consumption history, records detailed information of power trading, including participant identity, power amount, price, trading time and power quality data, creates a power trading smart contract on a blockchain network, verifies participant identity, includes generating and verifying digital identity, authorizes legal users to participate in power trading, monitors power data store on an IPFS based on the result of blockchain identity verification to acquire latest power production and consumption information, includes periodically querying IPFS nodes, calculates power trading prices according to power production and consumption data, takes account of supply-demand relationships, time factors and power quality, automatically records details of power trading, including power amount, price, trading time and power quality data, stores on a blockchain, automatically pays and receives payment, uses smart executives and records, acquires power meter and power meter, acquires power consumption data from a device and a power monitoring system, monitors the power data store on an IPFS to acquire the latest power production and consumption information, periodically inquires the IPFS node, calculates power trading prices according to power supply-demand relationships, time factors and power quality, automatically records details of power trading, and power trading details, and power consumption data is automatically paid, and real-time data is collected from a power consumption meter is required to be collected to be connected to a real-time, and a power consumption meter is required to be monitored and a real-time, and a real-time data is required to be monitored and a real-time. This helps to improve the supervision capabilities of the supervision authorities.
Drawings
FIG. 1 is a flow chart of the scheme of the invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
As shown in fig. 1, the embodiment of the invention provides a power transaction and access control scheme based on IPFS and blockchain, which comprises the following steps:
s1: creating and maintaining a de-centralized power transaction data store on the IPFS network, storing power production data as a distributed file object including power amount, power quality index and power source information, storing power consumption data as a distributed file object including power amount, power quality index and power source consumption history, recording detailed information of power transaction including participant identity, power amount, price, transaction time and power quality data;
s2: creating a power transaction smart contract on a blockchain network, verifying participant identities, including generating and verifying digital identity certificates, authorizing legitimate users to participate in power transactions, monitoring power data stores on an IPFS to obtain up-to-date power production and consumption information based on the results of blockchain identity verification, including periodically querying IPFS nodes, calculating power transaction prices from the power production and consumption data, considering supply-to-demand relationships, time factors and power quality, automatically recording details of the power transactions, including power amount, price, transaction time and power quality data, storing on the blockchain, automatically conducting power transaction settlement, including paying and receiving money, performing payments using the smart contract and recording payment history;
s3: and acquiring real-time data from the power production equipment and the power consumption equipment, configuring and connecting the intelligent ammeter and the sensor to monitor the power production and consumption in real time, collecting power consumption, power quality index and power source information, and periodically uploading the real-time data to the IPFS data storage to ensure the real-time property of the data.
The working principle and beneficial effects of the technical scheme are as follows: decentralizing data storage and access: by creating and maintaining a de-centralized power transaction data store on the IPFS network, the scheme enables distributed storage of power production and consumption data, eliminating the single point of failure risk of traditional centralized storage systems. The participants can access the data stored on the IPFS at any time, so that the availability and accessibility of the data are improved, and the digital identity verification and security are improved: by creating the intelligent contract for the power transaction on the blockchain and performing digital identity verification, the scheme ensures that only legal users can participate in the power transaction, thereby improving the security and compliance of the transaction. This helps to prevent unauthorized access and fraud, real-time data monitoring and power market transparency; by acquiring real-time data from the power production equipment and the power consumption equipment and uploading the data to the IPFS data storage, the scheme realizes the real-time monitoring of the power production and consumption conditions, improves the transparency of the power market, and enables participants to know the supply and demand conditions and the power price trend in time. Power transaction intelligence and automation: the power transaction smart contracts are capable of automatically verifying participant identity, calculating power transaction prices, recording transaction details, and settling. This reduces transaction costs, improves efficiency of power transactions, and ensures accuracy of transactions. Data security and non-tamper evident: by storing the power production and consumption data as distributed file objects, and using the non-tamper-resistance of the blockchain, this scheme ensures the security and integrity of the data. This helps to prevent tampering of the data and unauthorized data access. Convenient monitoring of the supervision mechanism: the scheme allows the regulatory authorities to access the power market data, generate reports and perform reviews to ensure fairness and compliance of the market, which helps to improve the regulatory authorities' ability to supervise.
As shown in the figure, in one embodiment, the detailed data used by the IPFS node for storing power production and consumption in step S2 includes power source information, power quality index, energy production and consumption history, and the detailed data is stored as an IPFS file object, which specifically includes the following operation steps:
a1: storing power production data, namely dividing the power production data into different categories comprising renewable energy sources and non-renewable energy sources, creating independent IPFS file objects for each power production category, wherein the independent IPFS file objects comprise power quantity, power source information and time stamps, generating unique hash values for each IPFS file object by using an IPFS content addressing mechanism, and storing the hash values in a blockchain to ensure the non-tamper modification of the data;
a2: storing power consumption data, classifying the power consumption data into different categories including household, industrial and commercial power consumption, creating independent IPFS file objects for each power consumption category, wherein the independent IPFS file objects comprise power quantity, power quality index and time stamp, generating unique hash values for each IPFS file object by using an IPFS content addressing mechanism, and storing the hash values in a blockchain to ensure the non-tamper modification of the data.
A3: and storing transaction record data, creating an independent IPFS file object for recording detailed information of power transaction, including the participant of the transaction, the power quantity, the price, the transaction time and the power quality data, generating a unique hash value by using an IPFS content addressing mechanism, and storing the hash value in a blockchain to ensure the non-tamper property of the data.
As shown in the figure, in one embodiment, the blockchain network in step S2 is composed of a plurality of participating nodes, each node includes an intelligent contract for electric power transaction, so as to ensure the decentralization and reliability of the transaction, and the specific operation is as follows:
b1: setting and configuring a blockchain node, setting a plurality of nodes in a blockchain network of the power transaction system, wherein the nodes can be distributed at different geographic positions or maintained by different entities, and each node is assigned with a unique identity identifier and is ensured to be connected to the whole blockchain network;
b2: creating a blockchain smart contract, namely creating a power transaction smart contract for each blockchain node to ensure that each node can verify the validity of a transaction and participate in the processing of the power transaction, wherein the power transaction smart contract comprises functions such as identity verification, transaction verification, price calculation, record transaction and settlement, and each power transaction smart contract has the same rules and conditions to ensure the consistency of all nodes;
b3: communication between blockchain nodes, establishing a secure communication channel between blockchain nodes to transmit transaction data and the results of smart contract execution, using encryption techniques to ensure confidentiality and integrity of the communication to prevent unauthorized access or data tampering.
B4: maintenance of the blockchain network, periodically maintaining and updating blockchain nodes to ensure their performance and availability, ensuring consistency of the blockchain network, including implementation of consensus algorithms.
As shown, in one embodiment, the power transaction smart contract in step S2 is capable of automatically performing power transactions, including calculating prices, verifying participant identities, recording transactions, and conducting settlement, with the following specific operational steps:
c1: creating a power transaction request, wherein the participant creates the power transaction request, which comprises the power amount, the expected price, the participant identity and the transaction time of the appointed transaction, and the power transaction request comprises a digital signature or other identity verification methods, so that the validity of the request is ensured;
c2: transaction verification and identity verification, wherein the intelligent contract for the electric power transaction receives a transaction request and verifies the validity of the request, including verification of the identity and the digital signature of the participant, and the intelligent contract verifies whether the participant has the right to conduct the electric power transaction or not through blockchain identity verification;
and C3: calculating the final price of the power transaction according to the current power production and consumption data, the power amount in the transaction request and the expected price by the intelligent contract, wherein the price calculation possibly considers the supply-demand relationship, the time factor and the power quality;
and C4: transaction records and stores, smart contracts record details of power transactions, including amount of power, price, participant identity, transaction time, and power quality data, records stored on blockchain to ensure security and non-tamper ability of data;
c5: the power transaction settlement, the smart contract automatically performs the settlement of the power transaction, including payment and receipt of money, and the settlement process may include transferring money from the buyer's account to the seller's account, using encrypted or traditional currency for payment.
As shown, in one embodiment, the power transaction system in step B1 includes a blockchain smart contract for paying and settling power transactions, wherein the payment may be made using either cryptocurrency or conventional currency, with the specific steps of:
d1: generation of a payment request, after completion of the power transaction, the smart contract generates a payment request including information of the payer and the payee, and a payment amount, the payment request including a digital signature or other security verification to ensure validity and integrity of the request;
d2: the method comprises the steps of payment authorization and verification, wherein the intelligent contract verifies the validity of a payment request, and comprises the steps of verifying a digital signature and an identity, and authorizing an account of a payer to pay a corresponding amount when the payment request is valid;
d3: payment execution, the smart contract executing a payment, transferring money from the payer's account to the payee's account, the payment may be in the form of encrypted goods or conventional currency;
d4: payment records and stores, details of smart contract records payment, including payers, payee, payment amount, and payment time, the payment records being stored on the blockchain to ensure security and non-tamper resistance of data;
d5: payment confirmation and notification, the smart contract sends a payment confirmation notification to the payer and payee to inform that the payment has been successfully performed, which may be sent via email, text message, or other communication means.
As shown, in one embodiment, the power trading system in step B1 includes a blockchain smart contract for regulatory and compliance, which specifically operates as follows:
e1: creating a supervision compliance contract, namely creating a special blockchain intelligent contract for a supervision organization to ensure that the intelligent contract can access the power transaction data and the supervision market, wherein the intelligent contract comprises an identity verification and authorization mechanism of the supervision organization to ensure that only legal supervision organizations can access the data;
e2: data sharing and monitoring, intelligent contracts automatically share specific power market data to regulatory authorities that use to monitor market operation and ensure compliance;
e3: report generation and submission, the smart contracts can generate standard reports or on-demand reports to meet the needs of regulatory authorities, the generated reports can include information on market operating conditions, power price trends, vendor activities, and the like;
e4: compliance reviews, intelligent contracts allow regulatory authorities to conduct compliance reviews, including auditing whether the activities of participants are in compliance with regulations and policies, the results of which can affect marketing operations and policy formulation;
e5: security and privacy protection, the intelligent contracts ensure that the authorities can only access their authorized data, protecting the privacy of the participants, security measures including data encryption, authentication and access control.
It is noted that relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus.
Although embodiments of the present invention have been shown and described, it will be understood by those skilled in the art that various changes, modifications, substitutions and alterations can be made therein without departing from the principles and spirit of the invention, the scope of which is defined in the appended claims and their equivalents.

Claims (6)

1. An electric power transaction and access control scheme based on IPFS and blockchain is characterized by comprising the following steps:
s1: creating and maintaining a de-centralized power transaction data store on the IPFS network, storing power production data as a distributed file object including power amount, power quality index and power source information, storing power consumption data as a distributed file object including power amount, power quality index and power source consumption history, recording detailed information of power transaction including participant identity, power amount, price, transaction time and power quality data;
s2: creating a power transaction smart contract on a blockchain network, verifying participant identities, including generating and verifying digital identity certificates, authorizing legitimate users to participate in power transactions, monitoring power data stores on an IPFS to obtain up-to-date power production and consumption information based on the results of blockchain identity verification, including periodically querying IPFS nodes, calculating power transaction prices from the power production and consumption data, considering supply-to-demand relationships, time factors and power quality, automatically recording details of the power transactions, including power amount, price, transaction time and power quality data, storing on the blockchain, automatically conducting power transaction settlement, including paying and receiving money, performing payments using the smart contract and recording payment history;
s3: and acquiring real-time data from the power production equipment and the power consumption equipment, configuring and connecting the intelligent ammeter and the sensor to monitor the power production and consumption in real time, collecting power consumption, power quality index and power source information, and periodically uploading the real-time data to the IPFS data storage to ensure the real-time property of the data.
2. The IPFS and blockchain based power transaction and access control scheme of claim 1, wherein: the step S2, in which the IPFS node is configured to store detailed data of power production and consumption, including power source information, power quality index, and energy production and consumption history, and store the detailed data as an IPFS file object, where the specific operation steps are as follows:
a1: storing power production data, namely dividing the power production data into different categories comprising renewable energy sources and non-renewable energy sources, creating independent IPFS file objects for each power production category, wherein the independent IPFS file objects comprise power quantity, power source information and time stamps, generating unique hash values for each IPFS file object by using an IPFS content addressing mechanism, and storing the hash values in a blockchain to ensure the non-tamper modification of the data;
a2: storing power consumption data, namely dividing the power consumption data into different categories including household, industrial and commercial power consumption, creating independent IPFS file objects for each power consumption category, wherein the independent IPFS file objects comprise power quantity, power quality indexes and time stamps, generating unique hash values for each IPFS file object by using an IPFS content addressing mechanism, and storing the hash values in a blockchain to ensure the non-tamper modification of the data;
a3: and storing transaction record data, creating an independent IPFS file object for recording detailed information of power transaction, including the participant of the transaction, the power quantity, the price, the transaction time and the power quality data, generating a unique hash value by using an IPFS content addressing mechanism, and storing the hash value in a blockchain to ensure the non-tamper property of the data.
3. The IPFS and blockchain based power transaction and access control scheme of claim 1, wherein: the blockchain network in the step S2 is composed of a plurality of participating nodes, each node comprises an intelligent contract for electric power transaction, the decentralization and reliability of the transaction are guaranteed, and the concrete operation is smooth as follows:
b1: setting and configuring a blockchain node, setting a plurality of nodes in a blockchain network of the power transaction system, wherein the nodes can be distributed at different geographic positions or maintained by different entities, and each node is assigned with a unique identity identifier and is ensured to be connected to the whole blockchain network;
b2: creating a blockchain smart contract, namely creating a power transaction smart contract for each blockchain node to ensure that each node can verify the validity of a transaction and participate in the processing of the power transaction, wherein the power transaction smart contract comprises functions such as identity verification, transaction verification, price calculation, record transaction and settlement, and each power transaction smart contract has the same rules and conditions to ensure the consistency of all nodes;
b3: communication between blockchain nodes, establishing a secure communication channel between blockchain nodes to transmit transaction data and the result of intelligent contract execution, and using encryption technology to ensure confidentiality and integrity of communication to prevent unauthorized access or data tampering;
b4: maintenance of the blockchain network, periodically maintaining and updating blockchain nodes to ensure their performance and availability, ensuring consistency of the blockchain network, including implementation of consensus algorithms.
4. The IPFS and blockchain based power transaction and access control scheme of claim 1, wherein: the intelligent contract for the electric power transaction in the step S2 can automatically execute the electric power transaction, and comprises the following specific operation steps of calculating the price, verifying the identity of a participant, recording the transaction and settling accounts:
c1: creating a power transaction request, wherein the participant creates the power transaction request, which comprises the power amount, the expected price, the participant identity and the transaction time of the appointed transaction, and the power transaction request comprises a digital signature or other identity verification methods, so that the validity of the request is ensured;
c2: transaction verification and identity verification, wherein the intelligent contract for the electric power transaction receives a transaction request and verifies the validity of the request, including verification of the identity and the digital signature of the participant, and the intelligent contract verifies whether the participant has the right to conduct the electric power transaction or not through blockchain identity verification;
and C3: calculating the final price of the power transaction according to the current power production and consumption data, the power amount in the transaction request and the expected price by the intelligent contract, wherein the price calculation possibly considers the supply-demand relationship, the time factor and the power quality;
and C4: transaction records and stores, smart contracts record details of power transactions, including amount of power, price, participant identity, transaction time, and power quality data, records stored on blockchain to ensure security and non-tamper ability of data;
c5: the power transaction settlement, the smart contract automatically performs the settlement of the power transaction, including payment and receipt of money, and the settlement process may include transferring money from the buyer's account to the seller's account, using encrypted or traditional currency for payment.
5. The IPFS and blockchain based power transaction and access control scheme of claim 3, wherein: the power transaction system in the step B1 comprises a blockchain intelligent contract for paying and settling the power transaction, wherein the payment can be carried out by using encrypted currency or traditional currency, and the specific operation steps are as follows:
d1: generation of a payment request, after completion of the power transaction, the smart contract generates a payment request including information of the payer and the payee, and a payment amount, the payment request including a digital signature or other security verification to ensure validity and integrity of the request;
d2: the method comprises the steps of payment authorization and verification, wherein the intelligent contract verifies the validity of a payment request, and comprises the steps of verifying a digital signature and an identity, and authorizing an account of a payer to pay a corresponding amount when the payment request is valid;
d3: payment execution, the smart contract executing a payment, transferring money from the payer's account to the payee's account, the payment may be in the form of encrypted goods or conventional currency;
d4: payment records and stores, details of smart contract records payment, including payers, payee, payment amount, and payment time, the payment records being stored on the blockchain to ensure security and non-tamper resistance of data;
d5: payment confirmation and notification, the smart contract sends a payment confirmation notification to the payer and payee to inform that the payment has been successfully performed, which may be sent via email, text message, or other communication means.
6. The IPFS and blockchain based power transaction and access control scheme of claim 1, wherein: the power transaction system in the step B1 comprises a blockchain intelligent contract for supervision and compliance, and the specific operation steps are as follows:
e1: creating a supervision compliance contract, namely creating a special blockchain intelligent contract for a supervision organization to ensure that the intelligent contract can access the power transaction data and the supervision market, wherein the intelligent contract comprises an identity verification and authorization mechanism of the supervision organization to ensure that only legal supervision organizations can access the data;
e2: data sharing and monitoring, intelligent contracts automatically share specific power market data to regulatory authorities that use to monitor market operation and ensure compliance;
e3: report generation and submission, the smart contracts can generate standard reports or on-demand reports to meet the needs of regulatory authorities, the generated reports can include market operating conditions, power price trends, vendor activity information;
e4: compliance reviews, intelligent contracts allow regulatory authorities to conduct compliance reviews, including auditing whether the activities of participants are in compliance with regulations and policies, the results of which can affect marketing operations and policy formulation;
e5: security and privacy protection, the intelligent contracts ensure that the authorities can only access their authorized data, protecting the privacy of the participants, security measures including data encryption, authentication and access control.
CN202311307776.3A 2023-10-11 2023-10-11 Power transaction and access control scheme based on IPFS and blockchain Pending CN117421764A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311307776.3A CN117421764A (en) 2023-10-11 2023-10-11 Power transaction and access control scheme based on IPFS and blockchain

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311307776.3A CN117421764A (en) 2023-10-11 2023-10-11 Power transaction and access control scheme based on IPFS and blockchain

Publications (1)

Publication Number Publication Date
CN117421764A true CN117421764A (en) 2024-01-19

Family

ID=89531687

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311307776.3A Pending CN117421764A (en) 2023-10-11 2023-10-11 Power transaction and access control scheme based on IPFS and blockchain

Country Status (1)

Country Link
CN (1) CN117421764A (en)

Similar Documents

Publication Publication Date Title
US11817705B2 (en) Method and apparatus to form a virtual power generation collective from a distributed network of local generation facilities
Andoni et al. Blockchain technology in the energy sector: A systematic review of challenges and opportunities
CN107909358B (en) Energy settlement method, device and system
Aggarwal et al. A survey on energy trading in the smart grid: Taxonomy, research challenges and solutions
CN110717832B (en) Clean energy trading method, system, device and storage medium based on block chain
Moradi et al. Blockchain, a sustainable solution for cybersecurity using cryptocurrency for financial transactions in Smart Grids
CN108985940A (en) Power exchange management system and method between a kind of user based on block chain technology
KR102462089B1 (en) System for distributing profits of renewable energy to residents
CN114444952B (en) Electric energy and carbon emission statistical settlement method based on digital payment wallet and block chain
JP7341304B2 (en) Control method
CN112365330A (en) Transaction method of renewable distributed energy uniform price two-way auction based on super account book
CN110880130A (en) Block chain-based electric power transaction settlement system with virtual electric meters and settlement charge-out method
Dzobo et al. Proposed framework for blockchain technology in a decentralised energy network
US20230134095A1 (en) Systems, devices and methods for tracking authenticated clean energy with blockchains
CN113379485A (en) Demand response bidding trading method and system based on Hash algorithm and secondary quotation
Lai et al. Blockchain applications in microgrid clusters
WO2020231288A1 (en) Information system for buying and selling electrical energy
CN113762961A (en) Trusted intelligent transaction method, system, computer equipment and terminal
Yang et al. A double-chain blockchain with economic attributes and network constraints of prosumer transactions
CN117421764A (en) Power transaction and access control scheme based on IPFS and blockchain
CN116228340A (en) Block chain-based energy transaction method, computing equipment and storage medium
Li et al. A review on the blockchain technique applied in cloud energy storage power system
CN114445223A (en) Block chain-based power demand response transaction method and system
Chi et al. Research on distributed new energy spot trading method based on blockchain Technology
Yu et al. Blockchain in Smart Grids: A Review of Recent Developments

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination