CN113706261A - Block chain-based power transaction method, device and system - Google Patents

Block chain-based power transaction method, device and system Download PDF

Info

Publication number
CN113706261A
CN113706261A CN202111027497.2A CN202111027497A CN113706261A CN 113706261 A CN113706261 A CN 113706261A CN 202111027497 A CN202111027497 A CN 202111027497A CN 113706261 A CN113706261 A CN 113706261A
Authority
CN
China
Prior art keywords
block chain
electric power
data
power transaction
transaction
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
CN202111027497.2A
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.)
State Grid Blockchain Technology Beijing Co ltd
State Grid Corp of China SGCC
State Grid Ningxia Electric Power Co Ltd
Electric Power Research Institute of State Grid Ningxia Electric Power Co Ltd
Information and Telecommunication Branch of State Grid Shanxi Electric Power Co Ltd
State Grid E Commerce Co Ltd
Original Assignee
State Grid Blockchain Technology Beijing Co ltd
State Grid Corp of China SGCC
State Grid Ningxia Electric Power Co Ltd
Electric Power Research Institute of State Grid Ningxia Electric Power Co Ltd
Information and Telecommunication Branch of State Grid Shanxi Electric Power Co Ltd
State Grid E Commerce Co Ltd
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 State Grid Blockchain Technology Beijing Co ltd, State Grid Corp of China SGCC, State Grid Ningxia Electric Power Co Ltd, Electric Power Research Institute of State Grid Ningxia Electric Power Co Ltd, Information and Telecommunication Branch of State Grid Shanxi Electric Power Co Ltd, State Grid E Commerce Co Ltd filed Critical State Grid Blockchain Technology Beijing Co ltd
Priority to CN202111027497.2A priority Critical patent/CN113706261A/en
Publication of CN113706261A publication Critical patent/CN113706261A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • 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
    • G06Q30/00Commerce
    • G06Q30/06Buying, selling or leasing transactions
    • G06Q30/0601Electronic shopping [e-shopping]
    • G06Q30/0609Buyer or seller confidence or verification
    • 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
    • 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 disclosure relates to a block chain-based power transaction method, device and system, wherein the method comprises the following steps: the block chain platform obtains a data evidence storage request sent by the electric power transaction main body; the block chain platform verifies the digital signature and the CA authentication information in the data certificate storage request, and if the verification is passed, the source data is uploaded to the block chain for certificate storage; and the block chain platform executes the intelligent contract according to the source data in the block chain, and uploads the transaction result to the block chain for evidence storage. The invention can verify the digital signature and CA authentication information of the electric power transaction main body, and upload the source data to the block chain for storing the certificate and executing the intelligent contract after the verification is passed. The invention ensures the identity trust and the data trust of the electric power transaction main body through verification, and simultaneously, the invention ensures that the transaction is public and transparent through chain link and certificate. Therefore, the invention effectively ensures the safety of electric power transaction.

Description

Block chain-based power transaction method, device and system
Technical Field
The present disclosure relates to the field of power technologies, and in particular, to a block chain-based power transaction method, device, and system.
Background
With the increasing penetration of the electrical improvement policy, more and more market entities are allowed to be added to the electricity market.
Transaction subjects gradually increase, transaction forms gradually develop from a centralized form to a distributed form, and in the actual operation process, due to the problems that the transaction subjects lack identity trust, the data credibility is insufficient, the transaction disclosure transparency is insufficient, and the like, the safety of electric power transaction is low.
Disclosure of Invention
The invention provides a block chain-based electric power transaction method, device and system, which are used for at least solving the problems that a transaction subject lacks identity trust, data credibility is insufficient, transaction disclosure transparency is insufficient and the like in the related technology. The technical scheme of the disclosure is as follows:
a blockchain-based power transaction method, comprising:
the block chain platform obtains a data evidence storing request sent by an electric power transaction main body, wherein the data evidence storing request comprises the following steps: the source data comprises power data to be transacted;
the block chain platform verifies the digital signature and the CA authentication information in the data certificate storage request, and if the verification is passed, the source data is uploaded to a block chain for certificate storage;
and the block chain platform executes an intelligent contract according to the source data in the block chain, and uploads a transaction result to the block chain for evidence storage.
Optionally, the method further includes:
the block chain platform receives an identity registration request sent by the electric power transaction main body, wherein the identity registration request comprises: the CA authentication information and subject information of the electric power transaction subject;
and the blockchain platform verifies the identity registration request, if the verification is passed, a public and private key pair is generated for the electric power transaction main body, and the public and private key pair is sent to the electric power transaction main body, so that the electric power transaction main body uses the public and private key pair to generate the digital signature.
Optionally, the electric power transaction body includes: an electricity purchaser and an electricity seller, the method further comprising:
the blockchain platform sends an electronic contract generated based on the source data and the subject information of the electric power transaction subject to the electric power buyer and the electric power seller;
after the electric power purchaser and the electric power seller sign the electronic contract, the block chain platform uploads the signed electronic contract to a block chain for storage.
Optionally, the block chain platform executes an intelligent contract according to the source data in the block chain, and uploads the transaction result to the block chain for evidence storage, including:
and the block chain platform executes an intelligent contract to complete the electric power transaction based on the signed electronic contract, and uploads a transaction result of the electric power transaction to the block chain for evidence storage.
Optionally, the method further includes:
the block chain platform receives an access request for target data uploaded to a block chain, which is sent by a data access party;
and the block chain platform determines whether the data access party has the authority to access the target data according to the access request, and if so, the target data in the block chain is sent to the data access party.
Optionally, storing a plurality of attribute sets in the blockchain platform, where each attribute set includes at least one attribute information, different attribute sets correspond to different access permissions, the access request carries the attribute information of the data accessing party, and the blockchain platform determines, according to the access request, whether the data accessing party has a permission to access the target data, including:
and the block chain platform determines whether the attribute information of the data access party carried by the access request is consistent with the attribute information in the attribute set corresponding to the target authority, if so, the data access party is determined to have the authority of accessing the target data, otherwise, the data access party is determined not to have the authority of accessing the target data, wherein the target authority is the authority of accessing the target data.
A block chain-based power transaction system is applied to a block chain platform and comprises: a deposit request obtaining unit, a deposit request verifying unit and a contract executing unit,
the certificate storing request obtaining unit is used for obtaining a data certificate storing request sent by an electric power transaction main body, wherein the data certificate storing request comprises: the source data comprises power data to be transacted;
the certificate storing request verifying unit is used for verifying the digital signature and the CA authentication information in the data certificate storing request, and if the verification is passed, uploading the source data to a block chain for certificate storing;
and the contract execution unit is used for executing the intelligent contract according to the source data in the block chain and uploading the transaction result to the block chain for evidence storage.
Optionally, the method further includes:
an identity registration request obtaining unit, configured to receive an identity registration request sent by the power transaction main body, where the identity registration request includes: the CA authentication information and subject information of the electric power transaction subject;
and the registration request verification unit is used for verifying the identity registration request, if the verification is passed, generating a public and private key pair for the electric power transaction main body, and sending the public and private key pair to the electric power transaction main body, so that the electric power transaction main body uses the public and private key pair to generate the digital signature.
Optionally, the electric power transaction body includes: the electric power purchaser and the electric power seller, the block chain-based electric power transaction system further includes:
a contract sending unit configured to send an electronic contract generated based on the source data and subject information of the electric power transaction subject to the electric power purchaser and the electric power seller;
and the contract evidence storing unit is used for uploading the signed electronic contract to a block chain for evidence storage after the electronic contract is signed by the electric power buyer and the electric power seller.
Optionally, the contract execution unit is specifically configured to:
and executing the intelligent contract to complete the electric power transaction based on the signed electronic contract, and uploading the transaction result of the electric power transaction to the block chain for evidence storage.
Optionally, the power transaction system based on the blockchain further includes:
the data access request obtaining unit is used for receiving an access request which is sent by a data access party and is used for accessing the target data uploaded to the block chain;
and the permission judging unit is used for determining whether the data access party has the permission to access the target data according to the access request, and if so, sending the target data in the block chain to the data access party.
Optionally, a plurality of attribute sets are stored in the block chain-based power transaction system, each attribute set includes at least one attribute information, different attribute sets correspond to different access permissions, the access request carries the attribute information of the data access party, and the permission determination unit is specifically configured to:
and determining whether the attribute information of the data access party carried by the access request is consistent with the attribute information in the attribute set corresponding to the target authority, if so, determining that the data access party has the authority to access the target data, otherwise, determining that the data access party does not have the authority to access the target data, wherein the target authority is the authority to access the target data.
A blockchain based power transaction apparatus, the blockchain based power transaction apparatus comprising: a processor and a memory for storing processor-executable instructions;
wherein the processor is configured to execute the instructions to implement any of the above mentioned blockchain based power trading methods.
The technical scheme provided by the embodiment of the disclosure at least brings the following beneficial effects:
the invention can verify the digital signature and CA authentication information of the electric power transaction main body, and upload the source data to the block chain for storing the certificate and executing the intelligent contract after the verification is passed. The invention ensures the identity trust and the data trust of the electric power transaction main body through verification, and simultaneously, the invention ensures that the transaction is public and transparent through chain link and certificate. Therefore, the invention effectively ensures the safety of electric power transaction.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the disclosure and are not to be construed as limiting the disclosure.
FIG. 1 is a flow diagram illustrating a blockchain-based power transaction method in accordance with an exemplary embodiment;
FIG. 2 is a flow chart illustrating a blockchain-based power transaction method according to another exemplary embodiment;
FIG. 3 is a flow chart illustrating a blockchain-based power transaction method in accordance with another exemplary embodiment;
FIG. 4 is a flow chart illustrating a blockchain-based power transaction method in accordance with another exemplary embodiment;
FIG. 5 is a block chain platform architecture diagram according to an example embodiment;
FIG. 6 is a flow chart illustrating a blockchain-based power transaction method in accordance with another exemplary embodiment;
fig. 7 is a block diagram illustrating a blockchain-based power trading system, according to an example embodiment.
Detailed Description
In order to make the technical solutions of the present disclosure better understood by those of ordinary skill in the art, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings.
It should be noted that the terms "first," "second," and the like in the description and claims of the present disclosure and in the above-described drawings are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the disclosure described herein are capable of operation in sequences other than those illustrated or otherwise described herein. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
Fig. 1 is a flowchart illustrating a blockchain-based power transaction method according to an exemplary embodiment, where the blockchain-based power transaction method is used in a blockchain platform, as shown in fig. 1, and includes the following steps.
S11, the blockchain platform obtains a data evidence storing request sent by the electric power transaction main body, wherein the data evidence storing request comprises: the source data comprises power data to be transacted, the digital signature and the CA authentication information.
Wherein, the electric power transaction body can include: electricity buyers and electricity sellers. The power purchaser may be an electronic device owned by a power consumption organization or an electronic device owned by an individual, and the power seller may be an electronic device owned by an organization having a power selling right or an electronic device owned by an individual.
The electric power transaction main body can be in communication connection with the block chain platform through a public network or an exclusive network, and of course, other devices can be in communication connection with the block chain platform besides the electric power transaction main body, such as: a supervisor device.
Optionally, the source data may include: power data to be traded. The power data may include: an amount of electricity; further, the power data may further include: electricity price; further, the power data may further include: voltage, etc.
Optionally, the electricity price in the power data may be a fixed electricity price or an electricity price that changes with time.
Of course, the source data may also include identification information of the power transaction subject, and the like, and the present invention is not limited herein.
Optionally, the source data may be encrypted data obtained by encrypting the public key of the blockchain platform by the power transaction subject, and after receiving the encrypted source data, the blockchain platform may decrypt the encrypted source data by using a private key of the blockchain platform to obtain the source data.
Of course, the power transaction main body may also use other encryption methods to encrypt the source data, and correspondingly, the blockchain platform may use a corresponding decryption method to decrypt the source data.
The digital signature (also called public key digital signature) is a section of digital string which can be generated only by the sender of the information and cannot be forged by others, and the section of digital string is also a valid proof for the authenticity of the information sent by the sender of the information. It is a method for authenticating digital information that is similar to a common physical signature written on paper, but is implemented using techniques in the field of public key cryptography. A set of digital signatures typically defines two complementary operations, one for signing and the other for verification. The digital signature is an application of asymmetric key encryption technology and digital digest technology.
CA authentication, i.e., electronic authentication service, refers to an activity of providing authenticity and reliability verification for each party related to an electronic signature. A Certificate Authority (CA), i.e. an Authority that issues digital signatures, is an Authority responsible for issuing and managing digital signatures, and is a trusted third party in e-commerce transactions, which assumes responsibility for validity checking of public keys in a public key infrastructure. The CA authentication information in the data certification request may be authentication information that the electric power transaction body previously obtained from a certificate issuing authority.
Optionally, the digital signature and/or the CA authentication information in the data authentication request may be encrypted information to ensure the security of the information. For example: the electric power transaction main body encrypts the digital signature and/or the CA authentication information through a first private key, and the block chain platform decrypts by using a first public key corresponding to the first private key. The first private key and the first public key may be a public-private key pair of the power transaction body. The following steps are repeated: the electric power transaction main body encrypts the digital signature and/or the CA authentication information through the second public key, and the block chain platform decrypts by using a second private key corresponding to the second public key. The second private key and the second public key may be a public-private key pair of the blockchain platform.
And S12, the block chain platform verifies the digital signature and the CA authentication information in the data certificate storage request, and if the verification is passed, the source data is uploaded to the block chain for certificate storage.
Optionally, the blockchain platform may send the CA certification information to a certificate authority to verify the CA certification information. Optionally, the blockchain platform may verify the digital signature through a public and private key pair.
Optionally, the blockchain platform may decrypt the encrypted source data, and then upload the decrypted source data to the blockchain for storage. In other embodiments, the blockchain platform may decrypt the encrypted source data and then upload the hash value of the decrypted source data to the blockchain for verification.
And S13, executing the intelligent contract according to the source data in the block chain by the block chain platform, and uploading the transaction result to the block chain for evidence storage.
A Smart Contract (Smart Contract) is a computer protocol intended to propagate, verify or execute contracts in an informative manner. Smart contracts allow trusted transactions to be conducted without third parties, which transactions are traceable and irreversible.
Optionally, the method can provide intelligent contract customized service for each transaction subject according to transaction rules, meet personalized requirements of transactions, and realize transparent and traceable disclosure of transaction settlement. In practical application, each market main body can customize an intelligent contract on a block chain platform according to business requirements, so that the transaction forms of different business requirements are realized, the business realization process of marketized transaction is reconstructed, participation of third-party main bodies is reduced, and the openness and transparency of electric power transaction are improved. The method can develop a series of intelligent contracts in a customized manner according to individual requirements provided by a transaction main body and different transaction rules, and complete deployment operation on a chain, wherein the customized requirements comprise the customized requirements of transaction intelligent contracts, user access control contracts and the like. The customized intelligent contract needs to be completely familiar with transaction business, and algorithm compilation is completed according to business requirements, and meanwhile, the operation efficiency is guaranteed.
It will be appreciated that since the source data includes power data to be traded, the present disclosure may execute smart contracts with the power data, such as: the intelligent contract is executed by marking ownership of 1000 degrees of electricity as an electricity purchaser and ownership of an amount of money as an electricity seller.
After the transaction result is uploaded to the block chain for evidence storage, the invention is beneficial to follow-up tracking and query of the electric power transaction and simultaneously proves the compliance of the electric power transaction.
The block chain-based power transaction method provided by the embodiment of the invention can verify the digital signature and CA authentication information of a power transaction main body, and upload source data to the block chain for storing the certificate and executing an intelligent contract after the verification is passed. The invention effectively ensures the safety of electric power transaction.
As shown in fig. 2, another block chain-based power transaction method provided in the embodiment of the present invention, relative to the embodiment shown in fig. 1, may further include:
s01, the blockchain platform receives an identity registration request sent by the power transaction principal, where the identity registration request includes: CA authentication information and subject information of the power transaction subject.
When the electricity transaction subject is an institution, the subject information of the electricity transaction subject may include: at least one of organization name, organization architecture code, business license information. When the electricity transaction subject is an individual, the subject information of the electricity transaction subject may include: at least one of name, identification number and account book information.
And S02, the blockchain platform verifies the identity registration request, if the verification is passed, a public and private key pair is generated for the electric power transaction main body, and the public and private key pair is sent to the electric power transaction main body, so that the electric power transaction main body generates a digital signature by using the public and private key pair.
Optionally, the verification process for the CA authentication information may be the same as the verification process for the CA authentication information in the embodiment shown in fig. 1, and is not described again. The verification process of the subject information of the electric power transaction subject may be as follows: and sending the subject information of the power transaction subject to the equipment of the organization with the subject information verification authority, and obtaining the verification result returned by the equipment. Of course, the device of the institution having the principal information verification authority may be connected to the blockchain platform, and verify the principal information of the electric power transaction principal on the blockchain platform.
And the public and private key pair generated by the block chain platform for the electric power transaction main body is the public and private key pair of the electric power transaction main body. The electric power transaction principal may generate a digital signature using a public-private key pair generated therefor, or may perform processing such as encryption and decryption on transmitted data using the public-private key pair.
The block chain platform can broadcast the public key in the public and private key pair to the electric power transaction main body in a broadcasting mode, and the private key is encrypted and then independently sent to the electric power transaction main body.
In other embodiments, the electricity transaction body includes: as shown in fig. 3, another block chain-based power transaction method provided by the embodiment of the present invention may further include, in comparison with the embodiment shown in fig. 1:
and S14, the blockchain platform sends the electronic contract generated based on the source data and the subject information of the electric power transaction subject to the electric power buyer and the electric power seller.
Specifically, the blockchain platform may fill the power data (such as the amount of electricity and the price of electricity) to be traded, the name of the power buyer and the name of the power seller into a preset contract template to generate the electronic contract. Of course, the blockchain platform may also fill more other information into the contract template, such as the total transaction amount.
Optionally, the sending of the electronic contract to the electric power purchaser and the electric power seller may specifically be: and sending the electronic contract to the block chain network. Thus, the electricity buyer and the electricity seller can see the electronic contract from the blockchain network.
And S15, after the electric power buyer and the electric power seller sign the electronic contract, the block chain platform uploads the signed electronic contract to the block chain for storage.
Optionally, the electricity purchaser and the electricity seller may sign the electronic contract through the blockchain network.
After the signed electronic contract is uploaded to a block chain for storage, the compliance of the transaction can be reflected, and the subsequent examination is facilitated.
In other embodiments, step S13 in the embodiment shown in fig. 3 may specifically include:
and the block chain platform executes the intelligent contract to complete the electric power transaction based on the signed electronic contract, and uploads the transaction result of the electric power transaction to the block chain for evidence storage.
As shown in fig. 4, another block chain-based power transaction method provided in the embodiment of the present invention, relative to the embodiment shown in fig. 1, may further include:
and S16, the blockchain platform receives an access request sent by the data accessor for the target data uploaded to the blockchain.
Wherein the data accessor may be a device owned by an individual or organization that needs to access the data in the blockchain, such as: a regulatory agency's equipment, etc.
Alternatively, the target data may be any data in the block chain, such as the source data, the electronic contract, the statistical result of the source data, and the like.
S17, the block chain platform determines whether the data access party has the authority of accessing the target data according to the access request, and if so, the target data in the block chain is sent to the data access party.
Optionally, the present invention may set different permissions for different data accessing parties respectively, so that the data accessing party meeting the requirements may access the target data. Of course, the invention can also set the level for the target data, and the authority required by different levels can be different.
Optionally, a plurality of attribute sets are stored in the blockchain platform, where each attribute set includes at least one attribute information, different attribute sets correspond to different access permissions, and the access request carries the attribute information of the data access party, and step S17 may specifically include:
and the block chain platform determines whether the attribute information of the data access party carried by the access request is consistent with the attribute information in the attribute set corresponding to the target authority, if so, the data access party is determined to have the authority of accessing the target data, otherwise, the data access party is determined not to have the authority of accessing the target data, wherein the target authority is the authority of accessing the target data.
The attribute information of the data access party may include: the organization attribute of the organization corresponding to the data access party or the personal attribute of the individual corresponding to the data access party. Wherein the mechanism attributes may include: enterprise type of organization, organization affiliated unit, organization address, organization scale, etc. The personal attributes may include: age, sex, affiliated units, etc. of the individual.
Optionally, the mechanism corresponding to the data access party may include related parties such as a power generation enterprise, a power selling company, a power grid enterprise, and a supervision mechanism, and the individual corresponding to the data access party may be a power consumer. It is understood that the power consumer generally takes "family" or "family" as a unit, and therefore, the individual corresponding to the data access party in the present application may be one or more persons in the "family" or "family" represented by the power consumer.
The attribute set of the data access party can be set according to the requirements and the authority of different data access parties. When data needs to be accessed, the data access party uploads the attribute set and the digital signature to the blockchain platform, the blockchain platform judges whether the data access party has the authority to access the data or not according to the digital signature and the attribute set, and the data access party can check the specific data after the judgment is passed, so that the access control of a user is realized.
Optionally, the attribute may be encrypted based on a ciphertext policy, and the specific scheme is as follows: in a ciphertext-policy-based attribute-based encryption (CP-ABE) algorithm, a ciphertext corresponds to an access control structure, and a key corresponds to an attribute set, so that decryption can be successful only when the attribute set of a data access party can satisfy the corresponding access control structure.
After the attribute encryption algorithm based on the ciphertext strategy is used, access strategies can be formulated in advance according to various data access parties, and different attribute sets can be configured. When the attribute encryption algorithm based on the ciphertext strategy is called, whether the request of the data access party is legal or not can be quickly judged, so that the fineness of authority management is improved, and the safety protection level of source data is improved.
The following describes the architecture of the blockchain platform in the present invention, as shown in fig. 5, which may include: infrastructure layer, basic service layer, basic function component, micro service architecture, business service, service operation and block chain service gateway.
Infrastructure layer: is the fundamental environment of blockchain platform deployment, including computing resources, storage resources, and network resources, etc., which may be virtualized resources/containers as shown in fig. 5.
Basic service layer: the basic service of the block chain platform comprises basic environments such as an operating system, middleware, a database, JavaEE, golang and the like, and platform operation basic services such as a support framework, a basic class library, a universal suite, a unified service and the like.
Basic functional components: the method is a basic function of the operation of the block chain platform, and comprises channel management, node management, privacy protection, multi-chain, contract engine, network service, block chain monitoring, cryptographic algorithm, key management, consensus mechanism and the like, so that the normal operation of the block chain platform is ensured.
Micro-service architecture: the technology needed to be used for improving the operation efficiency of each service of the block chain platform comprises k8s, docker, springclosed, message middleware and the like.
Service: the intelligent contract system is various services supported by a block chain platform, and comprises general services such as data retrieval service, data sharing, report service, block chain asset management, customized intelligent contract class, link forensics, data fingerprints, electronic contracts, traceability service, identity authentication and the like, and meanwhile, the intelligent contract customization is completed according to the personalized requirements of business application, and various functions of business are realized.
Service operation: the operation management of the block chain platform is realized, including service management, charging management, tenant management, interface management and the like, and the market main body can complete application through renting the block chain service.
Block chain serving gateway: the method comprises the contents of safety protection, load balancing, service authentication, log management and the like, and the safe operation of the block chain platform is guaranteed.
An embodiment of a specific application is provided below, and as shown in fig. 6, a power transaction method based on a block chain according to an exemplary embodiment of the present invention may include 11 steps 1 to 11:
CA authentication step: the electric power transaction main body performs identity authentication to a certificate authority and obtains CA authentication information;
2. identity registration: the electric power transaction main body registers identity to the block chain platform, submits real-name information such as CA authentication information and enterprise basic information to the block chain platform, and the block chain platform verifies the real-name information;
3. a key distribution step: after the identity information is verified, the block chain platform generates a public and private key pair for the electric power transaction main body, and simultaneously generates a pair of public and private key pairs PK (block chain platform public key) and MK (block chain platform master key) for the block chain platform, transmits information such as the private key of the electric power transaction main body and the block chain platform public key PK to the electric power transaction main body, and stores and proves the public key information to the block chain;
4. data storage step: the electric power transaction main body generates a digital signature according to the distributed private key and uploads information such as encrypted source data, the digital signature and CA authentication information to the block chain platform;
5. and returning a certificate storage result: the block chain platform verifies the authenticity of the digital signature according to the digital signature of the electric power transaction main body, if the verification is passed, the source data is linked and certified, and successful information of the certification is returned to the electric power transaction main body;
6. an electronic contract generating step: the electric power transaction parties sign the electronic contract on the block chain to determine a transaction mode;
7. customizing the development transaction intelligent contract step: executing an intelligent contract according to the transaction mode and the source data of the deposit certificate, and chaining the deposit certificate on the transaction result; the intelligent contracts can be customized according to requirements.
8. Charging management step: charging platform use fees including identity authentication, electronic contracts, intelligent contract development fees and the like to the electric power transaction main body;
9. a step of formulating a user access attribute set: determining a specific access attribute set for each type of users according to the types of users related to the service, and establishing an access control library;
10. an access request step: the data access direction block chain platform provides an access request, the attribute set comprises user exclusive attribute information, and the access control intelligent contract verifies whether the data access party has access authority or not according to the rules of the access control library;
11. and returning detailed data: and after the verification is passed, the access control intelligent contract decrypts the encrypted source data stored on the chain, calculates the source data, and returns the data to the data access party after the calculation is completed.
Corresponding to the block chain-based power transaction method provided by the embodiment of the present invention, the present invention further provides a block chain-based power transaction system, which is applied to a block chain platform, as shown in fig. 7, the block chain-based power transaction system may include: a witness request obtaining unit 100, a witness request verifying unit 200 and a contract execution unit 300,
a certificate storing request obtaining unit 100, configured to obtain a data certificate storing request sent by an electric power transaction main body, where the data certificate storing request includes: the source data comprises power data to be transacted;
the verification unit 200 is configured to verify the digital signature and the CA authentication information in the data verification request, and if the verification passes, upload the source data to the block chain for verification;
and the contract execution unit 300 is configured to execute an intelligent contract according to the source data in the blockchain, and upload the transaction result to the blockchain for verification.
Optionally, the power transaction system based on the blockchain shown in fig. 7 may further include:
an identity registration request obtaining unit, configured to receive an identity registration request sent by an electric power transaction main body, where the identity registration request includes: CA authentication information and subject information of the electric power transaction subject;
and the registration request verification unit is used for verifying the identity registration request, if the verification is passed, generating a public and private key pair for the electric power transaction main body, and sending the public and private key pair to the electric power transaction main body so that the electric power transaction main body generates a digital signature by using the public and private key pair.
Optionally, the electric power transaction body includes: the block chain-based power transaction system shown in fig. 7 further includes:
a contract sending unit for sending an electronic contract generated based on the source data and subject information of the electricity transaction subject to the electricity purchaser and the electricity seller;
and the contract evidence storing unit is used for uploading the signed electronic contract to the block chain for evidence storage after the electronic contract is signed by the electric power buyer and the electric power seller.
Optionally, the contract execution unit 300 is specifically configured to:
and executing the intelligent contract to complete the electric power transaction based on the signed electronic contract, and uploading a transaction result of the electric power transaction to the block chain for storing the certificate.
Optionally, the power transaction system based on the blockchain shown in fig. 7 may further include:
the data access request obtaining unit is used for receiving an access request which is sent by a data access party and is used for accessing the target data uploaded to the block chain;
and the permission judging unit is used for determining whether the data access party has the permission to access the target data according to the access request, and if so, transmitting the target data in the block chain to the data access party.
Optionally, a plurality of attribute sets are stored in the block chain-based power transaction system, each attribute set includes at least one attribute information, different attribute sets correspond to different access permissions, the access request carries attribute information of a data access party, and the permission determination unit is specifically configured to:
and determining whether the attribute information of the data access party carried by the access request is consistent with the attribute information in the attribute set corresponding to the target authority, if so, determining that the data access party has the authority to access the target data, otherwise, determining that the data access party does not have the authority to access the target data, wherein the target authority is the authority to access the target data.
The embodiment of the present disclosure further provides a block chain-based power transaction apparatus, which includes: a processor and a memory for storing processor-executable instructions;
wherein the processor is configured to execute the instructions to implement any of the above block chain-based power transaction methods provided by the embodiments of the present disclosure.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (10)

1. A power transaction method based on a block chain is characterized by comprising the following steps:
the block chain platform obtains a data evidence storing request sent by an electric power transaction main body, wherein the data evidence storing request comprises the following steps: the source data comprises power data to be transacted;
the block chain platform verifies the digital signature and the CA authentication information in the data certificate storage request, and if the verification is passed, the source data is uploaded to a block chain for certificate storage;
and the block chain platform executes an intelligent contract according to the source data in the block chain, and uploads a transaction result to the block chain for evidence storage.
2. The method of claim 1, further comprising:
the block chain platform receives an identity registration request sent by the electric power transaction main body, wherein the identity registration request comprises: the CA authentication information and subject information of the electric power transaction subject;
and the blockchain platform verifies the identity registration request, if the verification is passed, a public and private key pair is generated for the electric power transaction main body, and the public and private key pair is sent to the electric power transaction main body, so that the electric power transaction main body uses the public and private key pair to generate the digital signature.
3. The method of claim 1, wherein the electricity transaction body comprises: an electricity purchaser and an electricity seller, the method further comprising:
the blockchain platform sends an electronic contract generated based on the source data and the subject information of the electric power transaction subject to the electric power buyer and the electric power seller;
after the electric power purchaser and the electric power seller sign the electronic contract, the block chain platform uploads the signed electronic contract to a block chain for storage.
4. The method of claim 3, wherein the blockchain platform executes an intelligent contract according to the source data in the blockchain and uploads a transaction result to the blockchain for evidence storage, and the method comprises:
and the block chain platform executes an intelligent contract to complete the electric power transaction based on the signed electronic contract, and uploads a transaction result of the electric power transaction to the block chain for evidence storage.
5. The method of claim 1, further comprising:
the block chain platform receives an access request for target data uploaded to a block chain, which is sent by a data access party;
and the block chain platform determines whether the data access party has the authority to access the target data according to the access request, and if so, the target data in the block chain is sent to the data access party.
6. The method according to claim 5, wherein a plurality of attribute sets are stored in the blockchain platform, each attribute set includes at least one attribute information, different attribute sets correspond to different access permissions, the access request carries the attribute information of the data accessing party, and the blockchain platform determines whether the data accessing party has the permission to access the target data according to the access request, including:
and the block chain platform determines whether the attribute information of the data access party carried by the access request is consistent with the attribute information in the attribute set corresponding to the target authority, if so, the data access party is determined to have the authority of accessing the target data, otherwise, the data access party is determined not to have the authority of accessing the target data, wherein the target authority is the authority of accessing the target data.
7. The power transaction system based on the block chain is applied to a block chain platform and comprises the following components: a deposit request obtaining unit, a deposit request verifying unit and a contract executing unit,
the certificate storing request obtaining unit is used for obtaining a data certificate storing request sent by an electric power transaction main body, wherein the data certificate storing request comprises: the source data comprises power data to be transacted;
the certificate storing request verifying unit is used for verifying the digital signature and the CA authentication information in the data certificate storing request, and if the verification is passed, uploading the source data to a block chain for certificate storing;
and the contract execution unit is used for executing the intelligent contract according to the source data in the block chain and uploading the transaction result to the block chain for evidence storage.
8. The blockchain-based power trading system of claim 7, further comprising:
an identity registration request obtaining unit, configured to receive an identity registration request sent by the power transaction main body, where the identity registration request includes: the CA authentication information and subject information of the electric power transaction subject;
and the registration request verification unit is used for verifying the identity registration request, if the verification is passed, generating a public and private key pair for the electric power transaction main body, and sending the public and private key pair to the electric power transaction main body, so that the electric power transaction main body uses the public and private key pair to generate the digital signature.
9. The blockchain-based power trading system of claim 7, wherein the power trading entity comprises: the electric power purchaser and the electric power seller, the block chain-based electric power transaction system further includes:
a contract sending unit configured to send an electronic contract generated based on the source data and subject information of the electric power transaction subject to the electric power purchaser and the electric power seller;
and the contract evidence storing unit is used for uploading the signed electronic contract to a block chain for evidence storage after the electronic contract is signed by the electric power buyer and the electric power seller.
10. A blockchain-based power transaction apparatus, comprising: a processor and a memory for storing processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the blockchain-based power trading method of any one of claims 1 to 6.
CN202111027497.2A 2021-09-02 2021-09-02 Block chain-based power transaction method, device and system Pending CN113706261A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111027497.2A CN113706261A (en) 2021-09-02 2021-09-02 Block chain-based power transaction method, device and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111027497.2A CN113706261A (en) 2021-09-02 2021-09-02 Block chain-based power transaction method, device and system

Publications (1)

Publication Number Publication Date
CN113706261A true CN113706261A (en) 2021-11-26

Family

ID=78657476

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111027497.2A Pending CN113706261A (en) 2021-09-02 2021-09-02 Block chain-based power transaction method, device and system

Country Status (1)

Country Link
CN (1) CN113706261A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114169947A (en) * 2022-02-10 2022-03-11 北京航空航天大学杭州创新研究院 Point-to-point electric power transaction method and system based on consistency ADMM algorithm

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107392767A (en) * 2017-07-28 2017-11-24 广州亦云信息技术股份有限公司 Method of commerce, electronic equipment and the storage medium of electricity market based on block chain
CN111461917A (en) * 2020-02-11 2020-07-28 江苏荣泽信息科技股份有限公司 Power system material contract management system based on block chain
CN112950376A (en) * 2021-03-05 2021-06-11 广东电网有限责任公司 Electric power industry digital identity card management method and system based on block chain technology
CN113256448A (en) * 2021-06-23 2021-08-13 国网电子商务有限公司 Block chain-based power data processing method and system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107392767A (en) * 2017-07-28 2017-11-24 广州亦云信息技术股份有限公司 Method of commerce, electronic equipment and the storage medium of electricity market based on block chain
CN111461917A (en) * 2020-02-11 2020-07-28 江苏荣泽信息科技股份有限公司 Power system material contract management system based on block chain
CN112950376A (en) * 2021-03-05 2021-06-11 广东电网有限责任公司 Electric power industry digital identity card management method and system based on block chain technology
CN113256448A (en) * 2021-06-23 2021-08-13 国网电子商务有限公司 Block chain-based power data processing method and system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114169947A (en) * 2022-02-10 2022-03-11 北京航空航天大学杭州创新研究院 Point-to-point electric power transaction method and system based on consistency ADMM algorithm

Similar Documents

Publication Publication Date Title
US11025435B2 (en) System and method for blockchain-based cross-entity authentication
US11533164B2 (en) System and method for blockchain-based cross-entity authentication
EP3788523B1 (en) System and method for blockchain-based cross-entity authentication
US11700257B2 (en) System and method for storing and distributing consumer information
EP4120114A1 (en) Data processing method and apparatus, smart device and storage medium
WO2021000420A1 (en) System and method for blockchain-based cross-entity authentication
EP3509006B1 (en) Information sharing system
US7676430B2 (en) System and method for installing a remote credit card authorization on a system with a TCPA complaint chipset
CN110766406B (en) Resource transfer method, resource transfer device, storage medium and electronic equipment
US7167985B2 (en) System and method for providing trusted browser verification
CN113347008B (en) Loan information storage method adopting addition homomorphic encryption
CN112199721A (en) Authentication information processing method, device, equipment and storage medium
CN109981287A (en) A kind of code signature method and its storage medium
CN111460457A (en) Real estate property registration supervision method, device, electronic equipment and storage medium
CN111049806B (en) Joint authority control method and device, electronic equipment and storage medium
CN114866323A (en) User-controllable private data authorization sharing system and method
Mansoor et al. A Review of Blockchain Approaches for KYC
KR20220109099A (en) Electric power brokerage method and system with enhanced data confidentiality and integrity based on blockchain
CN113706261A (en) Block chain-based power transaction method, device and system
CA3050487A1 (en) System and method for storing and distributing consumer information
KR102450412B1 (en) SLA-Based Sharing Economy Service with Smart Contract for Resource Integrity in the Internet of Things
Liu et al. Fair Data Marketing in HCN
CN117729215A (en) Data trusted sharing platform based on block chain
CN116012009A (en) Block chain-based transaction verification method, device, electronic equipment and readable medium
CN116862508A (en) Machine learning model transaction system based on alliance blockchain

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20211126