CN114257384A - Transaction processing method for block chain and network node - Google Patents
Transaction processing method for block chain and network node Download PDFInfo
- Publication number
- CN114257384A CN114257384A CN202010947726.1A CN202010947726A CN114257384A CN 114257384 A CN114257384 A CN 114257384A CN 202010947726 A CN202010947726 A CN 202010947726A CN 114257384 A CN114257384 A CN 114257384A
- Authority
- CN
- China
- Prior art keywords
- transaction
- network
- blockchain
- node
- nodes
- 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
Links
- 238000003672 processing method Methods 0.000 title claims abstract description 27
- 238000012545 processing Methods 0.000 claims abstract description 55
- 238000012795 verification Methods 0.000 claims abstract description 38
- 238000009826 distribution Methods 0.000 claims abstract description 34
- 238000003860 storage Methods 0.000 claims description 9
- 230000000977 initiatory effect Effects 0.000 claims description 8
- 238000004806 packaging method and process Methods 0.000 claims description 7
- 230000010365 information processing Effects 0.000 claims description 6
- 238000004458 analytical method Methods 0.000 claims description 4
- 238000012797 qualification Methods 0.000 claims description 3
- 238000010200 validation analysis Methods 0.000 claims 2
- 238000000034 method Methods 0.000 abstract description 17
- 238000005516 engineering process Methods 0.000 description 16
- 238000010586 diagram Methods 0.000 description 13
- 238000004891 communication Methods 0.000 description 11
- 230000006870 function Effects 0.000 description 8
- 230000005540 biological transmission Effects 0.000 description 6
- 238000004590 computer program Methods 0.000 description 6
- 238000004364 calculation method Methods 0.000 description 4
- 238000004422 calculation algorithm Methods 0.000 description 2
- 230000007246 mechanism Effects 0.000 description 2
- 238000010295 mobile communication Methods 0.000 description 2
- 238000005457 optimization Methods 0.000 description 2
- 230000008569 process Effects 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 239000000969 carrier Substances 0.000 description 1
- 230000001413 cellular effect Effects 0.000 description 1
- 238000010276 construction Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000014509 gene expression Effects 0.000 description 1
- 238000012423 maintenance Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000007480 spreading Effects 0.000 description 1
- 238000003892 spreading Methods 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/12—Applying verification of the received information
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q20/00—Payment architectures, schemes or protocols
- G06Q20/38—Payment protocols; Details thereof
- G06Q20/40—Authorisation, e.g. identification of payer or payee, verification of customer or shop credentials; Review and approval of payers, e.g. check credit lines or negative lists
- G06Q20/401—Transaction verification
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q40/00—Finance; Insurance; Tax strategies; Processing of corporate or income taxes
- G06Q40/04—Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1095—Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
Abstract
The present disclosure relates to a transaction processing method for a blockchain and a network node, the method comprising: a transaction data generation step, wherein the network nodes in the block chain network pack and distribute the transaction data to other network nodes in the block chain network; a transaction forwarding step, wherein each network node directly forwards the data to other network nodes in the block chain network when receiving transaction data; a transaction verification step, wherein after each network node directly forwards the received distribution data, a transaction corresponding to the forwarded transaction data is verified in a network layer; and an intelligent contract processing step, wherein when the transaction is not verified in the transaction verification step, the transaction is analyzed and processed according to the intelligent contract and the uplink is recorded in a contract layer.
Description
Technical Field
The present disclosure relates to the field of network communication technologies. More particularly, the present disclosure relates to a transaction processing method for blockchains and a network node implementing the method.
Background
In recent years, with the development of computer network technology and the advancement of informatization, the application of Blockchain (Blockchain) technology has gradually emerged. The block chain can be regarded as a decentralized database, which is a series of data blocks associated by using a cryptographic method, each data block contains information of one network transaction, and the information is used for verifying the validity (anti-counterfeiting) of the information and generating the next block.
Meanwhile, currently, as communication technology evolves, a fifth generation mobile communication (5G) technology facing the future is gradually spreading as a latest generation cellular mobile communication technology. Mobile Edge Computing (MEC) is an emerging technology based on the 5G evolution architecture to deeply merge access networks with internet services. The method deploys the functions of service processing and resource scheduling of part of the core network of an Application Server (AS) and a Mobile Broadband (MBB) to the network edge close to an access network together, and provides the highly-induced service experience with high reliability and ultra-low time delay through service close to user processing.
In the stage of building 5G communication infrastructure, for example, because the cost of building and maintaining communication networks and devices including base stations is greatly increased, a co-building and sharing method is commonly adopted among communication operators so as to effectively reduce the cost of 5G building and operation. In the co-building sharing, requirements of multi-party participation, information sharing, data credibility, normative consensus and the like are involved, and the method is very suitable for being combined with the advantages of the block chain technology. But the transaction nodes in the blockchain network cannot be directly placed on the base station. If the edge calculation mode is adopted, the pressure of a transmission network can be reduced, the service time delay is reduced, and the edge calculation node can be used as a block chain node to construct a block chain network. Therefore, in practical applications, it is generally preferable to use the edge computing node as a network node in the blockchain network.
According to the conventional blockchain technique, a network node in a blockchain network is verified each time after receiving transaction data, and the transaction data is transmitted to an adjacent node or a seed node after passing the verification. The receiving node of the transaction will also perform authentication and transmission again, looping through the network. This model creates a significant burden on both the individual nodes and the network as a whole. Particularly, in the case of combining the blockchain technology with edge computing, because the edge computing nodes generally have very limited computing capability, storage capability, and the like compared with a large server at a central node, it is necessary to optimize the blockchain network to meet the requirement of saving resources of the edge computing nodes, and it is also desirable to fully exert the security and stability of the blockchain network to realize efficient and stable operation of the system.
Disclosure of Invention
In the prior art, no mature network optimization scheme capable of effectively reducing resource consumption of edge computing nodes in a blockchain network and ensuring efficient and stable operation exists. In view of this, an object of the present disclosure is to provide a transaction processing method for a block chain and a network node, where a forwarding mechanism of transaction data is optimized and a verification result of a transaction is processed by using an intelligent contract, so that computation and storage resources of an edge computing network node are effectively saved, a transmission burden of a network is reduced, and meanwhile, efficient and stable operation of a system can be ensured.
The following presents a simplified summary of the disclosure in order to provide a basic understanding of some aspects of the disclosure. However, it should be understood that this summary is not an exhaustive overview of the disclosure. It is not intended to limit the critical or important parts of the present disclosure, nor is it intended to limit the scope of the present disclosure. Its sole purpose is to present some concepts of the disclosure in a simplified form as a prelude to the more detailed description that is presented later.
According to one aspect of the present disclosure, a transaction processing method for a blockchain is provided. The method can comprise the following steps: a transaction data generation step, wherein a network node in the block chain network packs and distributes distribution data including the transaction data to other network nodes including adjacent nodes and seed nodes in the block chain network; a transaction forwarding step of, when each of a plurality of network nodes in the blockchain network receives distribution data including transaction data from other network nodes as a source node, directly forwarding the received distribution data to other network nodes other than the source node in the blockchain network; a transaction verification step, in which after each network node in a plurality of network nodes in the blockchain network directly forwards the received distribution data, a transaction corresponding to the transaction data included in the forwarded distribution data is verified in a network layer of the network node; and an intelligent contract processing step, wherein when the transaction is not verified in the transaction verification step, the transaction is analyzed and processed and uplink is recorded according to the intelligent contract at a contract layer of the network node.
According to another aspect of the present disclosure, a network node for transaction processing of a blockchain is provided. The network node may comprise: the transaction data generation module is used for packaging and distributing distribution data comprising the transaction data to other network nodes comprising adjacent nodes and seed nodes in the block chain network; the transaction forwarding module is used for directly forwarding the received distribution data to other network nodes except the source node in the block chain network when receiving the distribution data comprising the transaction data from other network nodes serving as the source node; the transaction verification module is used for verifying the transaction corresponding to the transaction data in the transmitted distribution data in a network layer after the received distribution data is directly transmitted; and the intelligent contract processing module is used for analyzing and processing the transaction according to the intelligent contract and recording the uplink in the contract layer under the condition that the transaction is not verified in the transaction verification module.
According to yet another aspect of the present disclosure, a computer-readable storage medium is provided. The computer-readable storage medium may store executable instructions that, when executed by an information processing apparatus, cause the information processing apparatus to perform the above-described transaction processing method for a blockchain.
According to yet another aspect of the present disclosure, an electronic device is provided. The electronic device may include: a memory; and processing circuitry configured to perform the above-described transaction processing method for blockchains.
According to the invention, by optimizing the forwarding mechanism of the transaction data in the transaction processing for the block chain and processing the verification result of the transaction by using the intelligent contract, the computing and storage resources of the edge computing network node are effectively saved, the transmission burden of the network is reduced, and the efficient and stable operation of the system can be ensured.
Drawings
Fig. 1 shows an exemplary flow diagram of a transaction processing method for a blockchain according to an embodiment of the present disclosure;
fig. 2 illustrates an example block diagram of a network node for transaction processing of a blockchain in accordance with an embodiment of this disclosure.
Detailed Description
Preferred embodiments of the present disclosure will be described in detail below with reference to the accompanying drawings. It should be noted that the relative arrangement of the components and steps, the numerical expressions, and numerical values set forth in these embodiments do not limit the scope of the present disclosure unless specifically stated otherwise. Meanwhile, the sizes of the respective portions shown in the drawings are not drawn in an actual proportional relationship for the convenience of description. The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the disclosure, its application, or uses.
Techniques, methods, and apparatus known to those of ordinary skill in the relevant art may not be discussed in detail and are intended to be part of the specification where appropriate. The techniques of this disclosure can be applied to a variety of products.
For convenience of explanation, as a network node for implementing the transaction processing method for the blockchain, the present disclosure mainly takes an edge computing node in a 5G network as an example, but the technology of the present disclosure may be applied to any other current network node, and may further include, for example, devices and carriers in various network communication technologies that are not currently emerging in the future.
In order to facilitate a better understanding of the technical solution according to the present disclosure, some block chain related technologies applicable to the embodiments of the present disclosure are briefly described below.
In a narrow sense, a blockchain is a distributed ledger that combines data blocks in a time-sequential manner into a chained data structure and is cryptographically secured as being tamper-proof and counterfeit-proof. Broadly, the blockchain technique is a completely new distributed infrastructure and computing paradigm for validating and storing data using blockchain data structures, generating and updating data using distributed node consensus algorithms, cryptographically securing data transmission and access, programming and manipulating data using intelligent contracts composed of automated script code. In a blockchain network, whenever an encrypted transaction is generated, a node with powerful computing power in the network (i.e., a Miner) starts to decrypt the transaction using an algorithm, and a new block is created to record the latest transaction. The new blocks are added linearly to the end of the original chain of blocks in chronological order, so that the distributed book grows and lengthens continuously.
In an exemplary blockchain network, the central server is not included, but merely a plurality of network nodes, each of which is connected to at least one of the other network nodes. For example, when a new transaction is generated in the blockchain network, a new block is generated by a node, the new block includes transaction data, and the new block is broadcast to all other network nodes connected to the node in the blockchain network. Each network node that receives the block processes and validates the transaction data in the block. If the verification passes, a voting result indicating approval is broadcast to all other network nodes. If the proportion of network nodes that vote for the block exceeds some predetermined threshold, the block is verified and appended at the end of the original chain of blocks.
According to the traditional block chain technology, in order to ensure the safety and the credibility of the transaction, a block chain network node generally carries out transaction verification on transaction data sent from other nodes, and the transaction data is forwarded after the verification is passed. Due to performance bottlenecks and network congestion of network nodes, such as 5G network edge computing nodes, forwarding transaction data by the network nodes may result and form forwarding queues. The large block queues generate a lot of network idle and consume network resources.
In this case, the time for one transaction or block to be distributed to the entire network upon completion of transaction verification is desirably as shown in the following equation (1):
wherein, gamma isnaxRepresenting the maximum path in a blockchain network, P representing the set of all nodes, C representing the set of all links between nodes, TiIndicates the time of verification, T, at node ijIndicates the first item to the right of the transmission time of link jRepresenting the sum of the verification times of all nodes passing in the maximum path of the network, the second term on the rightRepresenting the sum of the time required to traverse all links in the maximum path of the network.
Fig. 1 illustrates an example flow diagram of a transaction processing method 100 for a blockchain in accordance with an embodiment of this disclosure. Fig. 2 illustrates an example block diagram of a network node 200 for transaction processing of blockchains in accordance with an embodiment of this disclosure. The transaction processing method 100 for blockchain of embodiments of the present disclosure may be performed at any network node 200 in a blockchain network. A transaction processing method 100 for a blockchain according to an embodiment of the present disclosure may include the steps of:
transaction data generation step S110: distribution data including transaction data is packetized and distributed by a network node 200 in the blockchain network to other network nodes in the blockchain network including neighboring nodes and seed nodes. Here, for example, the network node 200 that initiates the transaction may distribute data packets for communication establishment or operation, such as base station operation and maintenance data, to neighboring or seed nodes in the network.
A transaction forwarding step S120, in which each network node 200 of a plurality of network nodes in the blockchain network, upon receiving distribution data including transaction data from other network nodes as source nodes, directly forwards the received distribution data to other network nodes other than the source nodes in the blockchain network;
a transaction verification step S130, in which after each network node 200 in the plurality of network nodes in the blockchain network directly forwards the received distribution data, a transaction corresponding to the transaction data included in the forwarded distribution data is verified in a network layer of the network node 200;
an intelligent contract processing step S140, in case the transaction is not verified in the transaction verification step S130, analyzing and processing the transaction according to the intelligent contract and recording uplink at the contract layer of the network node 200.
According to the transaction processing method 100 for the blockchain in the embodiment of the present disclosure, in the transaction forwarding step S120, in order to avoid network congestion and the like described earlier, all network nodes 200 in the blockchain network do not perform authentication before receiving the transaction, but directly perform network distribution, that is, directly distribute the transaction to other network nodes. Therefore, network idle and congestion caused by the prior verification of the transaction can be effectively avoided, and the verification time in the total time of distributing the single transaction or the block to the whole network is reduced from the following formula (2) to the following formula (3):
wherein formula (3) represents the authentication time required to authenticate the most time-consuming node among all nodes of the network. It can be seen that the total authentication time is reduced from the sum of the authentication times of all participating nodes to the authentication time of the largest single node.
Furthermore, in order to ensure the security of the transaction, in said transaction verification step S130, the transaction is verified at the network layer of the network node 200 after the transaction data distribution. In the case that the transaction is verified in the transaction verification step S130, the transaction is subjected to the normal packaging and chaining operation.
Preferably, when the transaction is not verified in the transaction verification step S130, the intelligent contract processing step S140 is entered, wherein, according to the service details involved in the transaction and the node position, the contract layer of the network node 200 evaluates and scores bad transactions including invalid transactions or malicious transactions issued by the network node initiating the transaction according to the intelligent contract and records uplink.
Preferably, the transaction processing method 100 for blockchains according to the embodiment of the present disclosure may further include an application layer processing step S150, wherein a penalty including deduction of reputation and disqualification of nodes is performed on a network node initiating a bad transaction at an application layer of the network node 200 according to the result of the intelligent contract analysis in the intelligent contract processing step S140.
More preferably, the blockchain network comprises a federation chain network. In a scenario of application to a federation chain, the entry of the network node 200 needs to be authenticated in advance. By authenticated network nodes, the risk of false (invalid) or malicious transactions as malicious nodes is low. This can support and ensure the security of the verification after the transaction is forwarded in the transaction forwarding step S120.
In addition, in practical applications, for example, in a 5G co-construction sharing scenario, each large communication operator has a large number of downstream collaborators. In the scenario of application to a federation chain, although a partner needs to be authenticated to enter a blockchain network, in case of invalid or malicious transactions, the network node 200 that generates bad transactions still needs to be analyzed and processed by an intelligent contract. In such a case, since the core control authority of the alliance-link network is usually held between several core enterprises, the core enterprises can implement penalty measures for the risk-generating downstream participating nodes according to consensus. By implementing corresponding treatment measures or even canceling the network access qualification aiming at the network node 200 generating bad transactions, the transaction propagation time is greatly reduced, meanwhile, the interference of malicious nodes is effectively prevented, the transaction safety of the block chain network can be further ensured, and the efficient and stable operation of the system is ensured.
Preferably, the network node 200 comprises an edge computing node in a 5G network. In the case of using an edge computing node as the network node 200 for transaction processing of a blockchain according to the embodiment of the present disclosure, the transaction processing method 100 for a blockchain according to the embodiment of the present disclosure can reduce the time for the whole network distribution of transactions or blocks to the following formula (4) without affecting the trusted security:
the total verification time is shortened to the maximum verification time of a single node from the sum of the verification time of all the participating nodes, so that the time for distributing the transaction or the block to the whole network and completing the verification is expected to be greatly shortened, and the calculation and storage burden brought to the edge calculation node and the network burden of the 5G network are effectively reduced. This is very beneficial for resource saving of edge compute nodes as blockchain network nodes and efficient utilization of e.g. 5G networks, achieving good results for network optimization.
Next, a network node 200 for transaction processing of a blockchain according to an embodiment of the present disclosure is explained. Fig. 2 is an exemplary block diagram illustrating a network node 200 for transaction processing of blockchains according to an embodiment of the present disclosure. Preferably, the network node 200 for transaction processing of a blockchain according to an embodiment of the present disclosure may include: the transaction data generation module 210 is used for packaging and distributing distribution data including transaction data to other network nodes including adjacent nodes and seed nodes in the blockchain network; the transaction forwarding module 220 is configured to, when receiving distribution data including transaction data from another network node serving as a source node, directly forward the received distribution data to another network node other than the source node in the blockchain network; the transaction verification module 230, after directly forwarding the received distribution data, verifies, in the network layer, a transaction corresponding to the transaction data included in the forwarded distribution data; and the intelligent contract processing module 240 analyzes and processes the transaction according to the intelligent contract and records the uplink in the contract layer under the condition that the transaction is not verified in the transaction verification module.
Preferably, the transaction is subjected to normal packaging and chaining operations if the transaction verification module 230 verifies the transaction.
Preferably, in the case that the transaction verification module 230 fails to verify the transaction, the intelligent contract processing module 240 at the contract layer evaluates, according to the service details involved in the transaction and the node location, bad transactions including invalid transactions or malicious transactions issued by the network node initiating the transaction according to the intelligent contract and records uplink.
Preferably, the network node 200 for transaction processing of the blockchain according to the embodiment of the present disclosure may further include an application layer processing module 250, where the application layer processing module 250 performs a penalty including deduction of credit and disqualification of the node on the network node initiating the bad transaction at the application layer according to the intelligent contract analysis result obtained by the intelligent contract processing module 240.
Preferably, the blockchain network comprises a federation chain network.
Preferably, the network node comprises an edge computing node in a 5G network.
According to the network node 200 for transaction processing of the blockchain in the embodiment of the disclosure, network idleness and network congestion caused by transaction verification can be effectively avoided, so that resources of an edge computing network node of the network node for transaction processing of the blockchain are effectively saved, and efficient and stable operation of a system can be ensured.
Further, in some embodiments, a computer-readable storage medium is provided that may store executable instructions that, when executed by an information processing apparatus, cause the information processing apparatus to perform a transaction processing method 100 for blockchains according to embodiments of the present disclosure.
In some embodiments, an electronic device is provided, which may include: a memory, and a processing circuit configured to execute the transaction processing method 100 for a blockchain according to an embodiment of the present disclosure, that is, the processing circuit may be configured to execute the transaction data generating step S110, the transaction forwarding step S120, the transaction verifying step S130, the intelligent contract processing step S140, and the like described above.
The processing circuitry of the electronic device described above may refer to various implementations of digital circuitry, analog circuitry, or mixed-signal (a combination of analog and digital) circuitry that perform functions in a computing system. The processing circuitry may include, for example, circuitry such as an Integrated Circuit (IC), an Application Specific Integrated Circuit (ASIC), portions or circuits of an individual processor core, an entire processor core, an individual processor, a programmable hardware device such as a Field Programmable Gate Array (FPGA), and/or a system including multiple processors.
The memory of the electronic device may store information generated by the processing circuitry as well as programs and data for configuring operation of the device by the data processing components. The memory may be volatile memory and/or non-volatile memory. For example, memory may include, but is not limited to, Random Access Memory (RAM), Dynamic Random Access Memory (DRAM), Static Random Access Memory (SRAM), Read Only Memory (ROM), and flash memory.
It should be understood that the above steps, units and the like are only logic modules divided according to the specific functions realized by the steps, units and the like, and are not used for limiting the specific implementation manner. In actual implementation, the above units may be implemented as separate physical entities, or may also be implemented by a single entity (e.g., a processor (CPU or DSP, etc.), an integrated circuit, etc.).
It should be understood that the transaction processing method 100 for blockchain and the network node 200 for blockchain transaction processing according to the embodiments of the present disclosure can be applied not only to the current field of network communication and blockchain technology, but also to other fields related to network and communication, and to various types of network and communication related technologies emerging in the future.
It should be appreciated that reference throughout this specification to "an embodiment" or similar language means that a particular feature, structure, or characteristic described in connection with the embodiment is included in at least one embodiment of the present disclosure. Thus, appearances of the phrases "in embodiments of the present disclosure" and similar language throughout this specification do not necessarily all refer to the same embodiment.
One skilled in the art will appreciate that the present disclosure can be implemented as a system, apparatus, method, or computer-readable medium (e.g., non-transitory storage medium) as a computer program product. Accordingly, the present disclosure may be embodied in various forms, such as an entirely hardware embodiment, an entirely software embodiment (including firmware, resident software, micro-program code, etc.) or an embodiment combining software and hardware aspects that may all be referred to hereinafter as a "circuit," module "or" system. Furthermore, the present disclosure may also be embodied in any tangible media as a computer program product having computer usable program code stored thereon.
The present disclosure is described with reference to flowchart illustrations and/or block diagrams of systems, apparatuses, methods and computer program products according to specific embodiments of the disclosure. It will be understood that each block of the flowchart illustrations and/or block diagrams, and any combination of blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be executed by a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, implement the functions or acts specified in the flowchart and/or block diagram block or blocks.
Flowcharts and block diagrams of the architecture, functionality, and operation in which systems, apparatuses, methods and computer program products according to various embodiments of the present disclosure may be implemented are shown in the accompanying drawings. Accordingly, each block in the flowchart or block diagrams may represent a module, segment, or portion of program code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in the drawings may be executed substantially concurrently, or in some cases, in the reverse order from the drawing depending on the functions involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
Having described embodiments of the present disclosure, the foregoing description is intended to be exemplary, not exhaustive, and not limited to the disclosed embodiments. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The terminology used herein is chosen in order to best explain the principles of the embodiments, the practical application, or technical improvements to the market technology, or to enable others of ordinary skill in the art to understand the embodiments disclosed herein.
Claims (14)
1. A transaction processing method for a blockchain, comprising:
a transaction data generation step, wherein a network node in the block chain network packs and distributes distribution data including the transaction data to other network nodes including adjacent nodes and seed nodes in the block chain network;
a transaction forwarding step of, when each of a plurality of network nodes in the blockchain network receives distribution data including transaction data from other network nodes as a source node, directly forwarding the received distribution data to other network nodes other than the source node in the blockchain network;
a transaction verification step, in which after each network node in a plurality of network nodes in the blockchain network directly forwards the received distribution data, a transaction corresponding to the transaction data included in the forwarded distribution data is verified in a network layer of the network node;
and an intelligent contract processing step, wherein when the transaction is not verified in the transaction verification step, the transaction is analyzed and processed and uplink is recorded according to the intelligent contract at a contract layer of the network node.
2. The transaction processing method for a blockchain according to claim 1, wherein,
when the transaction is validated in the transaction validation step, the transaction is subjected to the usual packaging and chaining operations.
3. The transaction processing method for a blockchain according to claim 1, wherein,
and when the transaction is not verified in the transaction verification step, entering the intelligent contract processing step, wherein a contract layer of a network node evaluates and scores bad transactions including invalid transactions or malicious transactions sent by the network node initiating the transaction according to the intelligent contract and the specific service condition related to the transaction and the position of the node, and records the uplink.
4. The transaction processing method for a blockchain according to claim 1, further comprising:
and an application layer processing step, wherein the application layer carries out punishment including deduction of credit and cancellation of node qualification on the network node initiating the bad transaction according to the intelligent contract analysis result in the intelligent contract processing step.
5. The transaction processing method for a blockchain according to claim 1, wherein,
the blockchain network comprises a federation chain network.
6. The transaction processing method for a blockchain according to claim 1, wherein,
the network nodes include edge computing nodes in a 5G network.
7. A network node for transaction processing of a blockchain, comprising:
the transaction data generation module is used for packaging and distributing distribution data comprising the transaction data to other network nodes comprising adjacent nodes and seed nodes in the block chain network;
the transaction forwarding module is used for directly forwarding the received distribution data to other network nodes except the source node in the block chain network when receiving the distribution data comprising the transaction data from other network nodes serving as the source node;
the transaction verification module is used for verifying the transaction corresponding to the transaction data in the transmitted distribution data in a network layer after the received distribution data is directly transmitted;
and the intelligent contract processing module is used for analyzing and processing the transaction according to the intelligent contract and recording the uplink in the contract layer under the condition that the transaction is not verified in the transaction verification module.
8. The network node for transaction processing of a blockchain of claim 7, wherein,
in the event that the transaction validation module validates the transaction, the transaction is subject to normal packaging and chaining operations.
9. The network node for transaction processing of a blockchain of claim 7, wherein,
and under the condition that the transaction verification module fails to verify the transaction, the intelligent contract processing module evaluates and scores bad transactions including invalid transactions or malicious transactions sent by a network node initiating the transaction according to the intelligent contract and records the uplink on a contract layer according to the specific service condition related to the transaction and the position of the node.
10. The network node for transaction processing of blockchains according to claim 7, further comprising:
and the application layer processing module is used for performing punishment including credit deduction and node qualification cancellation on the network node initiating the bad transaction in the application layer according to the intelligent contract analysis result obtained by the intelligent contract processing module.
11. The network node for transaction processing of a blockchain of claim 7, wherein,
the blockchain network comprises a federation chain network.
12. The network node for transaction processing of a blockchain of claim 7, wherein,
the network nodes include edge computing nodes in a 5G network.
13. A computer-readable storage medium storing executable instructions that, when executed by an information processing apparatus, cause the information processing apparatus to execute the transaction processing method for a blockchain according to any one of claims 1 to 6.
14. An electronic device, comprising:
a memory; and
processing circuitry configured to perform a transaction processing method for a blockchain according to any one of claims 1 to 6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010947726.1A CN114257384A (en) | 2020-09-10 | 2020-09-10 | Transaction processing method for block chain and network node |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010947726.1A CN114257384A (en) | 2020-09-10 | 2020-09-10 | Transaction processing method for block chain and network node |
Publications (1)
Publication Number | Publication Date |
---|---|
CN114257384A true CN114257384A (en) | 2022-03-29 |
Family
ID=80788009
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010947726.1A Pending CN114257384A (en) | 2020-09-10 | 2020-09-10 | Transaction processing method for block chain and network node |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114257384A (en) |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109951488A (en) * | 2019-03-27 | 2019-06-28 | 百度在线网络技术(北京)有限公司 | Service implementing method, device, equipment and the storage medium of content distributing network |
US20200145214A1 (en) * | 2018-11-06 | 2020-05-07 | International Business Machines Corporation | Verification of telemetry data |
CN111242776A (en) * | 2018-11-29 | 2020-06-05 | 北京京东尚科信息技术有限公司 | Accounting method and device based on block chain, storage medium and electronic equipment |
-
2020
- 2020-09-10 CN CN202010947726.1A patent/CN114257384A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20200145214A1 (en) * | 2018-11-06 | 2020-05-07 | International Business Machines Corporation | Verification of telemetry data |
CN111242776A (en) * | 2018-11-29 | 2020-06-05 | 北京京东尚科信息技术有限公司 | Accounting method and device based on block chain, storage medium and electronic equipment |
CN109951488A (en) * | 2019-03-27 | 2019-06-28 | 百度在线网络技术(北京)有限公司 | Service implementing method, device, equipment and the storage medium of content distributing network |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR102417067B1 (en) | Method and apparatus for generating blocks in node on a block-chain network | |
Yue et al. | A survey of decentralizing applications via blockchain: The 5G and beyond perspective | |
Khan et al. | An efficient and provably secure certificateless key-encapsulated signcryption scheme for flying ad-hoc network | |
US9292692B2 (en) | System and device for verifying the integrity of a system from its subcomponents | |
CN108200208B (en) | Logistics block chain consensus algorithm based on cloud computing | |
US20230316273A1 (en) | Data processing method and apparatus, computer device, and storage medium | |
Shen et al. | Blockchain for transparent data management toward 6G | |
Jiang et al. | Secure computing resource allocation framework for open fog computing | |
CN113779607A (en) | Industrial data asset management method, system and equipment | |
CN112950376A (en) | Electric power industry digital identity card management method and system based on block chain technology | |
Li et al. | A survey on integrity auditing for data storage in the cloud: from single copy to multiple replicas | |
CN115379581A (en) | Method, system, equipment and storage medium for unloading edge cloud server traffic | |
Javed et al. | Secure message handling in vehicular energy networks using blockchain and artificially intelligent IPFS | |
Agilandeeswari et al. | A new lightweight conditional privacy preserving authentication and key–agreement protocol in social internet of things for vehicle to smart grid networks | |
Zhang et al. | Efficient auditing scheme for secure data storage in fog-to-cloud computing | |
Lin et al. | A model training mechanism based on onchain and offchain collaboration for edge computing | |
CN114257384A (en) | Transaction processing method for block chain and network node | |
Zhang et al. | Privacy‐preserving blockchain‐based contract signing with multi‐party supervision | |
US20200052887A1 (en) | Distributed data storage | |
KR20200117473A (en) | Apparatus and method for anomaly detection based on blockchain | |
CN115603903A (en) | Snowman consensus-based alliance chain multi-chain system and interaction and deployment method thereof | |
Liang et al. | Secure and efficient hierarchical Decentralized learning for Internet of Vehicles | |
CN112131602B (en) | Method, device and related product for quickly expanding trust relationship between nodes based on trusted computing | |
Feng et al. | Crbft: An optimized blockchain algorithm for edge-based iot system | |
Gaiduk et al. | Privacy-preserving public key infrastructure for vehicular networks |
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 |