CN114401268A - Cross-link data sharing method, system, equipment and readable storage medium - Google Patents

Cross-link data sharing method, system, equipment and readable storage medium Download PDF

Info

Publication number
CN114401268A
CN114401268A CN202111404845.3A CN202111404845A CN114401268A CN 114401268 A CN114401268 A CN 114401268A CN 202111404845 A CN202111404845 A CN 202111404845A CN 114401268 A CN114401268 A CN 114401268A
Authority
CN
China
Prior art keywords
data
power
target
shared
block chain
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
CN202111404845.3A
Other languages
Chinese (zh)
Inventor
齐荣
鲁静
刘亚建
程晗蕾
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Yuanguang Software Co Ltd
Original Assignee
Yuanguang Software 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 Yuanguang Software Co Ltd filed Critical Yuanguang Software Co Ltd
Priority to CN202111404845.3A priority Critical patent/CN114401268A/en
Publication of CN114401268A publication Critical patent/CN114401268A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/12Applying verification of the received information

Abstract

The application discloses a method, a system, equipment and a readable storage medium for cross-link data sharing, wherein the method comprises the following steps: a main blockchain node in a cross-chain platform receives first shared transaction information sent by a source blockchain; verifying the first shared transaction information in the trusted execution environment; after all the block chain nodes within the preset range in the cross-chain platform pass verification, packaging a second identifier, a first identifier and target shared data of a source block chain into second shared transaction information; the second shared transaction information is sent to the target block chain, and through the method, data can be shared between the two block chains.

Description

Cross-link data sharing method, system, equipment and readable storage medium
Technical Field
The present application relates to the field of blockchain technologies, and in particular, to a method, a system, a device, and a readable storage medium for cross-chain data sharing.
Background
Blockchains are a novel application model for distributed data storage, point-to-point transmission, consensus mechanisms, encryption algorithms, and other computer technologies, and are essentially decentralized databases. The block chains can be divided into public block chains, united block chains and private block chains, and there may be a need for data sharing or even interaction between different block chains.
In a long-term research and development process, the applicant of the present application finds that isolation exists between block chains, data sharing cannot be performed, data flow between the block chains is limited, and how to ensure data security in a data interaction process is also a key problem that a cross-chain data sharing technology needs to pay attention to.
Disclosure of Invention
The technical problem mainly solved by the application is to provide a method, a system, a device and a readable storage medium for cross-chain data sharing, which can enable data to be shared safely among block chains.
In order to solve the technical problem, the application adopts a technical scheme that: a cross-chain data sharing method is provided, and the method comprises the following steps: a main block chain node in a cross-chain platform receives first shared transaction information sent by a source block chain, wherein the first shared transaction information comprises a first identifier of a target block chain and target shared data; verifying the first shared transaction information in the trusted execution environment; after all the block chain nodes in a preset range in the cross-chain platform pass verification, packaging a second identifier, a first identifier and target shared data of a source block chain into second shared transaction information, wherein the main block chain nodes are located in the preset range; and sending the second shared transaction information to the target block chain.
In order to solve the above technical problem, another technical solution adopted by the present application is: providing a system for cross-chain data sharing, wherein the system comprises a source block chain, a target block chain and a cross-chain platform; the source block chain is used for generating and sending first shared transaction information; the cross-chain platform is used for executing the method; the target block chain is used for receiving and storing the second shared transaction information.
In order to solve the above technical problem, another technical solution adopted by the present application is: a cross-chain data sharing device is provided, which comprises a processor and a memory, wherein the memory is used for storing program data, and the processor is used for executing the program data to realize the method.
In order to solve the above technical problem, another technical solution adopted by the present application is: there is provided a computer readable storage medium for storing program data, the program data being executable to implement the above method.
In the scheme, the first shared transaction information sent by the source block chain is received through the hurdle technology platform with the trusted execution environment, the first shared transaction information is verified, then the second shared transaction information is generated and sent to the target block chain, so that the target block chain can obtain target shared data from the second shared transaction information, and through the mode, the data can be shared between the two block chains.
Drawings
FIG. 1 is a schematic flow chart diagram illustrating one embodiment of cross-chain data sharing according to the present application;
FIG. 2 is a schematic flow chart diagram illustrating another embodiment of cross-chain data sharing according to the present application;
FIG. 3 is a schematic flow chart diagram illustrating another embodiment of step S220;
FIG. 4 is a block diagram of an embodiment of a cross-chain data sharing system in the present application;
FIG. 5 is a block chain architecture of the present application;
FIG. 6 is a block diagram of a framework for one embodiment of a cross-chain data sharing apparatus of the present application;
FIG. 7 is a block diagram of an embodiment of a computer-readable storage medium according to the present application.
Detailed Description
In order to make the purpose, technical solution and effect of the present application clearer and clearer, the present application is further described in detail below with reference to the accompanying drawings and examples.
The term "and/or" herein is merely an association describing an associated object, meaning that three relationships may exist, e.g., a and/or B, may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the character "/" herein generally indicates that the former and latter related objects are in an "or" relationship. Further, the term "plurality" herein means two or more than two.
It is understood that the methods of the present application can include any of the method embodiments described below as well as any non-conflicting combinations of the method embodiments described below.
Referring to fig. 1, fig. 1 is a schematic flowchart illustrating an embodiment of cross-link data sharing according to the present application, the method includes:
step S110: and receiving the first shared transaction information sent by the source blockchain by a main blockchain node in the cross-chain platform.
It is to be understood that the cross-chain platform may be a federation chain, which includes a main blockchain node and other blockchain nodes, and the first shared transaction information sent by the source blockchain includes a first identifier of the target blockchain and target shared data, where the first identifier may be an ID of the target blockchain and is intended to share the target shared data with the target blockchain.
Step S120: the first shared transaction information is verified in the trusted execution environment.
Each blockchain node of the cross-chain platform is deployed with a TEE (Trusted Execution Environment), which is a Secure operating Environment completely isolated from the outside in the CPU, and can ensure the security and integrity of code and data running in the Trusted Execution Environment, specifically, commonly used TEE technologies include Intel SGX (software guard extensions), ARM Trustzone, and AMD SEV (Secure Encrypted Virtualization).
In the process of cross-chain sharing of the cross-chain platform, relevant processing steps are all performed in a trusted execution environment, so that cross-chain information and relevant operations cannot be leaked.
And verifying the first shared transaction information by all block chain link points in a preset range of the cross-chain platform, and determining whether the first shared transaction information is legal or tampered, wherein the main block chain nodes are located in the preset range.
Step S130: and after all the block chain nodes in the preset range in the cross-chain platform pass the verification, packaging the second identifier, the first identifier and the target shared data of the source block chain into second shared transaction information.
The second shared transaction information is used for the target blockchain to acquire the target shared data, and meanwhile, the target blockchain can determine that the source of the target shared data is the source blockchain based on the second identifier.
Step S140: and sending the second shared transaction information to the target block chain.
After the cross-chain platform sends the second shared transaction information to the target block chain, all nodes of the target block chain can acquire the second shared transaction information, so that target shared data is acquired.
In the scheme, the first shared transaction information sent by the source block chain is received through the hurdle technology platform with the trusted execution environment, the first shared transaction information is verified, then the second shared transaction information is generated and sent to the target block chain, so that the target block chain can obtain target shared data from the second shared transaction information, and through the mode, the data can be shared between the two block chains.
Referring to fig. 2, fig. 2 is a schematic flowchart illustrating another embodiment of cross-link data sharing according to the present application, wherein the method includes:
step S210: and receiving the first shared transaction information sent by the source blockchain by a main blockchain node in the cross-chain platform.
It should be noted that, user contracts and cross-chain monitoring contracts are deployed in the source block chain and the target block chain, the working process of the intelligent contract is that all block chain nodes can judge whether the current state meets the triggering condition of the intelligent contract, if yes, the intelligent contract is triggered to be executed, and after the intelligent contract is executed, all block chain nodes can jointly identify the chain link according to the execution result, so that the intelligent contract is realized.
A certain node in the source area block chain generates first shared transaction information based on user needs, the first shared transaction information is linked and stored, a user contract of the source area block chain determines a first identifier in the first shared transaction information, a cross-chain monitoring contract of the source area block chain is called, the cross-chain monitoring contract carries out signature and encryption on the first shared transaction information, and then the signed and encrypted first shared transaction information is sent to a main block chain node of a cross-chain platform.
The signing and encrypting of the first shared transaction information by the cross-chain monitoring contract may specifically be that the first shared transaction information is signed by a private key generated by the source block chain node common negotiation, and then the signed first shared transaction information is encrypted by public keys corresponding to trusted execution environments of all the source block chain nodes of the cross-chain platform.
It is understood that the inter-link platform includes a plurality of blockchain nodes, and before step S210 is executed, all blockchain nodes of the inter-link platform compete to generate a master blockchain node according to a preset rule, where the preset rule may be an accounting power in PoW (Proof of work), a monetary age in PoS (Proof of stock), and the like, and is not limited in this respect.
In some embodiments, the first identifier includes an identifier of a plurality of blockchains, i.e. the target shared data needs to be shared to the plurality of blockchains. In this case, the inter-chain platform may define multiple ranges as preset ranges based on all the blockchain nodes, where each preset range includes one main blockchain node, and each preset range is used for sharing data to one target blockchain.
Specifically, before determining the number of target block chains needing data sharing based on the number of the first identifiers, the cross-chain platform only has one main block chain node, the main block chain node can judge and obtain the number of the target block chains after receiving the first sharing transaction information, if the number of the target block chains is greater than one, all nodes of the cross-chain platform compete for the main block chain node again, and the determined number of the main block chain nodes is the same as the number of the target block chains. If the preset rules according to which the two contentions are performed are consistent, the re-determined master blockchain node comprises the original master blockchain node. After the master blockchain nodes are re-determined, a plurality of ranges consistent with the target blockchain number are defined as preset ranges based on all the blockchain nodes, each preset range comprises one master blockchain node and is used for sharing data to one target blockchain, and the number of the nodes in each preset range can be different.
By the mode, the cross-chain platform can share data to the target block chains at the same time without sharing one by one, and the cross-chain data sharing efficiency is improved. It should be noted that, because the number of nodes of the inter-link platform is limited, the target block chain capable of performing data sharing simultaneously has a certain upper limit, and the upper limit can be increased by increasing the number of nodes of the inter-link platform.
Step S220: the first shared transaction information is verified in the trusted execution environment.
Referring to fig. 2 and 3, fig. 3 is a schematic flowchart illustrating another embodiment of step S220 of the present application, wherein the step S220 includes:
step S321: and the main block chain node decrypts the first shared transaction information in the trusted execution environment and verifies the decrypted first shared transaction information.
The first shared transaction information received by the main blockchain node is signed and encrypted, decryption and signature verification are needed after the first shared transaction information is received, specifically, the main blockchain node decrypts the signature in the trusted execution environment by using private keys corresponding to all the blockchain link-node trusted execution environments of the cross-chain platform, and then the signature is verified on the first shared transaction information by using a public key generated by the common negotiation of the source blockchain nodes. Besides decrypting and verifying the signature, the master blockchain node also verifies the content of the first shared transaction information, and is used for determining whether the first shared transaction information is legal or tampered.
Step S322: and the master block chain node sends the decrypted and verified first shared transaction information to other block chain nodes within a preset range, so that the other block chain nodes verify the first shared transaction information in the trusted execution environment.
After the decryption, signature verification and content verification are completed, the main block node sends the first shared transaction information after the decryption and signature verification to other block chain nodes within a preset range, and after the other block chain nodes receive the first shared transaction information after the decryption and signature verification, the other block chain nodes verify the first shared transaction information and determine whether the first shared transaction information is legal or tampered.
Step S230: and after all the block chain nodes in the preset range in the cross-chain platform pass the verification, packaging the second identifier, the first identifier and the target shared data of the source block chain into second shared transaction information.
It is understood that the execution subject of the step of packaging the second identifier, the first identifier and the target shared data of the source blockchain into the second shared transaction information may be all blockchain nodes within a preset range or may be a main blockchain node of the cross-chain platform.
In some embodiments, because the data formats of the target block chain and the source block chain are different, before the second shared transaction information is generated by packaging, all the block link points or the main block chain nodes of the inter-chain platform perform format conversion on the target shared data in the first shared information, so that the target shared data conforms to the data format of the target block chain, and then step S230 is performed.
Step S240: and sending the second shared transaction information to the target block chain.
It will be appreciated that the cross-chain platform will also sign and encrypt the second shared transaction information before sending it to the target blockchain.
Specifically, all block chain nodes of the cross-chain platform respectively utilize private keys generated by respective devices or private keys corresponding to trusted execution environments of all block chain nodes to sign the second shared transaction information, then a public key generated by common negotiation of the target block chain nodes is utilized to encrypt, and the signed and encrypted second shared transaction information is sent to a cross-chain monitoring contract of the target block chain. It should be noted that, here, the signed and encrypted second shared transaction information is sent to the cross-chain monitoring contract of the target block chain, and may be that the signed and encrypted second shared transaction information is sent to a certain node of the target block chain, so as to trigger the cross-chain monitoring contract on the chain. And the target block chain judges whether second shared transaction information which is sent by a certain proportion of block chain nodes in a preset range and has consistent contents after decryption and signature verification is successful is received or not by using a cross-chain monitoring contract, if so, a user contract is called to send the second shared transaction information to all nodes of the target block chain, wherein the certain proportion can be a fixed proportion set by a user, for example, two thirds.
Alternatively, step S240 may also be implemented by signing and encrypting the second shared transaction information by the cross-link platform master blockchain node, and sending the signed and encrypted second shared transaction information to all nodes of the target blockchain. All nodes of the target block chain decrypt and verify the signature with the encrypted second shared transaction information, and each node judges whether the second shared transaction information received by other nodes is consistent with the second shared transaction information received by the node, and if a certain proportion of the target block chain nodes receive the second shared transaction information with consistent content, the second shared transaction information is determined to be received, wherein the certain proportion can be a fixed proportion set by a user, such as three-quarters.
And then any node of the target block chain can obtain the target shared data from the second shared transaction information. In some embodiments, in order to reduce the pressure on storage on the blockchain, the target shared data in the first shared transaction information and the second shared transaction information is actually a hash value corresponding to the plaintext of the data to be shared, and the plaintext of the data to be shared may be correspondingly stored in the cloud server. Any node of the target block chain can obtain the data plaintext to be shared by searching the hash value.
In some embodiments, the plaintext of the data to be shared is power data, and the target shared data is a hash value of the power data, wherein the power data includes at least one of power generation data of the renewable energy power generation enterprise, power transmission data, power distribution data, power transaction data between the electricity consumer and the renewable energy power generation enterprise, power consumption data of the electricity consumer, and power transaction settlement data of the electricity consumer. The electricity usage data may be used to determine whether the electricity consumer is using green electricity.
After receiving the second shared transaction information, the node of the target block chain may send a reception success information to a user contract of the target block chain, where the reception success information is used to prove that the node successfully receives the second shared transaction information, and after receiving the reception success information sent by a certain proportion of nodes, the user of the target block chain may send a shared receipt to a main block chain node of the cross-chain platform, where the shared receipt is used to prove that the cross-chain data is successfully shared, where the certain proportion may be a fixed proportion set by the user, for example, two thirds or three quarters, and the like. If the user contract of the target block chain cannot receive the successful receiving information sent by a certain proportion of nodes, the cross-chain data sharing is not successful, and the sharing receipt is not sent to the cross-chain platform.
Step S250: and the main block chain node receives the shared receipt sent by the target block chain and identifies the shared receipt.
After receiving the shared receipt, the main block node chain node of the cross-chain platform sends the shared receipt to other nodes of the cross-chain platform so as to perform consensus on the shared receipt.
Step S260: the shared receipt is forwarded to a blockchain node of the source blockchain.
Specifically, after the shared receipt is identified, the cross-chain platform sends the shared receipt to any node of the source block chain, so as to trigger a cross-chain monitoring contract of the source block chain, and the cross-chain monitoring contract calls a user contract to send the shared receipt to all nodes of the source block chain, so that all nodes of the source block chain can determine that the cross-chain data sharing is successful.
In the scheme, the cross-column technology platform with the trusted execution environment is used for receiving the first shared transaction information sent by the source block chain, verifying the first shared transaction information, generating the second shared transaction information and sending the second shared transaction information to the target block chain, so that the target block chain can obtain target shared data from the second shared transaction information, the cross-chain platform and the source block chain can both receive the shared receipt and determine that cross-chain data sharing is successful.
In another embodiment, the target shared data may include power data, green power credentials, and the like, and the source blockchain may perform steps related to green power validation to obtain the power data and the green power credentials, the steps related to green power validation specifically including:
in this embodiment, the main body involved in the green electricity transaction process may include a renewable energy power generation enterprise, a power grid company, a power consumer, and a government department, where the renewable energy power generation enterprise is an enterprise that generates power by using renewable energy, the power generated by power generation is green electricity, the power grid company is a company responsible for power transaction and scheduling, the power consumer is a main body that purchases and uses power, and the government is responsible for supervising whether the green electricity service is real and legal. Each main body involved in the green electricity transaction process has at least one device added into a block chain as a block chain node. Specifically, servers corresponding to government departments, each renewable energy power generation enterprise and each power consumer are respectively used as a block chain node, servers corresponding to a power trading center, a data center, a power dispatching System and a GIS (Geographic Information System) of a power grid company are respectively used as a block chain node, all the block chain nodes form a green power alliance chain, and all the block chain nodes are used as consensus nodes to participate in consensus work.
The source-destination chain in this embodiment may be a green power federation chain, where multiple intelligent contracts may be deployed, and the working process of an intelligent contract is that all block chain nodes may determine whether the current state meets the triggering condition of the intelligent contract, if so, the intelligent contract is triggered to be executed, and after the intelligent contract is executed, all block chain nodes will jointly identify the uplink with the execution result, thereby implementing the intelligent contract.
In an embodiment, green power confirmation is realized in an intelligent contract mode, and the green power confirmation is used for judging the power condition used by a target power consumer within a certain time, so that the triggering condition of the green power confirmation intelligent contract comprises every preset time, and after two preset conditions of power data and every preset time are met, the green power confirmation intelligent contract is triggered to perform green power confirmation.
The method comprises the following steps: target power data of a target power consumer is acquired.
The target power data includes green electricity condition data about renewable energy sources and electricity consumption data of target electricity consumption users, and the target users may include a plurality of users, for example, all users in a certain area.
It can be understood that some systems and power trading centers of the power grid company store power data, including some data that need to be stored in uplink, that is, raw power data, where the raw power data includes green electricity condition data of renewable energy sources and power data of target power consumers, that is, the raw power data includes target power data. The block link point corresponding to the system may acquire raw power data from the system after the raw power data is generated, and the acquisition of the raw power data is based on the generation of the power data in the system, and the corresponding node may acquire the raw power data as long as the raw power data is generated in the system. For example, the block link points corresponding to the power dispatching system can obtain data such as real-time output, generated energy data, and internet power data of the renewable energy power generation enterprise. After the plurality of block chain nodes corresponding to the system acquire original electric power data, the nodes can acquire target electric power data of a target power consumer from the original electric power data, and the step of acquiring the target electric power data can be carried out in a transaction mode, so that all the block chain nodes judge that the triggering condition of the green power confirmation intelligent contract is met currently, and the green power confirmation intelligent contract can be triggered.
In the step of green power confirmation in this embodiment, in a primary confirmation process, only data in a certain time period is needed, and the time period is a target time period, so that the target power data is actually corresponding data in the target time period. In a specific application scenario, a time period in which whether to use green power is to be confirmed may be used as the target time period. It should be noted that the target time period may correspond to a predetermined time in the trigger condition of the green power confirmation smart contract.
Step two: and obtaining the green electricity quantity on the internet and the planned trading green electricity quantity of the renewable energy power generation enterprise in the target time period and the predicted green electricity usage quantity of the target electricity user in the target time period by using the green electricity condition data, and obtaining the trading settlement electricity quantity and the electricity meter data of the target electricity user in the target time period by using the electricity data.
The green electricity condition data comprises the green electricity on the internet and the green electricity planned for trading of the renewable energy power generation enterprises in the target time period, wherein the green electricity on the internet, the renewable energy power generation enterprises at the position can be understood as enterprises only adopting renewable energy power generation, and the generated electricity is green electricity, so the green electricity on the internet can also be understood as the electricity on the internet, namely the electricity transmitted to the power grid company by the enterprises. Because the power grid company takes charge of the responsibility of transmitting and distributing the power generated by the enterprise to the power utilization users, the green power on the network of the renewable energy power generation enterprise can reflect the power generation condition of the enterprise. The method is characterized in that the green electricity quantity planned to trade is the green electricity quantity planned to trade in the electricity trading process of the renewable energy power generation enterprise, and the green electricity quantity planned to trade is already achieved, so the green electricity quantity planned to trade refers to the green electricity quantity planned to trade in the green electricity trading process of the renewable energy power generation enterprise and a target user.
The electricity consumption data comprises transaction settlement electric quantity of a target electricity consumption user in a target time period and electric meter data, wherein the transaction settlement electric quantity refers to the electric quantity according to which the electricity consumption user performs electricity fee settlement after using electric power.
Step three: and judging whether the planned transaction green electric quantity, the predicted green electric quantity usage, the online green electric quantity, the transaction settlement electric quantity and the electric meter data meet a first preset condition.
The method comprises a step three corresponding to executing a green power confirmation intelligent contract, wherein the step three is used for determining whether the electric power used by a target power utilization user in a target time period is green power, the content of the green power confirmation intelligent contract comprises a first preset condition, and if the first preset condition is met, the electric power used by the target power utilization user in the target time period can be considered to be green power.
If so, executing the step four, otherwise, determining that the electric power used by the target electricity user in the target time period is not all green electricity.
After the green power confirms that the intelligent contract is executed, the power used by the target power utilization user in the target time period is the green power according to the execution result, and the execution result can be stored in a chain mode. In some embodiments, all of the block nodes may uplink the execution results with the target power data.
Step four: and determining that all the electric power used by the target electricity consumer in the target time period is green electricity.
In the scheme, by acquiring the target power data of the target power consumption user, the planned trade green power amount and the on-grid green power amount of the renewable energy power generation enterprise in the target time period and the predicted green power usage amount, the trade settlement amount and the electric meter data of the target power consumption user can be determined from the target power data, so that whether the data meet the first preset condition of green power confirmation or not is determined, if yes, the target power consumption user can be determined to use pure green power in the target time period, the green power usage condition of the target user can be truly and accurately determined through the method, the target power data are stored in a block chain, the target power data can be guaranteed to be authentic and free, the target power data cannot be falsified, and the reliability of green power confirmation is improved.
In yet another embodiment, the step involving green power confirmation comprises:
the method comprises the following steps: and calculating a third hash value of the first preset condition, and if the third hash value is consistent with fourth hash values calculated by other block chain nodes on the first preset condition, storing the first preset condition into the block chain.
It can be understood that before the green power confirmation is performed by using the green power confirmation intelligent contract, a green power confirmation intelligent contract consensus needs to be formed in the block chain, a block chain node sends the content of the green power confirmation intelligent contract negotiated and determined by a user to other block chain nodes, each block chain node performs hash calculation on the content of the green power confirmation intelligent contract to obtain a hash value, and sends the hash value obtained by self calculation to other nodes for confirmation, meanwhile, the received hash values calculated by other nodes are compared with the hash value calculated by the node, if the hash values obtained by each node are consistent, and if the contents of the intelligent contracts received by the nodes are consistent, storing the contents of the green power confirmation intelligent contracts into the block chain in a clear text mode, thereby completing the consensus of the green power confirmation intelligent contracts. And then executing the green power confirmation intelligent contract after the triggering condition of the green power confirmation intelligent contract is met. Specifically, the content of the green power confirmation smart contract in the present embodiment includes the first preset condition.
The first step is that the green power confirmation intelligent contract is subjected to consensus confirmation before the green power confirmation intelligent contract is executed.
Step two: target power data of a target power consumer is acquired.
The target power data comprises green electricity condition data about renewable energy sources and electricity utilization data of target electricity utilization users, and the green electricity condition data comprises electricity generation data of renewable energy power generation enterprises and green electricity transaction data between the target electricity utilization users and the renewable energy power generation enterprises.
Step three: the method comprises the steps of obtaining the green electricity quantity of the renewable energy power generation enterprise on the internet in a target time period by utilizing power generation data, obtaining planned trading green electricity quantity and predicted green electricity usage quantity by utilizing green electricity trading data, and obtaining trading settlement electricity quantity and electricity meter data of a target electricity user in the target time period by utilizing electricity utilization data.
Step four: and judging whether the planned transaction green electric quantity, the predicted green electric quantity usage, the online green electric quantity, the transaction settlement electric quantity and the electric meter data meet a first preset condition.
And if so, executing a fifth step, and if not, determining that the electric power used by the target electricity user in the target time period is not all green electricity.
Step five: and determining that all the electric power used by the target electricity consumer in the target time period is green electricity.
Step six: after the electric power used by the target electricity utilization user in the target time period is determined to be green electricity, a green electricity voucher is generated for the target electricity utilization user, and the green electricity voucher is stored in the block chain.
The green electricity voucher can also be called as a green electricity use voucher, and the green electricity voucher can be in a picture form and is used for proving that the electricity user uses pure green electricity. After the electric power used by the target electricity utilization user in the target time period is determined to be green electricity, the certificate can be triggered to generate an intelligent contract, a green electricity certificate is generated for the electricity utilization user according to the transaction settlement electric quantity of the electricity utilization user, then the execution result, namely the green electricity certificate is stored in a chain, and specifically, the corresponding green electricity certificate is generated for the electricity utilization user according to the standard that one green electricity certificate corresponds to every green electricity which is settled by 1 MWh.
It should be noted that the original power data to be linked is data including the whole process from generation to consumption of green electricity, for example, power generation data, power transmission data, power distribution data, power transaction data between a power consumer and a renewable energy power generation enterprise, power consumption data of the power consumer, or power transaction settlement data of the power consumer. The generation process of the green power can be determined according to the power generation data in the original power data, the process of transmitting and distributing the green power to power consumers after the green power is generated can be determined from the power transmission data and the power distribution data, the transaction process of the green power can be determined from the power transaction data, and the use and settlement process of the green power can be determined from the power consumption data and the power transaction settlement data. The whole process from generation to consumption of the green power can be tracked by using the original power data, and the electricity utilization user can be determined to use the green power based on mutual verification of the original power data.
The original power data can be divided into two parts, one part is target power data, and the other part is power traceability data, wherein the target power data can also be used in a green power confirmation intelligent contract for determining whether a target user uses one hundred percent pure green power, and the power traceability data is only used for tracking the whole process from generation to consumption of the green power.
The raw power data (target power data and power source tracing data) may be obtained by acquiring, by a corresponding node, power data stored in a system from each system of a power trading center and a power grid company, performing preset processing, such as screening and cleaning, and using the processed power data as the raw power data.
The two original power data chaining storage processes are different, after the power traceability data are generated, the corresponding nodes can acquire the power traceability data, the power traceability data comprise power transmission data, power distribution data and power transaction settlement data of power users, and the power traceability data are directly chained for storage. For the target power data, after the target power data is acquired, the green power confirmation intelligent contract is triggered, and after the green power confirmation intelligent contract is executed, the target power data is uplink-stored, that is, after the fifth step, the target power data and the execution result of the green power confirmation intelligent contract can be uplink-stored together.
For the original power data, the uplink saving may be performed by performing a hash calculation on the original power data to obtain a first hash value, and saving the original power data and/or the first hash value into the blockchain. The original power data may be divided into structured data and unstructured data, the storing of the original power data may be performed by separately processing the structured data and the unstructured data, storing a plaintext of the structured data in the original power data into a blockchain, performing hash calculation on the unstructured data in the original power data to obtain a first hash value, and storing the first hash value into the blockchain. By the method, the original power data can be stored in the block chain to prevent the original power data from being tampered, and meanwhile, the storage pressure on the chain can be relieved by only adopting the Hash chain for the unstructured data.
The processes of acquiring the original electric power data by the electric power trading center and the nodes corresponding to each system of the power grid company are mutually independent, and the acquiring step is executed after the original electric power data are generated. The original power data are stored in the uplink mode, so that the power data cannot be tampered, and authenticity and safety of the power data can be guaranteed.
In the scheme, the target power data of the target electricity consumption user is obtained from the power grid company and the power trading center, the planned trading green electricity quantity and the on-grid green electricity quantity of the renewable energy power generation enterprise in the target time period and the predicted green electricity usage quantity, the trading settlement quantity and the electricity meter data of the target electricity consumption user can be determined from the target power data, therefore, according to whether the data meet the first preset condition of green electricity confirmation or not, if yes, the target electricity utilization user can be determined to use pure green electricity in the target time period, green electricity certificates are issued to the electricity utilization user using the pure green electricity, the green electricity use condition of the target user can be really and accurately determined by the method, and the original electricity data is stored in the block chain, the method can ensure that the original power data is true and error-free and cannot be tampered, improves the trueness and the credibility of green electricity confirmation, and ensures the trueness and the credibility of the green electricity certificate.
Step six may comprise the following sub-steps:
the first substep: and acquiring a first comparison relation between the planned transaction green electricity quantity and the predicted green electricity consumption, a second comparison relation between the online green electricity quantity and the transaction settlement electricity quantity, and a third comparison relation between the transaction settlement electricity quantity and the electricity meter data.
It should be noted that a plurality of renewable energy power generation enterprises may be included in the block chain, including all renewable energy power generation enterprises that supply power to the target electricity consumer, and after the target electricity consumer is determined, the node corresponding to the electricity transaction center may obtain a list of the renewable energy power generation enterprises according to the analysis of the electricity transaction certificate of the target electricity consumer, so as to obtain relevant data of the renewable energy power generation enterprises to be stored as the original electricity data uplink.
Specifically, a first electric quantity sum of planned trading green electric quantity of all renewable energy power generation enterprises and a second electric quantity sum of predicted green electric quantity usage of all target users are obtained, a first comparison relation between the first electric quantity sum and the second electric quantity sum is obtained, a third electric quantity sum of online green electric quantity of all renewable energy power generation enterprises and a fourth electric quantity sum of trading settlement electric quantity of all target users are obtained, and a second comparison relation between the third electric quantity sum and the fourth electric quantity sum is obtained; and obtaining electricity utilization record data of each electricity meter related to the target electricity utilization user in the target time period based on the electricity meter data, and obtaining a third comparison relation between the sum of the user record data of all the electricity meters related to the target electricity utilization user and the sum of the fourth electric quantity. And the electricity utilization record data of each electricity meter related to the target electricity utilization user in the target time period is the electricity meter reading of each electricity meter related to the target electricity utilization user at the beginning and the end of the target time period.
For example, the block chain includes n renewable energy power generation enterprises, m target power users, and o electric energy meters, which may also be referred to as electric meters for short, in total for all the target power users. Acquiring planned transaction green electric quantity a of all renewable energy power generation enterprisesi(wherein i represents the ith renewable energy power generation enterprise, i is more than or equal to 1 and less than or equal to n) and
Figure BDA0003372431720000121
predicted green electricity usage b for all target usersj(where j represents the jth target electricity user, j is more than or equal to 1 and less than or equal to m) and
Figure BDA0003372431720000122
and a first amount of electricity and
Figure BDA0003372431720000123
and a second amount of electricity and
Figure BDA0003372431720000124
the comparison relationship between them. Acquiring green electric quantity c of all renewable energy power generation enterprisesiA third amount of electricity and
Figure BDA0003372431720000125
transaction settlement electric quantity d of all target electricity usersjA fourth amount of power and
Figure BDA0003372431720000126
and a third quantity of electricity and
Figure BDA0003372431720000127
and a fourth quantity of electricity and
Figure BDA0003372431720000128
a second comparison relationship therebetween. It should be noted that the electric energy meter used by the electricity consumer has a comprehensive multiplying power fkThe actual electricity consumption of the electricity user is the product of the reading of the electric energy meter and the comprehensive multiplying power, and the reading of the electric energy meter of each electric energy meter of the target electricity user at the beginning of the target time period is obtained
Figure BDA0003372431720000129
Point energy meter reading at the end of target time period
Figure BDA00033724317200001210
(wherein k represents the kth electric energy meter, and k is more than or equal to 1 and less than or equal to o), so that the sum of the user record data of all the electric meters related to the target electricity user can be obtained
Figure BDA00033724317200001211
And a fourth quantity of electricity and
Figure BDA00033724317200001212
a third comparison relationship therebetween.
And a second substep: and judging whether the first comparison relationship, the second comparison relationship and the third comparison relationship meet a first preset condition.
The first preset condition includes that the first comparison relationship is that the first electric quantity sum is not less than the second electric quantity sum, the second comparison relationship is that the third electric quantity sum is greater than the fourth electric quantity sum, and the third comparison relationship is that the sum of the user record data is equal to the fourth electric quantity sum.
In one embodiment, the first predetermined condition includes that the first comparison relationship is
Figure BDA00033724317200001213
The second comparison relationship is
Figure BDA00033724317200001214
The third comparison relationship is
Figure BDA00033724317200001215
In yet another embodiment, the step involving green power confirmation further comprises:
the method comprises the following steps: and obtaining the historical electricity consumption in the green electricity using time from the electricity consumption data of the target electricity user.
It is understood that the steps one to three may also be implemented in the form of an intelligent contract, and the electricity purchasing process of the electricity consumer is that the electricity consumer estimates the electricity consumption in a period of time to obtain the predicted green electricity usage, for example, the electricity consumption in the next year is estimated monthly, so as to subscribe an electricity purchasing contract with the renewable energy power generation enterprise according to the predicted green electricity usage, or the electricity consumer is proxied by the power grid company to subscribe an electricity purchasing contract with the renewable energy power generation enterprise. The period of power consumption prediction of a user or the period corresponding to green electricity purchase is the green electricity usage time, after the power data link is stored, all nodes can acquire the green electricity usage time and the predicted green electricity usage from the green electricity transaction information of a target electricity user and acquire historical power consumption from the electricity consumption data of the target electricity user, wherein the green electricity usage time is a period of time from a starting date to an ending date, and the historical power consumption refers to the sum of all the power consumption used by the electricity user from the starting date to a current date.
Step two: and judging whether the historical electricity consumption reaches a preset ratio of the predicted green electricity usage and whether the current ending date of the distance from the green electricity usage time is greater than the preset time.
In some cases, the power consumption user may experience a sudden power consumption increase due to an unpredictable situation, at this time, the power consumption actually consumed by the power consumption user may exceed the predicted green power usage amount, and if the power consumption actually consumed by the power consumption user exceeds the predicted green power usage amount, because the power consumption user purchases green power based on the predicted green power usage amount, it is not always necessary whether the part of the power actually used by the power consumption user exceeds the predicted green power usage amount is still pure green power, so that in order to ensure that the power used by the power consumption user is pure green power, when the power consumption sudden increase occurs, the power consumption user needs to be reminded to make a new green power purchase contract before the consumed power exceeds the predicted green power usage amount, so that the power used by the power consumption user can be guaranteed to be pure green power.
For example, the user signs an electricity purchase contract according to the predicted green electricity usage of the next year, the green electricity usage time is one year, the start date and the end date of the green electricity usage time can be determined according to the electricity purchase contract, the historical electricity usage is the sum of all electricity used from the start date to the current date, whether the historical electricity usage reaches eighty-five percent of the predicted green electricity usage is judged, and whether the current date is more than one month away from the end date of the green electricity usage time is judged.
And if yes, executing the step three, and if one is not yes, not prompting the target power utilization user and the renewable energy power generation enterprise to sign a power supply selling contract again.
Step three: and prompting the target electricity utilization user and the renewable energy power generation enterprise to sign up for buying and selling electricity.
If the current end date of the green electricity use time is longer than the preset time and the historical electricity consumption at the time reaches the preset occupation ratio of the predicted green electricity use amount, the situation that the electricity consumption is increased suddenly is shown, and the fact that the actual electricity consumption possibly exceeds the predicted green electricity use amount in the green electricity use time is possibly caused, the target electricity consumption user is prompted to sign an electricity selling contract again.
In the scheme, under the condition that the power consumption is increased rapidly by judging the power consumption user, the power consumption user is warned to sign a green electricity contract before the purchased green electricity of the power consumption user is about to be used up, and the condition that the environment-friendly task using pure green electricity fails to be fulfilled due to the fact that the power consumption user uses non-green electricity doped with the power is avoided.
In another embodiment, the following steps may be implemented by means of an intelligent contract, or may be performed by any blockchain node device alone, and the step involving green power confirmation may further include:
the method comprises the following steps: and after the second preset condition is met, acquiring the power data to be verified, and calculating a second hash value of the power data to be verified.
The second preset condition includes a third preset time and/or user operation, where the user is different from the electricity user and may be any user of the blockchain node, for example, the third preset time may be three days, and then the second preset condition is three days and/or user operation. And if the data are verified in the intelligent contract mode, the second preset condition is the trigger condition of the intelligent contract.
The power data to be verified is obtained from a power transaction center and/or a corresponding service system of a power grid company, and the power data to be verified and the original power data are in a corresponding relationship, specifically, for example, the original power data includes power consumption data of a target power consumption user in a certain time period, which is from the power consumption information acquisition system, and the power data to be verified corresponding to the power consumption data is power consumption data of the target power consumption user in the time period, which is obtained again from the power consumption information acquisition system.
Step two: raw power data and/or a first hash value corresponding to power data to be verified are read from a blockchain.
It is understood that after the original power data and the corresponding first hash value are linked up at the corresponding block node, any block node can obtain the original power data and the corresponding first hash value.
Step three: and verifying whether the power data to be verified is tampered or not based on a comparison result between the read first hash value and the second hash value and/or a comparison result between the original power data and the power data to be verified.
If the comparison result is that the first hash value is consistent with the second hash value, the original power data stored in the uplink can be determined to be consistent with the power data to be verified; if the comparison result is that the first hash value is inconsistent with the second hash value, it can be determined that the original power data stored in the uplink is inconsistent with the power data to be verified.
If the comparison result between the original power data and the power data to be verified is that the original power data and the power data to be verified are consistent, the original power data stored in the uplink can be determined to be consistent with the power data in the power transaction center and/or the service system, and if the comparison result is that the original power data stored in the uplink is inconsistent with the power data in the power transaction center and/or the service system, the original power data stored in the uplink can be determined to be inconsistent with the power data in the power transaction center and/or the service system.
It is understood that a node may chain store the comparison so that other nodes may view the comparison.
Step four: and responding to the selection of the power data by the user, and displaying a historical tampering verification result corresponding to the selected power data.
It is understood that the steps one-four may be performed multiple times, each time a comparison result is saved, and the historical tampering validation result includes all the comparison results.
In the scheme, corresponding power data are obtained from the power transaction center and/or the power grid company system again periodically or in response to user operation, and are compared with power data stored on the chain for green electricity confirmation, so that the consistency between the power data and the power data can be confirmed, the power data for green electricity confirmation is determined to be originated from the power data in the power transaction center and/or the power grid company system, meanwhile, the power data in the power transaction center and/or the power grid company system can be determined not to be tampered, the trueness and the credibility of green electricity certificates are improved, and the safety of the power data in the power transaction center and/or the power grid company system is ensured.
In some embodiments, the step involving green power confirmation may further comprise: after original electric power data cochain storage, and after confirming that the electric power that target power consumption user used is pure green electricity, can trigger environmental protection evaluation intelligence contract, wherein, environmental protection evaluation intelligence contract can be used for utilizing target power consumption user's power consumption data, calculate target power consumption user's environmental protection benefit evaluation index, wherein, environmental protection benefit evaluation index is used for weighing the environmental protection benefit that target power consumption user brought owing to using green electricity, environmental protection benefit evaluation index includes green electricity carbon dioxide volume of reducing, practice thrift the standard coal volume, sulfur dioxide volume of reducing, nitrogen oxide volume of reducing etc.. The front-end interface of the node server corresponding to the target electricity utilization user can display the environmental protection benefit evaluation index for the target electricity utilization user to check, so that the self environmental protection benefit can be known.
In some embodiments, the step involving green power confirmation may further comprise: the visualization display module can display the power data in a classified manner according to the areas of the electricity users or the electricity users, and specifically, can display the power data in a visualized manner by using a digital twin three-dimensional rendering engine, for example, a map is used for assisting the display of the power data, the power data are displayed in a classified manner according to a national map level, a plurality of regional map levels and a user level, information such as node distribution conditions, national green electricity internet surfing and consumption conditions is displayed on a national map level page, information such as renewable energy power generation enterprises, power transmission lines, power stations, power transmission and power consumption conditions in each region is displayed on a regional map level page, and information such as electricity consumption and green electricity consumption conditions of the electricity users is displayed on a user level page. In some embodiments, the power data can also be visually displayed by means of model, animation and video fusion with the power data. In some embodiments, the power data may be classified and displayed as a data link, a green electricity transaction, a green electricity transmission, a green electricity consumption, a green electricity confirmation, an environmental benefit, and the like, so that the power data may be visually displayed to the node user in various ways. It should be noted that, in the present application, a system including the above block chain architecture, which is executed by any device, includes a visualization display module, so that any device can visually display power data.
After the green electricity is confirmed, the green electricity voucher is stored in the source block chain, the node with the green electricity voucher can transfer the green electricity voucher to realize the transaction of the green electricity voucher, and the steps related to the transaction of the green electricity voucher specifically comprise:
the method comprises the following steps: and after the preset block chain node issues the first transaction requirement at the first user node and issues the second transaction requirement at the second user node, determining that the first transaction requirement is matched with the second transaction requirement.
The preset block link point referred in the application may be a voucher transaction platform or a first user node. It is understood that the green electricity voucher may also be referred to as a green electricity use voucher, the green electricity voucher may be in the form of a picture, and the green electricity use voucher may be stored in a block chain and has a unique home party, which may be used to prove that the home party uses a certain amount of green electricity, for example, one green electricity voucher may be used to prove that the home party uses 1MWh of green electricity. Under the advocation of green environmental protection, some users have the responsibility of absorbing the green electricity with the preset quantity, so the green electricity voucher can be used for proving that the users use a certain quantity of green electricity, and whether the users complete the responsibility of absorbing the green electricity can be judged according to the quantity of the green electricity voucher. At this time, there may be some users who have completed the green electricity consumption responsibility in excess, and then have redundant green electricity vouchers, and some users who have failed to fulfill the green electricity consumption responsibility in full amount need to complement the green electricity vouchers to prove that they have completed the green electricity consumption responsibility. The user who completes the green electricity consumption responsibility in excess can sell the redundant green electricity voucher to the user who fails to fulfill the green electricity consumption responsibility in full, and the transaction of the green electricity voucher corresponds to the conversion of the attribution party of the green electricity voucher.
One of the first user node and the second user node has a requirement for selling the green electric certificate, and the other has a requirement for purchasing the green electric certificate, so that the transaction requirement comprises two types, one type is the selling requirement of the green electric certificate, and the other type is the purchasing requirement of the green electric certificate. The content of the transaction demand may include at least one of a projected voucher transaction amount and a projected transaction price. The condition that the two transaction demands are matched comprises that the two demands are different types of transaction demands, namely one is a purchase demand of the green electric certificate, and the other is a sale demand of the green electric certificate. Therefore, one of the first transaction requirement and the second transaction requirement is the purchase requirement of the green electricity voucher, and the other one is the sale requirement of the green electricity voucher.
After the preset blockchain node determines that the first transaction requirement and the second transaction requirement match, the first user node and the second user node sign a transaction contract (also referred to as a credential transfer contract) of the green electricity credential based on the first transaction requirement and the second transaction requirement.
Step two: after the first user node and the second user node complete the transaction contract of signing the green electric certificate based on the first transaction requirement and the second transaction requirement, the preset block chain link point stores the transaction contract of the green electric certificate into the block chain.
After the trade contract of the green electric certificate is stored in the chain, the green electric certificate and the attribution party stored in the block chain can be updated according to the trade contract of the green electric certificate. The trade contract cochain of the green electric certificate can ensure the authenticity and the safety of the green electric trade, thereby ensuring the authenticity and the safety of the transfer of the green electric certificate ownership.
In the scheme, the preset block chain node can match the user with the green electric certificate transaction requirement with other users with corresponding transaction requirements, and after both parties achieve the green electric certificate transaction and sign the transaction contract, the transaction contract is linked for storage.
In some embodiments, it should be noted that the transaction mode of the green certificate includes two types, one is that the transaction is performed on the certificate transaction platform for both transaction parties, and the other is that the transaction is performed on the blockchain for both transaction parties. In this embodiment, the two parties of the transaction conduct the transaction on the voucher transaction platform as an example. The steps involving the green electricity voucher transaction include:
the method comprises the following steps: after the first user node issues the first transaction requirement and the second user node issues the second transaction requirement, the preset block chain node determines that the first transaction requirement is matched with the second transaction requirement according to a preset priority matching strategy.
In this embodiment, the preset blockchain node is a credential transaction platform, and it can be understood that the credential transaction platform, the first user node, and the second user node are all in the same blockchain system, but the operations of the first step and the second step are not performed in the blockchain.
Before the first step, the first user node issues a first transaction requirement on the credential transaction platform and the second user node issues a second transaction requirement on the credential transaction platform, it is understood that the transaction requirement is determined by the user node based on the user requirement, and then the transaction requirement is sent to the credential transaction platform. And then the voucher transaction platform can periodically determine the received transaction requirements and match the purchase requirements with the transaction requirements according to a preset priority matching strategy.
The preset matching priority strategy comprises at least one of a plan transaction price priority matching strategy and a release time priority matching strategy. The plan transaction price priority matching strategy refers to that the purchase demand of the green electric certificate is matched with priority by the higher price person, and the sale demand of the green electric certificate is matched with priority by the lower price person. The release time priority matching strategy refers to that in the same type of transaction demands, if the prices are the same, the server receives the transaction demands with earlier time to perform matching preferentially.
Step two: the preset block chain node respectively sends transaction notifications to the first user node and the second user node, so that the first user node and the second user node sign the transaction contract of the green electricity certificate on the certificate transaction platform based on the transaction notifications.
And after determining that the first transaction requirement is matched with the second transaction requirement, the voucher transaction platform sends a transaction notification to the sender of the first transaction requirement and the second transaction requirement, namely the first user node and the second user node, wherein the transaction notification comprises the actual voucher transaction quantity.
In some embodiments, the number of planned voucher transactions in the first transaction request is inconsistent with the number of planned voucher transactions in the second transaction request, and the actual voucher transaction number is the lesser of the number of planned voucher transactions in the first transaction request and the second transaction request. And then, after the first user node or the second user node finishes the transaction, the transaction requirements of the first user node or the second user node are not met, the transaction requirements are updated according to the finished transaction, and the voucher transaction platform continues to perform matching based on the updated transaction requirements. Specifically, for example, if the first transaction requirement is to purchase 10 green electricity vouchers at the price of a, and the second transaction requirement is to sell 4 green electricity vouchers at the price of a, the transaction notification may be to trade 4 green electricity vouchers at the price of a, after the transaction is completed, the first transaction requirement of the first user node is not completely met, then the first transaction requirement is updated to purchase 6 green electricity vouchers at the price of a according to the agreed 4 green electricity vouchers at the price of a, and the voucher transaction platform matches the updated first transaction requirement with other transaction requirements.
Step three: after the first user node and the second user node complete the transaction contract of signing the green electric certificate based on the first transaction requirement and the second transaction requirement, the preset block chain link point stores the transaction contract of the green electric certificate into the block chain.
In the scheme, the certificate transaction platform can match the user with the green electric certificate transaction requirement with other users with corresponding transaction requirements, and after the two parties achieve the green electric certificate transaction and sign the transaction contract, the transaction contract is linked and stored.
In another embodiment, the transaction between two parties is performed on the blockchain. In this embodiment, the step involving a green voucher transaction comprises:
the method comprises the following steps: after the first user node issues the first transaction requirement and the second user node issues the second transaction requirement, the preset block chain node determines that the first transaction requirement is matched with the second transaction requirement according to a preset priority matching strategy.
It can be understood that, in this embodiment, the first user node issuing the first transaction requirement is the first user node issuing the first transaction requirement on the blockchain, and specifically, the first transaction requirement may be determined based on the corresponding user requirement for the first user node, and then the first transaction requirement is uplink-stored. The second user node issues a second transaction request for the same reason. The two user nodes issue the transaction demands in sequence, the first user node issues the transaction demands first, and the second user node issues the transaction demands later. After the second user node issues the second transaction request, the first user node may be used as the preset block link point to execute the transaction related steps of the green electricity voucher in this embodiment.
Step one can also be subdivided into the following sub-steps:
the first substep: the second transaction requirements of the second user node are read from the blockchain.
The first user node firstly stores the first transaction requirement in an uplink mode, then the second user node stores the second transaction requirement in an uplink mode, at the moment, the first user node can read the second transaction requirement of the second user node from the block chain, and the second transaction requirement and the first transaction requirement are different types of transaction requirements.
And a second substep: and judging that the contents in the first transaction requirement and the second transaction requirement are matched.
Wherein the content of the transaction demand includes at least one of a projected voucher transaction amount and a projected transaction price. The content match may be a match of the content of the first transaction request and the second transaction request, or may be a partial match, for example, the planned transaction prices of the first transaction request and the second transaction request are the same, but the planned voucher transaction amounts are not the same. In this case, the transaction requirements of one of the first user node and the second user node are not completely met after the transaction is completed by the first user node and the second user node, and the transaction requirements can be updated based on the completed transaction, and other transactions are continuously performed in the block chain to meet the remaining transaction requirements.
And a third substep: if the content matches, it is determined that the first transaction requirement matches the second transaction requirement.
Step two: the preset blockchain node generates the transaction intention based on the second transaction requirement and issues the transaction intention to the blockchain.
After the first user node obtains the second transaction requirement, a transaction intention can be generated based on the first transaction requirement and the second transaction requirement of the first user node, and the transaction intention can include the identifier of the first user node, the identifier of the second user node, the transaction quantity of the plan voucher, the transaction price of the plan voucher and the like.
Specifically, the release of the transaction intention to the blockchain may be performed by the first user node to store the transaction intention in the blockchain, and may also be performed by the second user node, which is an object to which the transaction intention is directed, in an online message or short message manner, so that the second user node can quickly confirm the transaction intention, thereby improving efficiency.
At this time, the second user node can obtain the trading intention issued by the first user node in the block chain, and then the user of the second user node performs identity verification on the first user node through a CA mechanism. For example, the auditing process may be used to determine whether the first user node is authenticated by a CA (e-commerce authentication Authority), for example, a CFCA (China Financial authentication center), and whether the first user node has a corresponding authentication Certificate. The second user node may determine that the transaction intention is approved in response to the confirmation operation of the user, and then the second user node may generate a contract signing notification corresponding to the transaction intention and publish the contract signing notification into the blockchain, where the publishing of the contract signing notification is similar to the publishing of the transaction intention, and may refer to the foregoing related contents about the transaction intention, and the contract signing notification may include the identification of the first user node, the identification of the second user node, the transaction amount of the planned certificate, the transaction price of the planned certificate, the contract signing period, and the like.
Step three: and the preset block chain node acquires a contract signing notice generated by the second user node.
After the second user node issues the contract signing notification, the first user node may obtain the contract signing notification from the blockchain.
Step four: the preset blockchain node completes signing of the transaction contract for the green electricity certificate with the second user node based on the contract signing notification.
The first block link point may complete signing of the transaction contract for the green electricity certificate with the second user node within a contract signing period included in the contract signing notification.
In some embodiments, the first blockchain node and the second blockchain node may complete the signing of the transaction contract online using an electronic signature.
Step five: after the first user node and the second user node complete the transaction contract of signing the green electric certificate based on the first transaction requirement and the second transaction requirement, the preset block chain link point stores the transaction contract of the green electric certificate into the block chain.
In the scheme, the preset block chain node can match the user with the green electric certificate transaction requirement with other users with corresponding transaction requirements in the block chain, and after both parties achieve the green electric certificate transaction and sign the transaction contract, the transaction contract is linked and stored.
In another embodiment, the step involving a green electricity voucher transaction comprises:
the method comprises the following steps: and taking at least one of the first user node and the second user node as a target user node.
It can be understood that the first user node and the second user node belong to a blockchain system, and the blockchain is deployed with a green power confirmation intelligent contract for judging whether the user uses green power or not, and further, whether the user uses pure green power or not.
Step two: and judging whether the target user of the target user node uses green power.
It can be understood that the basis for the green power confirmation intelligent contract to make the judgment is the power data of the target user, wherein the power data includes power generation data, power transmission data, power distribution data of the renewable energy power generation enterprise, power transaction data between the power user and the renewable energy power generation enterprise, power utilization data of the power user, and power transaction settlement data of the power user. The power data can be obtained from the power trading center and the power grid company system by the power trading center node in the block chain and a plurality of nodes of the power grid company.
If yes, executing the third step, otherwise, not generating the green electricity voucher.
Step three: and generating a green electricity voucher corresponding to the green electricity usage of the target user, and storing the green electricity voucher into the block chain.
It should be noted that, the third step may also be implemented by an intelligent contract, specifically, if the determination result in the second step is yes, the credential generation intelligent contract is triggered to execute, a green power credential is generated, and an execution result, that is, the green power credential is stored in the block chain, where the description of the green power credential may refer to the related content of the green power credential in the foregoing embodiment and is not described herein again.
Step four: and sending the identification information of the green electricity certificate to the target user node.
After the green electricity voucher is generated and stored, the voucher generation intelligent contract generates identification information corresponding to the green electricity voucher according to an identification rule and sends the identification information to the target user node, wherein the identification information can be a string of numbers, and the numbers comprise information related to green electricity. By way of specific example, the number may include information of a green electricity type, a power generation area, a power utilization area, a renewable energy power generation enterprise, an original green electricity user (that is, a target user using green electricity, which may not be consistent with a current home party of a green electricity voucher), a green electricity voucher purchaser, a time for signing an electricity purchase-sale contract, a time for generating a green electricity voucher, a time for signing a green electricity voucher transaction contract, and the like, where the identification rule is specifically exemplified in table 1, and the identification rule may be freely determined by a user, and is not limited to the specific case in this embodiment.
Figure BDA0003372431720000201
Figure BDA0003372431720000211
TABLE 1
Step five: and after the preset block chain node issues the first transaction requirement at the first user node and issues the second transaction requirement at the second user node, determining that the first transaction requirement is matched with the second transaction requirement.
Step six: after the first user node and the second user node complete the transaction contract of signing the green electric certificate based on the first transaction requirement and the second transaction requirement, the preset block chain link point stores the transaction contract of the green electric certificate into the block chain.
Step seven: and extracting the transfer information of the green electric voucher from the transaction contract.
After the chain is established in the transaction contract of the green electricity voucher, the voucher transfer intelligent contract can be triggered, the transfer information of the green electricity voucher can be extracted by the voucher transfer intelligent contract, and the transfer information of the green electricity voucher can comprise green electricity voucher purchasing parties, green electricity voucher selling parties, green electricity voucher transaction contract signing time, identification information of the green electricity voucher and the like. The user of one of the first user node and the second user node is a buyer of the green television voucher, and the user of the other one of the first user node and the second user node is a seller of the green television user.
Step eight: and verifying the green electricity voucher belonging to the seller according to the transfer information, and generating the green electricity voucher belonging to the buyer.
The certificate transfer intelligent contract can determine the green electricity certificate belonging to the seller according to the transfer information, and carry out the verification and the sale of the green electricity certificate, and simultaneously generate the corresponding green electricity certificate belonging to the buyer and store the green electricity certificate belonging to the buyer in an uplink manner.
Step nine: and sending the generated identification information of the green electricity voucher belonging to the purchaser to a user node corresponding to the purchaser.
Step ten: the transaction amount is transferred from the purchaser's account to the seller's account.
The transfer information of the green electric voucher also comprises a transaction amount, so that the voucher transfer intelligent contract can directly transfer the transaction amount from the account of the buyer to the account of the seller, and the transaction of the green electric voucher is completed.
In the scheme, the preset block chain node can match the user with the green electric certificate transaction requirement with other users with corresponding transaction requirements, after both parties achieve the green electric certificate transaction and sign the transaction contract, the transaction contract is linked for storage, and then execution is performed according to the transaction contract.
Referring to fig. 4, fig. 4 is a block diagram of an embodiment of a cross-chain data sharing system in the present application.
The cross-chain data sharing system 40 in this embodiment includes a source block chain 41, a target block chain 42, and a cross-chain platform 43, where the source block chain 41 is used to generate and send first shared transaction information; the cross-chain platform 43 is used for executing the cross-chain data sharing method; the destination blockchain 42 is used to receive and store the second shared transaction information. Source blockchain 41, target blockchain 42, and inter-chain platform 43 may be federation chains.
Referring to fig. 5, fig. 5 is a schematic diagram illustrating an embodiment of a block chain technique for source block chains according to the present application. The specific architecture of the blockchain technology of the source blockchain comprises a base layer 51, a platform layer 52, a data layer 53, a service layer 54 and a display layer 55, wherein the base layer 51 encapsulates infrastructures such as blockchains, micro-services and computing resources, network resources and storage resources, the platform layer 52 encapsulates a uplink interface, a data exchange component and a digital twin platform, and can provide services such as member uplink, data uplink and the like and realize functions such as data extraction and integration, the data layer 53 encapsulates a data modeling, data cleaning, data asset and relationship analysis module, the service layer 54 applies the blockchains and the micro-services to services such as green electricity traceability and green electricity storage evidence, and the display layer 55 provides visual display of data. The blockchain technology architecture also comprises internal integration and cross-chain functions, which are used for integrating and cross-chain sharing data.
In the scheme, the first shared transaction information sent by the source block chain is received through the hurdle technology platform with the trusted execution environment, the first shared transaction information is verified, then the second shared transaction information is generated and sent to the target block chain, so that the target block chain can obtain target shared data from the second shared transaction information, and through the mode, the data can be shared between the two block chains.
Referring to fig. 6, fig. 6 is a schematic diagram of a frame of an embodiment of a cross-link data sharing apparatus in the present application.
In this embodiment, the cross-chain data sharing device 60 includes a memory 61 and a processor 62, wherein the memory 61 is coupled to the processor 62. Specifically, the various components of the cross-chain data sharing device 60 may be coupled together by a bus, or the processor 62 of the cross-chain data sharing device 60 may be connected one-to-one with the other components, respectively. The cross-link data sharing device 60 may be any device with processing capabilities, such as a computer, a tablet, a cell phone, and so forth.
The memory 61 is used for storing program data executed by the processor 62, data in the process of processing by the processor 62, and the like. For example, the first shared transaction information, the second shared transaction information, the target shared data, and the like. The memory 61 includes a nonvolatile storage portion for storing the program data.
The processor 62 controls the operation of the cross-link data sharing device 60, and the processor 62 may also be referred to as a Central Processing Unit (CPU). The processor 62 may be an integrated circuit chip having signal processing capabilities. The processor 62 may also be a general purpose processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other programmable logic device, discrete gate or transistor logic, discrete hardware components. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. In addition, the processor 62 may be commonly implemented by a plurality of circuit-forming chips.
The processor 62 executes instructions to implement any of the above-described cross-chain data sharing methods by calling program data stored by the memory 61.
In the scheme, the first shared transaction information sent by the source block chain is received through the hurdle technology platform with the trusted execution environment, the first shared transaction information is verified, then the second shared transaction information is generated and sent to the target block chain, so that the target block chain can obtain target shared data from the second shared transaction information, and through the mode, the data can be shared between the two block chains.
Referring to fig. 7, fig. 7 is a block diagram illustrating an embodiment of a computer-readable storage medium according to the present application.
In this embodiment, the computer readable storage medium 70 stores processor executable program data 71, which can be executed to implement any of the above-described cross-chain data sharing methods.
The computer-readable storage medium 70 may be a medium that can store program data, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, or may be a server that stores the program data, and the server may send the stored program data to other devices for operation or may self-operate the stored program data.
In some embodiments, the computer-readable storage medium 70 may also be a memory as shown in FIG. 6.
In the scheme, the first shared transaction information sent by the source block chain is received through the hurdle technology platform with the trusted execution environment, the first shared transaction information is verified, then the second shared transaction information is generated and sent to the target block chain, so that the target block chain can obtain target shared data from the second shared transaction information, and through the mode, the data can be shared between the two block chains.
The above description is only for the purpose of illustrating embodiments of the present application and is not intended to limit the scope of the present application, and all modifications of equivalent structures and equivalent processes, which are made by the contents of the specification and the drawings of the present application or are directly or indirectly applied to other related technical fields, are also included in the scope of the present application.

Claims (10)

1. A method for cross-chain data sharing, the method comprising:
a main block chain node in a cross-chain platform receives first shared transaction information sent by a source block chain, wherein the first shared transaction information comprises a first identifier of a target block chain and target shared data;
verifying the first shared transaction information in a trusted execution environment;
after all the block chain nodes in a preset range in the cross-chain platform pass verification, packaging a second identifier of the source block chain, the first identifier and the target shared data into second shared transaction information, wherein the main block chain node is located in the preset range;
and sending the second sharing transaction information to the target block chain.
2. The method of claim 1, wherein the verifying the first shared transaction information in the trusted execution environment comprises:
the main block chain node decrypts the first shared transaction information in a trusted execution environment and verifies the decrypted first shared transaction information;
the master block link point sends the decrypted and verified first shared transaction information to other block link nodes within the preset range, so that the other block link nodes verify the first shared transaction information in a trusted execution environment.
3. The method of claim 1, further comprising:
the master block chain node receives a shared receipt sent by the target block chain and performs consensus on the shared receipt, wherein the shared receipt is sent after the target block chain receives the second shared transaction information;
forwarding the shared receipt to a block chain node of the source block chain.
4. The method of claim 1, wherein the number of master blockchain nodes in the cross-chain platform is the same as the number of target blockchains, and each master blockchain node is responsible for sharing the first shared transaction information to a corresponding one of the target blockchains, and different master blockchain nodes correspond to different preset ranges.
5. The method of claim 1, wherein sending the second shared transaction information to the target blockchain comprises:
and signing and encrypting the second shared transaction information, and sending the signed and encrypted second shared transaction information to a target block chain.
6. The method of claim 5, wherein the signing and encrypting the second shared transaction information, and sending the signed and encrypted second shared transaction information to a target blockchain comprises:
the master block chain node signs and encrypts the second shared transaction information, and sends the signed and encrypted second shared transaction information to a cross-chain monitoring contract of the target block chain, wherein if the cross-chain monitoring contract receives the signed and encrypted second shared transaction information of the block chain nodes in a preset proportion in the preset range, the target block chain is determined to receive the second shared transaction information;
or, the master blockchain node signs and encrypts the second shared transaction information, and sends the signed and encrypted second shared transaction information to all blockchain nodes of the target blockchain.
7. The method according to claim 1, wherein the target shared data is a hash value of power data, and the power data is power generation data of a renewable energy power generation enterprise, power transmission data, power distribution data, power transaction data between a power consumer and the renewable energy power generation enterprise, power consumption data of the power consumer, or power transaction settlement data of the power consumer.
8. A cross-chain data sharing system, wherein the system comprises a source blockchain, a target blockchain and a cross-chain platform;
the source block chain is used for generating and sending first shared transaction information;
the cross-chain platform is for performing the method of any one of claims 1-7;
the target block chain is used for receiving and storing second shared transaction information.
9. A cross-chain data sharing device, characterized in that the cross-chain data sharing device comprises a processor and a memory for storing program data, the processor being configured to execute the program data to implement the method of any one of claims 1-7.
10. A computer-readable storage medium for storing program data, the program data executable to implement the method of any one of claims 1-7.
CN202111404845.3A 2021-11-24 2021-11-24 Cross-link data sharing method, system, equipment and readable storage medium Pending CN114401268A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111404845.3A CN114401268A (en) 2021-11-24 2021-11-24 Cross-link data sharing method, system, equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111404845.3A CN114401268A (en) 2021-11-24 2021-11-24 Cross-link data sharing method, system, equipment and readable storage medium

Publications (1)

Publication Number Publication Date
CN114401268A true CN114401268A (en) 2022-04-26

Family

ID=81225598

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111404845.3A Pending CN114401268A (en) 2021-11-24 2021-11-24 Cross-link data sharing method, system, equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN114401268A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114726548A (en) * 2022-05-19 2022-07-08 国网数字科技控股有限公司 Cross-chain-supported green electricity tracing method and system
CN114844896A (en) * 2022-05-07 2022-08-02 深圳嘉业产业发展有限公司 Resource sharing method and system based on block chain
CN114884674A (en) * 2022-04-29 2022-08-09 蚂蚁区块链科技(上海)有限公司 Block chain-based user data transfer method, device and equipment
CN114980023A (en) * 2022-06-02 2022-08-30 昆明理工大学 Internet of vehicles data sharing method based on cross-chain technology
CN115439249A (en) * 2022-09-01 2022-12-06 国网区块链科技(北京)有限公司 Cross-block-chain business service implementation method, device and system
CN116384988A (en) * 2023-06-06 2023-07-04 国网浙江省电力有限公司营销服务中心 Block chain-based electric charge settlement method and system
CN116703602A (en) * 2023-08-08 2023-09-05 深圳航天科创泛在电气有限公司 Photovoltaic power generation management method, system, equipment and medium based on block chain

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20190340267A1 (en) * 2018-05-01 2019-11-07 International Business Machines Corporation Blockchain implementing cross-chain transactions
CN111200641A (en) * 2019-12-25 2020-05-26 深圳供电局有限公司 Data cross-chain sharing method and system, computer equipment and storage medium
CN112508566A (en) * 2020-12-01 2021-03-16 浙商银行股份有限公司 Alliance chain-based cross-chain private transaction method and equipment
CN112837160A (en) * 2020-12-04 2021-05-25 腾讯科技(深圳)有限公司 Block chain-based cross-chain transaction method and device and computer-readable storage medium
CN112907262A (en) * 2021-02-20 2021-06-04 北京邮电大学 Block chain cross-chain interaction method based on relay chain under agricultural product traceability
CN112948153A (en) * 2021-05-14 2021-06-11 支付宝(杭州)信息技术有限公司 Method and device for message cross-link transmission

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20190340267A1 (en) * 2018-05-01 2019-11-07 International Business Machines Corporation Blockchain implementing cross-chain transactions
CN111200641A (en) * 2019-12-25 2020-05-26 深圳供电局有限公司 Data cross-chain sharing method and system, computer equipment and storage medium
CN112508566A (en) * 2020-12-01 2021-03-16 浙商银行股份有限公司 Alliance chain-based cross-chain private transaction method and equipment
CN112837160A (en) * 2020-12-04 2021-05-25 腾讯科技(深圳)有限公司 Block chain-based cross-chain transaction method and device and computer-readable storage medium
CN112907262A (en) * 2021-02-20 2021-06-04 北京邮电大学 Block chain cross-chain interaction method based on relay chain under agricultural product traceability
CN112948153A (en) * 2021-05-14 2021-06-11 支付宝(杭州)信息技术有限公司 Method and device for message cross-link transmission

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114884674A (en) * 2022-04-29 2022-08-09 蚂蚁区块链科技(上海)有限公司 Block chain-based user data transfer method, device and equipment
CN114884674B (en) * 2022-04-29 2024-01-23 蚂蚁区块链科技(上海)有限公司 User data circulation method, device and equipment based on block chain
CN114844896A (en) * 2022-05-07 2022-08-02 深圳嘉业产业发展有限公司 Resource sharing method and system based on block chain
CN114844896B (en) * 2022-05-07 2023-07-04 深圳嘉业产业发展有限公司 Resource sharing method and system based on block chain
CN114726548A (en) * 2022-05-19 2022-07-08 国网数字科技控股有限公司 Cross-chain-supported green electricity tracing method and system
CN114726548B (en) * 2022-05-19 2022-11-11 国网数字科技控股有限公司 Cross-chain-supported green electricity tracing method and system
CN114980023A (en) * 2022-06-02 2022-08-30 昆明理工大学 Internet of vehicles data sharing method based on cross-chain technology
CN115439249A (en) * 2022-09-01 2022-12-06 国网区块链科技(北京)有限公司 Cross-block-chain business service implementation method, device and system
CN115439249B (en) * 2022-09-01 2023-09-26 国网区块链科技(北京)有限公司 Method, device and system for realizing business service of cross-region block chain
CN116384988A (en) * 2023-06-06 2023-07-04 国网浙江省电力有限公司营销服务中心 Block chain-based electric charge settlement method and system
CN116384988B (en) * 2023-06-06 2023-08-18 国网浙江省电力有限公司营销服务中心 Block chain-based electric charge settlement method and system
CN116703602A (en) * 2023-08-08 2023-09-05 深圳航天科创泛在电气有限公司 Photovoltaic power generation management method, system, equipment and medium based on block chain

Similar Documents

Publication Publication Date Title
CN109544160B (en) Transaction authenticity verification method and system based on block chain and intelligent contract
CN114401268A (en) Cross-link data sharing method, system, equipment and readable storage medium
CN108805656B (en) Supply and demand matching method, platform, system and computer readable storage medium
JP7340670B2 (en) Control method, controller and power trading system
Sun et al. Blockchain-enhanced high-confidence energy sharing in internet of electric vehicles
CN110428292B (en) Electronic bill generating method, electronic bill generating device, storage medium and computer equipment
CN109829824B (en) Commodity transaction information sharing method based on block chain technology
WO2019214312A1 (en) Blockchain-based logistics information transmission method, system and device
CN105373955B (en) Digital asset processing method and device based on multiple signatures
CN109889504B (en) Decentralized data access right transaction method and system
CN111418184B (en) Credible insurance letter based on block chain
CN110609869A (en) Block chain-based data storage method, related equipment and storage medium
CN114358969A (en) Green power confirmation method, green power confirmation equipment and computer readable storage medium
US20200286132A1 (en) Second-hand vehicle transaction method and server
CN114358766A (en) Method, equipment and blockchain system for trading green electric certificates
CN111177253A (en) Power big data protection method and system based on identity digital authentication
CN112613861B (en) Electric power pre-selling transaction method, device and system based on alliance chain
CN109636610B (en) Decentralized data transaction system and method
CN111160998B (en) Comment data processing method and device based on block chain and comment system
CN111402055A (en) Decentralized data transaction method based on block chain
CN111433799B (en) Credible insurance letter based on block chain
JP2019133630A (en) Control method, controller, data structure, and electronic transaction system
Li et al. A decentralized and secure blockchain platform for open fair data trading
CN112613956A (en) Bidding processing method and device
US20230134095A1 (en) Systems, devices and methods for tracking authenticated clean energy with blockchains

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