CN112418915A - Electric power safety transaction method based on block chain energy storage system - Google Patents
Electric power safety transaction method based on block chain energy storage system Download PDFInfo
- Publication number
- CN112418915A CN112418915A CN202011237093.1A CN202011237093A CN112418915A CN 112418915 A CN112418915 A CN 112418915A CN 202011237093 A CN202011237093 A CN 202011237093A CN 112418915 A CN112418915 A CN 112418915A
- Authority
- CN
- China
- Prior art keywords
- transaction
- power
- grid
- power station
- energy storage
- 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.)
- Granted
Links
- 238000004146 energy storage Methods 0.000 title claims abstract description 53
- 238000000034 method Methods 0.000 title claims abstract description 42
- 238000004364 calculation method Methods 0.000 claims abstract description 35
- 230000005611 electricity Effects 0.000 claims description 36
- 230000014509 gene expression Effects 0.000 claims description 14
- 238000010248 power generation Methods 0.000 claims description 13
- 230000009286 beneficial effect Effects 0.000 description 2
- 238000010586 diagram Methods 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000001960 triggered effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION 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
- G06Q30/00—Commerce
- G06Q30/02—Marketing; Price estimation or determination; Fundraising
- G06Q30/0201—Market modelling; Market analysis; Collecting market data
- G06Q30/0206—Price or cost determination based on market factors
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/60—Protecting data
- G06F21/602—Providing cryptographic facilities or services
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/60—Protecting data
- G06F21/62—Protecting access to data via a platform, e.g. using keys or access control rules
- G06F21/6218—Protecting access to data via a platform, e.g. using keys or access control rules to a system of files or objects, e.g. local or distributed file system or database
- G06F21/6245—Protecting personal data, e.g. for financial or medical purposes
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION 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
- G06Q20/00—Payment architectures, schemes or protocols
- G06Q20/38—Payment protocols; Details thereof
- G06Q20/382—Payment protocols; Details thereof insuring higher security of transaction
- G06Q20/3829—Payment protocols; Details thereof insuring higher security of transaction involving key management
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION 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/00—Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
- G06Q50/06—Energy or water supply
Landscapes
- Engineering & Computer Science (AREA)
- Business, Economics & Management (AREA)
- Theoretical Computer Science (AREA)
- Strategic Management (AREA)
- Health & Medical Sciences (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Accounting & Taxation (AREA)
- Finance (AREA)
- General Health & Medical Sciences (AREA)
- Computer Security & Cryptography (AREA)
- Bioethics (AREA)
- Economics (AREA)
- Development Economics (AREA)
- General Business, Economics & Management (AREA)
- Marketing (AREA)
- Computer Hardware Design (AREA)
- General Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Entrepreneurship & Innovation (AREA)
- Human Resources & Organizations (AREA)
- Tourism & Hospitality (AREA)
- Data Mining & Analysis (AREA)
- Primary Health Care (AREA)
- Public Health (AREA)
- Game Theory and Decision Science (AREA)
- Water Supply & Treatment (AREA)
- Medical Informatics (AREA)
- Databases & Information Systems (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
The invention relates to a block chain energy storage system-based electric power safe transaction method. The method comprises the following steps: generating a pair of public key and private key for two parties of transaction by using an asymmetric encryption method; the transaction agent encrypts the transaction information by using a private key of the transaction agent and puts the encrypted transaction information into a system; the system decrypts the encrypted information through the public key disclosed by the transaction main body; the system encrypts the calculation result by using the public keys of the two parties and then sends the calculation result to the two transaction parties; the participant decrypts the calculation result by using the private key; the seller sends the electric energy, and the buyer pays the bill; a transaction is completed. According to the block chain energy storage system-based electric power safe transaction method, the identity verifiability of a transaction main body in three-party transaction can be ensured through an asymmetric encryption method, and the safety and privacy of data in the transaction process are ensured.
Description
The technical field is as follows:
the invention relates to an electric power transaction system, in particular to an electric power safe transaction method based on a block chain energy storage system.
Background art:
under the current electric power market pricing system, the centralization degree taking a power grid as a center is too high, the electricity price of a power station is determined by the power grid, the centralization degree is not beneficial to the development of electric power market marketing, and certain safety and privacy problems also exist. A brand-new electric power safe trading method of an energy storage system needs to be designed, is suitable for trading among power stations, power grids and energy storage parties, solves the problem of high centralization degree of the power grids, ensures the safety of electric power trading marketization, and promotes the development of the electric power trading marketization.
The invention content is as follows:
with the development of the technology, especially the emergence of the block chain technology, the technical problem is solved. The specific technical scheme is as follows:
electric power safety transaction method based on block chain energy storage system, the system relates to three parties, promptly: the power generation station sells electricity to the energy storage or power grid, and the power grid buys electricity from the energy storage or power generation station; the trading method for buying electricity from the power station by the power grid comprises the following steps:
step 1: generating a pair of public key and private key for two parties of transaction by using an asymmetric encryption method;
step 2: the transaction agent encrypts the transaction information by using a private key of the transaction agent and puts the encrypted transaction information into a system;
and step 3: the system decrypts the encrypted information through the public key disclosed by the transaction main body to obtain the transaction information and confirm the identity of the transaction main body and calculate; negotiating a reference electricity price among the power station, the power grid and the energy storage before the initial transaction, and assuming that the reference electricity price is A; the calculation process is as follows:
step 3.1: judging whether the generated energy Q reaches the standard, if so, turning to the step 3.2, otherwise, turning to the step 3.9;
step 3.2: whether the trading unit price of the power station reaches the standard or not is judged, if yes, the step 3.3 is carried out, and if not, the step 3.10 is carried out;
step 3.3: determining a transaction formula; firstly, a virtual electric quantity is specified, the virtual electric quantity of the power station is X, the virtual electric quantity of the power grid is Y, and the virtual electric quantity of the energy storage is Z, because the electric energy occupancy and the importance among the three parties are different, corresponding weighting needs to be carried out on the three parties, and the weights of the power station, the power grid and the energy storage are respectively defined as a, b and c, so X, Y, Z and a, b and c should satisfy the following relational expressions:
Xa*Yb*Zc=K;
a+b+c=1;
step 3.4: determining the selling amount of a seller; receiving quantity Q from power station by power grid1An intermediate quantity DeltaX is set1And Δ X1The following relation is satisfied: Δ X1=Q1;
Step 3.5: determining the receiving amount of a receiving party; when a transaction request occurs between the grid and the power station, the equation preset previously
Xa*Yb*ZcK; will change, and the quantity change of the power station is recorded as delta X1Let the grid number vary by Δ Y1Then the equation becomes the following form:
(X-ΔX1)a*(Y+ΔY1)b*Zc=K,
wherein Δ Y1The value of (d) is obtained by the following equation:
step 3.6: determining a transaction priceLattice P1(ii) a The trading volume between the power grid and the power station is a small value compared with the volume in the formula, so the electricity price P1 between the power grid and the power station at this moment can be calculated by the following formula:
step 3.7: determining a transaction amount; number of power plants purchased by grid Q when transaction is completed1The amount E of the power grid to be paid to the power station according to the formula of the automatic price adjustment transaction1Comprises the following steps:
step 3.8: the system encrypts a calculated result obtained after calculation by a public key of a transaction main body and then sends the result to the transaction main body, and the result can be obtained only by decrypting the result by using a corresponding private key, so that the privacy of the transaction is ensured;
the first transaction from the power station to the grid is completed, the power station delivers Q to the grid1The amount of energy is E, the amount paid by the power grid to the power station is E1Formula, due to the trade between grid and power station
Xa*Yb*ZcK; changed, set X1=X-ΔX1、Y1=Y+ΔY1The original auto-tune equation becomes the following form:
X1 a*Y1 b*Zc=K;
turning to the step 4;
step 3.9: assuming a unit time T, the power generation capacity of the power station is Q in the unit time TiSet two constant values N1And K1When capacity Q of the power planti>N1When, X in the formula needs to be matchediAdjusted to a new value Xi+1:Xi+1=Xi+K1(Qi-N1);
After assignment is completed, Y needs to maintain the value of K unchanged, so thatiAnd ZiNeeds to be adjusted to a new value Yi+1And Zi+1And Y isi+1And Zi+1The following relation is satisfied:
obtaining Yi+1And Zi+1The expression of (a) is:
the new trading formula after assignment is completed is: xi+1 a*Yi+1 b*Zi+1 c=K;
Then turning to step 3.3;
step 3.10: the transaction price of the power station after the ith transaction to the power grid is PiSetting a constant value N2And K2When P isi>N2When, X in the formula needs to be matchediAdjusted to a new value Xi+1:Xi+1=Xi+K2(Pi-A),
After assignment is completed, Y needs to maintain the value of K unchanged, so thatiAnd ZiNeeds to be adjusted to a new value Yi+1And Zi+1And Y isi+1And Zi+1The following relation is satisfied:
obtaining Yi+1And Zi+1The expression of (a) is:
the new trading formula after assignment is completed is: xi+1 a*Yi+1 b*Zi+1 c=K;
Then turning to step 3.3;
and 4, step 4: the system encrypts the calculation result by using the public keys of the two parties and then sends the calculation result to the two transaction parties;
and 5: the participant decrypts the calculation result by using the private key;
step 6: the seller sends the electric energy, and the buyer pays the bill;
and 7: completing a transaction; and returning to the step 2.
The trading method for power grid to buy power from stored energy comprises the following steps:
step 11: generating a pair of public key and private key for two parties of transaction by using an asymmetric encryption method;
step 12: the transaction agent encrypts the transaction information by using a private key of the transaction agent and puts the encrypted transaction information into a system;
step 13: the system decrypts the encrypted information through the public key disclosed by the transaction main body to obtain the transaction information and confirm the identity of the transaction main body and calculate; negotiating a reference electricity price among the power station, the power grid and the energy storage before the initial transaction, and assuming that the reference electricity price is A; the calculation process is as follows:
step 13.1: determining a transaction formula; firstly, a virtual electric quantity is specified, the virtual electric quantity of the power station is X, the virtual electric quantity of the power grid is Y, and the virtual electric quantity of the energy storage is Z, because the electric energy occupancy and the importance among the three parties are different, corresponding weighting needs to be carried out on the three parties, and the weights of the power station, the power grid and the energy storage are respectively defined as a, b and c, so X, Y, Z and a, b and c should satisfy the following relational expressions:
Xa*Yb*Zc=K;
a+b+c=1;
step 13.2: determining the selling amount of a seller; receiving quantity Q from energy storage by power grid2An intermediate quantity Δ Z, and Δ Z1The following relation is satisfied: delta Z1=Q2;
Step 13.3: determining the receiving amount of a receiving party; when a transaction request occurs between the power grid and the stored energy, the equation preset in advance
Xa*Yb*ZcK; will change, and the amount of change of the stored energy is recorded as delta Z1Let the grid number vary by Δ Y1Then the equation becomes the following form:
(X)a+(Y+ΔY1)b+(Z-ΔZ)c=K,
wherein Δ Y1The value of (d) is obtained by the following equation:
step 13.4: determining a transaction price P1(ii) a The trading volume between the grid and the stored energy is a tiny value compared with the volume in the formula, so the electricity price P1 between the grid and the stored energy at this moment can be calculated by the following formula:
step 13.5: determining a transaction amount; when the transaction is completedQuantity Q of purchased stored energy of power grid1The amount E of the electric network to pay the stored energy according to the formula of the automatic price adjustment transaction1Comprises the following steps:
step 13.6: the system encrypts a calculated result obtained after calculation by a public key of a transaction main body and then sends the result to the transaction main body, and the result can be obtained only by decrypting the result by using a corresponding private key, so that the privacy of the transaction is ensured;
the first transaction from the stored energy to the grid is completed, the stored energy delivers Q to the grid1The amount of energy is E, and the sum paid by the power grid to the stored energy is E1Formula since there is a trade between grid and stored energy
Xa*Yb*ZcK; changed, set Z1=Z-ΔZ1、Y1=Y+ΔY1The original auto-tune equation becomes the following form:
Xa*Y1 b*Z1 c=K;
step 14: the system encrypts the calculation result by using the public keys of the two parties and then sends the calculation result to the two transaction parties;
step 15: the participant decrypts the calculation result by using the private key;
step 16: the seller sends the electric energy, and the buyer pays the bill;
and step 17: completing a transaction; returning to step 12.
The trading method for buying electricity from the energy storage power station comprises the following steps:
step 21: generating a pair of public key and private key for two parties of transaction by using an asymmetric encryption method;
step 22: the transaction agent encrypts the transaction information by using a private key of the transaction agent and puts the encrypted transaction information into a system;
step 23: the system decrypts the encrypted information through the public key disclosed by the transaction main body to obtain the transaction information and confirm the identity of the transaction main body and calculate; negotiating a reference electricity price among the power station, the power grid and the energy storage before the initial transaction, and assuming that the reference electricity price is A; the calculation process is as follows:
step 23.1: judging whether the generated energy reaches the standard, if so, turning to the step 3.2, otherwise, turning to the step 3.9;
step 23.2: whether the trading unit price of the power station reaches the standard or not is judged, if yes, the step 3.3 is carried out, and if not, the step 3.10 is carried out;
step 23.3: determining a transaction formula; firstly, a virtual electric quantity is specified, the virtual electric quantity of the power station is X, the virtual electric quantity of the power grid is Y, and the virtual electric quantity of the energy storage is Z, because the electric energy occupancy and the importance among the three parties are different, corresponding weighting needs to be carried out on the three parties, and the weights of the power station, the power grid and the energy storage are respectively defined as a, b and c, so X, Y, Z and a, b and c should satisfy the following relational expressions:
Xa*Yb*Zc=K;
a+b+c=1;
step 23.4: determining the selling amount of a seller; receiving the quantity Q of stored energy from the power station3An intermediate quantity DeltaX is set1And Δ X1The following relation is satisfied: Δ X1=Q3;
Step 3.5: determining the receiving amount of a receiving party; when a transaction request occurs between the energy storage and the power station, the equation preset in advance
Xa*Yb*ZcK; will change, and the quantity change of the power station is recorded as delta X1Let the energy storage quantity change to Δ Z1Then the equation becomes the following form:
(X-ΔX1)a*Yb*(Z+ΔZ)c=K,
wherein Δ Y1The value of (d) is obtained by the following equation:
step 23.6: determining a transaction price P1(ii) a The trading volume between the stored energy and the power station is a small value compared with the volume in the formula, so that the trading volume can pass throughThe price P of electricity between the stored energy and the power station at this moment is calculated by the following formula3:
Step 23.7: determining a transaction amount; number of stored energy purchasing power stations Q when transaction is completed3The amount E of the power grid to be paid to the power station according to the formula of the automatic price adjustment transaction3Comprises the following steps:
step 23.8: the system encrypts a calculated result obtained after calculation by a public key of a transaction main body and then sends the result to the transaction main body, and the result can be obtained only by decrypting the result by using a corresponding private key, so that the privacy of the transaction is ensured;
the first transaction from the power station to the stored energy is completed, and the power station delivers Q to the stored energy3The amount of energy stored in the energy storage is E3Formula since there is a trade between grid and stored energy
Xa*Yb*ZcK; changed, set X1=X-ΔX1、Z1=Z+ΔZ1The original auto-tune equation becomes the following form:
X1 a*Yb*Z1 c=K;
step 23.9: assuming a unit time T, the power generation capacity of the power station is Q in the unit time TiSet two constant values N1And K1When capacity Q of the power planti>N1When, X in the formula needs to be matchediAdjusted to a new value Xi+1:Xi+1=Xi+K1(Qi-N1);
After assignment is completed, since the value of K needs to be maintained unchanged, soWith YiAnd ZiNeeds to be adjusted to a new value Yi+1And Zi+1And Y isi+1And Zi+1The following relation is satisfied:
obtaining Yi+1And Zi+1The expression of (a) is:
the new trading formula after assignment is completed is: xi+1 a*Yi+1 b*Zi+1 c=K;
Then turning to step 3.3;
step 23.10: the transaction price of the power station after the ith transaction to the stored energy is PiSetting a constant value N2And K2When P isi>N2When, X in the formula needs to be matchediAdjusted to a new value Xi+1:Xi+1=Xi+K2(Pi-A),
After assignment is completed, Y needs to maintain the value of K unchanged, so thatiAnd ZiNeeds to be adjusted to a new value Yi+1And Zi+1And Y isi+1And Zi+1The following relation is satisfied:
obtaining Yi+1And Zi+1The expression of (a) is:
the new trading formula after assignment is completed is: xi+1 a*Yi+1 b*Zi+1 c=K;
Then go to step 23.3;
step 24: the system encrypts the calculation result by using the public keys of the two parties and then sends the calculation result to the two transaction parties;
step 25: the participant decrypts the calculation result by using the private key;
step 26: the seller sends the electric energy, and the buyer pays the bill;
step 27: completing a transaction; returning to step 22.
According to the block chain energy storage system-based electric power safe transaction method, the identity verifiability of a transaction main body in three-party transaction can be ensured through an asymmetric encryption method, and the safety and privacy of data in the transaction process are ensured. By the calculation method provided by the invention, the price of the electric energy in the electric power market transaction can be automatically adjusted, and the price can be automatically adjusted back according to the energy generated by the power station and the transaction price, so that the reasonable price is ensured. The method improves the safety and privacy of the electric power transaction, reduces the intervention degree of a transaction main body on the electricity price, solves the problem of over-high centralization degree of the electric power transaction in the current stage to a certain extent, and is beneficial to the development of market-oriented electric power transaction.
Description of the drawings:
fig. 1 is a schematic diagram of a power transaction system including an energy storage system.
Fig. 2 is a schematic flow chart of an electric power security transaction method based on a blockchain energy storage system in an embodiment.
Fig. 3 is a schematic diagram of the process of step 3 in fig. 2.
The specific implementation mode is as follows:
example (b):
the electric power trading market is composed of a power station, a power grid and an energy storage party, the three parties are discussed before trading, the quantity of electric quantity of a trading formula and respective weight are formulated, and a reference electric price is designated.
Assuming that the number of the transaction formulas defined by the three parties after the discussion is 100MWh, and the weights of the three parties are equal, the transaction formula of the three parties is as follows:(unit: megawatt-hours), the reference price of electricity established by the three parties is 0.35 yuan/kWh.
The customized transaction mode is that the power grid and the energy storage and power generation station perform transactions respectively, the transaction amount is 5MW each time, and the transaction unit price and the transaction amount are shown in table 1:
TABLE 1 trade Unit price
After 5 times of transactions, the transaction electricity price between power grids of the power stations is 0.52012 yuan/kWh, and then a price backtracking mechanism is triggered, and a price backtracking adjusting constant K is set2If the value of (b) is 270, a new power station electric quantity value X is obtained through formula calculation6120.93241, and calculating the new Y6And Z6Has a value of Y6=93.62416,Z688.32209, the transaction formula after the price backtracking adjustment is:
120.932411/3*93.624161/3*88.322091/3=100
in the 6 th transaction, the transaction formula after the price backtracking is used, and the transaction unit price and the transaction amount after the new transaction formula are shown in table 2:
TABLE 2 trade Unit price
After the price backtracking, the electricity price returns to the reference electricity price gradually through multiple transactions.
The above description is only an example of the assumption of the present invention, and in practical applications, those skilled in the art can fully adjust the data in the formula according to the present method. Any modification, equivalent replacement, local application, etc. made on the premise of explaining the principle of the invention should be included in the protection scope of the invention.
Claims (3)
1. Electric power safety transaction method based on block chain energy storage system, the system relates to three parties, promptly: the power generation station sells electricity to the energy storage or power grid, and the power grid buys electricity from the energy storage or power generation station; the method is characterized in that the trading method for buying power from the power station by the power grid comprises the following steps:
step 1: generating a pair of public key and private key for two parties of transaction by using an asymmetric encryption method;
step 2: the transaction agent encrypts the transaction information by using a private key of the transaction agent and puts the encrypted transaction information into a system;
and step 3: the system decrypts the encrypted information through the public key disclosed by the transaction main body to obtain the transaction information and confirm the identity of the transaction main body and calculate; negotiating a reference electricity price among the power station, the power grid and the energy storage before the initial transaction, and assuming that the reference electricity price is A; the calculation process is as follows:
step 3.1: judging whether the generated energy Q reaches the standard, if so, turning to the step 3.2, otherwise, turning to the step 3.9;
step 3.2: whether the trading unit price of the power station reaches the standard or not is judged, if yes, the step 3.3 is carried out, and if not, the step 3.10 is carried out;
step 3.3: determining a transaction formula; firstly, a virtual electric quantity is specified, the virtual electric quantity of the power station is X, the virtual electric quantity of the power grid is Y, and the virtual electric quantity of the energy storage is Z, because the electric energy occupancy and the importance among the three parties are different, corresponding weighting needs to be carried out on the three parties, and the weights of the power station, the power grid and the energy storage are respectively defined as a, b and c, so X, Y, Z and a, b and c should satisfy the following relational expressions:
Xa*Yb*Zc=K;
a+b+c=1;
step 3.4: determining the selling amount of a seller; receiving quantity Q from power station by power grid1An intermediate quantity DeltaX is set1And Δ X1The following relation is satisfied: Δ X1=Q1;
Step 3.5: determining the receiving amount of a receiving party; when a transaction request occurs between the grid and the power station, the equation preset previously
Xa*Yb*ZcK; will change, and the quantity change of the power station is recorded as delta X1Let the grid number vary by Δ Y1Then the equation becomes the following form:
(X-ΔX1)a*(Y+ΔY1)b*Zc=K,
wherein Δ Y1The value of (d) is obtained by the following equation:
step 3.6: determining a transaction price P1(ii) a The trading volume between the power grid and the power station is a small value compared with the volume in the formula, so the electricity price P between the power grid and the power station at the moment can be calculated by the following formula1:
Step 3.7: determining a transaction amount; number of power plants purchased by grid Q when transaction is completed1According to the automaticFormula of price-adjusting transaction, amount E of power grid paying to power station1Comprises the following steps:
step 3.8: the system encrypts a calculated result obtained after calculation by a public key of a transaction main body and then sends the result to the transaction main body, and the result can be obtained only by decrypting the result by using a corresponding private key, so that the privacy of the transaction is ensured;
the first transaction from the power station to the grid is completed, the power station delivers Q to the grid1The amount of energy is E, the amount paid by the power grid to the power station is E1Formula, due to the trade between grid and power station
Xa*Yb*ZcK; changed, set X1=X-ΔX1、Y1=Y+ΔY1The original auto-tune equation becomes the following form:
X1 a*Y1 b*Zc=K;
turning to the step 4;
step 3.9: assuming a unit time T, the power generation capacity of the power station is Q in the unit time TiSet two constant values N1And K1When capacity Q of the power planti>N1When, X in the formula needs to be matchediAdjusted to a new value Xi+1:Xi+1=Xi+K1(Qi-N1);
After assignment is completed, Y needs to maintain the value of K unchanged, so thatiAnd ZiNeeds to be adjusted to a new value Yi+1And Zi+1And Y isi+1And Zi+1The following relation is satisfied:
obtaining Yi+1And Zi+1The expression of (a) is:
the new trading formula after assignment is completed is: xi+1 a*Yi+1 b*Zi+1 c=K;
Then turning to step 3.3;
step 3.10: the transaction price of the power station after the ith transaction to the power grid is PiSetting a constant value N2And K2When P isi>N2When, X in the formula needs to be matchediAdjusted to a new value Xi+1:Xi+1=Xi+K2(Pi-A),
After assignment is completed, Y needs to maintain the value of K unchanged, so thatiAnd ZiNeeds to be adjusted to a new value Yi+1And Zi+1And Y isi+1And Zi+1The following relation is satisfied:
obtaining Yi+1And Zi+1The expression of (a) is:
the new trading formula after assignment is completed is: xi+1 a*Yi+1 b*Zi+1 c=K;
Then turning to step 3.3;
and 4, step 4: the system encrypts the calculation result by using the public keys of the two parties and then sends the calculation result to the two transaction parties;
and 5: the participant decrypts the calculation result by using the private key;
step 6: the seller sends the electric energy, and the buyer pays the bill;
and 7: completing a transaction; and returning to the step 2.
2. Electric power safety transaction method based on block chain energy storage system, the system relates to three parties, promptly: the power generation station sells electricity to the energy storage or power grid, and the power grid buys electricity from the energy storage or power generation station; the method is characterized in that the trading method for buying electricity from the stored energy by the power grid comprises the following steps:
step 11: generating a pair of public key and private key for two parties of transaction by using an asymmetric encryption method;
step 12: the transaction agent encrypts the transaction information by using a private key of the transaction agent and puts the encrypted transaction information into a system;
step 13: the system decrypts the encrypted information through the public key disclosed by the transaction main body to obtain the transaction information and confirm the identity of the transaction main body and calculate; negotiating a reference electricity price among the power station, the power grid and the energy storage before the initial transaction, and assuming that the reference electricity price is A; the calculation process is as follows:
step 13.1: determining a transaction formula; firstly, a virtual electric quantity is specified, the virtual electric quantity of the power station is X, the virtual electric quantity of the power grid is Y, and the virtual electric quantity of the energy storage is Z, because the electric energy occupancy and the importance among the three parties are different, corresponding weighting needs to be carried out on the three parties, and the weights of the power station, the power grid and the energy storage are respectively defined as a, b and c, so X, Y, Z and a, b and c should satisfy the following relational expressions:
Xa*Yb*Zc=K;
a+b+c=1;
step 13.2: determining the selling amount of a seller; receiving quantity Q from energy storage by power grid2An intermediate quantity Δ Z, and Δ Z1The following relation is satisfied: delta Z1=Q2;
Step 13.3: determining the receiving amount of a receiving party; when a transaction request occurs between the power grid and the stored energy, the equation preset in advance
Xa*Yb*ZcK; will change, and the amount of change of the stored energy is recorded as delta Z1Let the grid number vary by Δ Y1Then the equation becomes the following form:
(X)a*(Y+ΔY1)b*(Z-ΔZ)c=K,
wherein Δ Y1The value of (d) is obtained by the following equation:
step 13.4: determining a transaction price P1(ii) a The trading volume between the power grid and the stored energy is a tiny value compared with the volume in the formula, so the electricity price P between the power grid and the stored energy at the moment can be calculated by the following formula1:
Step 13.5: determining a transaction amount; the amount of stored energy Q purchased by the grid when the transaction is completed1According to the formula of automatic price-regulating transaction, the amount of money required to be paid to the stored energy by the power gridE1Comprises the following steps:
step 13.6: the system encrypts a calculated result obtained after calculation by a public key of a transaction main body and then sends the result to the transaction main body, and the result can be obtained only by decrypting the result by using a corresponding private key, so that the privacy of the transaction is ensured;
the first transaction from the stored energy to the grid is completed, the stored energy delivers Q to the grid1The amount of energy is E, and the sum paid by the power grid to the stored energy is E1Formula since there is a trade between grid and stored energy
Xa*Yb*ZcK; changed, set Z1=Z-ΔZ1、Y1=Y+ΔY1The original auto-tune equation becomes the following form:
Xa*Y1 b*Z1 c=K;
step 14: the system encrypts the calculation result by using the public keys of the two parties and then sends the calculation result to the two transaction parties;
step 15: the participant decrypts the calculation result by using the private key;
step 16: the seller sends the electric energy, and the buyer pays the bill;
and step 17: completing a transaction; returning to step 12.
3. Electric power safety transaction method based on block chain energy storage system, the system relates to three parties, promptly: the power generation station sells electricity to the energy storage or power grid, and the power grid buys electricity from the energy storage or power generation station; the method is characterized in that the trading method for buying electricity from the power station by the stored energy comprises the following steps:
step 21: generating a pair of public key and private key for two parties of transaction by using an asymmetric encryption method;
step 22: the transaction agent encrypts the transaction information by using a private key of the transaction agent and puts the encrypted transaction information into a system;
step 23: the system decrypts the encrypted information through the public key disclosed by the transaction main body to obtain the transaction information and confirm the identity of the transaction main body and calculate; negotiating a reference electricity price among the power station, the power grid and the energy storage before the initial transaction, and assuming that the reference electricity price is A; the calculation process is as follows:
step 23.1: judging whether the generated energy reaches the standard, if so, turning to the step 3.2, otherwise, turning to the step 3.9;
step 23.2: whether the trading unit price of the power station reaches the standard or not is judged, if yes, the step 3.3 is carried out, and if not, the step 3.10 is carried out;
step 23.3: determining a transaction formula; firstly, a virtual electric quantity is specified, the virtual electric quantity of the power station is X, the virtual electric quantity of the power grid is Y, and the virtual electric quantity of the energy storage is Z, because the electric energy occupancy and the importance among the three parties are different, corresponding weighting needs to be carried out on the three parties, and the weights of the power station, the power grid and the energy storage are respectively defined as a, b and c, so X, Y, Z and a, b and c should satisfy the following relational expressions:
Xa*Yb*Zc=K;
a+b+c=1;
step 23.4: determining the selling amount of a seller; receiving the quantity Q of stored energy from the power station3An intermediate quantity DeltaX is set1And Δ X1The following relation is satisfied: Δ X1=Q3;
Step 3.5: determining the receiving amount of a receiving party; when a transaction request occurs between the energy storage and the power station, the equation preset in advance
Xa*Yb*ZcK; will change, and the quantity change of the power station is recorded as delta X1Let the energy storage quantity change to Δ Z1Then the equation becomes the following form:
(X-ΔX1)a*Yb*(Z+ΔZ)c=K,
wherein Δ Y1The value of (d) is obtained by the following equation:
step 23.6: determining transactionsPrice P1(ii) a The trading volume between the energy storage and the power station is a small value compared with the volume in the formula, so the electricity price P between the energy storage and the power station at the moment can be calculated by the following formula3:
Step 23.7: determining a transaction amount; number of stored energy purchasing power stations Q when transaction is completed3The amount E of the power grid to be paid to the power station according to the formula of the automatic price adjustment transaction3Comprises the following steps:
step 23.8: the system encrypts a calculated result obtained after calculation by a public key of a transaction main body and then sends the result to the transaction main body, and the result can be obtained only by decrypting the result by using a corresponding private key, so that the privacy of the transaction is ensured;
the first transaction from the power station to the stored energy is completed, and the power station delivers Q to the stored energy3The amount of energy stored in the energy storage is E3Formula since there is a trade between grid and stored energy
Xa*Yb*ZcK; changed, set X1=X-ΔX1、Z1=Z+ΔZ1The original auto-tune equation becomes the following form:
X1 a*Yb*Z1 c=K;
step 23.9: assuming a unit time T, the power generation capacity of the power station is Q in the unit time TiSet two constant values N1And K1When capacity Q of the power planti>N1When, X in the formula needs to be matchediAdjusted to a new value Xi+1:Xi+1=Xi+K1(Qi-N1);
After assignment is completed, Y needs to maintain the value of K unchanged, so thatiAnd ZiNeeds to be adjusted to a new value Yi+1And Zi+1And Y isi+1And Zi+1The following relation is satisfied:
obtaining Yi+1And Zi+1The expression of (a) is:
the new trading formula after assignment is completed is: xi+1 a*Yi+1 b*Zi+1 c=K;
Then go to step 23.3;
step 23.10: the transaction price of the power station after the ith transaction to the stored energy is PiSetting a constant value N2And K2When P isi>N2When, X in the formula needs to be matchediAdjusted to a new value Xi+1:Xi+1=Xi+K2(xi-A),
After assignment is completed, Y needs to maintain the value of K unchanged, so thatiAnd ZiNeeds to be adjusted to a new value Yi+1And Zi+1And Y isi+1And Zi+1The following relation is satisfied:
obtaining Yi+1And Zi+1The expression of (a) is:
the new trading formula after assignment is completed is: xi+1 a*Yi+1 b*Zi+1 c=K;
Then go to step 23.3;
step 24: the system encrypts the calculation result by using the public keys of the two parties and then sends the calculation result to the two transaction parties;
step 25: the participant decrypts the calculation result by using the private key;
step 26: the seller sends the electric energy, and the buyer pays the bill;
step 27: completing a transaction; returning to step 22.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011237093.1A CN112418915B (en) | 2020-11-09 | 2020-11-09 | Power safety transaction method based on block chain energy storage system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011237093.1A CN112418915B (en) | 2020-11-09 | 2020-11-09 | Power safety transaction method based on block chain energy storage system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112418915A true CN112418915A (en) | 2021-02-26 |
CN112418915B CN112418915B (en) | 2024-04-30 |
Family
ID=74780687
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202011237093.1A Active CN112418915B (en) | 2020-11-09 | 2020-11-09 | Power safety transaction method based on block chain energy storage system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112418915B (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2019035527A1 (en) * | 2017-08-17 | 2019-02-21 | 한국전력공사 | Blockchain-based power trading operation system, method therefor, and computer readable storage medium that stores said method |
CN109409890A (en) * | 2018-11-13 | 2019-03-01 | 华瓴(南京)信息技术有限公司 | A kind of electricity transaction system and method based on block chain |
CN111030147A (en) * | 2019-12-06 | 2020-04-17 | 北京国电通网络技术有限公司 | Power dispatching method and system for comprehensive energy system |
CN111402047A (en) * | 2020-03-07 | 2020-07-10 | 新能博安科技(北京)有限公司 | Distributed power supply regional power dispatching system and method based on block chain |
CN111899101A (en) * | 2020-07-28 | 2020-11-06 | 安徽高山科技有限公司 | Data asset transaction method based on block chain |
-
2020
- 2020-11-09 CN CN202011237093.1A patent/CN112418915B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2019035527A1 (en) * | 2017-08-17 | 2019-02-21 | 한국전력공사 | Blockchain-based power trading operation system, method therefor, and computer readable storage medium that stores said method |
CN109409890A (en) * | 2018-11-13 | 2019-03-01 | 华瓴(南京)信息技术有限公司 | A kind of electricity transaction system and method based on block chain |
CN111030147A (en) * | 2019-12-06 | 2020-04-17 | 北京国电通网络技术有限公司 | Power dispatching method and system for comprehensive energy system |
CN111402047A (en) * | 2020-03-07 | 2020-07-10 | 新能博安科技(北京)有限公司 | Distributed power supply regional power dispatching system and method based on block chain |
CN111899101A (en) * | 2020-07-28 | 2020-11-06 | 安徽高山科技有限公司 | Data asset transaction method based on block chain |
Non-Patent Citations (4)
Title |
---|
徐有蕊;范越;董凌;万威;: "区块链在电力交易中的应用", 电力信息与通信技术, no. 06, 25 June 2020 (2020-06-25), pages 48 - 54 * |
徐有蕊;范越;董凌;万威;: "区块链在电力交易中的应用", 电力信息与通信技术, no. 06, pages 48 - 54 * |
王冰钰等: "基于区块链的分布式电力交易机制", 电力建设, vol. 40, no. 12, pages 3 - 10 * |
谢开等: "区块链技术在电力交易中的应用与展望", 电力***自动化, vol. 44, no. 19, pages 19 - 28 * |
Also Published As
Publication number | Publication date |
---|---|
CN112418915B (en) | 2024-04-30 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
He et al. | Joint operation mechanism of distributed photovoltaic power generation market and carbon market based on cross-chain trading technology | |
AU713339B2 (en) | System and method for multi-currency transactions | |
Moradi et al. | Blockchain, a sustainable solution for cybersecurity using cryptocurrency for financial transactions in smart grids | |
CN110826940B (en) | Distributed power transaction method in extensible multi-microgrid environment | |
CN108470278A (en) | A kind of block chain Token is across chain and on-line off-line method of commerce | |
CN101122986A (en) | Method and system for implementing debit and credit by network | |
CN108985940A (en) | Power exchange management system and method between a kind of user based on block chain technology | |
JPH11504144A (en) | Electronic money system | |
CN103020816A (en) | Online virtual currency third-party credit method and data processing system thereof | |
KR101957797B1 (en) | Method for virtual electric power trading between microgrids based on bidding way and agent apparatus for the same | |
KR20200094441A (en) | Method and apparatus for trading power | |
KR101856007B1 (en) | Energy Harvesting Fintech Service System by self generation electricity and method thereof | |
CN113379485A (en) | Demand response bidding trading method and system based on Hash algorithm and secondary quotation | |
CN113643131A (en) | Microgrid distributed energy trading method and system based on block chain | |
Ping et al. | EV charging coordination via blockchain-based charging power quota trading | |
CN113762961B (en) | Trusted intelligent transaction method, system, computer equipment and terminal | |
CN112418915A (en) | Electric power safety transaction method based on block chain energy storage system | |
Luo et al. | Energy storage sharing mechanism based on blockchain | |
KR20180006846A (en) | Smart gird business system of using ESS | |
Ma et al. | Study on the transaction management mode of virtual power plants based on blockchain technology | |
CN110348702A (en) | Electric energy distribution method between a kind of more micro-capacitance sensors | |
KR20030084294A (en) | Method of multiple payment based on electronic cash using a mobile phone | |
Yu | Design, implementation, and evaluation of a blockchain-enabled multi-energy transaction system for district energy systems | |
KR100394041B1 (en) | A method of a micro payment electronic commerce | |
Menon et al. | Ethereum based smart contract for peer-to-peer energy trading using blockchain technology |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |