WO2020182134A1 - 区块链共识任务协调方法、区块链共识任务协调装置、区块链共识任务处理方法、区块链节点装置、区块链系统和存储介质 - Google Patents
区块链共识任务协调方法、区块链共识任务协调装置、区块链共识任务处理方法、区块链节点装置、区块链系统和存储介质 Download PDFInfo
- Publication number
- WO2020182134A1 WO2020182134A1 PCT/CN2020/078692 CN2020078692W WO2020182134A1 WO 2020182134 A1 WO2020182134 A1 WO 2020182134A1 CN 2020078692 W CN2020078692 W CN 2020078692W WO 2020182134 A1 WO2020182134 A1 WO 2020182134A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- consensus task
- consensus
- nodes
- node
- blockchain
- Prior art date
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/50—Allocation of resources, e.g. of the central processing unit [CPU]
Definitions
- the embodiments of the present disclosure relate to a blockchain consensus task coordination method, a blockchain consensus task coordination device, a blockchain consensus task processing method, a blockchain node device, a blockchain system, and a storage medium.
- Blockchain technology is an emerging technology that has emerged in the field of information technology in recent years.
- Unique attributes such as decentralization, non-tamperable information, multi-node collective maintainability, openness, and privacy protection enable blockchain technology to record and provide credible transaction information data in the untrusted Internet.
- At least one embodiment of the present disclosure provides a blockchain consensus task coordination method.
- a blockchain system running the blockchain consensus task coordination method includes M nodes, and the method includes: receiving N of the M nodes Resource capability data fed back by the N nodes, the resource capability data fed back by the N nodes are evaluated to determine L nodes among the N nodes to perform the consensus task, and feed back to the L nodes to execute the The information of the consensus task, 0 ⁇ L ⁇ N ⁇ M, M, N, L are all positive integers.
- the blockchain consensus task coordination method further includes: receiving processing action parameters fed back by the N nodes, and determining the N according to the processing action parameters of each of the N nodes. Whether each node performs the consensus task.
- the resource capability data includes time constraint information and storage capacity information.
- the time constraint information is expressed as:
- DT j represents the time required for the jth node among the N nodes to execute the consensus task
- ST j represents the start time of the jth node to execute the consensus task
- ET j represents the jth node
- Nt represents the N nodes at time t
- j is an integer greater than 0 and less than or equal to N
- t is a natural number greater than 0.
- the storage capacity information is expressed as:
- cssr j represents the storage capacity required by the j-th node among the N nodes to execute the consensus task, Represents the remaining storage capacity of the j-th node after removing the storage capacity required to perform other consensus tasks, Indicates the maximum storage capacity of the j-th node.
- evaluating the resource capability data fed back by the N nodes includes: obtaining information required by the N nodes to perform the consensus task The time value and the trust value of the N nodes, where the trust value represents the reliability of the N nodes in performing the consensus task; comprehensively consider the time value and trust value of the N nodes to determine the L nodes.
- the blockchain consensus task coordination method provided by at least one embodiment of the present disclosure, comprehensively considering the time value and trust value of the N nodes to determine the L nodes, including: among the N nodes The L nodes that have the shortest completion time and whose trust value for realizing the consensus task is greater than the standard trust value for executing the consensus task are selected to execute the consensus task.
- the blockchain consensus task coordination method further includes: receiving resource capacity data of the L nodes again to determine whether other consensus tasks can be performed; based on the current consensus task and the other consensus The priority of the task determines whether the current consensus task needs to be terminated with some of the L nodes; if the contract needs to be terminated, the current consensus task request request for termination is sent to the node that needs to be terminated; The resource capability data fed back by other nodes among the M nodes except the node that needs to be terminated are evaluated, so as to re-determine the node that executes the current consensus task among the M nodes.
- the blockchain consensus task coordination method provided by at least one embodiment of the present disclosure further includes: performing trust value evaluation on each node that executes the consensus task.
- the trust value evaluation is expressed as:
- c represents the attributes of trust value evaluation, including accurate attributes, time-sensitive attributes, and resource attributes,
- w(t) represents the weight of the attribute of node b at time t
- At least one embodiment of the present disclosure also provides a block chain consensus task coordination device.
- the block chain system includes M nodes.
- the block chain consensus task coordination device includes a block central processing unit. It is configured to receive resource capability data fed back by N nodes among the M nodes, and evaluate the resource capability data fed back by the N nodes, so as to determine L nodes among the N nodes to perform consensus tasks , And feedback the information of executing the consensus task to the L nodes, 0 ⁇ L ⁇ N ⁇ M, M, N, L are all positive integers.
- the blockchain consensus task coordination device provided by at least one embodiment of the present disclosure further includes a trust value management unit; the trust value management unit is configured to perform a trust value evaluation on each node performing the consensus task.
- At least one embodiment of the present disclosure also provides a blockchain consensus task processing method.
- the blockchain system includes M nodes.
- the method is applicable to the first node among the M nodes in the blockchain system, and includes : Receive the first consensus task request corresponding to the first consensus task sent by the second node among the M nodes; determine whether to feed back the resource capability data of the first node to the block center processing unit for all The coordination of the first consensus task.
- determining whether to feed back the resource capability data of the first node to the block center processing unit includes: The resource capability data determines whether the first consensus task can be executed; at least in the case that the first consensus task can be executed, the resource capability data of the first node is fed back to the block center processing unit.
- the block chain consensus task processing method further includes: the first node receives feedback information from the block center processing unit, executes the first consensus task, and records the obtained The first consensus result corresponding to the first consensus task.
- the blockchain consensus task processing method further includes: receiving a third of the M nodes when the first node executes or is to be executed.
- the second consensus task request issued by the node determining that the second consensus task request issued by the third node corresponds to the first consensus task currently being executed or to be executed by the first node Priority of the task request; determining whether to respond to the second consensus task request based on the judgment result.
- the method for processing a blockchain consensus task further includes: determining whether the time required for the first node to execute the first consensus task corresponds to the first request for executing the second consensus task. Second, the time required for the consensus task conflicts; if there is no conflict, it is determined that the priority of the first consensus task is higher than the second consensus task; otherwise, the second consensus task request is first responded to.
- the block chain consensus task processing method in the case where it is determined based on the judgment result that the first node first responds to the second consensus task request, in response to the cancellation request, the first consensus task corresponding to the executed or to-be-executed first consensus task requests cancellation of the contract, so that the second consensus task corresponding to the second consensus task request is executed first.
- the blockchain consensus task processing method further includes: determining whether the time required for the first node to execute the first consensus task corresponds to the request to execute the second consensus task Before the time required for the second consensus task conflicts, determine whether the first node can execute the second consensus task according to the resource capability data of the first node; at least before the second consensus task can be executed first In the case of, the first node feeds back its source capability data to the block center processing unit for the coordination of the first consensus task; after receiving the feedback information from the block center processing unit, the first node Perform the second consensus task.
- the block chain consensus task processing method further includes: when the first node is selected as the accounting node, the first node creates a new block or executes a predetermined transaction.
- the block chain consensus task processing method provided by at least one embodiment of the present disclosure further includes: structurally processing the first consensus task request.
- the first consensus task request and the second consensus task request are consensus task requests corresponding to product quality certification.
- At least one embodiment of the present disclosure also provides a blockchain node device.
- the blockchain system includes M nodes.
- the device is suitable for the first node among the M nodes in the blockchain system and includes: information A receiving unit and a feedback unit; the information receiving unit is configured to receive a first consensus task request corresponding to a first consensus task sent by a second node among the M nodes; the feedback unit is configured to determine whether to The block center processing unit feeds back the resource capability data of the first node; M is a positive integer.
- the blockchain node device provided in at least one embodiment of the present disclosure further includes a state unit and an accounting unit; the state unit is configured to determine whether the first node can execute the first node based on the resource capability data of the first node.
- a consensus task the accounting unit is configured to receive feedback information from the block center processing unit, execute the first consensus task, and record the obtained first consensus result corresponding to the first consensus task.
- At least one embodiment of the present disclosure also provides a blockchain node device, including: a processor; a memory, storing one or more computer program modules, and the one or more computer program modules are configured to be run by the processor Execution, the one or more computer program modules include instructions for executing the blockchain consensus task coordination method provided by any embodiment of the present disclosure or the blockchain consensus task processing method provided by any embodiment of the present disclosure.
- At least one embodiment of the present disclosure further provides a storage medium for non-transitory storage of computer-readable instructions, wherein when the non-transitory computer-readable instructions are executed by a computer, the Instructions for the blockchain consensus task coordination method or the blockchain consensus task processing method provided by any embodiment of the present disclosure.
- At least one embodiment of the present disclosure further provides a blockchain system, including a plurality of blockchain node devices provided in any embodiment of the present disclosure.
- the blockchain system provided by at least one embodiment of the present disclosure further includes a block center processing unit configured to receive resource capability data fed back by N nodes among the M nodes, and Evaluate the resource capability data fed back by the N nodes to determine L nodes among the N nodes to perform the consensus task, and feed back information on the execution of the consensus task to the L nodes, 0 ⁇ L ⁇ N ⁇ M, M, N, L are all positive integers.
- FIG. 1A is a schematic diagram of a blockchain device provided by some embodiments of the present disclosure.
- FIG. 1B is a network architecture of a blockchain-based product quality certification device provided by some embodiments of the present disclosure
- FIG. 1C is a schematic block diagram of a computing device for managing product quality certification tasks based on blockchain according to some embodiments of the present disclosure
- FIG. 1D is a flowchart of some examples of a blockchain consensus task coordination method provided by some embodiments of the present disclosure
- FIG. 2 is a flowchart of an example of step S120 shown in FIG. 1D;
- FIG. 3 is a flowchart of other examples of a blockchain consensus task coordination method provided by some embodiments of the present disclosure
- FIG. 4 is a schematic block diagram of a block chain consensus task coordination device provided by some embodiments of the present disclosure.
- FIG. 5 is a flowchart of some examples of a blockchain consensus task processing method provided by some embodiments of the present disclosure
- FIG. 6 is a flowchart of an example of step S220 shown in FIG. 5;
- FIG. 7 is a flowchart of other examples of a blockchain consensus task processing method provided by some embodiments of the present disclosure.
- FIG. 8 is a flowchart of an example of step S250 shown in FIG. 7;
- FIG. 9 is a flowchart of still other examples of a blockchain consensus task processing method provided by some embodiments of the present disclosure.
- FIG. 10 is a schematic block diagram of a blockchain node device provided by some embodiments of the present disclosure.
- FIG. 11 is a schematic block diagram of another blockchain node device provided by some embodiments of the present disclosure.
- FIG. 12 is a schematic diagram of a storage medium provided by some embodiments of the present disclosure.
- FIG. 13 is a schematic block diagram of a blockchain system provided by some embodiments of the present disclosure.
- Blockchain technology is a method of data storage, transmission and certification that is decentralized and resides in a distributed structure. Blocks can replace the current dependence of the Internet on central servers. For example, all data changes or transaction items can be recorded. On a cloud system, the self-certification of data in data transmission is theoretically realized.
- Each block is a container data structure that is contained in the blockchain and aggregates data. It consists of a block header containing metadata and a long series of transaction data that form the main body of the block.
- the block specifically includes: the block size field, usually 4 bytes; the block header field, usually 80 bytes; the transaction counter field, usually 1-9 bytes, which records the number of transactions; the transaction field, usually Variable length, record transaction details.
- the block header consists of three sets of metadata.
- the first set of metadata is a set of data referencing the hash value of the parent block. This set of metadata is used to connect the block with the previous block in the blockchain.
- the second set of metadata includes difficulty, timestamp, and a number used once (Number used once, referred to as "Nonce" for short).
- the third set of metadata is the Merkle number root (a data structure used to effectively summarize all transactions in the block).
- the block header may include the following fields: (1) Version field, usually 4 bytes; (2) Parent block hash value field, usually 32 bytes, used to refer to the parent block in the blockchain (ie The hash value of the previous block); (3) Merkle root field, used to record the hash value of the Merkle tree root of the transaction in the block; (4) Timestamp field, usually 4 fields, used to identify the area The approximate time of block generation can be accurate to the second; (5)
- the Nonce field is a counter (such as a random number) used for the proof of work algorithm.
- Each block can refer to the previous block through the "parent block hash value field" of its block header.
- the header of each block contains the hash value of its parent block.
- each block has only one parent block, but there can be multiple child blocks temporarily. The occurrence of multiple sub-blocks in a block is called “blockchain bifurcation".
- a blockchain fork indicates a temporary state, and eventually only one sub-block will become part of the blockchain.
- the block chain is a data structure linked by blocks in an orderly manner from back to front, and each block points to the previous block. It can be stored as a file containing records of non-relative relationships or in a simple database. You can think of the blockchain as a stack.
- the height of the blockchain indicates the distance between the block and the first block, and the top or top indicates the latest block.
- Encrypting each block header (for example, Secure Hash Algorithm ("SHA")) can generate a hash value. Through this hash value, the corresponding block in the blockchain can be identified, that is, the hash value is used to construct a hash pointer. Accordingly, the blockchain can be regarded as a linked list using hash pointers.
- SHA algorithms include SHA256 algorithm.
- Blockchains can generally be divided into public chains, alliance chains, and private chains according to access rights.
- Public chain refers to a blockchain that anyone can access and participate in consensus according to the agreement;
- consortium chain refers to a blockchain whose consensus process is controlled by preselected nodes;
- private chain refers to that all permissions are in an organization and are subject to Blockchain arbitrarily controlled by the organization.
- the essence of proof of work is to add cost to information transmission, reduce the rate of information transmission, and add a random element to ensure that only one device can be authorized to broadcast information within a period of time.
- This random element is for the device to calculate a random hash value.
- the block device calculates a string of 64-bit random numbers and letters according to the obtained input data, but only the hash value that meets the requirements can be accepted by the blockchain network as a proof of work.
- the block device obtains the accounting right corresponding to the task (transaction) of the consensus request, creates a new block and broadcasts the new block in the blockchain network, and other nodes verify and verify the new block. Add to their respective saved blockchains.
- the hash algorithm of the workload proof also realizes the serialization of historical information by using the information in each new block as the input value of the next hash algorithm, forming a traceable chain (blockchain) .
- Proof of equity is a consensus mechanism that requires nodes to provide proof of possession of a certain number of tokens to obtain the accounting authority of competing blockchains.
- the share authorization certificate is similar to the voting mechanism of the board of directors.
- Distributed consensus algorithms are based on traditional distributed consensus technologies and can be divided into: Byzantine fault-tolerant algorithms that solve the Byzantine Generals problem, such as the Practical Byzantine Fault Tolerance ("PBFT"); solve the non-Byzantine Generals problem Algorithm, for example, Raft algorithm.
- PBFT Practical Byzantine Fault Tolerance
- Raft algorithm for example, Raft algorithm.
- the certificate of share authorization is also called the certificate of authorized rights and interests, and the certificate of authorized rights can solve the problems of the performance and energy consumption of the blockchain network.
- the appointment of proof of rights uses the witness mechanism to solve the centralization problem. Due to the use of a decentralized voting mechanism, the appointment of proof of equity is more democratic than other consensus mechanisms. However, the delegated proof of stake does not completely remove the requirement for trust, so this method needs further optimization, such as optimizing the centralization problem to improve consensus efficiency.
- a smart contract is a piece of executable code stored in a blockchain (such as a blockchain node in a blockchain network).
- This executable code specifies the execution conditions and business processing logic of the smart contract, that is, it specifies The conditions for starting the smart contract and how to process the received business processing requests after the smart contract is started.
- a smart contract is written by the user and published to the blockchain, it cannot be edited or modified.
- the execution of smart contracts can be triggered based on events.
- the execution of a smart contract will be recorded as a transaction on the blockchain and recorded in the blockchain.
- the working process of a blockchain network can include the following seven processes: transaction generation, transaction broadcasting, node calculation, obtaining accounting rights, accounting rights broadcasting, receiving blocks, verifying blocks, and completing accounting.
- the seven processes are described as follows:
- Node calculation The node that receives the transaction information calculates through the consensus algorithm, and determines which node obtains the accounting right for the transaction information through the calculation result;
- Obtaining the accounting right According to different consensus algorithms, one of the nodes will obtain the accounting right. For example, in the case of using PoW, the node that calculates the hash value that meets the requirements the fastest will obtain the accounting right;
- Verify block The node that receives the broadcast information verifies the transaction information contained in the new block, and after confirming that it is valid, receives the block and links the new block at the end of the respective version of the blockchain;
- this part of human work can be saved through the blockchain and the smart contract system derived from the blockchain.
- a smart contract can be regarded as an automatic account.
- the smart contract is executed to release and transfer the corresponding funds, and for example, it is necessary to create a block in the corresponding blockchain To record the transaction. Therefore, in view of the characteristics of the consensus task in this context, how to improve the efficiency of processing the consensus task corresponding to product quality certification in this context is an urgent problem to be solved.
- the blockchain is used as a globally public ledger data structure, which contains blocks of several transactions.
- the content of the blocks cannot be tampered with, so as to realize the proof of the existence of blockchain data, and with the help of intelligence
- the contract can realize the management of product delivery, especially the openness, transparency, and automatic delivery of the product quality certification process, so as to better protect the interests of consumers.
- each node providing product quality certification services executes a consensus algorithm to form a consensus
- each node providing certification services performs consensus processing
- the consensus processing for the same product quality certification task is not carried out at the same time, which makes the time points for each node to reach a consensus inconsistent, prolongs the time for the entire blockchain network to reach a consensus on the same transaction, and with other consensus
- the arrival of tasks creates a large backlog of tasks at each node, resulting in a low efficiency of consensus processing
- At least one embodiment of the present disclosure provides a blockchain consensus task coordination method.
- a blockchain system (such as a blockchain network) includes M nodes, and the method includes: receiving resource capability data fed back by N nodes among the M nodes , Evaluate the resource capability data fed back by N nodes to determine L nodes among the N nodes to perform the consensus task, and feed back information for the execution of the consensus task to the L nodes, 0 ⁇ L ⁇ N ⁇ M, M, N, and L are all positive integers.
- At least one embodiment of the present disclosure also provides a block chain consensus task coordination device, a block chain consensus task processing method, a block chain node device, a block chain system, and a storage medium corresponding to the aforementioned block chain consensus task coordination method .
- the blockchain consensus task coordination method can evaluate the resource capacity data of nodes in the blockchain system, and select a group of nodes with a shorter completion time to perform the consensus task, thereby improving the processing capacity of the consensus task. Efficiency and flexibility.
- the embodiments of the present disclosure have regard to the type of blockchain to be applied (e.g. public chain, private chain, alliance chain, etc.), the specific structure of the blocks in the blockchain (e.g. block header and block body), and the consensus adopted Mechanisms (such as PoW, PoS, DPoS, etc.) are not restricted.
- the type of blockchain to be applied e.g. public chain, private chain, alliance chain, etc.
- the specific structure of the blocks in the blockchain e.g. block header and block body
- the consensus adopted Mechanisms such as PoW, PoS, DPoS, etc.
- Figures 1A-1C are a device provided by some embodiments of the present disclosure that can implement the above-mentioned blockchain consensus task coordination method and blockchain consensus task processing method.
- the blockchain device provided by some embodiments of the present disclosure will be exemplarily described below based on FIGS. 1A-1C.
- FIG. 1A is a schematic block diagram of a blockchain device provided by some embodiments of the present disclosure.
- the blockchain device 100 includes a blockchain processing device 101, a consensus task accepting device 102, an interactive device 103, and a client 104.
- the interactive device 103 and the client 104 are connected through a wired or wireless connection.
- the interactive device 103 can receive a transaction request from the client 104 for accounting for a transaction, and send the transaction information of the transaction (for example, through the blockchain processing device 101).
- the interaction device 103 can (for example, through the blockchain processing device 101 or directly) the transaction processing results obtained from the blockchain network (that is, whether consensus is achieved and whether the corresponding block is created ) Feed back to the client 104, thereby confirming that the transaction is substantially completed.
- the blockchain device 100 can be used to implement a blockchain product quality certification device in product quality certification (for example, product quality certification for liquid crystal display panels, organic light emitting diode display panels, etc.).
- product quality certification for example, product quality certification for liquid crystal display panels, organic light emitting diode display panels, etc.
- the product delivery client 104 is an example of the client 104.
- the following uses the application of the blockchain device in the product quality certification process as an example for introduction, but the embodiment of the present disclosure does not make this limit.
- the blockchain-based blockchain device (product quality certification device) 100 includes a blockchain node device (for example, includes a blockchain processing device 101, a consensus task accepting device 102, and an interactive device 103) And product delivery client 104.
- the blockchain processing device 101 can be any trusted node that forms a peer-to-peer (P2P) network, or it can be a complete Any node on an open P2P network, the P2P network constitutes a blockchain network.
- the blockchain processing device 101 can be deployed on a general-purpose computing device, such as a local area network, a wide area network, or a “cloud”. Each computing device is called a “node”.
- the computing device can be an actual computing device or a virtual computing device. Machine waiting.
- the consensus task accepting device 102 and the interaction device 103 and the blockchain processing device 101 can be integrated on the same device.
- the integrated device is the aforementioned node, and this device can be called a blockchain node device at this time.
- the blockchain node device includes a blockchain processing device 101, a consensus task accepting device 102, and an interactive device 103.
- the interaction process between the blockchain processing device 101 and the consensus task accepting device 102 in the following processes, or the interaction process between the blockchain processing device 101 and the interactive device 103 can be regarded as an area.
- the interaction process between the internal modules of the block chain node device for the convenience and brevity of description, in some embodiments of the present disclosure, the interaction process between the internal modules of the blockchain node device is not specifically described.
- the consensus task accepting device 102 receives transaction information sent (broadcast) by other nodes in the blockchain system and the resulting consensus task.
- the blockchain processing device 101 can be used to perform calculations based on the consensus task and the consensus algorithm adopted by the blockchain system after receiving the consensus task sent from the consensus task accepting device 102. If the node where the blockchain node device is located (the current node) obtains the accounting right through the calculation of the blockchain processing device 101, the blockchain processing device 101 will package the received transaction information to construct a new block, and Broadcast the new block to the blockchain system.
- the consensus task accepting device 102 may instruct the blockchain processing device 101 to stop after receiving the information that other nodes have obtained the accounting right and the generated new block
- the current consensus task is processed (for example, calculation), and the information contained in the corresponding new block is verified to determine whether to link the new block in the blockchain of the current node.
- the blockchain processing device 101 may also broadcast a verification success message in the blockchain system.
- the product delivery client 104 is used to receive product certification processing requests, such as functional testing, reliability testing, or packaging testing of product quality, and verify the product quality to determine whether it is qualified. If it is qualified, then A transaction is generated (for example, the corresponding smart contract is triggered to generate a transaction), and a transaction request corresponding to the transaction is sent to the interactive device 103.
- product certification processing requests such as functional testing, reliability testing, or packaging testing of product quality
- the product delivery client 104 when a manufacturer and a consumer (for example, the consumer may be a downstream manufacturer or a buyer who directly uses the product, etc.) performs product delivery through the product delivery client 104, the product delivery client 104 is the manufacturer Generate a pair of unique public and private keys with the consumer.
- the public and private key generation process is as follows: The product delivery client 104 first generates a pair of random public and private keys, and then generates the public key or the public key. The address of is sent to the interactive device 103, and the interactive device 103 queries the blockchain processing device 101 whether the public key or address is unique. If the public key or address already exists in the blockchain processing device 101, the product is required to be delivered to the client 104 regenerate a pair of random public key and private key until it is confirmed that the public key or address is unique.
- the interactive device 103 can also be used to query whether the transferor has the delivery certificate of the product to be transferred based on the product certification transaction identifier, so as to determine whether the transferor has the required delivery certificate based on the transferor's delivery certificate. The right to transfer.
- the product delivery client 104 may allow consumers or manufacturers to issue product certification transactions through the product delivery client 104, and perform product certification transactions (for example, product performance, price, and settlement) verification, and the verification is successful After that, a certificate of delivery is issued to the consumer.
- the certificate of delivery carries the key of the digital content, and the consumer uses this key to decrypt the relevant digital content.
- the product certification transaction also includes creating smart contracts for product delivery, etc., and storing the smart contracts in the blockchain network through the blockchain processing device 101, for example, in one or more nodes in the blockchain network For example, the ID number of the smart contract (protecting the information of the storage node) is generated, so that when the conditions of the smart contract are met and triggered, the smart contract can be retrieved and executed through the ID number.
- the product delivery client 104 is a client for product delivery management, and may be provided in the form of an application program (APP) or a software development kit (SDK), for example.
- the APP can be a complete product delivery management software.
- the APP can run on a variety of computing devices 101 and can directly interact with the consensus task accepting device 102 or the interactive device 103. These computing devices Including mobile phones, tablet computers, personal computers, laptops, servers, etc.
- the SDK method can be integrated with third-party software, and provide rich functions together with third-party software.
- the functions of the product delivery client 104 may include product registration management functions, product transfer management functions, product usage management functions, and so on.
- the product delivery clients 104 installed by them may be the same, and corresponding functional modules can be called or activated as needed.
- the product delivery client 104 may also only include one or more specific functions.
- the versions of the product delivery client 104 installed by them may be different, and these versions include the corresponding need to call Or activated function module.
- the system/network architecture of a blockchain-based product quality certification device includes multiple blockchain node devices, and each blockchain node device includes a blockchain processing device 101 , The consensus task accepting device 102 and the interactive device 103.
- the blockchain processing devices 101 of each blockchain node device are connected to each other through a network (for example, the Internet), that is, they are all connected to the network so as to realize that all the blockchain processing devices are connected to each other, and respectively serve as nodes of the blockchain network.
- the consensus task accepting device 102 and the interaction device 103 may be independent of the blockchain processing device 101, so the consensus task accepting device 102 and the interaction device 103 correspond to the blockchain processing device 101 respectively. .
- FIG. 1C shows a schematic block diagram of a computing device for managing product quality certification tasks on the blockchain.
- the blockchain processing device 101, the consensus task accepting device 102, the interaction device 103, and the product delivery client 104 in FIGS. 1A and 1B can all be implemented in the form of a computer device (or system) in FIG. 1C.
- the device 300 for managing product quality certification on the blockchain includes a central processing unit (CPU) 301, which can be based on computer program instructions stored in a read-only memory (ROM) 302 or The computer program instructions loaded from the storage unit 308 into the random access memory (RAM) 303 perform various appropriate actions and processing.
- ROM read-only memory
- RAM random access memory
- various programs and data required during the operation of the device 300 can also be stored.
- the CPU 301, the ROM 302, and the RAM 303 are connected to each other through a bus 304, and an input/output (I/O) interface 305 is also connected to the bus 304.
- I/O input/output
- the I/O interface 305 Multiple components in the data processing device 300 are connected to the I/O interface 305, including: an input unit 306, such as a keyboard, a mouse, etc.; an output unit 307, such as various types of displays, speakers, etc.; and a storage unit 308, such as a disk, Optical disc, etc.; and communication unit 309, such as network card, modem, wireless communication transceiver, etc.
- the communication unit 309 allows the device 300 to exchange information/data with other devices through a computer network such as the Internet and/or various telecommunication networks (for example, 3G/4G/5G mobile communication network, WIFI, Bluetooth, ZigBee, etc.).
- the system/network architecture for the product quality certification device as shown in FIG. 1B can be various appropriate network modes, such as a trusted network or a public network.
- the trusted network the blockchain processing device 101, the consensus task accepting device 102, and the interaction device 103 all require authentication. Only after the authentication is passed can they be added to the network.
- the trusted network is equivalent to a semi-open network.
- the blockchain processing device 101, the consensus task accepting device 102, and the interaction device 103 can be any computing device in the Internet, and this type of network is a completely public network.
- FIG. 1D is a flowchart of an example of a blockchain consensus task coordination method provided by some embodiments of the present disclosure.
- the method is executed by a blockchain consensus task coordination device in a blockchain system.
- the blockchain system may be a blockchain system as shown in FIG. 1B.
- the blockchain system includes M nodes, and each node includes, for example, a blockchain node device as shown in FIG. 1A.
- the blockchain consensus task coordination method of some embodiments of the present disclosure may be implemented in software, loaded and executed by a processor in the blockchain, for example, loaded and executed by a blockchain processing device in the blockchain; or, It is at least partially implemented in software, hardware, firmware, or any combination thereof, which is not limited in the embodiments of the present disclosure.
- the blockchain consensus task coordination method includes step S110 to step S120.
- the blockchain consensus task coordination method further includes step S130.
- the steps S110 to S130 of the blockchain consensus task coordination method and their respective exemplary implementation manners are respectively introduced below.
- Step S110 Receive resource capability data fed back by N nodes among M nodes.
- Step S120 Evaluate the resource capability data fed back by the N nodes to determine L nodes among the N nodes to perform the consensus task, and feed back information for performing the consensus task to the L nodes.
- Step S130 Receive processing action parameters fed back by N nodes, and determine whether each of the N nodes performs a consensus task according to the processing action parameters of each of the N nodes.
- the blockchain system includes a block central processing unit for executing the above steps of the blockchain consensus task coordination method provided by some embodiments of the present disclosure.
- the block central processing unit may be located on any node of the blockchain system, which is not limited in the embodiment of the present disclosure.
- each node in the blockchain system can be implemented as a software unit, a hardware unit, and any combination thereof, which is not limited in the embodiments of the present disclosure.
- N nodes that can perform this type of consensus task are selected from the M nodes included in the blockchain system.
- different or the same nodes can be selected from M nodes to execute the consensus tasks of transactions generated by different product quality certifications.
- some nodes are used for the consensus tasks of transactions generated by product certification for functional testing, some nodes are used for consensus tasks for transactions generated by product certification for reliability testing, and some nodes are used for product certification generated by packaging testing.
- Consensus tasks of transactions they are calculated according to the consensus tasks performed by the corresponding consensus algorithm, thereby determining the node that obtains the accounting right of the transaction corresponding to the consensus task, and the node that obtains the accounting right is in the block A new block is added to the chain.
- the block center processing unit receives the resource capacity data of the N nodes that perform the consensus task in the blockchain system, so as to determine the resource capacity of each group of nodes according to the resource capacity data of each node.
- the data is evaluated to select L nodes with a shorter time required to execute the consensus task to execute the consensus task, thereby improving the efficiency of the blockchain system in executing the consensus task.
- the resource capability data of each node received by the block center processing unit may be fed back by the feedback unit of each node performing the consensus task.
- the feedback unit will be described in detail below and will not be repeated here.
- the resource capacity data includes time constraint information and storage capacity information.
- the resource capability data of each node may be stored in the storage device of each node.
- time constraint information can be expressed as:
- DT j represents the time required for the jth node among the N nodes to perform the consensus task
- ST j represents the start time of the jth node to perform the consensus task
- ET j represents the end time of the jth node to perform the consensus task
- Nt Represents N nodes at time t
- j is an integer greater than 0 and less than or equal to N
- t is a natural number greater than 0.
- storage capacity information can be expressed as:
- cssr j represents the storage capacity required by the j-th node among the N nodes to perform the consensus task, Indicates the remaining storage capacity of the j-th node after removing the storage capacity required to perform other consensus tasks, Indicates the maximum storage capacity of the jth node.
- each node performing a consensus task can provide a state unit for computing resource capacity data, and the state unit can determine whether the consensus task can be performed based on the resource capacity data of each node.
- the state unit can be realized by a central processing unit (CPU), a field programmable logic gate array (FPGA), or other forms of processing units with data processing capabilities and/or instruction execution capabilities and corresponding computer instructions.
- the resource capacity data of each node can be determined in real time through the state unit, and the processing capacity of each node can be fed back to the block center processing unit through the feedback unit, thereby improving the blockchain system's ability to process consensus tasks. Flexibility and accuracy improve the processing efficiency of subsequent consensus tasks, and achieve accurate and efficient processing of consensus tasks.
- step S120 the resource capability data fed back by the N nodes in step S110 are evaluated, so as to determine L nodes among the N nodes to perform the consensus task, and feed back information for performing the consensus task to the L nodes.
- the L nodes After the L nodes receive the feedback information about the execution of the consensus task, they start to execute the consensus task, calculate according to the corresponding consensus algorithm, and determine which node obtains the accounting right for the transaction corresponding to the consensus task.
- the node that obtains the accounting right may belong to the L nodes or not belong to the L nodes.
- the N nodes can be divided into multiple groups, for example, H (H is an integer greater than 1) group, and each group includes multiple nodes that can perform the consensus task.
- step S120 a group of nodes with the shortest execution time and a trust value greater than the standard trust value (for example, including L nodes) is selected from the H group of nodes to execute the consensus task, thereby improving the execution of the consensus task effectiveness.
- the specific selection process can refer to the example shown in FIG. 2.
- FIG. 2 is a flowchart of an example of step S120 shown in FIG. 1D.
- the method for evaluating resource capability data fed back by N nodes includes step S121 to step S122.
- the blockchain consensus task coordination method of the embodiment of the present disclosure will be described.
- Step S121 Obtain the time value required by the N nodes to execute the consensus task and the trust value of the N nodes.
- Step S122 Comprehensively consider the time value and trust value of the N nodes, and determine L nodes.
- the block central processing unit determines the selection strategy of the L nodes that perform the consensus task may include two aspects: time value and trust value.
- the trust value may indicate the reliability of N nodes in performing a consensus task, for example, it may be obtained through a trust value management unit. It should be noted that the trust value management unit will be described in detail below, and will not be repeated here.
- the time value may be the end time parameter for each node to finish executing the current consensus task.
- the time value of each node that does not need to perform the consensus task is recorded as 0, and the node that needs to perform the consensus task records the actual end time of the consensus task as the node The time value. That is, the time required for each node to complete an existing consensus task is calculated as the time value of the node.
- the time value of a node that does not currently have a consensus task is recorded as 0, and a node that has a consensus task records the end time of the consensus task as The time value of the node, so that the end time for a group of nodes to execute the consensus task can be calculated as the time value of the group of nodes, and the time value of the H group of nodes can be sorted.
- step S122 for example, among N nodes, the L nodes with the shortest completion time and the trust value of achieving the consensus task greater than the standard trust value of the consensus task are selected to execute the consensus task.
- multiple groups of nodes whose trust values of each group of nodes are greater than the standard trust value are selected, and sorted according to the time value of the multiple groups of nodes.
- a group of nodes with the smallest time value can be selected to perform the consensus task of product quality certification, that is, according to the completion time of the consensus task, the group of nodes that completed the consensus task earliest can be used, that is, from Among the N nodes that perform all the consensus tasks of product quality certification, select L nodes that have qualified trust values and can complete the consensus task of product quality certification earliest to perform the consensus task.
- the comprehensive selection strategy of the block center processing unit can be expressed as:
- EB r represents the evaluation criteria of each group of nodes that perform the consensus task
- a i represents the time weight
- a e represents the trust value weight
- the feedback unit of each node obtains the processing action parameter of each node according to the resource capability data of each node.
- the processing action parameters include whether each node can handle the consensus task and the processing opinions of each node.
- the block center processing unit receives processing action parameters fed back by N nodes, and determines whether each of the N nodes performs a consensus task according to the processing action parameters of each of the N nodes.
- the feedback unit of each node sends information about whether the node can process the consensus task (that is, processing action parameters) to the block center processing unit, and the block center processing unit sends feedback to the nodes that can perform the consensus task based on the feedback information Information to perform the consensus task (for example, functional test, reliability test or packaging test in product quality certification, etc.), so that each node performs the consensus task according to the information sent by the block center processing unit, and realizes the implementation of consensus on each node
- the coordination of tasks ensures the orderliness and efficiency of the blockchain system.
- FIG. 3 is a flowchart of other examples of a blockchain consensus task coordination method provided by some embodiments of the present disclosure.
- the blockchain consensus task coordination method further includes step S140-step S170.
- step S140-step S170 the blockchain consensus task coordination method provided by the embodiment of the present disclosure will be described.
- Step S140 Receiving resource capability data of L nodes to determine whether other consensus tasks can be performed.
- Step S150 Based on the priority of the current consensus task and other consensus tasks, it is determined whether the current consensus task needs to be cancelled with some of the L nodes.
- Step S160 If the contract needs to be cancelled, send the contract cancellation application of the current consensus task request to the node that needs to cancel the contract.
- Step S170 Re-evaluate the resource capability data fed back by other nodes among the M nodes except the node that needs to be terminated, so as to re-determine the node that performs the current consensus task among the M nodes.
- step S140 for example, after determining the L nodes that perform the consensus task according to steps S121 and S122, the block center processing unit again receives the resource capability data of the L nodes fed back from the feedback unit of the L nodes to determine whether it can Performing other consensus tasks (the consensus task that arrives at the node later) is to perform constraint detection on each node again, that is, to detect time constraint information and storage capacity information.
- step S150 for example, based on the priority of the current consensus task and other consensus tasks, it is determined whether it is necessary to cancel the current consensus task with some of the L nodes. If there is no conflict in the time of the multiple consensus tasks that each node needs to perform and the ability to complete it is ensured, a confirmation signal is sent to confirm that the node performs the multiple consensus tasks and a consensus task contract is established; otherwise, the block center processing unit sends the corresponding The node at, sends an instruction to remove the consensus task, that is, sends the cancellation request of the consensus task that needs to be cancelled to the corresponding node, that is, step S160 is executed.
- step S170 for example, after the consensus task after contract cancellation becomes a dynamic task, re-evaluate the resource capacity data fed back by other nodes among the M nodes except the node that needs to be cancelled, so as to re-determine the execution of the current task among the M nodes.
- the nodes of the consensus task that is, re-select a suitable group of nodes to execute the consensus task after the termination of the contract, which can improve the efficiency of the blockchain in processing the consensus task and avoid the accumulation of tasks.
- the trust level of each node in the implementation of consensus tasks is inconsistent, especially when the blockchain system adopts the consensus mechanism of delegated equity proof.
- the trust value of each node needs to be dynamically adjusted and evaluated to determine whether to select the node to perform the consensus task according to the size of the trust value of each node.
- the blockchain consensus task coordination method further includes: performing trust value evaluation on each node performing the consensus task. For example, after the consensus task is completed, the block center processing unit can evaluate the trust value of each node based on the consensus result of each node and the mutual influence between each node, so as to adjust the trust value of each node. For example, a node with a greater trust value is more likely to be selected to perform a consensus task during the process of consensus task processing, and thus has a greater chance of obtaining accounting rights.
- the trust value of each node is based on the expectations of the future behavior of other nodes based on the observation or collection of the node's past behavior. For example, after the conclusion of the consensus task of the t-th batch of product quality certification, the trust value evaluation of the consensus behavior of the response endpoint of the consensus task corresponding to the product quality certification should include three attributes (for example, accuracy attribute, timeliness attribute, resource Attributes). For example, the trust value evaluation of other nodes a to node b can be expressed as:
- c represents the attributes of trust value evaluation, including accurate attributes, time-sensitive attributes, and resource attributes,
- w(t) represents the weight of the attribute of node b at time t
- the blockchain consensus task coordination method may include more or fewer operations, and these operations may be executed sequentially or in parallel.
- the process of the blockchain consensus task coordination method described above includes multiple operations in a specific order, it should be clearly understood that the order of multiple operations is not limited.
- the blockchain consensus task coordination method described above can be executed once or multiple times according to predetermined conditions.
- the blockchain consensus task coordination method can evaluate the resource capacity data of nodes in the blockchain system, and select a group of nodes with a shorter completion time to perform the consensus task, thereby improving the processing capacity of the consensus task. Efficiency and flexibility.
- Fig. 4 is a schematic block diagram of a block chain consensus task coordination device provided by some embodiments of the present disclosure.
- the blockchain consensus task coordination device 1000 includes a block central processing unit 110.
- the block center processing unit 110 is configured to receive resource capability data fed back by N nodes among the M nodes in the blockchain system, and evaluate the resource capability data fed back by the N nodes to determine among the N nodes L nodes perform consensus tasks, and feed back information on performing consensus tasks to L nodes.
- the block central processing unit 110 can implement step S110 and step S120, and the specific implementation method can refer to the related description of step S110 and step S120, which will not be repeated here.
- the block center processing unit provided by the embodiment of the present disclosure can coordinate the M nodes included in the blockchain system to determine the corresponding nodes (for example, L nodes) to execute the consensus task corresponding to each transaction (for example, product quality certification), And can dynamically update the priority of each consensus task, thus ensuring the rationality of the consensus task processing process, and differentiate the update speed of the consensus task, ensuring the orderly operation of the overall mechanism and improving The processing efficiency of consensus tasks is improved.
- the blockchain consensus task coordination device 1000 further includes a trust value management unit 120.
- the block central processing unit 110 and the trust value management unit 120 can be implemented in the form of hardware (for example, circuit) modules or software modules, and any combination thereof.
- the trust value management unit 120 is configured to evaluate the trust value of each node performing the consensus task.
- the trust value management unit 120 can implement the relevant steps of the trust value evaluation in the blockchain consensus task coordination method.
- the specific implementation method please refer to the relevant description of the trust value evaluation in the blockchain consensus task coordination method. No longer.
- the trust value management unit 120 can revise the trust value of each node that provides product quality certification services to ensure that the trust value of each node can be automatically adjusted, thereby improving the implementation of consensus by each node Task processing efficiency.
- the blockchain consensus task coordination device 1000 may include more or fewer circuits or units, and the connection relationship between the circuits or units is not limited, and can be based on actual needs. Depends.
- the specific structure of each circuit is not limited, and may be composed of analog devices according to the circuit principle, or may be composed of digital chips, or be composed in other suitable manners.
- Some embodiments of the present disclosure also provide a blockchain consensus task processing method. Based on the blockchain consensus task coordination method, the block center processing unit feeds back information on the execution of the consensus task to the L nodes, and each node performs the consensus task Consensus processing to obtain consensus results.
- FIG. 5 is a flowchart of some examples of a blockchain consensus task processing method provided by some embodiments of the disclosure.
- “application-response-optimization” can be formed according to the response characteristics of each node (for example, automated detection equipment) in the blockchain system to the consensus task. Consensus mechanism.
- the interaction process of each automated device (ie each node) in the blockchain system forms an optimized consensus mechanism for product certification.
- the blockchain consensus task processing method is executed by the blockchain node device in the blockchain system.
- the blockchain consensus task processing method includes step S210 to step S220, and in other examples, the blockchain consensus task processing method further includes step S230.
- the steps S210 to S230 of the blockchain consensus task processing method and their respective exemplary implementation manners are respectively introduced below.
- Step S210 Receive the first consensus task request corresponding to the first consensus task sent by the second node among the M nodes.
- Step S220 Determine whether to feed back the resource capability data of the first node to the block center processing unit for the coordination of the first consensus task.
- Step S230 The first node receives the feedback information of the block center processing unit, executes the first consensus task, and records the obtained first consensus result corresponding to the first consensus task.
- the blockchain system includes M nodes, the above-mentioned blockchain consensus task processing method is applicable to any node among the M nodes, and the corresponding current node that executes the method is called the first node.
- the M nodes in the blockchain system further include a second node and other nodes.
- the second node is used to issue a first consensus task request corresponding to the first consensus task during operation.
- the first consensus task corresponds to the second node broadcasting to the blockchain system
- the first transaction For example, the first node receives the first consensus task request sent by the second node, and processes the first consensus task request. If it feeds back information to the block center processing unit to indicate that it can perform the first consensus task, it is receiving After the information that the first node can perform the first consensus task determined by the block center processing unit, the first consensus task is executed based on the first consensus task information sent by the block center processing unit.
- the first consensus task request may include task specific information, required time, capacity, etc., which are not limited in the embodiment of the present disclosure.
- step S220 for example, after the first node receives the first consensus task request sent by the second node, it determines whether to feed back the resource capability data of the first node to the block center processing unit through its feedback unit for the first consensus Coordination of tasks.
- the specific judgment method is shown in Figure 6.
- FIG. 6 is a flowchart of an example of step S220 shown in FIG. 5.
- the method for the first node to determine whether to feed back the resource capability data of the first node to the block central processing unit includes steps S221 to S222.
- the blockchain consensus task processing method of the embodiment of the present disclosure will be described.
- Step S221 Determine whether the first consensus task can be executed according to the resource capability data of the first node.
- Step S222 At least in the case where the first consensus task can be executed, the resource capability data of the first node is fed back to the block center processing unit.
- the N nodes can determine whether they can perform the first consensus task. For example, if the above formula (1) and formula (2) are satisfied at the same time, the first node determines that it can perform the first consensus task; if not, the first node gives up executing the consensus.
- the consensus task of the same level can be assigned in batches by the block center processing unit according to the priority of the consensus task, which can reduce the response of rejecting the consensus task The number of nodes can thereby reduce the number of times each node in the blockchain system negotiates whether to perform the consensus task and reduce communication costs.
- the N nodes that can perform the first consensus task respectively feed back their resource capacity data to the block central processing unit. Therefore, the block center processing unit can determine L nodes among the N nodes to perform the first consensus task according to the resource capacity data they feed back, and feed back information for performing the first consensus task to the L nodes.
- the first node may include a feedback unit that feeds back resource capacity data to the block central processing unit, and the feedback unit realizes the feedback of the first node information to the block central processing unit; for example, the central processing unit ( CPU), Field Programmable Logic Gate Array (FPGA), or other forms of processing units with data processing capabilities and/or instruction execution capabilities and corresponding computer instructions implement the feedback unit.
- the central processing unit CPU
- Field Programmable Logic Gate Array FPGA
- the first node receives the feedback information of the block center processing unit, executes the first consensus task, and records the obtained first consensus result corresponding to the first consensus task.
- the first consensus result is, for example, proof of workload, proof of rights, and witnesses (bookkeeping nodes) selected by voting.
- the first node sends the first consensus result to the blockchain system according to the consensus algorithm adopted by the blockchain system. Therefore, the L nodes selected by the block central processing unit respectively execute the corresponding first consensus task according to the feedback information of the block central processing unit.
- the blockchain system selects a billing node from the L nodes, and uses the billing node, for example, the blockchain processing device 101 shown in FIG.
- the quality-certified transaction is packaged into a block, and the block is broadcast to all nodes in the blockchain system to link the block to the global blockchain.
- the first node may include an accounting unit that records the first consensus result.
- FIG. 7 is a flowchart of other examples of a blockchain consensus task processing method provided by some embodiments of the disclosure.
- the blockchain consensus task processing method in this example is based on the block in the blockchain system.
- the chain node device executes.
- the blockchain consensus task processing method further includes step S240-step S260.
- step S240-step S260 the blockchain consensus task processing method provided by the embodiment of the present disclosure will be described.
- Step S240 In a situation where the first node executes or is to be executed the first consensus task, receive the second consensus task request sent by the third node among the M nodes.
- Step S250 Determine the priority of the first consensus task request corresponding to the second consensus task request sent by the third node and the first consensus task currently being executed or to be executed by the first node.
- Step S260 Determine whether to respond to the second consensus task request based on the judgment result.
- the M nodes of the blockchain system further include a third node.
- the third node issues a second consensus task request to the first node during operation, and the second consensus task request corresponds to the third node The second transaction broadcast to the blockchain system.
- the blockchain system may also include a fourth node, a fifth node, etc., which correspond to nodes that issue other consensus task requests corresponding to other transactions.
- the embodiments of the present disclosure do not limit this.
- the second node that issued the first consensus task request and the third node that issued the second consensus task request may be the same node.
- step S250 for example, the priorities of the first consensus task and the second consensus task are judged to determine whether the first node needs to terminate the contract with the first consensus task.
- the specific judgment process is shown in FIG. 8.
- FIG. 8 is a flowchart of an example of step S250 shown in FIG. 7.
- the method of judging the priority of the first consensus task request corresponding to the first consensus task currently being executed or to be executed by the second consensus task request issued by the third node includes Step S251 to Step S253.
- the blockchain consensus task processing method of the embodiment of the present disclosure will be described.
- Step S251 Determine whether the time required by the first node to execute the first consensus task conflicts with the time required to execute the second consensus task corresponding to the second consensus task request; if so, proceed to step S252; if not, proceed to step S253.
- Step S252 In response to the cancellation request, the first node cancels the first consensus task request corresponding to the first consensus task being executed or to be executed, and preferentially executes the second consensus task corresponding to the second consensus task request.
- Step S253 It is determined that the priority of the first consensus task is higher than the second consensus task, that is, after the first node has executed the first consensus task, it will respond to the second consensus task request.
- the first node evaluates the time required for each consensus task executed by it. That is, first, according to the above formula (1) and formula (2), the first node judges whether it can perform the first consensus task and the second consensus task. If it can, the first node calculates the resource time occupied by each consensus task and feeds it back to the block center processing unit, and then the block center processing unit calculates the process and time generated by the overall consensus task combination, and all its processes follow The overall time mechanism is sorted to determine the nodes with the least time required to execute the consensus task.
- step S252 for example, after the first node receives the contract cancellation request sent by the block center processing unit, in response to the contract cancellation request, the first consensus task request corresponding to the first consensus task being executed or to be executed is cancelled, with priority Execute the second consensus task corresponding to the second consensus task request.
- the block center processing unit re-determines the node that can execute the first consensus task request after the contract is terminated based on the received resource capacity data of each node.
- the specific process can refer to step S170 in the blockchain consensus task coordination method shown in FIG. 3, which will not be repeated here.
- the first node may respond to the second consensus task request to execute the second task request after executing the first consensus task.
- FIG. 9 is a flowchart of further examples of a blockchain consensus task processing method provided by some embodiments of the present disclosure.
- the blockchain consensus task processing method in this example is based on the block in the blockchain system.
- the chain node device executes.
- the blockchain consensus task processing method further includes step S270-step S290.
- step S270-step S290 the blockchain consensus task processing method provided by the embodiment of the present disclosure will be described.
- Step S270 Determine whether the second consensus task can be executed according to the resource capability data of the first node.
- Step S280 At least in the case that the second consensus task can be executed, the resource capability data of the first node is fed back to the block center processing unit for the coordination of the first consensus task.
- Step S290 After receiving the feedback information from the central processing unit of the block, execute the second consensus task.
- step S270 for example, before judging whether the time required for the first node to execute the first consensus task conflicts with the time required to execute the second consensus task corresponding to the second consensus task request, the first node determines its own resource capacity Data to determine whether the second consensus task can be performed. For example, for the second consensus task, when the time constraint and storage capacity constraint of the first node both satisfy the above formula (1) and formula (2), the first node can execute the second consensus task.
- the first node may feed back the resource capability data of the first node to the block center processing unit for coordination of the first consensus task.
- the first node may feed back the resource capability data of the first node to the block center processing unit for coordination of the first consensus task.
- the contract cancellation operation or not to perform the contract cancellation operation on the first consensus task refer to the blockchain consensus task processing method shown in FIG. 7 and FIG. 8 for details, which will not be repeated here.
- step S290 for example, under the coordination of the block central processing unit, multiple nodes that can perform the second consensus task are re-determined, and information about the second consensus task is sent to multiple nodes that can perform the second consensus task Therefore, the multiple nodes perform the second consensus task after receiving the feedback information from the block center processing unit.
- the above-mentioned first consensus task request is structured.
- the above-mentioned second consensus task request or other various consensus task requests can also be structured, so as to transform the content of different consensus task requests into a unified form, realize unified information expression, and facilitate the blockchain The understanding of the consensus task information of each node.
- an information receiving unit for receiving a consensus task request may be included, and through the information receiving unit, the second node among the M nodes can receive the first consensus task.
- the information receiving unit can also be used to structure each consensus task request, which is not limited in the embodiment of the present disclosure.
- information transmission between various nodes may be through wired transmission or wireless transmission, and may be through a computer network such as the Internet and/or various telecommunication networks (such as 3G/4G/5G mobile communication network, WIFI, Bluetooth, ZigBee, etc.) exchange information/data with other nodes, and the following embodiments are the same as this, and will not be repeated.
- a computer network such as the Internet and/or various telecommunication networks (such as 3G/4G/5G mobile communication network, WIFI, Bluetooth, ZigBee, etc.) exchange information/data with other nodes, and the following embodiments are the same as this, and will not be repeated.
- the first consensus task request and the second consensus task request are corresponding to the consensus task request for product quality certification of liquid crystal display panels, OLED display panels, etc.
- the product quality certification task request is taken as an example to systematically explain the above-mentioned blockchain consensus task coordination method and blockchain consensus task processing method, which is not limited in the embodiments of the present disclosure.
- a set of information models describing product quality certification tasks are preset in the M nodes included in the blockchain system to describe the content of the product quality certification tasks and structured.
- the product quality certification task may include functional testing (for example, testing whether the display is clear, normal, no display, blurred, black, white, color dots, missing lines, vertical bars, etc.), reliability testing (for example, testing performance Whether it is dropped, constant temperature, high temperature operation, etc.) and packaging tests, etc., are used for quality certification of products submitted by users and produce quality certification results (ie transactions).
- Table 1 shows a structured description of the product quality certification task.
- the consensus task request corresponding to the above-mentioned product quality certification result can be issued by a certain node in the blockchain system (that is, the second node in the above method) in the order of priority, and after other nodes receive the consensus task request Perform corresponding operations (these nodes and the first node in the above method), and the block center processing unit in the blockchain system selects nodes according to the task classification descriptions fed back by each node.
- each node may be each block chain node device shown in FIG. 1B, which may be connected through a computer network (such as a local area network, a wide area network, the Internet, etc.).
- a computer network such as a local area network, a wide area network, the Internet, etc.
- each node in the blockchain system performs constraint calculations based on its own resource capacity data to determine whether the node itself can handle the consensus task, that is, each node determines whether it can meet the above formula (1) and formula ( 2), N nodes satisfying the above formula (1) and formula (2) at the same time feedback their own resource capacity data to the block center processing unit, and the block center processing unit receives feedback from N nodes among the M nodes
- the resource capability data is to evaluate the resource capability data fed back by the N nodes to determine L nodes among the N nodes to perform the consensus task, and to feed back information about the execution of the consensus task to the L nodes.
- performing consensus tasks through the L nodes can reach a consensus in the shortest time, and the trust value is not lower than the standard trust value.
- the specific selection process can refer to the blockchain consensus task coordination method provided by some embodiments of the present disclosure shown in FIG. 2 to FIG. 3, which will not be repeated here.
- the block central processing unit can run at any node of the block chain system.
- the block center processing unit performs constraint detection on the consensus task of each node again. If the consensus tasks corresponding to each product quality certification executed in sequence at the same stage do not conflict in time and have the ability to complete, the node sends a confirmation signal to the block center processing unit to confirm information; otherwise, the block center processing unit sends the first A node and a consensus task with a lower priority apply for cancellation of a contract to a node that needs to be cancelled, and the node that needs to cancel the contract removes the consensus task with a lower priority from its task list.
- the first node selected through the above process receives the feedback consensus task information of the block center processing unit (for example, the above-mentioned structured information), executes the consensus task corresponding to product quality certification, and records the obtained consensus result.
- the feedback consensus task information of the block center processing unit for example, the above-mentioned structured information
- the trust value of each node is evaluated based on the consensus result of product quality certification and the mutual influence of each node, and the node with the greater trust value is processed in other consensus tasks In the process, the more likely it is to be selected to perform the consensus task, the more chance it is to obtain the right to bookkeeping.
- the blockchain system reaches a consensus on the consensus task request for product quality certification, that is, after the accounting node is selected from the L nodes, it passes the block shown in Figure 1A through the accounting node.
- the chain processing device 101 packages, for example, transaction transactions related to product quality certification into a block, broadcasts the block to all nodes in the blockchain system, and links the block to the global blockchain.
- FIG. 10 is a schematic block diagram of a blockchain node device provided by some embodiments of the disclosure.
- the blockchain node device 200 includes an information receiving unit 210 and a feedback unit 220.
- these units may be implemented in the form of hardware (for example, circuit) modules, software modules, and any combination thereof.
- the blockchain system includes M nodes, the blockchain node device is applicable to any node of the M nodes, and the current node corresponding to the blockchain node device is the first node.
- the information receiving unit 210 may belong to the interaction device 103 in the blockchain device 100 shown in FIG. 1A to receive the second node of the M nodes in the blockchain system corresponding to the first consensus task.
- the information receiving unit 210 can implement step S210, and the specific implementation method can refer to the related description of step S210, which will not be repeated here.
- the information receiving unit 210 may also receive consensus task requests corresponding to other consensus tasks sent by other nodes, and perform structured processing on each consensus task request.
- the information receiving unit provided by the embodiments of the present disclosure can clarify the prerequisite preparations required by the consensus task from the qualitative and quantitative aspects, and realize the description of any task, so that the consensus task can be processed before the consensus task is processed without affecting the processing efficiency Preprocessing to improve the processing efficiency of consensus tasks.
- the feedback unit 220 may belong to the consensus task accepting device 103 in the blockchain device 100 shown in FIG. 1A, so as to be configured to determine whether to feed back the first node to the block center processing unit in the blockchain system.
- Resource capacity data For example, the feedback unit 220 can implement step S220, and the specific implementation method can refer to the related description of step S220, which will not be repeated here.
- the blockchain node device 200 further includes a state unit 230 and an accounting unit 240.
- the state unit 230 may belong to the consensus task accepting device 103 in the blockchain device 100 shown in FIG. 1A, and is configured to determine whether the first consensus task can be executed according to the resource capability data of the first node.
- the status unit 230 can implement step S230, and the specific implementation method can refer to the related description of step S230, which will not be repeated here.
- the accounting unit 240 may belong to the blockchain processing device 101 in the blockchain device 100 shown in FIG. 1A, and is configured to receive feedback information from the block central processing unit 110, perform the first consensus task, and Record the first consensus achievement corresponding to the first consensus task obtained.
- the blockchain node device may include more or fewer circuits or units, and the connection relationship between the various circuits or units is not limited, and may be determined according to actual requirements.
- the specific structure of each circuit is not limited, and may be composed of analog devices according to the circuit principle, or may be composed of digital chips, or be composed in other suitable manners.
- FIG. 11 is a schematic block diagram of another blockchain node device provided by some embodiments of the present disclosure.
- the blockchain node device 3000 includes a processor 310, a memory 320, and one or more computer program modules 321.
- the processor 310 and the memory 320 are connected through a bus system 330.
- one or more computer program modules 321 are stored in the memory 320.
- one or more computer program modules 321 include instructions for executing the blockchain consensus task coordination method provided by any embodiment of the present disclosure or instructions for the blockchain consensus task processing method provided by any embodiment of the present disclosure.
- instructions in one or more computer program modules 321 may be executed by the processor 310.
- the bus system 330 may be a commonly used serial or parallel communication bus, etc., which is not limited in the embodiments of the present disclosure.
- the processor 310 may be a central processing unit (CPU), a field programmable logic gate array (FPGA), or another form of processing unit with data processing capability and/or instruction execution capability, and may be a general-purpose processor or a dedicated processing unit. It can also control other components in the blockchain node device 3000 to perform desired functions.
- CPU central processing unit
- FPGA field programmable logic gate array
- the memory 320 may include one or more computer program products, and the computer program products may include various forms of computer-readable storage media, such as volatile memory and/or non-volatile memory.
- the volatile memory may include random access memory (RAM) and/or cache memory (cache), for example.
- the non-volatile memory may include read-only memory (ROM), hard disk, flash memory, etc., for example.
- One or more computer program instructions may be stored on the computer-readable storage medium, and the processor 310 may run the program instructions to implement the functions (implemented by the processor 210) and/or other desired functions in the embodiments of the present disclosure, For example, the blockchain consensus task coordination method.
- the computer-readable storage medium may also store various application programs and various data, such as resource capability data and various data used and/or generated by the application programs.
- the embodiments of the present disclosure do not provide all the constituent units of the blockchain node device 3000.
- those skilled in the art can provide and set other unshown component units according to specific needs, which are not limited in the embodiments of the present disclosure.
- FIG. 12 is a schematic diagram of a storage medium provided by some embodiments of the present disclosure.
- the storage medium 400 non-transitory stores computer-readable instructions 401.
- the blockchain consensus task provided by any embodiment of the present disclosure can be executed. Coordination method or blockchain consensus task processing method.
- the storage medium may be any combination of one or more computer-readable storage media.
- one computer-readable storage medium contains the computer-readable program code of the blockchain consensus task coordination method, and another computer-readable storage medium The computer-readable program code containing the blockchain consensus task processing method.
- the computer can execute the program code stored in the computer storage medium, and execute, for example, the blockchain consensus task coordination method or the blockchain consensus task processing method provided by any embodiment of the present disclosure .
- the storage medium may include a memory card of a smart phone, a storage component of a tablet computer, a hard disk of a personal computer, random access memory (RAM), read only memory (ROM), erasable programmable read only memory (EPROM), The portable compact disk read-only memory (CD-ROM), flash memory, or any combination of the above storage media can also be other suitable storage media.
- RAM random access memory
- ROM read only memory
- EPROM erasable programmable read only memory
- CD-ROM compact disk read-only memory
- flash memory or any combination of the above storage media can also be other suitable storage media.
- FIG. 13 is a schematic block diagram of a blockchain system provided by some embodiments of the present disclosure.
- the blockchain system can be used to construct public chains, private chains, alliance chains, and the like.
- automated product quality certification terminals can form a consortium chain, and each terminal providing certification services in the consortium chain forms a consensus on the behavior described by the smart contract and performs corresponding tasks.
- the blockchain system 500 includes a plurality of blockchain node devices 510 provided in any embodiment of the present disclosure.
- the blockchain node device may adopt the blockchain node device 200 shown in FIG. 10 or the blockchain node device 3000 shown in FIG. 11, which will not be repeated here.
- the multiple blockchain node devices 510 are connected through a computer network (such as a local area network, a wide area network, the Internet, etc.).
- the blockchain system 500 further includes a block central processing unit 520.
- the block center processing unit 520 is configured to receive the resource capability data fed back by N nodes among the M nodes of the blockchain system 500, and evaluate the resource capability data fed back by the N nodes, so that the N nodes Determine L nodes to perform consensus tasks, and feed back information to L nodes to perform consensus tasks.
- the block central processing unit 520 may adopt the block central processing unit 100 shown in FIG. 4, which will not be repeated here.
Abstract
Description
Claims (28)
- 一种区块链共识任务协调方法,运行所述区块链共识任务协调方法的区块链系统包括M个节点,所述方法包括:接收所述M个节点中N个节点反馈的资源能力数据,对所述N个节点反馈的资源能力数据进行评估,以在所述N个节点中确定L个节点以执行共识任务,并向所述L个节点反馈执行所述共识任务的信息,其中,0<L≤N≤M,M、N、L均为正整数。
- 根据权利要求1所述的区块链共识任务协调方法,还包括:接收所述N个节点反馈的处理动作参数,并且根据所述N个节点每个的处理动作参数确定所述N个节点每个是否执行所述共识任务。
- 根据权利要求1或2所述的区块链共识任务协调方法,其中,所述资源能力数据包括时间约束信息和存储容量信息。
- 根据权利要求3所述的区块链共识任务协调方法,其中,所述时间约束信息表示为:ST j≤DT j≤ET j,1≤j≤N t其中,DT j表示所述N个节点中第j个节点执行所述共识任务所需要的时间,ST j表示所述第j个节点执行所述共识任务的开始时间;ET j表示所述第j个节点执行所述共识任务的结束时间,Nt表示t时刻的所述N个节点,j为大于0且小于等于N的整数,t为大于0的自然数。
- 根据权利要求1-5任一所述的区块链共识任务协调方法,其中,对所述N个节点反馈的资源能力数据进行评估包括:获取所述N个节点的执行所述共识任务所需要的时间值以及所述N个节点的信任值,其中,所述信任值表示所述N个节点执行所述共识任务的可靠度;综合考虑所述N个节点的时间值和信任值,确定所述L个节点。
- 根据权利要求6所述的区块链共识任务协调方法,其中,综合考虑所述N个节点的时间值和信任值,确定所述L个节点,包括:在所述N个节点中选取完成时间最短,且实现所述共识任务的信任值大于执行所述共识任务的标准信任值的L个节点,来执行所述共识任务。
- 根据权利要求1-7任一所述的区块链共识任务协调方法,还包括:再次接收所述L个节点的资源能力数据以确定是否能够执行其他共识任务;基于当前共识任务与所述其他共识任务的优先级确定是否需要将所述当前共识任务与所述L个节点中的某些节点解约;如果需要解约,则发送所述当前共识任务请求的解约申请至需要解约的节点;重新对所述M个节点中的除需要解约的节点之外的其他节点反馈的资源能力数据进行评估,以在所述M个节点中重新确定执行所述当前共识任务的节点。
- 根据权利要求1-8任一所述的区块链共识任务协调方法,还包括:对执行所述共识任务的各个节点进行信任值评估。
- 一种区块链共识任务协调装置,区块链系统包括M个节点,所述区 块链共识任务协调装置包括区块中心处理单元,其中,所述区块中心处理单元配置为接收所述M个节点中的N个节点反馈的资源能力数据,并对所述N个节点反馈的资源能力数据进行评估,以在所述N个节点中确定L个节点以执行共识任务,并向所述L个节点反馈执行共识任务的信息,其中,0<L≤N≤M,M、N、L均为正整数。
- 根据权利要求11所述的区块链共识任务协调装置,还包括信任值管理单元;其中,所述信任值管理单元配置为对执行共识任务的所述各个节点进行信任值评估。
- 一种区块链共识任务处理方法,区块链系统包括M个节点,所述方法适用于所述区块链系统中M个节点中的第一节点,且包括:接收所述M个节点中的第二节点发出的与第一共识任务对应的第一共识任务请求;判断是否向区块中心处理单元反馈所述第一节点的资源能力数据,以用于所述第一共识任务的协调。
- 根据权利要求13所述的区块链共识任务处理方法,其中,判断是否向所述区块中心处理单元反馈所述第一节点的资源能力数据,包括:根据所述第一节点的资源能力数据,确定是否能够执行所述第一共识任务;至少在能够执行所述第一共识任务的情形,向所述区块中心处理单元反馈所述第一节点的资源能力数据。
- 根据权利要求13所述的区块链共识任务处理方法,还包括:所述第一节点接收所述区块中心处理单元的反馈信息,执行所述第一共识任务,并记录获得的与所述第一共识任务对应的第一共识成果。
- 根据权利要求13所述的区块链共识任务处理方法,还包括:在所述第一节点执行或待执行所述第一共识任务的情形,接收所述M个节点中的第三节点发出的第二共识任务请求;判断所述第三节点发出的所述第二共识任务请求与所述第一节点当前正在执行或待执行的所述第一共识任务对应的所述第一共识任务请求的优先 级;基于判断结果确定是否对所述第二共识任务请求进行响应。
- 根据权利要求16所述的区块链共识任务处理方法,还包括:判断所述第一节点执行所述第一共识任务所需的时间是否与执行所述第二共识任务请求对应的第二共识任务所需的时间冲突;如果不冲突,则确定所述第一共识任务的优先级高于所述第二共识任务,否则,先对所述第二共识任务请求进行响应。
- 根据权利要求17所述的区块链共识任务处理方法,其中,在基于判断结果确定所述第一节点先对所述第二共识任务请求进行响应的情形,响应于解约申请对在执行或待执行的所述第一共识任务对应的所述第一共识任务请求进行解约,以优先执行与所述第二共识任务请求对应的第二共识任务。
- 根据权利要求17或18所述的区块链共识任务处理方法,还包括:在判断所述第一节点执行所述第一共识任务所需的时间是否与执行所述第二共识任务请求对应的第二共识任务所需的时间冲突之前,根据所述第一节点的资源能力数据,确定所述第一节点是否能够执行所述第二共识任务;至少在能够先执行所述第二共识任务的情形,所述第一节点向所述区块中心处理单元反馈其资源能力数据以用于第一共识任务协调;所述第一节点在接收所述区块中心处理单元的反馈信息后,再执行所述第二共识任务。
- 根据权利要求13-17任一所述的区块链共识任务处理方法,还包括:当所述第一节点被选作记账节点后,所述第一节点创建新的区块或执行预定事务。
- 根据权利要求13-17任一所述的区块链共识任务处理方法,还包括:对所述第一共识任务请求进行结构化处理。
- 根据权利要求16或17所述的区块链共识任务处理方法,其中,所述第一共识任务请求和所述第二共识任务请求为对应于产品品质认证的共识任务请求。
- 一种区块链节点装置,区块链系统包括M个节点,所述装置适用于所述区块链系统中M个节点中的第一节点,且包括:信息接收单元和反馈单元,其中,所述信息接收单元被配置为接收所述M个节点中的第二节点发出的与第一共识任务对应的第一共识任务请求;所述反馈单元被配置为判断是否向区块中心处理单元反馈所述第一节点的资源能力数据;其中,M为正整数。
- 根据权利要求23所述的区块链节点装置,还包括状态单元和记账单元;其中,所述状态单元配置为根据所述第一节点的资源能力数据,确定是否能够执行所述第一共识任务;所述记账单元配置为接收所述区块中心处理单元的反馈信息,执行所述第一共识任务,并记录获得的与所述第一共识任务对应的第一共识成果。
- 一种区块链节点装置,包括:处理器;存储器,存储有一个或多个计算机程序模块,其中,所述一个或多个计算机程序模块被配置为由所述处理器执行,所述一个或多个计算机程序模块包括用于执行实现权利要求1-10任一所述的区块链共识任务协调方法或权利要求13-22任一所述的区块链共识任务处理方法的指令。
- 一种存储介质,非暂时性地存储计算机可读指令,其中,当所述非暂时性计算机可读指令由计算机执行时可以执行根据权利要求1-10任一所述的区块链共识任务协调方法或权利要求13-22任一所述的区块链共识任务处理方法的指令。
- 一种区块链系统,包括多个权利要求23-25任一所述的区块链节点装置。
- 根据权利要求27所述的区块链系统,还包括区块中心处理单元,其中,所述区块中心处理单元配置为接收所述M个节点中的N个节点反馈的资源能力数据,并对所述N个节点反馈的资源能力数据进行评估,以在所述N个节点中确定L个节点以执行共识任务,并向所述L个节点反馈执行共识任务的信息,其中,0<L≤N≤M,M、N、L均为正整数。
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910179834.6 | 2019-03-11 | ||
CN201910179834.6A CN109871279B (zh) | 2019-03-11 | 2019-03-11 | 共识任务协调方法及装置、区块链系统、存储介质 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2020182134A1 true WO2020182134A1 (zh) | 2020-09-17 |
Family
ID=66920130
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2020/078692 WO2020182134A1 (zh) | 2019-03-11 | 2020-03-11 | 区块链共识任务协调方法、区块链共识任务协调装置、区块链共识任务处理方法、区块链节点装置、区块链系统和存储介质 |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN109871279B (zh) |
WO (1) | WO2020182134A1 (zh) |
Cited By (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112132579A (zh) * | 2020-09-30 | 2020-12-25 | 深圳前海微众银行股份有限公司 | 一种区块链共识节点更新方法及装置 |
CN112364317A (zh) * | 2020-11-17 | 2021-02-12 | 中国传媒大学 | 一种基于区块链技术的物联网雾环境管理架构及方法 |
CN112437049A (zh) * | 2020-11-06 | 2021-03-02 | 深圳前海微众银行股份有限公司 | 一种基于bft的区块链共识方法及装置 |
CN112532713A (zh) * | 2020-11-25 | 2021-03-19 | 深圳前海微众银行股份有限公司 | 一种区块链的抗分叉检测方法及装置 |
CN112735551A (zh) * | 2021-01-15 | 2021-04-30 | 山东科技大学 | 基于H-Algorand共识机制的医疗记录存储共享模型及其实现方法 |
CN112764897A (zh) * | 2020-12-31 | 2021-05-07 | 杭州趣链科技有限公司 | 任务请求的处理方法、装置、系统及计算机可读存储介质 |
CN112887391A (zh) * | 2021-01-21 | 2021-06-01 | 北京工业大学 | 一种基于贡献值的高可靠性区块链共识方法及系统 |
CN113301117A (zh) * | 2021-04-21 | 2021-08-24 | 广东电网有限责任公司 | 节点加入共识及退出共识方法、装置、计算机设备 |
CN113610660A (zh) * | 2021-07-01 | 2021-11-05 | 国网浙江宁海县供电有限公司 | 基于区块链的电力系统结算方法及相关装置 |
CN113987017A (zh) * | 2021-10-26 | 2022-01-28 | 北京华宜信科技有限公司 | 基于区块链的科技成果评估服务网络平台构建方法 |
US20220318122A1 (en) * | 2021-04-05 | 2022-10-06 | Mastercard International Incorporated | Method and system for blockchain performance testing |
CN115577983A (zh) * | 2022-11-24 | 2023-01-06 | 神华上航疏浚有限责任公司 | 基于区块链的企业任务匹配方法、服务器及存储介质 |
CN116151826A (zh) * | 2023-04-04 | 2023-05-23 | 广东电力交易中心有限责任公司 | 一种高效可靠的基于区块链的电力交易终端信任管理方法 |
Families Citing this family (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109871279B (zh) * | 2019-03-11 | 2021-10-01 | 京东方科技集团股份有限公司 | 共识任务协调方法及装置、区块链系统、存储介质 |
CN110427763B (zh) * | 2019-07-24 | 2021-07-23 | 上海朝夕网络技术有限公司 | 一种基于预定义执行代码的分布式系统的共识方法 |
CN110825810B (zh) * | 2019-10-28 | 2023-05-19 | 天津理工大学 | 一种基于区块链的群智感知双重隐私保护方法 |
CN110933627B (zh) * | 2019-11-15 | 2021-04-27 | 北京三快在线科技有限公司 | 业务处理方法、装置、设备及存储介质 |
CN111245886B (zh) * | 2019-11-29 | 2022-06-17 | 武汉烽火信息集成技术有限公司 | 一种基于区块链的多方协作系统、方法及存储介质 |
CN111416843A (zh) * | 2020-03-06 | 2020-07-14 | 厦门区块链云科技有限公司 | 一种区块链社群超级节点竞选方法 |
CN113256426B (zh) * | 2020-05-29 | 2023-08-04 | 支付宝(杭州)信息技术有限公司 | 一种数据处理方法、装置、设备及介质 |
CN112003903A (zh) * | 2020-07-29 | 2020-11-27 | 北京小米松果电子有限公司 | 一种集群任务调度方法、装置及存储介质 |
CN112020018B (zh) * | 2020-08-26 | 2022-05-17 | 山东浪潮科学研究院有限公司 | 区块链记账组生成方法、共识方法及区块链系统 |
CN111930847B (zh) * | 2020-09-16 | 2021-01-08 | 深圳壹账通智能科技有限公司 | 基于区块链的数据处理方法、装置及存储介质 |
CN112150029A (zh) * | 2020-10-09 | 2020-12-29 | 浙江专线宝网阔物联科技有限公司 | 一种支持动态与分散任务分配的区块链弹性架构设计方法 |
CN113157444B (zh) * | 2021-03-29 | 2023-12-01 | 中国联合网络通信集团有限公司 | 一种算力服务认证方法、设备以及可读存储介质 |
CN114466050B (zh) * | 2022-04-11 | 2022-11-08 | 国汽智控(北京)科技有限公司 | 基于区块链的车载数据处理方法、装置及电子设备 |
CN114900519B (zh) * | 2022-05-06 | 2023-12-12 | 中国电信股份有限公司 | 能力调用方法、能力调用装置、存储介质及电子设备 |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107360206A (zh) * | 2017-03-29 | 2017-11-17 | 阿里巴巴集团控股有限公司 | 一种区块链共识方法、设备及系统 |
CN108777704A (zh) * | 2018-05-16 | 2018-11-09 | 横琴密达科技有限责任公司 | 一种区块链共识方法及系统 |
US20180365686A1 (en) * | 2017-06-19 | 2018-12-20 | Hitachi, Ltd. | Smart contract lifecycle management |
CN109086139A (zh) * | 2018-08-15 | 2018-12-25 | 昧来网络科技(上海)有限公司 | 动态分片方法、设备和计算机存储介质 |
CN109871279A (zh) * | 2019-03-11 | 2019-06-11 | 京东方科技集团股份有限公司 | 共识任务协调方法及装置、区块链系统、存储介质 |
Family Cites Families (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8429371B2 (en) * | 2010-03-23 | 2013-04-23 | Avaya Inc. | System and method for robust and efficient free chain management |
US9590875B2 (en) * | 2013-04-29 | 2017-03-07 | International Business Machines Corporation | Content delivery infrastructure with non-intentional feedback parameter provisioning |
US10360495B2 (en) * | 2016-12-30 | 2019-07-23 | Suggestic, Inc. | Augmented reality and blockchain technology for decision augmentation systems and methods using contextual filtering and personalized program generation |
CN107341702B (zh) * | 2017-03-08 | 2020-06-23 | 创新先进技术有限公司 | 一种业务处理的方法及装置 |
CN107730258A (zh) * | 2017-09-01 | 2018-02-23 | 上海点融信息科技有限责任公司 | 基于区块链的资源处理方法、装置及计算机可读存储介质 |
CN107832139A (zh) * | 2017-09-26 | 2018-03-23 | 上海点融信息科技有限责任公司 | 用于管理区块链节点的计算资源的方法、设备和系统 |
CN107943580A (zh) * | 2017-11-13 | 2018-04-20 | 上海点融信息科技有限责任公司 | 用于管理区块链节点处的用户智能合约的方法以及设备 |
KR101924469B1 (ko) * | 2018-03-20 | 2018-12-03 | 가온미디어 주식회사 | 수신제한 시스템 연동 기반의 블록체인 운용 방법 |
CN108712307B (zh) * | 2018-05-11 | 2021-01-29 | 北京奇虎科技有限公司 | 一种基于区块链的带宽能力计算方法及装置 |
CN108960837A (zh) * | 2018-06-05 | 2018-12-07 | 上海和数软件有限公司 | 区块链共识验证方法、装置及计算机可读存储介质 |
CN109242685B (zh) * | 2018-08-29 | 2020-05-12 | 众安信息技术服务有限公司 | 基于区块链的共识和验证方法及装置 |
-
2019
- 2019-03-11 CN CN201910179834.6A patent/CN109871279B/zh active Active
-
2020
- 2020-03-11 WO PCT/CN2020/078692 patent/WO2020182134A1/zh active Application Filing
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107360206A (zh) * | 2017-03-29 | 2017-11-17 | 阿里巴巴集团控股有限公司 | 一种区块链共识方法、设备及系统 |
US20180365686A1 (en) * | 2017-06-19 | 2018-12-20 | Hitachi, Ltd. | Smart contract lifecycle management |
CN108777704A (zh) * | 2018-05-16 | 2018-11-09 | 横琴密达科技有限责任公司 | 一种区块链共识方法及系统 |
CN109086139A (zh) * | 2018-08-15 | 2018-12-25 | 昧来网络科技(上海)有限公司 | 动态分片方法、设备和计算机存储介质 |
CN109871279A (zh) * | 2019-03-11 | 2019-06-11 | 京东方科技集团股份有限公司 | 共识任务协调方法及装置、区块链系统、存储介质 |
Cited By (20)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112132579B (zh) * | 2020-09-30 | 2022-08-12 | 深圳前海微众银行股份有限公司 | 一种区块链共识节点更新方法及装置 |
CN112132579A (zh) * | 2020-09-30 | 2020-12-25 | 深圳前海微众银行股份有限公司 | 一种区块链共识节点更新方法及装置 |
CN112437049A (zh) * | 2020-11-06 | 2021-03-02 | 深圳前海微众银行股份有限公司 | 一种基于bft的区块链共识方法及装置 |
CN112364317A (zh) * | 2020-11-17 | 2021-02-12 | 中国传媒大学 | 一种基于区块链技术的物联网雾环境管理架构及方法 |
CN112364317B (zh) * | 2020-11-17 | 2024-04-19 | 中国传媒大学 | 一种基于区块链技术的物联网雾环境管理架构及方法 |
CN112532713A (zh) * | 2020-11-25 | 2021-03-19 | 深圳前海微众银行股份有限公司 | 一种区块链的抗分叉检测方法及装置 |
CN112532713B (zh) * | 2020-11-25 | 2023-05-16 | 深圳前海微众银行股份有限公司 | 一种区块链的抗分叉检测方法及装置 |
CN112764897A (zh) * | 2020-12-31 | 2021-05-07 | 杭州趣链科技有限公司 | 任务请求的处理方法、装置、系统及计算机可读存储介质 |
CN112764897B (zh) * | 2020-12-31 | 2024-03-22 | 杭州趣链科技有限公司 | 任务请求的处理方法、装置、系统及计算机可读存储介质 |
CN112735551B (zh) * | 2021-01-15 | 2023-01-31 | 山东科技大学 | 基于H-Algorand共识机制的医疗记录存储共享模型及其实现方法 |
CN112735551A (zh) * | 2021-01-15 | 2021-04-30 | 山东科技大学 | 基于H-Algorand共识机制的医疗记录存储共享模型及其实现方法 |
CN112887391B (zh) * | 2021-01-21 | 2022-10-25 | 北京工业大学 | 一种基于贡献值的高可靠性区块链共识方法及系统 |
CN112887391A (zh) * | 2021-01-21 | 2021-06-01 | 北京工业大学 | 一种基于贡献值的高可靠性区块链共识方法及系统 |
US20220318122A1 (en) * | 2021-04-05 | 2022-10-06 | Mastercard International Incorporated | Method and system for blockchain performance testing |
CN113301117A (zh) * | 2021-04-21 | 2021-08-24 | 广东电网有限责任公司 | 节点加入共识及退出共识方法、装置、计算机设备 |
CN113610660A (zh) * | 2021-07-01 | 2021-11-05 | 国网浙江宁海县供电有限公司 | 基于区块链的电力系统结算方法及相关装置 |
CN113987017A (zh) * | 2021-10-26 | 2022-01-28 | 北京华宜信科技有限公司 | 基于区块链的科技成果评估服务网络平台构建方法 |
CN115577983A (zh) * | 2022-11-24 | 2023-01-06 | 神华上航疏浚有限责任公司 | 基于区块链的企业任务匹配方法、服务器及存储介质 |
CN115577983B (zh) * | 2022-11-24 | 2023-04-18 | 神华上航疏浚有限责任公司 | 基于区块链的企业任务匹配方法、服务器及存储介质 |
CN116151826A (zh) * | 2023-04-04 | 2023-05-23 | 广东电力交易中心有限责任公司 | 一种高效可靠的基于区块链的电力交易终端信任管理方法 |
Also Published As
Publication number | Publication date |
---|---|
CN109871279B (zh) | 2021-10-01 |
CN109871279A (zh) | 2019-06-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2020182134A1 (zh) | 区块链共识任务协调方法、区块链共识任务协调装置、区块链共识任务处理方法、区块链节点装置、区块链系统和存储介质 | |
CN108846659B (zh) | 基于区块链的转账方法、装置及存储介质 | |
Tan et al. | A blockchain-empowered crowdsourcing system for 5G-enabled smart cities | |
US11418510B2 (en) | Systems, methods, and apparatuses for implementing a role based access control and authorization validator via blockchain smart contract execution using distributed ledger technology (DLT) | |
CN113056760B (zh) | 多租户环境中具有去中心化分类账的高级智能合约 | |
Zhu et al. | Applications of distributed ledger technologies to the internet of things: A survey | |
US10938567B2 (en) | Parallel-chain architecture for blockchain systems | |
US11488176B2 (en) | Systems, methods, and apparatuses for implementing certificates of authenticity of digital twins transacted onto a blockchain using distributed ledger technology (DLT) | |
JP7304118B2 (ja) | 自己監視ブロックチェーンのための安全な合意に基づくエンドースメント | |
US11244313B2 (en) | Systems, methods, and apparatuses for implementing declarative smart actions for coins and assets transacted onto a blockchain using distributed ledger technology (DLT) | |
CN113039568B (zh) | 多租户区块链网络中的轻量级节点 | |
US11057225B2 (en) | Enforcing compute equity models in distributed blockchain | |
US11823120B2 (en) | System or method of verifying an asset using blockchain and collected asset and device information | |
CN109218079B (zh) | 一种区块链网络、部署方法及存储介质 | |
US20200073987A1 (en) | Technologies for runtime selection of query execution engines | |
US20190179672A1 (en) | Enforcing compute equity models in distributed blockchain | |
US11405183B2 (en) | Using cache objects to store events for adding corresponding objects in a blockchain | |
US11893002B2 (en) | System or method to run distributed validation of workflows across a network in a shared distributed ledger in multi-tenant cloud environment | |
US20190182254A1 (en) | Enforcing compute equity models in distributed blockchain | |
US8635250B2 (en) | Methods and systems for deleting large amounts of data from a multitenant database | |
CN113168622A (zh) | 区块链网络中的基于字段的对等许可 | |
US10685034B2 (en) | Systems, methods, and apparatuses for implementing concurrent dataflow execution with write conflict protection within a cloud based computing environment | |
US11488162B2 (en) | Automatically storing metrics relating to payments in a blockchain | |
US20150052585A1 (en) | Systems and Methods for Managing Digital Content Entitlements | |
WO2023040453A1 (zh) | 一种交易信息处理方法及装置 |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 20769509 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 20769509 Country of ref document: EP Kind code of ref document: A1 |
|
32PN | Ep: public notification in the ep bulletin as address of the adressee cannot be established |
Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 06.05.2022) |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 20769509 Country of ref document: EP Kind code of ref document: A1 |