CN115567543A - Block chain-based edge side transaction data consensus method, device and equipment - Google Patents

Block chain-based edge side transaction data consensus method, device and equipment Download PDF

Info

Publication number
CN115567543A
CN115567543A CN202211071778.2A CN202211071778A CN115567543A CN 115567543 A CN115567543 A CN 115567543A CN 202211071778 A CN202211071778 A CN 202211071778A CN 115567543 A CN115567543 A CN 115567543A
Authority
CN
China
Prior art keywords
consensus
block chain
node
nodes
transaction
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211071778.2A
Other languages
Chinese (zh)
Inventor
赵志宇
谢林江
陈达
姜莹
李零
刘莎
张劲松
李力
肖鹏
彭剑锋
朱延杰
赵丹青
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Information Center of Yunnan Power Grid Co Ltd
Original Assignee
Information Center of Yunnan Power Grid 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 Information Center of Yunnan Power Grid Co Ltd filed Critical Information Center of Yunnan Power Grid Co Ltd
Priority to CN202211071778.2A priority Critical patent/CN115567543A/en
Publication of CN115567543A publication Critical patent/CN115567543A/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
    • H04L67/104Peer-to-peer [P2P] networks
    • H04L67/1044Group management mechanisms 
    • H04L67/1048Departure or maintenance mechanisms
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/64Protecting data integrity, e.g. using checksums, certificates or signatures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/18Network architectures or network communication protocols for network security using different networks or channels, e.g. using out of band channels

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Computing Systems (AREA)
  • Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Computer Hardware Design (AREA)
  • Databases & Information Systems (AREA)
  • Finance (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Accounting & Taxation (AREA)
  • Mathematical Physics (AREA)
  • General Health & Medical Sciences (AREA)
  • Software Systems (AREA)
  • Bioethics (AREA)
  • Health & Medical Sciences (AREA)
  • Data Mining & Analysis (AREA)
  • Development Economics (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Strategic Management (AREA)
  • Technology Law (AREA)
  • General Business, Economics & Management (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention provides a block chain-based edge side transaction data consensus method, a block chain-based edge side transaction data consensus device and block chain-based edge side transaction data consensus equipment, belongs to the technical field of computers, and is used for avoiding data consensus by using a malicious node as a consensus node, ensuring the security of transaction data and ensuring the credibility of transactions. The invention discloses a block chain-based edge side transaction data consensus method, which comprises the following steps: forming a block chain network by a plurality of edge nodes by using a block chain technology, wherein the block chain network comprises a common node, a candidate node and a common node; adjusting the consensus nodes in the block chain network by adopting a dynamic change mechanism based on a PBFT consensus algorithm to obtain the dynamically changed consensus nodes; and performing consensus of the edge side transaction data according to the dynamically changed consensus node.

Description

Block chain-based edge side transaction data consensus method, device and equipment
Technical Field
The invention belongs to the technical field of computers, and particularly relates to a block chain-based edge side transaction data consensus method, device and equipment.
Background
With the deep advancement of national industrial internet, "internet +" action plan, cloud computing and big data strategy, the construction of a smart internet of things system is accelerated in various industries, and the interactive construction of massive edge sides and cloud ends is promoted. The cloud edge cooperation technology provides a solution for the problems, and the core idea is to deploy part of data processing, analysis and related application programs to a marginal layer close to a data source so as to reduce data processing time delay and relieve resource pressure of a cloud platform.
As a new technology, the block chain has the characteristics of decentralization, time sequence data, collective maintenance, programmability, safety, credibility and the like, and is very suitable for scenes with higher requirements on safety, such as transaction data consensus, transmission and the like.
In the related art, block chain consensus mechanisms such as PoW (Proof of Work), poS (Proof of stock), and DPoS (released Proof of stock) are mainly used for power data consensus in multi-station fusion. However, the existing block chain consensus mechanism cannot respond to the node which initiates the malicious attack in time, so that potential safety hazards are easily caused, and the safety of multi-station fused power data cannot be ensured.
The information disclosed in this background section is only for enhancement of understanding of the general background of the invention and should not be taken as an acknowledgement or any form of suggestion that this information forms the prior art already known to a person skilled in the art.
Disclosure of Invention
The invention aims to avoid data consensus by taking a malicious node as a consensus node, guarantee the safety of transaction data and ensure the credibility of transactions, and provides a block chain-based edge side transaction data consensus method, device and equipment.
In a first aspect, an embodiment of the present invention provides a block chain-based edge transaction data consensus method, including:
forming a block chain network by a plurality of edge nodes by using a block chain technology, wherein the block chain network comprises a common node, a candidate node and a common node;
adjusting the consensus nodes in the block chain network by adopting a dynamic change mechanism based on a PBFT consensus algorithm to obtain dynamically changed consensus nodes;
and performing consensus of the edge side transaction data according to the dynamically changed consensus node.
Optionally, the adjusting, by using a dynamic change mechanism, the consensus node in the block chain network based on the PBFT consensus algorithm to obtain a dynamically changed consensus node includes:
detecting a consensus node in the blockchain network;
when malicious nodes exist in the common nodes of the block chain network, reducing the malicious nodes in the block chain network into common nodes or removing the malicious nodes;
and taking the candidate nodes in the block chain network as consensus nodes according to the trust degrees of the candidate nodes in the block chain network.
Optionally, the block chain-based edge-side transaction data consensus method further includes:
and the consensus node performs real-time consensus on the transaction data in the block chain network and executes the transaction according to the consensus result.
Optionally, the executing the transaction according to the consensus result specifically includes:
constructing a transaction platform on a block chain network based on a preset intelligent contract;
receiving an authentication request initiated by a user node on the transaction platform, authenticating the user node by the transaction platform according to the intelligent contract, and sending an authentication message to the authenticated user node;
and the user node which is successfully authenticated registers at least one transaction account as required through the intelligent contract to carry out transaction.
Optionally, the intelligent contracts include user intelligent contracts, authenticated intelligent contracts and trading intelligent contracts.
In a second aspect, an embodiment of the present invention provides a block chain-based edge transaction data consensus apparatus, including:
the block chain network generation module is configured to combine a plurality of edge nodes into a block chain network by using a block chain technology, and the block chain network comprises a common node, candidate nodes and a common node;
the consensus node adjusting module is configured to adjust the consensus nodes in the block chain network by adopting a dynamic change mechanism based on a PBFT consensus algorithm to obtain the dynamically changed consensus nodes;
and the transaction data consensus module is configured to perform edge side transaction data consensus according to the dynamically changed consensus node.
Optionally, the consensus node adjusting module includes:
a detection sub-module configured to detect a consensus node in the blockchain network;
the malicious node processing sub-module is configured to reduce the malicious nodes in the blockchain network into common nodes or eliminate the common nodes when the malicious nodes exist in the common nodes of the blockchain network;
and the candidate node processing submodule is configured to take the candidate nodes in the block chain network as consensus nodes according to the trust degrees of the candidate nodes in the block chain network.
Optionally, the edge-side transaction data consensus device further includes:
and the transaction processing module is configured to perform real-time consensus on the transaction data in the block chain network by the consensus node and execute transaction according to a consensus result.
Optionally, the transaction processing module comprises:
the trading platform construction sub-module is configured to construct a trading platform on the blockchain network based on a preset intelligent contract;
the transaction platform authenticates the user node according to the intelligent contract and sends an authentication message to the authenticated user node;
and the transaction sub-module is configured to register at least one transaction account for transaction as required through the intelligent contract by the user node which obtains successful authentication.
In a third aspect, an embodiment of the present invention provides an electronic device, including:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to cause the at least one processor to perform the method described above.
Drawings
Fig. 1 is a flowchart illustrating a block chain-based edge transaction data consensus method according to an embodiment of the present invention;
fig. 2 is a flowchart illustrating another block chain-based edge transaction data consensus method according to an embodiment of the present invention;
fig. 3 is a flowchart illustrating a further block chain-based edge transaction data consensus method according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram illustrating a block chain-based edge transaction data consensus device according to an embodiment of the present invention;
fig. 5 shows a schematic structural diagram of a consensus node adjusting module according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram illustrating another block chain-based edge transaction data consensus device according to an embodiment of the present invention;
FIG. 7 shows a schematic block diagram of an example electronic device that may be used to implement an embodiment of the invention.
Detailed Description
In order to make the technical solutions of the present invention better understood, the present invention is further described in detail with reference to the accompanying drawings and the detailed description below.
Unless defined otherwise, technical or scientific terms used herein shall have the ordinary meaning as understood by one of ordinary skill in the art to which this invention belongs. The use of "first," "second," and similar terms in the present application do not denote any order, quantity, or importance, but rather the terms are used to distinguish one element from another. Also, the use of the terms "a," "an," or "the" and similar referents do not denote a limitation of quantity, but rather denote the presence of at least one. The word "comprising" or "comprises", and the like, means that the element or item listed before the word covers the element or item listed after the word and its equivalents, but does not exclude other elements or items. The terms "connected" or "coupled" and the like are not restricted to physical or mechanical connections, but may include electrical connections, whether direct or indirect. "upper", "lower", "left", "right", and the like are used merely to indicate relative positional relationships, and when the absolute position of the object being described is changed, the relative positional relationships may also be changed accordingly.
It should be noted that the blockchain is a chain data structure that combines data blocks in a sequential manner according to a time sequence, and the blockchain is also equal to a blockadding chain, and a block can be roughly divided into a head (header) and a body (body). The block header generally includes the hash value (parent hash) of the previous block, a timestamp, and other information, and the block body includes information corresponding to the block itself, and the whole blockchain system may include the following technical features:
(1) Point-to-point transmission: all nodes in a blockchain are connected together through a point-to-point network, and unlike a centralized network mode, all nodes in the point-to-point network are in equal positions, share part of computing resources and transmit information through a specific software protocol.
(2) Distributed data storage: as a distributed ledger, all participating nodes in the blockchain system will contain a complete ledger information copy of the blockchain, and whether the information of one ledger is tampered can be compared with the ledger copy information of other nodes.
(3) And a consensus mechanism: all blockchain nodes maintain own blockchain accounts and can collect transaction information newly generated in the blockchain in a period of time and store the transaction information in the blockchain accounts, if the blockchain nodes keep the blockchain information added by all nodes in the whole network in a consistent and commonly verified and approved by all nodes, the process of verifying and approving the blockchain nodes with the stored blockchain information through all nodes is called a consensus mechanism, and the consensus mechanism is achieved through a distributed consistency consensus algorithm.
For example, a cloud edge collaborative architecture is adopted at the present stage of companies such as power grids and water conservancy, and the core idea is that part of data processing, analysis and related services in a cloud layer are deployed to an edge layer close to a data source, so that data processing time delay is reduced, and resource pressure of a cloud platform is relieved. With the deep advancement of national industrial internet, "internet +" action plan, cloud computing and big data strategy, the construction of a smart internet of things system is accelerated in various industries, and the interactive construction of massive edge sides and cloud ends is promoted. The cloud edge cooperation technology provides a solution for the problems, and the core idea is to deploy part of data processing, analysis and related application programs to a marginal layer close to a data source so as to reduce data processing time delay and relieve resource pressure of a cloud platform. As a new technology, the block chain has the characteristics of decentralization, time sequence data, collective maintenance, programmability, safety, credibility and the like, and is very suitable for scenes with higher requirements on safety, such as transaction data consensus, transmission and the like. In the related art, block chain consensus mechanisms such as PoW (Proof of Work), poS (Proof of stock), and DPoS (released Proof of stock) are mainly used for power data consensus in multi-station fusion. However, the existing block chain consensus mechanism cannot respond to the node which initiates the malicious attack in time, so that potential safety hazards are easily caused, and the security of transaction data cannot be ensured.
In order to solve at least one of the above technical problems, embodiments of the present invention provide a block chain-based edge side transaction data consensus method, an apparatus and an electronic device, and the block chain-based edge side transaction data consensus method, the apparatus and the electronic device provided in the embodiments of the present invention are further described in detail with reference to the accompanying drawings and the detailed description.
It should be noted that the execution subject of the block chain based edge transaction data consensus method according to the embodiment of the present application is a block chain based edge transaction data consensus device, and the block chain based edge transaction data consensus device can be applied to any computer device, so that the computer device can execute a block chain based edge transaction data consensus function. The Computer device may be a Personal Computer (PC), a peer-to-peer device, a mobile device, a server, and the like, and the mobile device may be a hardware device having various operating systems, touch screens, and/or display screens, such as a mobile phone, a tablet Computer, a Personal digital assistant, a wearable device, and an in-vehicle device.
In a first aspect, fig. 1 is a flowchart of a block chain-based edge transaction data consensus method according to an embodiment of the present invention, and as shown in fig. 1, the block chain-based edge transaction data consensus method includes:
s100, forming a block chain network by utilizing a block chain technology through a plurality of edge nodes, wherein the block chain network comprises a common node, a candidate node and a common node.
The edge node in this embodiment is a node located in an edge layer in the cloud edge coordination system. The edge node may be a physical node, for example, including but not limited to a server, a gateway, and the like.
Optionally, the block chain network may implement data consensus through the consensus node, thereby ensuring data security. In some embodiments, any node in the blockchain network can become a common node through registration, and if the common node in the blockchain network is authenticated as a trusted node by a trusted node or an authorized third party, the common node can be authenticated as a candidate node and generates an identity key for the candidate node, and meanwhile, the identity key is distributed to other candidate selection nodes and common identification nodes in the blockchain network for identity authentication; trusted candidate nodes (e.g., candidate nodes with higher confidence) may be identified as consensus nodes. And if the common node monitors the malicious node through abnormal behaviors, the common node can be reduced to be a common node or removed.
S200, adjusting the consensus nodes in the block chain network by adopting a dynamic change mechanism based on a PBFT consensus algorithm to obtain the dynamically changed consensus nodes;
in order to avoid hidden data safety hazards caused by data consensus performed by malicious nodes serving as consensus nodes, and further guarantee the data safety, in the embodiment of the application, the consensus nodes in the block chain network can be detected. As an example, when a malicious node exists in the consensus node, the malicious node may be reduced to a normal node or removed, and a candidate node with a higher confidence level is used as the consensus node. See the description of the embodiments that follow in detail.
And S300, performing consensus on the edge side transaction data according to the dynamically changed consensus node.
In order to better realize data consensus and guarantee data security, in the embodiment of the application, the consensus node may include a master node and a plurality of slave nodes, and the master node may alternately act in the consensus node. After acquiring the dynamically changed consensus node, the transaction data consensus may include, but is not limited to, a transaction data request, transaction data preparation, transaction data feedback, transaction data confirmation, and transaction data reply.
In the embodiment, the consensus nodes in the block chain network are adjusted by adopting a dynamic change mechanism based on a PBFT consensus algorithm to obtain the dynamically changed consensus nodes, and the consensus of the edge side transaction data is performed according to the dynamically changed consensus nodes, so that a malicious node is prevented from being used as the consensus node to perform data consensus, the security of the transaction data is ensured, and the credibility of the transaction is ensured.
Fig. 2 is a flowchart of another block chain-based edge transaction data consensus method according to an embodiment of the present invention, where as shown in fig. 2, S200, based on the PBFT consensus algorithm, adjusts the consensus node in the block chain network by using a dynamically changed mechanism, so as to obtain the dynamically changed consensus node specifically includes:
s201, detecting the consensus node in the block chain network.
In this embodiment, the consensus nodes are detected based on a PBFT (Practical Byzantine Fault Tolerance) algorithm, and whether malicious nodes exist in the consensus nodes is determined.
S202, when the malicious nodes exist in the common identification nodes of the block chain network, the malicious nodes in the block chain network are reduced to be common nodes or eliminated.
When a malicious node is detected to exist in the consensus node in the block chain network, the malicious node can be marked as an untrusted node and simultaneously becomes a common node; when the malicious node does not exist in the common node in the detection block chain network, the common node in the block chain network is a trusted node, and data common identification can be performed.
And S203, taking the candidate nodes in the block chain network as consensus nodes according to the trust degrees of the candidate nodes in the block chain network.
It should be understood that in the PBFT algorithm, assuming there are n malicious nodes, at least 3n +1 consensus nodes are needed to identify the attack of the malicious nodes. Therefore, in order to ensure that the number of the consensus nodes is larger than 3n +1, optionally, the trust degree of the candidate nodes in the block chain network is detected, and a node with higher trust degree can be selected from the candidate nodes to serve as a new consensus node.
In conclusion, the common identification nodes in the block chain network are detected; when malicious nodes exist in the consensus nodes of the block chain network, the malicious nodes in the block chain network are reduced to common nodes; and taking the candidate nodes in the block chain network as consensus nodes according to the trust degrees of the candidate nodes in the block chain network. Therefore, the consensus nodes in the block chain network are adjusted by adopting a dynamic change mechanism, so that the data consensus of malicious nodes serving as the consensus nodes is avoided, the safety of transaction data is guaranteed, and the credibility of the transaction is guaranteed.
As shown in fig. 3, the block chain-based edge transaction data consensus method further includes:
s400, the consensus node performs real-time consensus on the transaction data in the block chain network, and executes the transaction according to a consensus result, wherein the consensus result specifically comprises the following steps:
s401, establishing a trading platform on the block chain network based on a preset intelligent contract.
The transaction platform establishes a first-level operation unit control digital certificate authentication center in advance, and establishes a second-level operation unit to be responsible for alliance chain operation and maintenance such as node management, a common identification block, alliance chain parameter setting, intelligent contract deployment and the like through authorization of the first-level operation unit.
The intelligent contract comprises a user intelligent contract, an authentication intelligent contract and a transaction intelligent contract. Wherein, the user intelligent contract is used for user registration; the authentication intelligent contract is used for the authentication of the data assets of the user node; the transaction intelligence contract is used for data asset transactions.
S402, receiving an authentication request initiated by a user node on a transaction platform, authenticating the user node by the transaction platform according to an intelligent contract, and sending an authentication message to the authenticated user node.
The authentication message is embodied in the form of issuing a digital certificate, for example, and after the authenticated user node joins the blockchain network, a plurality of accounts are registered as required for data transaction.
And S403, registering at least one transaction account for transaction according to requirements by the user node which is successfully authenticated through the intelligent contract.
In the embodiment, a transaction platform is constructed on a block chain network based on a preset intelligent contract, a user node initiates an authentication request on the transaction platform, the transaction platform authenticates the user node according to the intelligent contract and sends an authentication message to the authenticated user node, and the user node which is successfully authenticated registers at least one transaction account for transaction as required through the intelligent contract, so that a large amount of manpower resources and time are saved for authority examination and data verification, and the secure sharing and transaction of enterprise private data assets are realized.
Fig. 4 illustrates a transaction data consensus apparatus of an edge-side blockchain according to an embodiment of the present invention, and as shown in fig. 4, the transaction data consensus apparatus 300 of the edge-side blockchain includes a blockchain network generation module 301, a consensus node adjustment module 302, and a transaction data consensus module 303.
Specifically, the blockchain network generation module 301 is configured to combine a plurality of edge nodes into a blockchain network by using a blockchain technique, where the blockchain network includes common nodes, candidate nodes, and common nodes. The consensus node adjustment module is configured 302 to adjust the consensus nodes in the blockchain network by using a dynamic change mechanism based on a PBFT consensus algorithm to obtain dynamically changed consensus nodes. The transaction data consensus module 303 is configured to perform edge-side transaction data consensus according to the dynamically changed consensus node.
In this embodiment, the blockchain network generation module 301 combines a plurality of edge nodes into a blockchain network by using blockchain technology; the consensus node adjusting module adjusts the consensus nodes in the block chain network by adopting a dynamic change mechanism based on a PBFT consensus algorithm to obtain the consensus nodes after dynamic change; the transaction data consensus module 303 performs edge-side transaction data consensus according to the consensus node after dynamic change, so that a malicious node is prevented from being used as the consensus node to perform data consensus, the security of transaction data is guaranteed, and the credibility of the transaction is guaranteed.
As shown in fig. 5, the consensus node adjustment module 302 includes a detection sub-module 3021, a malicious node processing sub-module 3022, and a candidate node processing sub-module 3023.
In particular, the detection sub-module 3021 is configured to detect a consensus node in the blockchain network. The malicious node processing sub-module 3022 is configured to reduce a malicious node in the blockchain network to a normal node or to remove the malicious node when the malicious node exists in the common node of the blockchain network. The candidate node processing submodule 3023 is configured to regard a candidate node in the blockchain network as a consensus node according to the trust degree of the candidate node in the blockchain network.
In this embodiment, the measurement module 3021 detects a consensus node in the blockchain network; the malicious node processing sub-module 3022 reduces the malicious nodes in the block chain network to normal nodes or eliminates them; the candidate node processing sub-module 3023 uses the candidate node in the blockchain network as a consensus node according to the trust degree of the candidate node in the blockchain network, thereby further avoiding data consensus by using a malicious node as the consensus node, ensuring the security of transaction data, and ensuring the credibility of the transaction.
Fig. 6 is a schematic structural diagram of another transaction data consensus apparatus for an edge-side block chain according to an embodiment of the present invention, and as shown in fig. 6, the transaction data consensus apparatus for the edge-side block chain further includes a transaction processing module 304. The transaction processing module 304 is configured to perform real-time consensus on the transaction data in the blockchain network by the consensus node and execute the transaction according to the consensus result.
In some embodiments, the transaction processing module includes a transaction platform building sub-module, an authentication sub-module, and a transaction sub-module. Specifically, the trading platform construction sub-module is configured to construct a trading platform on the blockchain network based on a preset intelligent contract. The authentication submodule is configured to receive an authentication request initiated by a user node on a transaction platform, and the transaction platform authenticates the user node according to the intelligent contract and sends an authentication message to the authenticated user node. The transaction sub-module is configured to register at least one transaction account for transaction as required by the user node which obtains successful authentication through the intelligent contract.
In this embodiment, a trading platform is constructed on a blockchain network based on a preset intelligent contract through a trading platform construction sub-module; the authentication sub-module receives an authentication request initiated by a user node on a transaction platform, and the transaction platform authenticates the user node according to the intelligent contract and sends an authentication message to the authenticated user node; the user node successfully authenticated by the transaction submodule registers at least one transaction account to perform transaction according to requirements through the intelligent contract, so that a large amount of human resources and time are saved for authority examination and data verification, and the safe sharing and transaction of enterprise private data assets are realized.
FIG. 7 shows a schematic block diagram of an example electronic device 700 that may be used to implement an embodiment of the invention. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be exemplary only, and are not meant to limit implementations of the inventions described and/or claimed herein.
As shown in fig. 7, the device 700 comprises a computing unit 701, which may perform various suitable actions and processes according to a computer program stored in a Read Only Memory (ROM) 702 or a computer program loaded from a storage unit 708 into a Random Access Memory (RAM) 703. In the RAM 703, various programs and data required for the operation of the device 700 can be stored. The computing unit 701, the ROM 702, and the RAM 703 are connected to each other by a bus 704. An input/output (I/O) interface 705 is also connected to bus 704.
A number of components in the device 700 are connected to the I/O interface 705, including: an input unit 706 such as a keyboard, a mouse, or the like; an output unit 707 such as various types of displays, speakers, and the like; a storage unit 708 such as a magnetic disk, optical disk, or the like; and a communication unit 709 such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 709 allows the device 700 to exchange information/data with other devices via a computer network, such as the internet, and/or various telecommunication networks.
Computing unit 701 may be a variety of general purpose and/or special purpose processing components with processing and computing capabilities. Some examples of the computing unit 701 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various dedicated Artificial Intelligence (AI) computing chips, various computing units running machine learning model algorithms, a Digital Signal Processor (DSP), and any suitable processor, controller, microcontroller, and so forth. The computing unit 701 performs the various methods and processes described above, such as a consensus method for edge side transaction data based on block chains. For example, in some embodiments, the consensus method for block chain based edge side transaction data may be implemented as a computer software program tangibly embodied in a machine-readable medium, such as storage unit 708. In some embodiments, part or all of a computer program may be loaded onto and/or installed onto device 700 via ROM 702 and/or communications unit 709. When the computer program is loaded into the RAM 703 and executed by the computing unit 701, one or more steps of the above described consensus method for block chain based edge side transaction data may be performed. Alternatively, in other embodiments, the computing unit 701 may be configured by any other suitable means (e.g., by means of firmware) to perform the consensus method for edge-side transaction data based on blockchains.
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuitry, field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), system on a chip (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs that are executable and/or interpretable on a programmable system including at least one programmable processor, which may be special or general purpose, receiving data and instructions from, and transmitting data and instructions to, a storage system, at least one input device, and at least one output device.
Program code for implementing the methods of the present invention may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the program codes, when executed by the processor or controller, cause the functions/operations specified in the flowchart and/or block diagram to be performed. The program code may execute entirely on the machine, partly on the machine, as a stand-alone software package, partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of the present invention, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) by which a user may provide input to the computer. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic, speech, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a back-end component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such back-end, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), wide Area Networks (WANs), and the Internet.
Cloud computing (cloud computer) refers to a technology architecture that accesses a flexibly extensible shared physical or virtual resource pool through a network, where the resource may include a server, an operating system, a network, software, an application or a storage device, and the like, and can be deployed and managed in an on-demand and self-service manner. Through the cloud computing technology, high-efficiency and strong data processing capacity can be provided for technical application and model training of artificial intelligence, block chains and the like.
The computer system may include clients and servers. A client and server are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server may be a cloud server, a server of a distributed system, or a server with a combined blockchain.
It should be understood that various forms of the flows shown above, reordering, adding or deleting steps, may be used. For example, the steps described in the present invention may be executed in parallel, sequentially, or in different orders, and are not limited herein as long as the desired result of the technical solution of the present invention can be achieved.
It will be understood that the above embodiments are merely exemplary embodiments adopted to illustrate the principles of the present invention, and the present invention is not limited thereto. It will be apparent to those skilled in the art that various modifications and improvements can be made without departing from the spirit and substance of the invention, and these modifications and improvements are also considered to be within the scope of the invention.

Claims (10)

1. A block chain-based edge side transaction data consensus method is characterized by comprising the following steps:
forming a block chain network by a plurality of edge nodes by using a block chain technology, wherein the block chain network comprises a common node, a candidate node and a common node;
adjusting the consensus nodes in the block chain network by adopting a dynamic change mechanism based on a PBFT consensus algorithm to obtain dynamically changed consensus nodes;
and performing consensus of the edge side transaction data according to the dynamically changed consensus node.
2. The block chain-based edge transaction data consensus method according to claim 1, wherein the adjusting a consensus node in the block chain network by using a dynamically changed mechanism based on the PBFT consensus algorithm to obtain a dynamically changed consensus node comprises:
detecting a consensus node in the block chain network;
when malicious nodes exist in the common identification nodes of the block chain network, the malicious nodes in the block chain network are reduced to common nodes or removed;
and taking the candidate nodes in the block chain network as consensus nodes according to the trust degrees of the candidate nodes in the block chain network.
3. The block chain based edge side transaction data consensus method as claimed in claim 1, further comprising:
and the consensus node performs real-time consensus on the transaction data in the block chain network and executes the transaction according to the consensus result.
4. The block chain-based consensus method for edge-side transaction data, according to claim 3, wherein the performing a transaction according to the consensus result specifically comprises:
constructing a trading platform on a block chain network based on a preset intelligent contract;
receiving an authentication request initiated by a user node on the transaction platform, authenticating the user node by the transaction platform according to the intelligent contract, and sending an authentication message to the authenticated user node;
and the user node which is successfully authenticated registers at least one transaction account as required through the intelligent contract to carry out transaction.
5. A block chain based edge-side transaction data consensus method according to claim 4, wherein said intelligent contracts comprise user intelligent contracts, authentication intelligent contracts, and transaction intelligent contracts.
6. An apparatus for recognizing edge transaction data based on blockchain, comprising:
the block chain network generation module is configured to combine a plurality of edge nodes into a block chain network by using a block chain technology, and the block chain network comprises a common node, candidate nodes and a common node;
the consensus node adjusting module is configured to adjust the consensus nodes in the block chain network by adopting a dynamic change mechanism based on a PBFT consensus algorithm to obtain the dynamically changed consensus nodes;
and the transaction data consensus module is configured to perform edge side transaction data consensus according to the dynamically changed consensus node.
7. The block chain based edge side transaction data consensus device as claimed in claim 6, wherein the consensus node adjusting module comprises:
a detection submodule configured to detect a consensus node in the blockchain network;
the malicious node processing sub-module is configured to reduce the malicious nodes in the blockchain network into common nodes or eliminate the common nodes when the malicious nodes exist in the common nodes of the blockchain network;
and the candidate node processing submodule is configured to take the candidate nodes in the blockchain network as consensus nodes according to the trust degrees of the candidate nodes in the blockchain network.
8. The apparatus for block chain based edge side transaction data consensus as claimed in claim 7, further comprising:
and the transaction processing module is configured to perform real-time consensus on the transaction data in the block chain network by the consensus node and execute transaction according to a consensus result.
9. The apparatus for block chain based edge side transaction data consensus as claimed in claim 8, wherein said transaction processing module comprises:
the trading platform construction sub-module is configured to construct a trading platform on the blockchain network based on a preset intelligent contract;
the transaction platform authenticates the user node according to the intelligent contract and sends an authentication message to the authenticated user node;
and the transaction sub-module is configured to register at least one transaction account for transaction as required by the user node which obtains successful authentication through the intelligent contract.
10. An electronic device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein, the first and the second end of the pipe are connected with each other,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-5.
CN202211071778.2A 2022-08-31 2022-08-31 Block chain-based edge side transaction data consensus method, device and equipment Pending CN115567543A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211071778.2A CN115567543A (en) 2022-08-31 2022-08-31 Block chain-based edge side transaction data consensus method, device and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211071778.2A CN115567543A (en) 2022-08-31 2022-08-31 Block chain-based edge side transaction data consensus method, device and equipment

Publications (1)

Publication Number Publication Date
CN115567543A true CN115567543A (en) 2023-01-03

Family

ID=84739945

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211071778.2A Pending CN115567543A (en) 2022-08-31 2022-08-31 Block chain-based edge side transaction data consensus method, device and equipment

Country Status (1)

Country Link
CN (1) CN115567543A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109614438A (en) * 2018-10-24 2019-04-12 阿里巴巴集团控股有限公司 A kind of Claims Resolution method and apparatus based on block chain
CN109981279A (en) * 2017-12-28 2019-07-05 航天信息股份有限公司 A kind of block catenary system, communication means, device, equipment and medium
CN111444211A (en) * 2020-03-26 2020-07-24 腾讯科技(深圳)有限公司 Block chain consensus node checking method, device, equipment and storage medium
CN112232828A (en) * 2020-11-23 2021-01-15 国网能源研究院有限公司 Power grid data transaction method and system
CN112422621A (en) * 2020-09-28 2021-02-26 国网信息通信产业集团有限公司北京分公司 Multi-station fusion power data consensus method and device based on PBFT block chain technology
CN114390068A (en) * 2022-01-04 2022-04-22 青岛海尔电冰箱有限公司 Block chain consensus method and computer-readable storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109981279A (en) * 2017-12-28 2019-07-05 航天信息股份有限公司 A kind of block catenary system, communication means, device, equipment and medium
CN109614438A (en) * 2018-10-24 2019-04-12 阿里巴巴集团控股有限公司 A kind of Claims Resolution method and apparatus based on block chain
CN111444211A (en) * 2020-03-26 2020-07-24 腾讯科技(深圳)有限公司 Block chain consensus node checking method, device, equipment and storage medium
CN112422621A (en) * 2020-09-28 2021-02-26 国网信息通信产业集团有限公司北京分公司 Multi-station fusion power data consensus method and device based on PBFT block chain technology
CN112232828A (en) * 2020-11-23 2021-01-15 国网能源研究院有限公司 Power grid data transaction method and system
CN114390068A (en) * 2022-01-04 2022-04-22 青岛海尔电冰箱有限公司 Block chain consensus method and computer-readable storage medium

Similar Documents

Publication Publication Date Title
Lu The blockchain: State-of-the-art and research challenges
Atlam et al. Intersections between IoT and distributed ledger
EP3544256B1 (en) Passwordless and decentralized identity verification
TW201928743A (en) System and method for authenticating off-chain data based on proof verification
CN111327648B (en) Processing method and system based on block chain intelligent contract
WO2019227336A1 (en) Blockchain-based information processing method and device, and blockchain network
CN112073400A (en) Access control method, system and device and computing equipment
WO2018153485A1 (en) Method for mining a block in a decentralized blockchain consensus network
JP2022520656A (en) Computer-implemented systems and methods for performing transfers over the blockchain network
JP2022533396A (en) Blockchain consensus method, device and system
CN110226318A (en) Based on the privately owned transaction in Workflow Management block chain network
Sarode et al. Blockchain for committing peer-to-peer transactions using distributed ledger technologies
Aswathy et al. The Future of Edge Computing with Blockchain Technology: Possibility of Threats, Opportunities, and Challenges
CN112636929B (en) Group service implementation method, device, equipment and storage medium
CN108650289A (en) A kind of method and apparatus of the management data based on block chain
CN114760071B (en) Zero-knowledge proof based cross-domain digital certificate management method, system and medium
Mukherjee et al. Unified smart home resource access along with authentication using Blockchain technology
Le et al. Resource sharing and trading of blockchain radio access networks: Architecture and prototype design
CN111274597A (en) Data processing method and equipment
CN115459990A (en) Block chain-based terminal equipment network access authentication method, system and equipment
CN113935070B (en) Data processing method, device and equipment based on block chain and storage medium
CN115334026B (en) Instant messaging processing method, device and equipment based on block chain and storage medium
CN115567543A (en) Block chain-based edge side transaction data consensus method, device and equipment
CN113242305B (en) Cross-chain transaction processing method, device, computer equipment and medium
CN112926981B (en) Transaction information processing method, device and medium for block chain and electronic equipment

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