A power consumption data isolation method, system, alliance chain, terminal and charging pile

CN117499015BActive Publication Date: 2026-09-25STATE GRID SHANDONG ELECTRIC POWER CO MARKETING SERVICE CENT (MEASURING CENT)
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311515435.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-11-14
Publication Date
2026-09-25
Estimated Expiration
2043-11-14

AI Technical Summary

Technical Problem

[0005]现有的解决方案使用区块链技术中的公有链,但是其存在弊端,公有链的所有节点都属于同一个链,所有节点都可以读取到所有数据,一些敏感数据可能分发给不应该访问这些数据的节点,从而带来安全隐患;并且将关键业务数据上传到区块链后,竞争对手或其他未授权方可以查看区块链上的信息,使得企业权益受损

Benefits of technology

[0058]1、本发明创造性地提出了结合Hyperledger Fabric超级账本的特性,设计多通道实现私密性强去中心化的充电桩数据隔离机制,通过该机制充分利用联盟链的优势,实现了使用电数据相关的一系列交易全都对联盟内透明可靠,对其他联盟完全隐私,且所有交易信息都通过特定数据结构存储在区块上,实现了区块上的交易信息只能添加和查询,不能进行修改和删除,提高了每笔电力数据交易的不可篡改性。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117499015B_ABST
    Figure CN117499015B_ABST
Patent Text Reader

Abstract

The application belongs to the technical field of blockchain multi-channel, and provides a power consumption data isolation method, system, alliance chain, terminal and charging pile, which starts from the demand of charging pile power consumption data isolation, establishes independent channels for each enterprise according to the privacy design characteristics of hyperledger fabric. The steps include: creating nodes on the corresponding alliance chain network for the charging pile mechanism and the payment platform and the bank; defining alliances and creating independent channels for each alliance; the client pushes data through the node, identifies the channel at the same time, and distributes data; calling the smart contract, operating the account book, and generating and synchronizing the blockchain account book data. The mechanism enables each charging pile mechanism to independently and clearly record each power consumption data related transaction, reduces the data security risk, and realizes private and confidential multi-party transactions.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention belongs to the field of blockchain technology, and in particular relates to a method, system, consortium blockchain, terminal and charging pile for isolating electricity data. Background Technology

[0002] The statements in this section are merely background information related to the present invention and do not necessarily constitute prior art.

[0003] With the rapid development of the new energy industry and Internet technology, people's demand for charging piles has greatly increased. As a result, charging pile companies face the problem of massive data storage. In data storage, data isolation is an essential step, which is to protect the privacy of power data while also being efficient and intelligent.

[0004] Regarding the independent data storage among charging station operators, if a traditional centralized database is used, firstly, all operators' charging data is stored in the same database. If this database fails, each operator's data will be out of control, resulting in low data privacy and confidentiality. Secondly, the data between charging station platforms, payment platforms, and banks is not transparent, as each platform's data is stored only in its own database.

[0005] Existing solutions use public blockchains, but they have drawbacks. All nodes on a public blockchain belong to the same chain, and all nodes can read all data. Some sensitive data may be distributed to nodes that should not have access to this data, thus creating security risks. Furthermore, after critical business data is uploaded to the blockchain, competitors or other unauthorized parties can view the information on the blockchain, causing damage to the company's rights and interests. Summary of the Invention

[0006] To address at least one of the technical problems mentioned in the background, this invention provides a method, system, consortium blockchain, terminal, and charging pile for isolating electricity data. Its purpose is to develop a distributed ledger platform for enterprise-oriented applications and solutions. Based on a consortium blockchain, within the consortium, several different organizations establish different channels, each with its own independent ledger. Only the channel member organizations can share the ledger. In practical applications, it can carry sensitive organizational data, solving security and privacy protection issues.

[0007] To achieve the above objectives, the present invention adopts the following technical solution:

[0008] A first aspect of the present invention provides a method for isolating power consumption data, comprising the following steps:

[0009] Create a consortium blockchain network to create corresponding nodes for charging pile institutions, payment institutions, and banks;

[0010] Define alliances and create independent channels for each alliance; different charging pile institutions belong to different alliances, while payment institutions and banks belong to the same alliance. Each channel corresponds to a channel identifier. For the same channel, when any node in the ledger of the channel writes data, the ledgers of other nodes on the channel are written data synchronously.

[0011] The receiving node sends electricity consumption data, identifies the channel where the charging pile is located based on the electricity consumption data, and distributes the data.

[0012] Invoke smart contracts to manipulate the ledger, generate and synchronize blockchain ledger data.

[0013] Furthermore, the consortium blockchain network includes a sorting service, which consists of a single node configured according to a network configuration NC4. The NC4 contains rules describing the initialization set of network management capabilities, including certificate authorities and member service providers. The certificate authorities identify components belonging to an organization and provide signatures for transactions, while the member service providers match certificates with member organizations.

[0014] Furthermore, the definition of alliances, creating independent channels for each alliance, includes:

[0015] Multiple first organizations are defined as the first alliance, and multiple second organizations are defined as the second alliance;

[0016] Store the alliance definition in the network configuration NC4, and set up a certificate authority for each organization;

[0017] The first channel is created through the first alliance, and the second channel is created through the second alliance. The first channel is configured and managed using the first channel, and the second channel is configured and managed using the second channel.

[0018] The configurations of the first and second channels are completely independent of the network configuration NC4 and are configured by the members of the alliance themselves.

[0019] Furthermore, the power consumption data sent by the receiving node, and the identification of the channel of the charging pile institution based on the power consumption data, include:

[0020] The corresponding charging pile organization is determined based on the equipment serial number in the electricity consumption data.

[0021] Obtain the channel identifier of the charging pile institution, and locate the corresponding channel based on the channel identifier; among them, one charging pile platform corresponds to multiple device serial numbers, and these device serial numbers all point to the same channel identifier.

[0022] Furthermore, after identifying the corresponding channel, a smart contract is invoked, the smart contract is installed on the corresponding node, and a smart contract is defined in the channel. The smart contract shares the business process among the same alliance members and distributes transactions to each node in the network.

[0023] Furthermore, the invocation of smart contracts to manipulate the ledger and generate and synchronize blockchain ledger data specifically includes:

[0024] The SDK initiates a transaction proposal to the blockchain network, and the transaction proposal sends the information of the transaction to the endorsing node.

[0025] After receiving a transaction proposal, the endorsing node verifies the signature and determines whether the submitter has the right to execute the operation. At the same time, it simulates the execution of the smart contract according to the endorsement strategy and returns the result and its respective CA certificate signature.

[0026] After receiving the information returned by the endorsing node, it determines whether the proposal result is consistent and whether the specified endorsement strategy is followed. If there are not enough endorsements, the processing is stopped; otherwise, the data is packaged together to form a transaction, signed, and sent to the sorting node.

[0027] The sorting nodes perform consensus sorting on the received transactions, and then package a batch of transactions together according to the block generation strategy to generate a new block, which is then sent to the committing nodes.

[0028] After receiving a block, the submitting node verifies each transaction in the block, checks whether the inputs and outputs that the transaction depends on are consistent with the current state of the blockchain, appends the block to its local blockchain, and modifies the world state.

[0029] Furthermore, each charging pile institution node stores the institution's ledger, the payment institution node stores the alliance's payment ledger, and the bank node stores the alliance's bank ledger. The institution ledger contains the corresponding electricity order data, the payment ledger contains the corresponding payment records, and the bank ledger contains the corresponding deduction records and balances.

[0030] A second aspect of the present invention provides an electrical data isolation system, comprising:

[0031] The node creation module is used to create a consortium blockchain network, creating corresponding nodes for charging pile institutions, payment institutions, and banks.

[0032] The channel creation module is used to define alliances and create independent channels for each alliance. Different charging pile institutions belong to different alliances, while payment institutions and banks belong to the same alliance. Each channel corresponds to a channel identifier. For the same channel, when any node in the ledger of the channel writes data, the ledgers of other nodes on the channel are written data synchronously.

[0033] The channel identification module is used to receive power consumption data sent by the node, identify the channel where the charging pile is located based on the power consumption data, and distribute the data.

[0034] The data synchronization module is used to invoke smart contracts, manipulate the ledger, and generate and synchronize blockchain ledger data.

[0035] A third aspect of the present invention provides a node.

[0036] The node is simultaneously connected to the consortium blockchain. The node includes a processor and a memory for storing instructions. When the processor executes the instructions in the memory, the processor runs a charging pile power consumption data isolation program. When the charging pile power consumption data isolation program is executed by the processor, it implements the steps of the power consumption data isolation method as described in the first aspect.

[0037] A fourth aspect of the present invention provides a consortium blockchain.

[0038] A consortium blockchain, comprising the nodes described in the third aspect.

[0039] The fifth aspect of the present invention provides a mobile terminal.

[0040] The terminal includes a memory, a processor, and a charging pile power consumption data isolation program stored in the memory and executable on the processor. When the charging pile power consumption data isolation program is executed by the processor, it performs the following steps:

[0041] Create a consortium blockchain network to create corresponding nodes for charging pile institutions, payment institutions, and banks;

[0042] Define alliances and create independent channels for each alliance; different charging pile institutions belong to different alliances, while payment institutions and banks belong to the same alliance. Each channel corresponds to a channel identifier. For the same channel, when any node in the ledger of the channel writes data, the ledgers of other nodes on the channel are written data synchronously.

[0043] The receiving node sends electricity consumption data, identifies the channel where the charging pile is located based on the electricity consumption data, and distributes the data.

[0044] Invoke smart contracts to manipulate the ledger, generate and synchronize blockchain ledger data.

[0045] A sixth aspect of the present invention provides a charging pile.

[0046] A charging pile includes a memory, a processor, and a charging pile power consumption data isolation program stored in the memory and executable on the processor. When the charging pile power consumption data isolation program is executed by the processor, it performs the following steps:

[0047] Create a consortium blockchain network to create corresponding nodes for charging pile institutions, payment institutions, and banks;

[0048] Define alliances and create independent channels for each alliance; different charging pile institutions belong to different alliances, while payment institutions and banks belong to the same alliance. Each channel corresponds to a channel identifier. For the same channel, when any node in the ledger of the channel writes data, the ledgers of other nodes on the channel are written data synchronously.

[0049] The receiving node sends electricity consumption data, identifies the channel where the charging pile is located based on the electricity consumption data, and distributes the data.

[0050] Invoke smart contracts to manipulate the ledger, generate and synchronize blockchain ledger data.

[0051] A seventh aspect of the present invention provides a computer-readable storage medium.

[0052] A computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of a smart contract-based method for electricity trading in a regulated environment, including:

[0053] Create a consortium blockchain network to create corresponding nodes for charging pile institutions, payment institutions, and banks;

[0054] Define alliances and create independent channels for each alliance; different charging pile institutions belong to different alliances, while payment institutions and banks belong to the same alliance. Each channel corresponds to a channel identifier. For the same channel, when any node in the ledger of the channel writes data, the ledgers of other nodes on the channel are written data synchronously.

[0055] The receiving node sends electricity consumption data, identifies the channel where the charging pile is located based on the electricity consumption data, and distributes the data.

[0056] Invoke smart contracts to manipulate the ledger, generate and synchronize blockchain ledger data.

[0057] Compared with the prior art, the beneficial effects of the present invention are:

[0058] 1. This invention creatively proposes a multi-channel, decentralized charging pile data isolation mechanism that combines the features of Hyperledger Fabric. By fully utilizing the advantages of consortium blockchains, this mechanism ensures that all transactions related to electricity data are transparent and reliable within the consortium, while remaining completely private to other consortia. Furthermore, all transaction information is stored on blocks using a specific data structure, allowing transactions on blocks to be added and queried but not modified or deleted, thus improving the immutability of each electricity data transaction.

[0059] 2. This invention provides a mechanism for private communication and private data between alliance members, which allows organizations to share infrastructure while maintaining privacy. At the same time, this mechanism also solves the problems of traditional data aggregation schemes, such as the need to rely on a trusted center and high energy consumption and waste of computing resources.

[0060] Advantages of additional aspects of the invention will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. Attached Figure Description

[0061] The accompanying drawings, which form part of this invention, are used to provide a further understanding of the invention. The illustrative embodiments of the invention and their descriptions are used to explain the invention and do not constitute an improper limitation of the invention.

[0062] Figure 1 This is a flowchart of the charging pile power consumption data isolation method provided in an embodiment of the present invention;

[0063] Figure 2 This is a framework diagram of the charging pile power data isolation system provided in an embodiment of the present invention. Detailed Implementation

[0064] The present invention will be further described below with reference to the accompanying drawings and embodiments.

[0065] It should be noted that the following detailed description is illustrative and intended to provide further explanation of the invention. Unless otherwise specified, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention pertains.

[0066] It should be noted that the terminology used herein is for the purpose of describing particular embodiments only and is not intended to limit the scope of exemplary embodiments according to the invention. As used herein, the singular form is intended to include the plural form as well, unless the context clearly indicates otherwise. Furthermore, it should be understood that when the terms "comprising" and / or "including" are used in this specification, they indicate the presence of features, steps, operations, devices, components, and / or combinations thereof.

[0067] Blockchain is generally divided into public blockchain, consortium blockchain, and private blockchain, with the degree of decentralization decreasing in that order.

[0068] In a public blockchain, all nodes belong to the same chain, and all nodes can read all data. Sensitive data might be distributed to nodes that shouldn't have access, creating security vulnerabilities. Furthermore, uploading critical business data to the blockchain allows competitors or other unauthorized parties to view the information, potentially harming the company's interests. Most companies desire a trustless and censorship-free system.

[0069] A consortium blockchain lies between a public blockchain and a private blockchain. Essentially, it's a cluster of multiple private blockchains, jointly managed by multiple organizations. Each organization manages one or more nodes, and data can only be read, written, and sent by different organizations within the system. Each node in a consortium blockchain typically has a corresponding entity or organization, and joining or leaving the network requires authorization. These organizations form a coalition with shared interests, working together to maintain the healthy operation of the blockchain.

[0070] The nodes on it are generally joined by corresponding entities or organizations, and participants who join the network through authorization and form a stakeholder alliance to jointly maintain the operation of the blockchain.

[0071] This invention utilizes Hyperledger Fabric, a foundational core platform for blockchain and a representative of current consortium blockchains, aiming to become a distributed ledger platform for enterprise application and solution development. Its proposed multi-channel technology in consortium blockchains refers to the existence of independent communication channels among some network members. Transactions sent within a channel are only visible to the channel members; therefore, a channel can be viewed as a private communication subnet for some members of the network. Within the consortium, several different organizations establish different channels, each with its own independent ledger, which can only be shared among channel member organizations. In practical applications, it can carry sensitive organizational data, addressing security and privacy protection issues.

[0072] Example 1

[0073] This embodiment provides a channel-based method for isolating charging pile power consumption data. The corresponding system serves the charging pile organization, which can build charging piles to provide charging services for electric vehicles or electric bicycles. The power consumption data generated will be automatically uploaded to the backend by the device, and the transaction activities generated will also be recorded by payment institutions and banks. Each charging pile organization has its own independent client system connected to the consortium blockchain network.

[0074] Reference Figure 1 The power consumption data isolation method specifically includes the following steps:

[0075] S101: Create a consortium blockchain network to create nodes on the network for charging station providers, payment institutions, and banks.

[0076] When defining the consortium blockchain network, a sorting service O4 must first be defined. The sorting service O4 consists of a single node and is configured according to a network configuration NC4.

[0077] At the network layer, Certificate Authority (CA4) is used to assign identity information to network administrators and network nodes of organization R4.

[0078] Network configuration NC4 uses a named MSP to identify the attributes of certificates issued by CA4, which are then associated with the certificate holder under organization R4. NC4 then uses this MSP name in the policy to assign special rights on network resources. An example of this policy is identifying an administrator in R4 who can add new member organizations to the network.

[0079] like Figure 2 As shown, in the consortium blockchain network, P1 and P5 are two charging station institutional nodes, while P2 and P3 are a payment institution and a bank node. Each charging station institutional node has only one set of ledgers, while the payment institution and the bank have multiple sets of ledgers. Figure 2 As shown, P1 and P5 have only one ledger, L1 or L2, while P2 and P3 have two sets of ledgers, L1 and L2. These ledgers are electricity consumption data ledgers.

[0080] Each charging pile institution node stores the institution's ledger, the payment institution node stores the alliance's payment ledger, and the bank node stores the alliance's bank ledger. The institution ledger contains the corresponding electricity order data, the payment ledger contains the corresponding payment records, and the bank ledger contains the corresponding deduction records and balances.

[0081] The NC4 contains rules describing the initialization set of network management capabilities, specifically including:

[0082] MSPs are used to identify the attributes of certificates issued by CAs, which are associated with certificate holders within an organization. The MSP name is then used to assign special rights on network resources.

[0083] The Certificate Authorities (CAs) are used to identify components belonging to an organization and to provide signatures for transactions.

[0084] The Membership Service Provider (MSP) matches the certificate with the member organization.

[0085] It should be noted that, in Figure 2 Each organization is listed with only one organization node, but in reality, an organization can have many nodes.

[0086] S102: Define alliances and create independent channels for each alliance.

[0087] Specifically, S102 also includes the following steps:

[0088] S201: Define an alliance, such as Figure 2 As shown in the diagram, organizations R1, R2, and R3 are defined as Alliance X1, and organizations R5, R2, and R3 are defined as Alliance X2. The definition of this alliance is stored in the network configuration NC4. CA1, CA2, CA3, and CA5 are the certificate authorities corresponding to these organizations R1, R2, R3, and R5.

[0089] Different components in a blockchain network use certificates to identify themselves as originating from a specific organization;

[0090] There are usually multiple CAs supporting a blockchain network because different organizations often use different CAs.

[0091] S202: Create a channel for the alliance. Create channel C1 using alliance X1, create channel C2 using alliance X2, manage channel C1 using channel configuration CC1, and manage channel C2 using channel configuration CC2; Figure 2 In the diagram, the nodes connected by the channels are displayed using circles and labels.

[0092] Among them, channel configuration CC1 and channel configuration CC2 are completely independent of network configuration NC4 and are configured by members in the alliance. For example, channel configuration CC1 can be configured by organization R1, R2 and R3, and channel configuration CC2 can be configured by organization R5, R2 and R3.

[0093] With this setup, the data in the channel is completely isolated from the rest of the network. Each channel corresponds to a unique channel identifier. For the same channel, if any node in the channel writes data, all other nodes in the channel will synchronously write data.

[0094] S103: The charging pile agency client pushes data through nodes and simultaneously identifies the channel in which it is located to distribute data.

[0095] Specifically, S103 also includes the following steps:

[0096] S301: The charging pile mechanism client pushes electricity consumption data, and the charging pile mechanism client is a background application that receives charging pile data;

[0097] S302: Determine the charging pile mechanism mentioned in the business data based on the device serial number in the business data;

[0098] S303: Obtain the channel identifier corresponding to the charging station organization to which it belongs. Each charging device installed at various locations by the charging station organization has a unique serial number, which identifies the charging station organization to which it belongs. That is, one charging station organization can correspond to multiple device serial numbers, and these device serial numbers all point to the same channel identifier.

[0099] S104: Invoke the smart contract, manipulate the ledger, and generate and synchronize blockchain ledger data.

[0100] After identifying the corresponding channel, the smart contract is invoked, such as... Figure 1 As shown, different smart contracts can be used for different alliance members. The X1 alliance uses the S5 smart contract, and the X2 alliance uses the S6 smart contract.

[0101] Install smart contracts on the corresponding nodes and define smart contracts in the channel. These smart contracts can be created by application developers in each organization to implement a business process shared among alliance members and used to help generate transactions that are distributed to each node in the network.

[0102] Regarding the installed smart contract, when an organization has multiple nodes in a channel, it can choose which node to install the smart contract on, instead of installing it on every node.

[0103] For the defined smart contract, each organization needs to approve a chaincode definition and a set of parameters to define how the chaincode should be used in a channel. An organization must approve a chaincode definition in order to use the installed smart contract to query the ledger and endorse transactions.

[0104] The transaction list for the smart contract includes: adding and querying electricity data and a series of payment records and balance increase / decrease records, and authorizing private data.

[0105] In S104, the step of calling the smart contract, manipulating the ledger, and generating and synchronizing blockchain ledger data specifically includes:

[0106] S401: The application client initiates a transaction proposal to the blockchain network through the SDK. The transaction proposal sends information such as the contract identifier, contract method and parameter information to be called in this transaction and the client signature to the endorsing node.

[0107] S402: After receiving a transaction proposal, the endorsing node verifies the signature and determines whether the submitter has the right to execute the operation. At the same time, it simulates the execution of the smart contract according to the endorsement strategy and sends the result and its respective CA certificate signature back to the application client.

[0108] The endorsement policy describes which organizations must consent to a transaction before it is received and stored on their ledger copies. In this embodiment, the organizations that need to consent are charging station providers, payment institutions, and banks.

[0109] S403: After receiving the information returned by the endorsing node, the application client determines whether the proposal result is consistent and whether it is executed in accordance with the specified endorsement strategy. If there are not enough endorsements, the processing is suspended; otherwise, the application client packages the data together to form a transaction, signs it, and sends it to the ordering node.

[0110] S404: The sorting node performs consensus sorting on the received transactions, and then packages a batch of transactions together according to the block generation strategy to generate a new block and sends it to the committing node.

[0111] S405: After receiving a block, the committing node will verify each transaction in the block, check whether the inputs and outputs that the transaction depends on are consistent with the current state of the blockchain, and then append the block to the local blockchain and modify the world state.

[0112] Furthermore, the channel-based electricity consumption data isolation mechanism in this embodiment also includes establishing a private data set at the charging pile institution node. If needed, the charging pile institution node can store electricity consumption data in this private data set. Using the private data set, the charging pile institution can read the records within it, but unless authorized by the owner of the private data set, payment institutions and banks within the same channel have no right to access its content. In other words, without the authorization of the charging pile institution, no other organization can access the content.

[0113] By using private data sets, charging pile organizations have gained greater autonomy in data control. At the same time, the level of data sharing has been improved, data privacy protection between nodes in the same channel has been resolved, data leakage has been avoided, and the overall information security of the alliance has been greatly improved.

[0114] It should be noted that in this embodiment, a channel currently only has three organizations. If other institutions need to conduct transactions in the future, new alliance institutions can be added as needed based on this architecture, and the same data isolation mechanism can be achieved.

[0115] This invention addresses the need for data isolation in charging stations by leveraging the features of Hyperledger Fabric to design a multi-channel, decentralized data isolation mechanism for charging stations that provides strong privacy. This mechanism fully utilizes the advantages of consortium blockchains, ensuring that all transactions related to electricity data are transparent and reliable within the consortium, while maintaining complete privacy from other consortia. Furthermore, all transaction information is stored on blocks using a specific data structure; transaction information on blocks can only be added and queried, not modified or deleted, thus guaranteeing the immutability of each electricity data transaction. In addition, this mechanism solves the problems of traditional data aggregation schemes, such as reliance on a trusted central authority, high energy consumption, and wasted computing resources.

[0116] Example 2

[0117] This embodiment provides a power consumption data isolation system, including:

[0118] The node creation module is used to create a consortium blockchain network, creating corresponding nodes for charging pile institutions, payment institutions, and banks.

[0119] The channel creation module is used to define alliances and create independent channels for each alliance. Different charging pile institutions belong to different alliances, while payment institutions and banks belong to the same alliance. Each channel corresponds to a channel identifier. For the same channel, when any node in the ledger of the channel writes data, the ledgers of other nodes on the channel are written data synchronously.

[0120] The channel identification module is used to receive power consumption data sent by the node, identify the channel where the charging pile is located based on the power consumption data, and distribute the data.

[0121] The data synchronization module is used to invoke smart contracts, manipulate the ledger, and generate and synchronize blockchain ledger data.

[0122] In the node creation module, the sorting service consists of a single node, which is configured according to a network configuration NC4. The NC4 contains rules describing the initialization set of network management capabilities, including certificate authorities and member service providers. Through the certificate authorities, components belonging to a certain organization are identified and signatures are provided for transactions. Through the member service providers, certificates are matched with member organizations.

[0123] In the channel creation module, defining alliances and creating independent channels for each alliance includes:

[0124] Multiple first organizations are defined as the first alliance, and multiple second organizations are defined as the second alliance;

[0125] Store the alliance definition in the network configuration NC4, and set up a certificate authority for each organization;

[0126] The first channel is created through the first alliance, and the second channel is created through the second alliance. The first channel is configured and managed using the first channel, and the second channel is configured and managed using the second channel.

[0127] The configurations of the first and second channels are completely independent of the network configuration NC4 and are configured by the members of the alliance themselves.

[0128] The receiving node sends electricity consumption data, and identifies the channel of the charging pile institution based on the electricity consumption data, including:

[0129] The corresponding charging pile organization is determined based on the equipment serial number in the electricity consumption data.

[0130] Obtain the channel identifier of the charging pile institution, and locate the corresponding channel based on the channel identifier; among them, one charging pile platform corresponds to multiple device serial numbers, and these device serial numbers all point to the same channel identifier.

[0131] Alternatively, after identifying the corresponding channel, a smart contract is invoked, the smart contract is installed on the corresponding node, and a smart contract is defined in the channel. The smart contract shares the business process among alliance members and distributes transactions to each node in the network.

[0132] The data synchronization module, specifically, includes the following: calling the smart contract, manipulating the ledger, generating and synchronizing blockchain ledger data.

[0133] The SDK initiates a transaction proposal to the blockchain network, and the transaction proposal sends the information of the transaction to the endorsing node.

[0134] After receiving a transaction proposal, the endorsing node verifies the signature and determines whether the submitter has the right to execute the operation. At the same time, it simulates the execution of the smart contract according to the endorsement strategy and returns the result and its respective CA certificate signature.

[0135] After receiving the information returned by the endorsing node, it determines whether the proposal result is consistent and whether the specified endorsement strategy is followed. If there are not enough endorsements, the processing is stopped; otherwise, the data is packaged together to form a transaction, signed, and sent to the sorting node.

[0136] The sorting nodes perform consensus sorting on the received transactions, and then package a batch of transactions together according to the block generation strategy to generate a new block, which is then sent to the committing nodes.

[0137] After receiving a block, the submitting node verifies each transaction in the block, checks whether the inputs and outputs that the transaction depends on are consistent with the current state of the blockchain, appends the block to its local blockchain, and modifies the world state.

[0138] Alternatively, each charging pile institution node stores the institution's ledger, the payment institution node stores the alliance's payment ledger, and the bank node stores the alliance's bank ledger. The institution ledger contains the corresponding electricity order data, the payment ledger contains the corresponding payment records, and the bank ledger contains the corresponding deduction records and balances.

[0139] Example 3

[0140] This embodiment provides a node that is simultaneously connected to a consortium blockchain. The node includes a processor and a memory for storing instructions. When the processor executes the instructions in the memory, a power consumption data isolation program runs on the processor. When the power consumption data isolation program is executed by the processor, it performs the following steps:

[0141] Create a consortium blockchain network to create corresponding nodes for charging pile institutions, payment institutions, and banks;

[0142] Define alliances and create independent channels for each alliance; different charging pile institutions belong to different alliances, while payment institutions and banks belong to the same alliance. Each channel corresponds to a channel identifier. For the same channel, when any node in the ledger of the channel writes data, the ledgers of other nodes on the channel are written data synchronously.

[0143] The receiving node sends electricity consumption data, identifies the channel where the charging pile is located based on the electricity consumption data, and distributes the data.

[0144] Invoke smart contracts to manipulate the ledger, generate and synchronize blockchain ledger data.

[0145] Specifically, the consortium blockchain network includes a sorting service, which consists of a single node and is configured according to a network configuration NC4. The NC4 contains rules describing the initialization set of network management capabilities, including certificate authorities and member service providers. The certificate authorities identify components belonging to a certain organization and provide signatures for transactions. The member service providers match certificates with member organizations.

[0146] Alternatively, the definition of an alliance, creating an independent channel for each alliance, includes:

[0147] Multiple first organizations are defined as the first alliance, and multiple second organizations are defined as the second alliance;

[0148] Store the alliance definition in the network configuration NC4, and set up a certificate authority for each organization;

[0149] The first channel is created through the first alliance, and the second channel is created through the second alliance. The first channel is configured and managed using the first channel, and the second channel is configured and managed using the second channel.

[0150] The configurations of the first and second channels are completely independent of the network configuration NC4 and are configured by the members of the alliance themselves.

[0151] The receiving node sends electricity consumption data, and identifies the channel of the charging pile institution based on the electricity consumption data, including:

[0152] The corresponding charging pile organization is determined based on the equipment serial number in the electricity consumption data.

[0153] Obtain the channel identifier of the charging pile institution, and locate the corresponding channel based on the channel identifier; among them, one charging pile platform corresponds to multiple device serial numbers, and these device serial numbers all point to the same channel identifier.

[0154] Alternatively, after identifying the corresponding channel, a smart contract is invoked, the smart contract is installed on the corresponding node, and a smart contract is defined in the channel. The smart contract shares the business process among alliance members and distributes transactions to each node in the network.

[0155] The process of invoking smart contracts, manipulating the ledger, and generating and synchronizing blockchain ledger data specifically includes:

[0156] The SDK initiates a transaction proposal to the blockchain network, and the transaction proposal sends the information of the transaction to the endorsing node.

[0157] After receiving a transaction proposal, the endorsing node verifies the signature and determines whether the submitter has the right to execute the operation. At the same time, it simulates the execution of the smart contract according to the endorsement strategy and returns the result and its respective CA certificate signature.

[0158] After receiving the information returned by the endorsing node, it determines whether the proposal result is consistent and whether the specified endorsement strategy is followed. If there are not enough endorsements, the processing is stopped; otherwise, the data is packaged together to form a transaction, signed, and sent to the sorting node.

[0159] The sorting nodes perform consensus sorting on the received transactions, and then package a batch of transactions together according to the block generation strategy to generate a new block, which is then sent to the committing nodes.

[0160] After receiving a block, the submitting node verifies each transaction in the block, checks whether the inputs and outputs that the transaction depends on are consistent with the current state of the blockchain, appends the block to its local blockchain, and modifies the world state.

[0161] Alternatively, each charging pile institution node stores the institution's ledger, the payment institution node stores the alliance's payment ledger, and the bank node stores the alliance's bank ledger. The institution ledger contains the corresponding electricity order data, the payment ledger contains the corresponding payment records, and the bank ledger contains the corresponding deduction records and balances.

[0162] Example 4

[0163] This embodiment provides a consortium blockchain, characterized in that it includes the nodes described in Embodiment 3.

[0164] Example 5

[0165] This embodiment proposes a mobile terminal, which includes a memory, a processor, and a charging pile power consumption data isolation program stored in the memory and executable on the processor. When the charging pile power consumption data isolation program is executed by the processor, it performs the following steps:

[0166] Create a consortium blockchain network to create corresponding nodes for charging pile institutions, payment institutions, and banks;

[0167] Define alliances and create independent channels for each alliance; different charging pile institutions belong to different alliances, while payment institutions and banks belong to the same alliance. Each channel corresponds to a channel identifier. For the same channel, when any node in the ledger of the channel writes data, the ledgers of other nodes on the channel are written data synchronously.

[0168] The receiving node sends electricity consumption data, identifies the channel where the charging pile is located based on the electricity consumption data, and distributes the data.

[0169] Invoke smart contracts to manipulate the ledger, generate and synchronize blockchain ledger data.

[0170] Specifically, the consortium blockchain network includes a sorting service, which consists of a single node and is configured according to a network configuration NC4. The NC4 contains rules describing the initialization set of network management capabilities, including certificate authorities and member service providers. The certificate authorities identify components belonging to a certain organization and provide signatures for transactions. The member service providers match certificates with member organizations.

[0171] Alternatively, the definition of an alliance, creating an independent channel for each alliance, includes:

[0172] Multiple first organizations are defined as the first alliance, and multiple second organizations are defined as the second alliance;

[0173] Store the alliance definition in the network configuration NC4, and set up a certificate authority for each organization;

[0174] The first channel is created through the first alliance, and the second channel is created through the second alliance. The first channel is configured and managed using the first channel, and the second channel is configured and managed using the second channel.

[0175] The configurations of the first and second channels are completely independent of the network configuration NC4 and are configured by the members of the alliance themselves.

[0176] The receiving node sends electricity consumption data, and identifies the channel of the charging pile institution based on the electricity consumption data, including:

[0177] The corresponding charging pile organization is determined based on the equipment serial number in the electricity consumption data.

[0178] Obtain the channel identifier of the charging pile institution, and locate the corresponding channel based on the channel identifier; among them, one charging pile platform corresponds to multiple device serial numbers, and these device serial numbers all point to the same channel identifier.

[0179] Alternatively, after identifying the corresponding channel, a smart contract is invoked, the smart contract is installed on the corresponding node, and a smart contract is defined in the channel. The smart contract shares the business process among alliance members and distributes transactions to each node in the network.

[0180] The process of invoking smart contracts, manipulating the ledger, and generating and synchronizing blockchain ledger data specifically includes:

[0181] The SDK initiates a transaction proposal to the blockchain network, and the transaction proposal sends the information of the transaction to the endorsing node.

[0182] After receiving a transaction proposal, the endorsing node verifies the signature and determines whether the submitter has the right to execute the operation. At the same time, it simulates the execution of the smart contract according to the endorsement strategy and returns the result and its respective CA certificate signature.

[0183] After receiving the information returned by the endorsing node, it determines whether the proposal result is consistent and whether the specified endorsement strategy is followed. If there are not enough endorsements, the processing is stopped; otherwise, the data is packaged together to form a transaction, signed, and sent to the sorting node.

[0184] The sorting nodes perform consensus sorting on the received transactions, and then package a batch of transactions together according to the block generation strategy to generate a new block, which is then sent to the committing nodes.

[0185] After receiving a block, the submitting node verifies each transaction in the block, checks whether the inputs and outputs that the transaction depends on are consistent with the current state of the blockchain, appends the block to its local blockchain, and modifies the world state.

[0186] Alternatively, each charging pile institution node stores the institution's ledger, the payment institution node stores the alliance's payment ledger, and the bank node stores the alliance's bank ledger. The institution ledger contains the corresponding electricity order data, the payment ledger contains the corresponding payment records, and the bank ledger contains the corresponding deduction records and balances.

[0187] Example 6

[0188] This embodiment provides a charging pile, which includes a memory, a processor, and a charging pile power consumption data isolation program stored in the memory and executable on the processor. When the charging pile power consumption data isolation program is executed by the processor, it performs the following steps:

[0189] Create a consortium blockchain network to create corresponding nodes for charging pile institutions, payment institutions, and banks;

[0190] Define alliances and create independent channels for each alliance; different charging pile institutions belong to different alliances, while payment institutions and banks belong to the same alliance. Each channel corresponds to a channel identifier. For the same channel, when any node in the ledger of the channel writes data, the ledgers of other nodes on the channel are written data synchronously.

[0191] The receiving node sends electricity consumption data, identifies the channel where the charging pile is located based on the electricity consumption data, and distributes the data.

[0192] Invoke smart contracts to manipulate the ledger, generate and synchronize blockchain ledger data.

[0193] Specifically, the consortium blockchain network includes a sorting service, which consists of a single node and is configured according to a network configuration NC4. The NC4 contains rules describing the initialization set of network management capabilities, including certificate authorities and member service providers. The certificate authorities identify components belonging to a certain organization and provide signatures for transactions. The member service providers match certificates with member organizations.

[0194] Alternatively, the definition of an alliance, creating an independent channel for each alliance, includes:

[0195] Multiple first organizations are defined as the first alliance, and multiple second organizations are defined as the second alliance;

[0196] Store the alliance definition in the network configuration NC4, and set up a certificate authority for each organization;

[0197] The first channel is created through the first alliance, and the second channel is created through the second alliance. The first channel is configured and managed using the first channel, and the second channel is configured and managed using the second channel.

[0198] The configurations of the first and second channels are completely independent of the network configuration NC4 and are configured by the members of the alliance themselves.

[0199] The receiving node sends electricity consumption data, and identifies the channel of the charging pile institution based on the electricity consumption data, including:

[0200] The corresponding charging pile organization is determined based on the equipment serial number in the electricity consumption data.

[0201] Obtain the channel identifier of the charging pile institution, and locate the corresponding channel based on the channel identifier; among them, one charging pile platform corresponds to multiple device serial numbers, and these device serial numbers all point to the same channel identifier.

[0202] Alternatively, after identifying the corresponding channel, a smart contract is invoked, the smart contract is installed on the corresponding node, and a smart contract is defined in the channel. The smart contract shares the business process among alliance members and distributes transactions to each node in the network.

[0203] The process of invoking smart contracts, manipulating the ledger, and generating and synchronizing blockchain ledger data specifically includes:

[0204] The SDK initiates a transaction proposal to the blockchain network, and the transaction proposal sends the information of the transaction to the endorsing node.

[0205] After receiving a transaction proposal, the endorsing node verifies the signature and determines whether the submitter has the right to execute the operation. At the same time, it simulates the execution of the smart contract according to the endorsement strategy and returns the result and its respective CA certificate signature.

[0206] After receiving the information returned by the endorsing node, it determines whether the proposal result is consistent and whether the specified endorsement strategy is followed. If there are not enough endorsements, the processing is stopped; otherwise, the data is packaged together to form a transaction, signed, and sent to the sorting node.

[0207] The sorting nodes perform consensus sorting on the received transactions, and then package a batch of transactions together according to the block generation strategy to generate a new block, which is then sent to the committing nodes.

[0208] After receiving a block, the submitting node verifies each transaction in the block, checks whether the inputs and outputs that the transaction depends on are consistent with the current state of the blockchain, appends the block to its local blockchain, and modifies the world state.

[0209] Alternatively, each charging pile institution node stores the institution's ledger, the payment institution node stores the alliance's payment ledger, and the bank node stores the alliance's bank ledger. The institution ledger contains the corresponding electricity order data, the payment ledger contains the corresponding payment records, and the bank ledger contains the corresponding deduction records and balances.

[0210] Example 7

[0211] This embodiment provides a computer-readable storage medium storing a computer program that, when executed by a processor, performs the following steps:

[0212] Create a consortium blockchain network to create corresponding nodes for charging pile institutions, payment institutions, and banks;

[0213] Define alliances and create independent channels for each alliance; different charging pile institutions belong to different alliances, while payment institutions and banks belong to the same alliance. Each channel corresponds to a channel identifier. For the same channel, when any node in the ledger of the channel writes data, the ledgers of other nodes on the channel are written data synchronously.

[0214] The receiving node sends electricity consumption data, identifies the channel where the charging pile is located based on the electricity consumption data, and distributes the data.

[0215] Invoke smart contracts to manipulate the ledger, generate and synchronize blockchain ledger data.

[0216] Specifically, the consortium blockchain network includes a sorting service, which consists of a single node and is configured according to a network configuration NC4. The NC4 contains rules describing the initialization set of network management capabilities, including certificate authorities and member service providers. The certificate authorities identify components belonging to a certain organization and provide signatures for transactions. The member service providers match certificates with member organizations.

[0217] Alternatively, the definition of an alliance, creating an independent channel for each alliance, includes:

[0218] Multiple first organizations are defined as the first alliance, and multiple second organizations are defined as the second alliance;

[0219] Store the alliance definition in the network configuration NC4, and set up a certificate authority for each organization;

[0220] The first channel is created through the first alliance, and the second channel is created through the second alliance. The first channel is configured and managed using the first channel, and the second channel is configured and managed using the second channel.

[0221] The configurations of the first and second channels are completely independent of the network configuration NC4 and are configured by the members of the alliance themselves.

[0222] The receiving node sends electricity consumption data, and identifies the channel of the charging pile institution based on the electricity consumption data, including:

[0223] The corresponding charging pile organization is determined based on the equipment serial number in the electricity consumption data.

[0224] Obtain the channel identifier of the charging pile institution, and locate the corresponding channel based on the channel identifier; among them, one charging pile platform corresponds to multiple device serial numbers, and these device serial numbers all point to the same channel identifier.

[0225] Alternatively, after identifying the corresponding channel, a smart contract is invoked, the smart contract is installed on the corresponding node, and a smart contract is defined in the channel. The smart contract shares the business process among alliance members and distributes transactions to each node in the network.

[0226] The invocation of smart contracts, manipulation of the ledger, and generation and synchronization of blockchain ledger data specifically include:

[0227] The SDK initiates a transaction proposal to the blockchain network, and the transaction proposal sends the information of the transaction to the endorsing node.

[0228] After receiving a transaction proposal, the endorsing node verifies the signature and determines whether the submitter has the right to execute the operation. At the same time, it simulates the execution of the smart contract according to the endorsement strategy and returns the result and its respective CA certificate signature.

[0229] After receiving the information returned by the endorsing node, it determines whether the proposal result is consistent and whether the specified endorsement strategy is followed. If there are not enough endorsements, the processing is stopped; otherwise, the data is packaged together to form a transaction, signed, and sent to the sorting node.

[0230] The sorting nodes perform consensus sorting on the received transactions, and then package a batch of transactions together according to the block generation strategy to generate a new block, which is then sent to the committing nodes.

[0231] After receiving a block, the submitting node verifies each transaction in the block, checks whether the inputs and outputs that the transaction depends on are consistent with the current state of the blockchain, appends the block to its local blockchain, and modifies the world state.

[0232] Alternatively, each charging pile institution node stores the institution's ledger, the payment institution node stores the alliance's payment ledger, and the bank node stores the alliance's bank ledger. The institution ledger contains the corresponding electricity order data, the payment ledger contains the corresponding payment records, and the bank ledger contains the corresponding deduction records and balances.

[0233] The above description is merely a preferred embodiment of the present invention and is not intended to limit the invention. Various modifications and variations can be made to the present invention by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the scope of protection of the present invention.

Claims

1. A method for isolating electrical data, characterized in that, Includes the following steps: Create a consortium blockchain network to create corresponding nodes for charging pile institutions, payment institutions, and banks; Define alliances and create independent channels for each alliance; different charging pile institutions belong to different alliances, while payment institutions and banks belong to the same alliance. Each channel corresponds to a channel identifier. For the same channel, when any node in the ledger of the channel writes data, the ledgers of other nodes on the channel are written data synchronously. The receiving node sends electricity consumption data, identifies the channel where the charging pile is located based on the electricity consumption data, and distributes the data. Invoke smart contracts to manipulate the ledger, generate and synchronize blockchain ledger data.

2. The power consumption data isolation method as described in claim 1, characterized in that, The consortium blockchain network includes a sorting service, which consists of a single node configured according to a network configuration NC4. The NC4 contains rules describing the initialization set of network management capabilities, including certificate authorities and member service providers. The certificate authorities identify components belonging to a certain organization and provide signatures for transactions. The member service providers match certificates with member organizations. Alternatively, the definition of an alliance, creating an independent channel for each alliance, includes: Multiple first organizations are defined as the first alliance, and multiple second organizations are defined as the second alliance; Store the alliance definition in the network configuration NC4, and set up a certificate authority for each organization; The first channel is created through the first alliance, and the second channel is created through the second alliance. The first channel is configured and managed using the first channel, and the second channel is configured and managed using the second channel. The configurations of the first and second channels are completely independent of the network configuration NC4 and are configured by the members of the alliance themselves.

3. The power consumption data isolation method as described in claim 1, characterized in that, The receiving node sends electricity consumption data, and identifies the channel of the charging pile institution based on the electricity consumption data, including: The corresponding charging pile organization is determined based on the equipment serial number in the electricity consumption data. Obtain the channel identifier of the charging pile institution, and locate the corresponding channel based on the channel identifier; where one charging pile platform corresponds to multiple device serial numbers, and these device serial numbers all point to the same channel identifier; Alternatively, after identifying the corresponding channel, a smart contract is invoked, the smart contract is installed on the corresponding node, and a smart contract is defined in the channel. The smart contract shares the business process among alliance members and distributes transactions to each node in the network.

4. The power consumption data isolation method as described in claim 1, characterized in that, The process of invoking smart contracts, manipulating the ledger, and generating and synchronizing blockchain ledger data specifically includes: The SDK initiates a transaction proposal to the blockchain network, and the transaction proposal sends the information of the transaction to the endorsing node. After receiving a transaction proposal, the endorsing node verifies the signature and determines whether the submitter has the right to execute the operation. At the same time, it simulates the execution of the smart contract according to the endorsement strategy and returns the result and its respective CA certificate signature. After receiving the information returned by the endorsing node, it determines whether the proposal result is consistent and whether the specified endorsement strategy is followed. If there are not enough endorsements, the processing is stopped; otherwise, the data is packaged together to form a transaction, signed, and sent to the sorting node. The sorting nodes perform consensus sorting on the received transactions, and then package a batch of transactions together according to the block generation strategy to generate a new block, which is then sent to the committing nodes. After receiving a block, the submitting node verifies each transaction in the block, checks whether the inputs and outputs that the transaction depends on are consistent with the current state of the blockchain, appends the block to its local blockchain, and modifies the world state. Alternatively, each charging pile institution node stores the institution's ledger, the payment institution node stores the alliance's payment ledger, and the bank node stores the alliance's bank ledger. The institution ledger contains the corresponding electricity order data, the payment ledger contains the corresponding payment records, and the bank ledger contains the corresponding deduction records and balances.

5. A power data isolation system, characterized in that, include: The node creation module is used to create a consortium blockchain network, creating corresponding nodes for charging pile institutions, payment institutions, and banks. The channel creation module is used to define alliances and create independent channels for each alliance. Different charging pile institutions belong to different alliances, while payment institutions and banks belong to the same alliance. Each channel corresponds to a channel identifier. For the same channel, when any node in the ledger of the channel writes data, the ledgers of other nodes on the channel are written data synchronously. The channel identification module is used to receive power consumption data sent by the node, identify the channel where the charging pile is located based on the power consumption data, and distribute the data. The data synchronization module is used to invoke smart contracts, manipulate the ledger, and generate and synchronize blockchain ledger data.

6. A node, characterized in that, The node is simultaneously connected to the consortium blockchain. The node includes a processor and a memory for storing instructions. When the processor executes the instructions in the memory, the processor runs a power consumption data isolation program. When the power consumption data isolation program is executed by the processor, it implements the steps of a power consumption data isolation method as described in any one of claims 1-4.

7. A consortium blockchain, characterized in that, Includes the node described in claim 6.

8. A mobile terminal, characterized in that, The terminal includes a memory and a processor. When the processor executes the power consumption data isolation program stored in the memory, it implements the steps of the power consumption data isolation method as described in any one of claims 1-4.

9. A charging pile, characterized in that, The charging pile includes a memory and a processor. When the processor executes the power consumption data isolation program stored in the memory, it implements the steps of the power consumption data isolation method as described in any one of claims 1-4.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the program is executed by the processor, it implements the steps in the power consumption data isolation method as described in any one of claims 1-4.

Citation Information

Patent Citations

  • Block chain consensus method and device and alliance chain system

    CN110189226A

  • Transaction method for creating node group in alliance chain network based on node group

    CN111382168A