CN112235251B - Block chain management method and device, computer equipment and storage medium - Google Patents

Block chain management method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN112235251B
CN112235251B CN202010994657.XA CN202010994657A CN112235251B CN 112235251 B CN112235251 B CN 112235251B CN 202010994657 A CN202010994657 A CN 202010994657A CN 112235251 B CN112235251 B CN 112235251B
Authority
CN
China
Prior art keywords
block chain
management transaction
transaction request
voting
chain management
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010994657.XA
Other languages
Chinese (zh)
Other versions
CN112235251A (en
Inventor
胡伟
熊潇
刘俊杰
雷刚
黄发培
余昌龙
邢金港
洪蜀宁
钱程
王雪
尹涛
郁薇
庄磊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Construction Bank Corp
Original Assignee
China Construction Bank Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Construction Bank Corp filed Critical China Construction Bank Corp
Priority to CN202010994657.XA priority Critical patent/CN112235251B/en
Publication of CN112235251A publication Critical patent/CN112235251A/en
Application granted granted Critical
Publication of CN112235251B publication Critical patent/CN112235251B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • H04L63/083Network architectures or network communication protocols for network security for authentication of entities using passwords
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/08Payment architectures
    • G06Q20/085Payment architectures involving remote charge determination or related payment systems
    • G06Q20/0855Payment architectures involving remote charge determination or related payment systems involving a third party
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/08Payment architectures
    • G06Q20/10Payment architectures specially adapted for electronic funds transfer [EFT] systems; specially adapted for home banking systems
    • G06Q20/102Bill distribution or payments
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/30Payment architectures, schemes or protocols characterised by the use of specific devices or networks
    • G06Q20/36Payment architectures, schemes or protocols characterised by the use of specific devices or networks using electronic wallets or electronic money safes
    • G06Q20/367Payment architectures, schemes or protocols characterised by the use of specific devices or networks using electronic wallets or electronic money safes involving electronic purses or money safes
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/40Authorisation, e.g. identification of payer or payee, verification of customer or shop credentials; Review and approval of payers, e.g. check credit lines or negative lists
    • G06Q20/401Transaction verification
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/55Push-based network services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/32Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials
    • H04L9/321Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials involving a third party or a trusted authority
    • H04L9/3213Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials involving a third party or a trusted authority using tickets or tokens, e.g. Kerberos
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/32Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials
    • H04L9/3297Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials involving time stamps, e.g. generation of time stamps

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • General Physics & Mathematics (AREA)
  • Strategic Management (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • Signal Processing (AREA)
  • Theoretical Computer Science (AREA)
  • Development Economics (AREA)
  • Economics (AREA)
  • Computer Hardware Design (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)

Abstract

The embodiment of the invention discloses a block chain management method, a block chain management device, computer equipment and a storage medium, wherein the block chain management method comprises the following steps: receiving a block chain management transaction request sent by a proposed block chain link point aiming at a transaction to be managed; generating a cooperative management transaction request according to the block chain management transaction request, and sending the cooperative management transaction request to a block chain network so that a voting block link point carries out management transaction voting processing on the cooperative management transaction request; receiving a voting processing result of the voting block chain nodes for performing management transaction voting processing; and processing the block chain management transaction request according to the voting processing result of each voting block chain node. The technical scheme of the embodiment of the invention can ensure the fairness among block chain users and improve the safety and the certainty of the block chain.

Description

Block chain management method and device, computer equipment and storage medium
Technical Field
The embodiment of the invention relates to the technical field of block chains, in particular to a block chain management method, a block chain management device, computer equipment and a storage medium.
Background
The block chain is a serial transaction record (also called a block) which is connected in series by a cryptography technology and protects contents, and is a novel application mode of computer technologies such as distributed data storage, point-to-point transmission, a consensus mechanism, an encryption algorithm and the like. The blockchain is essentially a decentralized database and is a string of data blocks associated by using a cryptographic method, each data block contains information data records of a batch of network transactions, and the information data records are used for verifying the validity (anti-counterfeiting) of the information and generating the next block.
At present, a centralized system such as a block chain adopts a centralized management mode in the aspect of a system management mechanism, namely, the centralized management mode is uniformly processed by a unique system manager. For example, system upgrade, parameter management, user management, and authority management are managed by a system manager alone, and others (or organizations) are not authorized to participate in the system management. This centralized management scheme only gives the system administrator the system management authority, and is not fair to other system users. Moreover, once the system administrator makes a bad, other system users cannot prevent and stop in advance, can only find the user accidentally, and can only solve the problem later through laws and other ways, which brings great insecurity, uncertainty and the like to the system users.
Disclosure of Invention
Embodiments of the present invention provide a method and an apparatus for managing a blockchain, a computer device, and a storage medium, so as to ensure fairness among users of the blockchain and improve security and certainty of the blockchain.
In a first aspect, an embodiment of the present invention provides a method for managing a blockchain, where the method is applied to a blockchain intelligent contract, and includes:
receiving a block chain management transaction request sent by a proposed block chain link point aiming at a transaction to be managed;
generating a cooperative management transaction request according to the block chain management transaction request, and sending the cooperative management transaction request to a block chain network so that a voting block link point carries out management transaction voting processing on the cooperative management transaction request;
receiving a voting processing result of the voting block chain nodes for performing management transaction voting processing;
and processing the block chain management transaction request according to the voting processing result of each voting block chain node.
In a second aspect, an embodiment of the present invention further provides a blockchain management apparatus configured to a blockchain intelligent contract, including:
a block chain management transaction request receiving module, configured to receive a block chain management transaction request sent by an proposed block chain link point for a transaction to be managed;
a coordinated management transaction request sending module, configured to generate a coordinated management transaction request according to the block chain management transaction request, and send the coordinated management transaction request to a block chain network, so that a voting point of a voting block link performs management transaction voting on the coordinated management transaction request;
a voting processing result receiving module, configured to receive a voting processing result of the management transaction voting processing performed by each voting block chain node;
and the block chain management transaction request processing module is used for processing the block chain management transaction request according to the voting processing result of each voting block chain node.
In a third aspect, an embodiment of the present invention further provides a computer device, where the computer device includes:
one or more processors;
storage means for storing one or more programs;
when the one or more programs are executed by the one or more processors, the one or more processors are caused to implement the blockchain management method provided by any embodiment of the invention.
In a fourth aspect, an embodiment of the present invention further provides a computer storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the block chain management method provided in any embodiment of the present invention.
The method and the device for processing the block chain management transaction voting comprise the steps of receiving a block chain management transaction request sent by a proposed block chain link point aiming at a transaction to be managed through a block chain intelligent contract, generating a coordinated management transaction request according to the block chain management transaction request, and sending the coordinated management transaction request to a block chain network so that a voting point of the voting block chain link point carries out management transaction voting processing aiming at the coordinated management transaction request. Meanwhile, a voting processing result of the voting processing of the management transaction performed by each voting block chain node is received by a block chain intelligent contract, a block chain management transaction request is processed according to the received voting processing result, the block chain management transaction is uniformly coordinated by each block chain node, a centralized management mode of the block chain is converted into a distributed management mode, the problems of unfairness, unsafety, uncertainty and the like existing in the centralized management mode of the existing block chain are solved, fairness among block chain users is guaranteed, and safety and certainty of the block chain are improved.
Drawings
Fig. 1 is a flowchart of a block chain management method according to an embodiment of the present invention;
fig. 2 is a flowchart of a block chain management method according to a second embodiment of the present invention;
fig. 3 is a flowchart illustrating a block chain management according to a second embodiment of the present invention;
fig. 4 is a schematic diagram of a block chain management apparatus according to a third embodiment of the present invention;
fig. 5 is a schematic structural diagram of a computer device according to a fourth embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention.
It should be further noted that, for the convenience of description, only some but not all of the relevant aspects of the present invention are shown in the drawings. Before discussing exemplary embodiments in greater detail, it should be noted that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although a flowchart may describe the operations (or steps) as a sequential process, many of the operations can be performed in parallel, concurrently or simultaneously. In addition, the order of the operations may be re-arranged. The process may be terminated when its operations are completed, but may have additional steps not included in the figure. The processes may correspond to methods, functions, procedures, subroutines, and the like.
Example one
Fig. 1 is a flowchart of a block chain management method according to an embodiment of the present invention, where this embodiment is applicable to a situation where block chains are managed together by using block chain nodes of a block chain network, and the method may be executed by a block chain management apparatus, which may be implemented by software and/or hardware, and may be generally integrated in a computer device, which may be a block chain node device deploying a block chain intelligent contract. Accordingly, as shown in fig. 1, the method comprises the following operations:
s110, a block chain management transaction request sent by the proposed block chain link point aiming at the transaction to be managed is received.
The proposed blockchain node may be a blockchain node in the blockchain network that initiates a proposal for the transaction to be managed. The transaction to be managed is also a transaction for managing the blockchain, and for example, the transaction to be managed may be a transaction for managing (e.g., joining or exiting) a blockchain node or modifying a system parameter of the blockchain. The request for the block chain management transaction may also be referred to as a proposal, and may be used to request each block chain node in the block chain network to perform cooperative management on the block chain.
In the embodiment of the present invention, when a certain blockchain link point in the blockchain network requests system management of the blockchain, the blockchain link point can be used as a proposed blockchain link point to send a blockchain management transaction request to the blockchain network for a transaction to be managed. Alternatively, it is proposed that the blockchain link point may send a blockchain management transaction request to the blockchain network in a broadcast manner. Correspondingly, after each block chain link point receives the block chain management transaction request, the block chain management transaction request can be processed by using a block chain intelligent contract deployed by the node. The block chain management transaction request is automatically processed through the block chain intelligent contract, so that manual intervention can be avoided, and fairness of the block chain management transaction request processing process are guaranteed.
S120, generating a cooperative management transaction request according to the block chain management transaction request, and sending the cooperative management transaction request to a block chain network so that a voting point of a voting block link performs management transaction voting processing on the cooperative management transaction request.
The cooperative management transaction request may be a transaction request generated by a blockchain intelligent contract according to the blockchain management transaction request, and used for requesting each voting blockchain node to perform management transaction voting processing. The voting blockchain node is a node in the blockchain network for performing management transaction voting. The management transaction voting process means voting the block chain management transaction request initiated by the proposed block chain node to provide a voting pass or fail result.
Correspondingly, after the block chain intelligent contract receives the block chain management transaction request, a coordinated management transaction request needs to be generated according to the received block chain management transaction request, and the generated coordinated management transaction request is broadcast and sent to the block chain network so as to inform each voting block chain node of performing management transaction voting processing on the coordinated management transaction request.
In an alternative embodiment of the invention, the voter block link point may be all or part of the block link points in the block chain network.
Alternatively, the voting blockchain nodes may be determined according to the number of blockchain nodes in the blockchain network. For example, assuming that the number of block chain nodes in the block chain network is small, for example, the block chain is a type of a federation chain or a private chain, all the block chain nodes in the block chain network may be regarded as voter block chain nodes. Assuming that the number of block chain nodes in the block chain network is large, for example, the block chain is a public chain type, or the block chain is a alliance chain type, but the number of alliances forming the alliance chain is large, at this time, part of the block chain link points in the block chain network may be all used as voted block chain nodes. The benefits of this arrangement are: the method can improve the management transaction voting processing efficiency of the voting block chain node, and avoid the condition that the block chain management transaction request fails because the management transaction voting processing is not carried out in time when the number of the voting block chain links is large.
It should be noted that, if the voted block chain node is a part of the block chain nodes in the block chain network, the voted block chain node may also be determined by a corresponding strategy. For example, a transaction request requesting to become a voted block chain node may be sent by each block chain node to the block chain network, and other block link points may vote on the received transaction request requesting to become a voted block chain node, and allow the block link point to become a voted block chain node when a decision is determined to pass. Alternatively, the voting block link points may be determined by negotiation among the block link points in advance. The embodiment of the invention does not limit the determination mode of the block chain node.
S130, receiving a voting processing result of the voting processing of each voting block chain node.
The management transaction voting process is to vote on the block chain management transaction request sent by the proposed block chain node. The result of the voting process is also the result of the voting of the block link point to the block link management transaction request.
When the voting block chain node receives the cooperative management transaction request, the block chain management transaction request can be subjected to management transaction voting processing according to the cooperative management transaction request, and a voting processing result is sent to the block chain network. After receiving the voting processing results sent by the voting block chain nodes, the block chain nodes can send the voting processing results to the block chain intelligent contract for further processing. Optionally, the voting process result may include both a vote pass and a vote fail result. The decision is also agreed to manage the transaction to be managed, for example, to modify parameters of the blockchain system, or to join or leave a blockchain network at a certain blockchain node. Accordingly, the voting does not manage the transaction to be managed, i.e. refuses to modify the parameters of the blockchain system, or refuses a certain blockchain node to join the blockchain network, etc.
S140, processing the block chain management transaction request according to the voting processing result of each voting block chain node.
Accordingly, the block chain intelligent contract may process the block chain management transaction request according to the received voting processing result of each voting block chain node. For example, when the voting processing results of the voting block chain nodes are all found, which indicates that the voting block chain nodes all agree to manage the transaction to be managed, the block chain intelligent contract may manage the transaction to be managed according to the block chain management transaction request, for example, if the block chain management transaction request corresponding to the transaction to be managed is to modify the block chain system parameter a to B, the block chain intelligent contract modifies the block chain system parameter a to B. And when the voting processing results of the voting block chain nodes all fail to pass, the voting block chain nodes all refuse to manage the transaction to be managed, and the block chain intelligent contract can refuse to process the block chain management transaction request. For example, if the blockchain management transaction request corresponding to the transaction to be managed is to modify the blockchain system parameter a to B, the blockchain intelligent contract refuses to modify the blockchain system parameter a.
Therefore, the technical scheme can realize the mutual coordination among the block chain link points and manage the block chain together. All decisions in the blockchain platform, small to parameter adjustments and large to node management, need to be passed through by the collective decision of the voted blockchain nodes. That is, under the condition that the voting blockchain link point is unknown or not agreed, any node, including the blockchain system management node, cannot independently continue to manage the blockchain, so that the characteristics of decentralization and fairness are embodied, and the safety and the certainty of the blockchain are improved.
The embodiment of the invention receives a block chain management transaction request sent by a proposed block chain link point aiming at a transaction to be managed through a block chain intelligent contract, generates a cooperative management transaction request according to the block chain management transaction request, and sends the cooperative management transaction request to a block chain network, so that a voting block chain link point carries out management transaction voting processing aiming at the cooperative management transaction request. Meanwhile, a voting processing result of the voting processing of the management transaction performed by each voting block chain node is received by a block chain intelligent contract, a block chain management transaction request is processed according to the received voting processing result, the block chain management transaction is uniformly coordinated by each block chain node, a centralized management mode of the block chain is converted into a distributed management mode, the problems of unfairness, unsafety, uncertainty and the like existing in the centralized management mode of the existing block chain are solved, fairness among block chain users is guaranteed, and safety and certainty of the block chain are improved.
Example two
Fig. 2 is a flowchart of a block chain management method according to a second embodiment of the present invention, which is embodied on the basis of the second embodiment, and in this embodiment, a specific optional implementation manner of performing validity check on a block chain management transaction request and processing the block chain management transaction request according to a voting processing result of each voting block chain node is provided. Correspondingly, as shown in fig. 2, the method of the present embodiment may include:
s210, a block chain management transaction request sent by the proposed block chain link point aiming at the transaction to be managed is received.
S220, checking the legality of the block chain management transaction request.
In the embodiment of the present invention, after the blockchain intelligent contract receives the blockchain management transaction request, the validity of the blockchain management transaction request may be checked first to ensure that the blockchain management transaction request is processed after being valid.
In an optional embodiment of the present invention, the verifying the validity of the blockchain management transaction request may include: acquiring request initiation time of the block chain management transaction request; determining that the blockchain management transaction request is illegal if the request initiation time does not satisfy a proposed time limit condition.
Wherein, the request initiation time may be the time when the proposed block chain link point initiates the block chain management transaction request. Alternatively, the request initiation time may be the time at which the blockchain intelligence contract receives the request for the blockchain management transaction, if the effects of network latency are ignored. The embodiment of the present invention does not limit the specific determination manner of the request initiation time. The proposed time limit may be a limit set for the request initiation time.
Optionally, whether the blockchain management transaction request is legal may be determined according to the request initiation time of the blockchain management transaction request. Illustratively, the proposed time constraint may be: the request initiation time needs to fall within a fixed time period. Or, the proposed time limit condition may also be: whether the request initiation time acquired by the blockchain intelligent contract is matched with the actual request initiation time of the blockchain management transaction request. If the time difference between the request initiation time received by the intelligent block chain contract and the time for initiating the block chain management transaction request by the proposed block chain node cannot be greater than the set time threshold, the set time threshold may be set according to the actual requirement and may be used as the proposed effective time. The proposed validation time may be a validation time set for the blockchain management transaction request of the transaction to be managed. For example, assuming that the proposed validation time is 1 day, the blockchain management transaction request fails 1 day after the proposed blockchain link point initiates the blockchain management transaction request to the blockchain network for the pending transaction. That is, the proposed time limit condition may be set according to an actual service requirement, and the embodiment of the present invention does not limit the specific condition content of the proposed time limit condition. When the request origination time does not satisfy the proposed time constraint, then it may be determined that the blockchain management transaction request is illegal. The benefits of this arrangement are: the request initiation time may be specified. Or, the problem of the blockchain management transaction request caused by network failure, malicious tampering and other factors can be avoided.
In an optional embodiment of the present invention, the verifying the validity of the blockchain management transaction request may include: acquiring the identity of a request initiating node of the block chain management transaction request; determining that the blockchain management transaction request is illegal if the request originating node identity does not match the node identity of the proposed blockchain node.
The identity of the node that initiates the request is also the identity of the node that sends the blockchain management transaction request.
Optionally, the identity of the request initiating node of the blockchain management transaction request may also be used to determine whether the blockchain management transaction request is legal. That is, when the request initiating node identity does not match the node identity of the proposed blockchain node, then it may be determined that the blockchain management transaction request is illegal. The benefits of this arrangement are: the method can effectively avoid the problems that the proposed blockchain node falsely acts as the identity of other blockchain nodes to initiate the blockchain management transaction request, so that the effective rights and interests of other blockchain nodes are damaged when the blockchain management transaction request has problems, or the blockchain management transaction request is maliciously and repeatedly initiated to occupy blockchain system resources, and the like.
S230, judging whether the block chain management transaction request is legal or not, if so, executing S250; otherwise, S240 is performed.
S240, sending a management transaction modification request to the proposed blockchain node, so that the proposed blockchain link node resends a legal blockchain management transaction request after legality modification is performed on the blockchain management transaction request.
The management transaction modification request is also a request for legally modifying the block chain management transaction request.
Correspondingly, when the intelligent block chain contract determines that the block chain management transaction request is legal, the block chain management transaction request can be continuously processed; otherwise, if the block chain management transaction request is determined to be illegal, the block chain management transaction request is sent to the proposed block chain link point, so that the proposed block chain link point carries out legal modification on the block chain management transaction request, and then the legal block chain management transaction request is obtained and sent again. For example, if the request initiation time does not satisfy the proposed time constraint, the blockchain management transaction request is reinitiated according to the proposed time constraint. If the identity of the request initiating node is not matched with the node identity of the proposed blockchain node, the identity of the request initiating node is modified, and the blockchain management transaction request is reinitiated by utilizing the real identity of the self node.
And S250, recording the block chain management transaction request in a preset management transaction registration list.
The management transaction registration list may be used to record the blockchain management transaction requests sent by each proposed blockchain link point for each type of transaction to be managed.
In the embodiment of the present invention, when the blockchain intelligent contract determines that the blockchain management transaction request is legal, the blockchain management transaction request may be recorded in a preset management transaction registration list. The subsequent blockchain intelligent contract can generate a coordinated management transaction request according to the blockchain management transaction request recorded in the preset management transaction registration list and send the coordinated management transaction request to the blockchain network. For example, the blockchain intelligent contract may traverse the blockchain management transaction requests recorded in the preset management transaction registration list, determine unprocessed blockchain management transaction requests, and generate a cooperative management transaction request according to the unprocessed blockchain management transaction requests, so as to process the unprocessed blockchain management transaction requests.
S260, generating a cooperative management transaction request according to the block chain management transaction request, and sending the cooperative management transaction request to a block chain network so that a voting point of a voting block link performs management transaction voting processing on the cooperative management transaction request.
S270, receiving voting processing results of the voting processing of the management transaction voting processing of the voting block chain nodes.
S280, processing the block chain management transaction request according to the voting processing result of each voting block chain node.
In an optional embodiment of the present invention, the voting processing result may include a vote pass and a vote fail; the processing the block chain management transaction request according to the voting processing result of each voting block chain node may include: calculating a vote pass ratio between the number of vote passes and the total number of voter blockchain nodes; and if the voting ratio is determined to exceed a first set voting threshold value and the current system time does not reach the proposed effective time, determining that the block chain management transaction request passes voting and processing the block chain management transaction request.
The first set voting threshold may be a threshold set for the voting pass ratio, for example, the first set voting threshold may be 50%, 60%, or 80%, and the specific value of the first set voting threshold is not limited in the embodiments of the present invention. The proposed validation time may be used to define a validation time for the blockchain management transaction request. For example, if the proposed effective time is 1 day, it may indicate that the request initiation time of the blockchain management transaction request is the starting point, i.e., the blockchain management transaction request is invalid after 1 day from the request initiation time.
Specifically, the block chain intelligent contract can count a vote pass ratio between the number of vote passes in the vote processing results fed back by the voting block chain nodes and the total number of the voting block chain nodes in real time, and when the vote pass ratio is determined to exceed a first set vote threshold, determine that the block chain management transaction request passes voting, and process the block chain management transaction request. It should be noted that, in order to ensure the validity of the blockchain management transaction request, a proposed validation time may also be set for the blockchain management transaction request. The voting of the blockchain management transaction request can be determined only if the proposed validation time has not been reached at the current system time, i.e., the voting pass ratio exceeds the first set voting threshold for the validation time of the blockchain management transaction request.
For example, assuming that the total number of voting blockchain nodes is 10, the first set voting threshold is 50%, the request initiation time of the blockchain management transaction request is 10 am at 1 month 9 of 2020, and the proposed effective time is 1 day. If the voting processing result fed back by the 6 voting block chain nodes is a vote passing value when the intelligent block chain aggregate receives voting processing results fed back by the 6 voting block chain nodes before 10 am at 1 month 10 in 2020, the vote passing ratio is 60%, and exceeds a first set voting threshold value by 50%, the block chain management transaction request is determined to pass voting, and the block chain management transaction request is continuously processed.
In an optional embodiment of the present invention, before the calculating a vote pass ratio between the number of vote passes and the total number of voter blockchain nodes, the method may further include: checking the validity of the voting processing result; if the voting processing result is determined to be valid, updating a preset voting transaction registration list according to the voting processing result; and counting the number of the voting processing results and the number of the voting passes in the preset voting transaction registration list.
The preset voting transaction registration list can be used for recording voting processing results of each voting block chain node.
In the embodiment of the invention, each time the block chain intelligent contract receives one voting processing result, whether the voting processing result is effective or not can be judged firstly. For example, whether the voting processing result exceeds the proposal effective time is judged, and if the voting processing result does not exceed the proposal effective time, the voting processing result is effective; otherwise, the voting processing result is indicated to be invalid. Or, whether the initiator of the voting processing result is the voting block chain node per se can be judged, if the initiator of the voting processing result is the voting block chain node per se and the voting block chain node does not burst the identity of other block chain nodes, the voting processing result is indicated to be valid; otherwise, the voting processing result is invalid. And if the voting processing result is determined to be valid, recording the voting processing result in a preset voting transaction registration list. Optionally, the preset voting transaction registration list may establish a correspondence between each voting block link point and its voting processing result. Meanwhile, the intelligent block chain contract can count the number of voting processing results in the preset voting transaction registration list and the number of voting passes, so that the voting pass ratio between the number of voting passes and the total number of voting block chain nodes is calculated.
In an optional embodiment of the present invention, the processing the block chain management transaction request according to a voting processing result of each voting block chain node may include: acquiring current system time; if the current system time is determined to reach the proposed effective time and the vote pass ratio is determined not to reach the first set voting threshold, determining that the block chain management transaction request fails voting and refusing to process the block chain management transaction request.
The current system time is also the current time of the blockchain network.
Correspondingly, if the intelligent block chain contract determines that the counted result ratio does not reach the first set voting threshold value after the proposed effective time is reached, most voting block chain nodes refuse to manage the transaction to be managed. At this time, the blockchain intelligence contract determines that the blockchain management transaction request fails to vote, and may refuse to process the blockchain management transaction request.
In an optional embodiment of the present invention, the processing the block chain management transaction request according to a voting processing result of each voting block chain node includes: acquiring current system time; and if the current system time is determined to reach the proposed effective time and the ratio of the number of the voting processing results to the total number of the voting block chain nodes is determined not to reach a second set voting threshold, determining that the block chain management transaction request is invalid and refusing to process the block chain management transaction request.
The second set voting threshold may be a threshold set for the voting processing result, for example, the second set voting threshold may be 50%, 60%, or 80%, and may be the same as or different from the first set voting threshold.
Accordingly, if the blockchain intelligence contract determines that the ratio of the counted number of voting processing results to the total number of voting blockchain nodes does not reach the second set voting threshold after the proposed validation time is reached, the blockchain management transaction request is determined to be invalid. For example, assuming that the second set voting threshold is 60%, the total number of voting block chain nodes is 10, and the number of voting processing results received by the block chain intelligent contract is 5, the ratio between the counted number of voting processing results and the total number of voting block chain nodes is 50%, and the second set voting threshold is not reached to 60%. The block chain intelligent contract does not receive a sufficient number of voting processing results, and at the moment, the block chain intelligent contract can directly refuse to process the block chain management transaction request without calculating a resolution passing ratio.
In an optional embodiment of the present invention, the number of the block chain management transaction requests is multiple, and the request initiation time of each block chain management transaction request is different; the processing the block chain management transaction request according to the voting processing result of each voting block chain node may include: determining a target block chain management transaction request according to a voting processing result matched with each block chain management transaction request; and processing the non-target block chain management transaction request according to the relation between the request initiation time of the target block chain management transaction request and the request initiation time of the non-target block chain management transaction request.
Wherein the target blockchain management transaction request may be the first blockchain management transaction request voted. The non-target blockchain management transaction request may be a blockchain management transaction request other than the target blockchain management transaction request in each blockchain management transaction request.
Optionally, if the proposed blockchain node initiates multiple blockchain management transaction requests at different times for the same transaction to be managed, each blockchain management transaction request needs to be processed according to a certain rule. First, a target block chain management transaction request can be determined according to a voting processing result matched with each block chain management transaction request, that is, the first block chain management transaction request passing the voting is determined, and then, other non-target block chain management transaction requests can be processed according to a relation between request initiation times of the target block chain management transaction request and the non-target block chain management transaction request. Optionally, the relationship between the request initiation times of the target blockchain management transaction request and the non-target blockchain management transaction request may be a precedence relationship between the request initiation times.
In an optional embodiment of the present invention, the processing a non-target blockchain management transaction request according to the request initiation time of the target blockchain management transaction request may include: and if the request initiation time of the target block chain management transaction request is earlier than that of the non-target block chain management transaction request, processing the target block chain management transaction request, and then continuously processing the non-target block chain management transaction request according to the voting processing result of each voting block chain node aiming at the non-target block chain management transaction request.
Specifically, if the request initiation time of the target block chain management transaction request is earlier than the request initiation time of the non-target block chain management transaction request, the block chain intelligent contract may process the target block chain management transaction request, and then continue to process the non-target block chain management transaction request according to the voting processing result of each voting block chain node for the non-target block chain management transaction request. That is, when the request initiation time of the target blockchain management transaction request is earlier than the request initiation time of the non-target blockchain management transaction request, the processing procedures of other non-target blockchain management transaction requests can be performed independently and are not affected by the target blockchain management transaction request. That is, after the first initiated blockchain management transaction request is processed, the second initiated blockchain management transaction request can be processed normally.
In an optional embodiment of the present invention, the processing a non-target blockchain management transaction request according to the request initiation time of the target blockchain management transaction request may include: and if the request initiation time of the target block chain management transaction request is later than that of the non-target block chain management transaction request, processing the target block chain management transaction request and then refusing to process the non-target block chain management transaction request.
Correspondingly, if the request initiation time of the target block chain management transaction request is later than the request initiation time of the non-target block chain management transaction request, the block chain intelligent contract can refuse to process the non-target block chain management transaction request after processing the target block chain management transaction request. That is, when the request initiation time of the target blockchain management transaction request is later than the request initiation time of the non-target blockchain management transaction request, the processing procedure of other non-target blockchain management transaction requests may be affected by the target blockchain management transaction request. That is, after the block chain management transaction request initiated later is processed, the block chain management transaction request initiated earlier does not need to be processed continuously. Optionally, in this scenario, the proposed validation time corresponding to the non-target blockchain management transaction request may be directly set to "expire" to register that the current non-target blockchain management transaction request has failed. In this case, each voting block link point may not need to feed back the voting processing result to the non-target block chain management transaction request.
It should be noted that, after the non-target blockchain management transaction request is rejected, the proposed blockchain link point may re-initiate the same blockchain management transaction request
In a specific example, assuming that the transaction to be managed is a value for modifying the system parameter a, it is proposed that the blockchain link node initiates two blockchain management transaction requests, namely, a blockchain management transaction request 1 and a blockchain management transaction request 2, at different times for the transaction to be managed. The blockchain management transaction request 1 is: the value of the system parameter a is modified to 50%, and the block chain management transaction request 2 is: the value of the system parameter A is modified to 60%. Because the value of the system parameter a can only be one, each block chain management transaction request needs to be processed according to a certain rule. Specifically, if the request initiation time of the blockchain management transaction request 1 is earlier than that of the blockchain management transaction request 2, and the blockchain management transaction request 1 is voted first, the processing of the blockchain management transaction request 2 can be continued. That is, the voting processing result fed back by each voting block link point for the block chain management transaction request 2 may be received, and the block chain management transaction request 2 may be processed according to the voting processing result of each voting block chain node. If the request initiation time of the blockchain management transaction request 1 is later than that of the blockchain management transaction request 2, and the blockchain management transaction request 1 is voted first, the blockchain management transaction request 2 can be directly refused to be processed.
In an optional embodiment of the present invention, the number of the block chain management transaction requests is multiple, and the request initiation time of each block chain management transaction request is different; the processing the block chain management transaction request according to the voting processing result of each voting block chain node may include: and if the request contents of the block chain management transaction requests are determined to be independent of each other, processing the block chain management transaction requests according to the voting processing results of the voting block chain nodes aiming at each block chain management transaction request.
Optionally, if the proposed blockchain node initiates a plurality of blockchain management transaction requests at different times for the same transaction to be managed, but the request contents of the blockchain management transaction requests are independent from each other, the blockchain intelligent contract does not need to follow a certain rule to process the blockchain management transaction requests, and the blockchain management transaction requests can be processed according to the voting processing result of each voting blockchain node for each blockchain management transaction request.
In a specific example, assuming that the transaction to be managed is a joining blockchain node, it is proposed that the blockchain node initiates two blockchain management transaction requests, i.e. blockchain management transaction request 1 and blockchain management transaction request 2, at different times for the transaction to be managed. The blockchain management transaction request 1 is: adding a block chain node A, wherein the block chain management transaction request 2 comprises the following steps: join the blockchain node B. Since the blockchain node a and the blockchain link node B belong to different blockchain nodes, it is not necessary to process each blockchain management transaction request according to a certain rule. That is, blockchain management transaction request 1 and blockchain management transaction request 2 may be processed separately. For the blockchain management transaction request 1 and the blockchain management transaction request 2, no matter who completes the processing first and finally passes the voting or fails the voting, the processing process of the other blockchain management transaction request is not affected.
In an optional embodiment of the present invention, before the processing the block chain management transaction request according to a voting processing result of each voted block chain node, the method may further include: receiving a block chain management transaction cancellation request sent by the proposed block chain link point for the block chain management transaction request; and performing revocation processing on the block chain management transaction request.
The block chain management transaction retraction request can be used for requesting to retract the block chain management transaction request.
In the embodiment of the present invention, if the proposed blockchain node initiates a blockchain management transaction cancellation request for the initiated blockchain management transaction request within the proposed effective time limit, the request cancels the blockchain management transaction request, and if the blockchain management transaction request has not been processed yet, such as voting has not passed, the blockchain intelligent contract may cancel the blockchain management transaction request. The revoked blockchain management transaction request becomes an invalid blockchain management transaction request. Optionally, the revocation processing operation may be performed according to a preset management transaction registration list, for example, the blockchain management transaction request recorded in the preset management transaction registration list is set as an invalid request.
In an optional embodiment of the invention, the block chain network is provided with an initialization voter block chain node and an initialization voter parameter.
The initialized voter block link point may be an initialized voter block link node. The initialized voting parameters may be voting parameters set for initialization. For example, the initialized voting reference may include, but is not limited to, a first set voting threshold, a second set voting threshold, and the like.
For example, assume that there are 5 nodes for blockchain network initialization: node 1, node 2, node 3, node 4, and node 5. Each block link point may negotiate initialization of the voter block link node before the block link network is formally in operation. For example, node 1, node 2, node 3, and node 4, or all of the nodes, are determined to be initialized voter blockchain nodes. Meanwhile, each block link point can also negotiate an initialization voting parameter. For example, the first set voting threshold is initialized to 80% and the second set voting threshold is 70%.
It should be noted that, during the operation of the block chain network, the initialized voter block chain node and the initialized voter parameter may be used as a request for initiating a block chain management transaction by the proposed block chain node of the transaction to be managed, for example, a request for updating (adding or deleting, etc.) constituent members of the voter block chain node, or a request for modifying the first set voting threshold or the second set voting threshold, etc.
By adopting the technical scheme, the block chain management transaction request is processed through the voting processing result of each voting block chain node, the block chain management transaction is uniformly coordinated by each block chain node, the centralized management mode of the block chain is converted into the distributed management mode, the fairness among block chain users can be ensured, and the safety and the certainty of the block chain are improved.
Fig. 3 is a flowchart illustrating a block chain management according to a second embodiment of the present invention, which is specifically illustrated by taking a federation chain as an example in a specific example. As shown in fig. 3, one of the members of the federation chain (i.e., the proposed blockchain node) initiates a proposal (i.e., a blockchain management transaction request sent to a management transaction). After the proposal is received by the alliance chain intelligent contract, the legality of the proposal is checked firstly. If not, the member initiating the offer is notified to modify the offer until it is determined that the offer is legitimate. The federation chain intelligence contract then records the legal offer in a "federation offer table," and generates a federation offer message (i.e., a collaborative management transaction request) based on the offer, broadcasting the federation offer message to the federation chain. Each block link point of the federation chain may receive a federation offer message and members of the federation having a voter (i.e., voter block chain nodes) may audit the offer. The audit process may be performed online. After the auditing is completed, the league members can feed back the voting result. And after receiving the voting result, the intelligent contract of the alliance chain judges whether the voting result is overdue, namely whether the voting result exceeds the proposal effective time. If the voting result is not expired, recording the voting result in a alliance voting table; otherwise, indicating that the offer has expired, an expiration message may be broadcast to notify the coalition members. Correspondingly, if the intelligent contract of the alliance chain determines that voting is finished according to voting results of all alliance members recorded by the alliance voting table, whether all alliance members vote for the proposal or not is judged. The voting completion can be judged in various ways, namely the voting completion reaches the proposal effective time, and voting results of all the coalition members are received within the proposal effective time. Yet another way of determining this may be to make a decision to pass the percentage to a certain threshold. And judging whether each coalition member passes the resolution, wherein the resolution in each coalition member can be judged by comparing. That is, a decision may be considered to be passed when the ratio of the number of decision passes to the total number of coalition members exceeds a certain threshold. After the voting is passed, the alliance chain intelligent contract can automatically execute the proposed content and broadcast the voting result. Alternatively, the execution result of the proposed content may also be broadcast.
The federation management mechanism described above is similar to the "Federation" mechanism in that a member initiates a "proposal" for an event, and then all eligible members "vote" on it, with a proportion of "votes" passing exceeding a given threshold indicating that the proposal is in effect, and otherwise failing. The management mechanism actually belongs to a distributed management mechanism, so that the whole member can participate in the management of the union, and the fairness among the members can be realized. Meanwhile, the system stability of the blockchain can be prevented from being affected by the action of a certain member due to the advantages of the blockchain, so that the safety and the certainty of the blockchain are ensured.
It should be noted that any permutation and combination between the technical features in the above embodiments also belong to the scope of the present invention.
EXAMPLE III
Fig. 4 is a schematic diagram of a block chain management apparatus according to a third embodiment of the present invention, as shown in fig. 4, the apparatus includes: a block chain management transaction request receiving module 310, a cooperative management transaction request sending module 320, a voting processing result receiving module 330, and a block chain management transaction request processing module 340, wherein:
a block chain management transaction request receiving module 310, configured to receive a block chain management transaction request sent by a proposed block chain node for a to-be-managed transaction;
a cooperative management transaction request sending module 320, configured to generate a cooperative management transaction request according to the block chain management transaction request, and send the cooperative management transaction request to a block chain network, so that a voting block link point performs management transaction voting processing on the cooperative management transaction request;
a voting processing result receiving module 330, configured to receive a voting processing result of the voting processing performed by each voting block chain node;
and the block chain management transaction request processing module 340 is configured to process the block chain management transaction request according to a voting processing result of each voting block chain node.
The embodiment of the invention receives a block chain management transaction request sent by a proposed block chain link point aiming at a transaction to be managed through a block chain intelligent contract, generates a cooperative management transaction request according to the block chain management transaction request, and sends the cooperative management transaction request to a block chain network, so that a voting block chain link point carries out management transaction voting processing aiming at the cooperative management transaction request. Meanwhile, a voting processing result of the voting processing of the management transaction performed by each voting block chain node is received by a block chain intelligent contract, a block chain management transaction request is processed according to the received voting processing result, the block chain management transaction is uniformly coordinated by each block chain node, a centralized management mode of the block chain is converted into a distributed management mode, the problems of unfairness, unsafety, uncertainty and the like existing in the centralized management mode of the existing block chain are solved, fairness among block chain users is guaranteed, and safety and certainty of the block chain are improved.
Optionally, the block chain management apparatus may further include: the request validity checking module is used for checking the validity of the block chain management transaction request; if the block chain management transaction request is determined to be legal, recording the block chain management transaction request in a preset management transaction registration list; otherwise, sending a management transaction modification request to the proposed block chain node, so that the proposed block chain link node resends a legal block chain management transaction request after legality modification is carried out on the block chain management transaction request.
Optionally, the request validity checking module is specifically configured to: acquiring request initiation time of the block chain management transaction request; determining that the blockchain management transaction request is illegal if the request initiation time does not satisfy a proposed time limit condition.
Optionally, the request validity checking module is specifically configured to: acquiring the identity of a request initiating node of the block chain management transaction request; determining that the blockchain management transaction request is illegal if the request originating node identity does not match the node identity of the proposed blockchain node.
Optionally, the blockchain management transaction request processing module 340 is specifically configured to: calculating a vote pass ratio between the number of vote passes and the total number of voter blockchain nodes; and if the voting ratio is determined to exceed a first set voting threshold value and the current system time does not reach the proposed effective time, determining that the block chain management transaction request passes voting and processing the block chain management transaction request.
Optionally, the blockchain management transaction request processing module 340 is specifically configured to: checking the validity of the voting processing result; if the voting processing result is determined to be valid, updating a preset voting transaction registration list according to the voting processing result; and counting the number of the voting processing results and the number of the voting passes in the preset voting transaction registration list.
Optionally, the blockchain management transaction request processing module 340 is specifically configured to: acquiring current system time; if the current system time is determined to reach the proposed effective time and the vote pass ratio is determined not to reach the first set voting threshold, determining that the block chain management transaction request fails voting and refusing to process the block chain management transaction request.
Optionally, the blockchain management transaction request processing module 340 is specifically configured to: acquiring current system time; and if the current system time is determined to reach the proposed effective time and the ratio of the number of the voting processing results to the total number of the voting block chain nodes is determined not to reach a second set voting threshold, determining that the block chain management transaction request is invalid and rejecting the block chain management transaction request to be processed.
Optionally, the number of the block chain management transaction requests is multiple, and the request initiation time of each block chain management transaction request is different; the block chain management transaction request processing module 340 is specifically configured to: determining a target block chain management transaction request according to a voting processing result matched with each block chain management transaction request; and processing the non-target block chain management transaction request according to the relation between the request initiation time of the target block chain management transaction request and the request initiation time of the non-target block chain management transaction request.
Optionally, the blockchain management transaction request processing module 340 is specifically configured to: and if the request initiation time of the target block chain management transaction request is earlier than that of the non-target block chain management transaction request, processing the target block chain management transaction request, and then continuously processing the non-target block chain management transaction request according to a voting processing result of each voting block chain node aiming at the non-target block chain management transaction request.
Optionally, the block chain management transaction request processing module 340 is specifically configured to: and if the request initiation time of the target block chain management transaction request is later than the request initiation time of the non-target block chain management transaction request, processing the target block chain management transaction request and then refusing to process the non-target block chain management transaction request.
Optionally, the number of the block chain management transaction requests is multiple, and the request initiation time of each block chain management transaction request is different; the block chain management transaction request processing module 340 is specifically configured to: and if the request contents of the block chain management transaction requests are determined to be independent of each other, processing the block chain management transaction requests according to the voting processing results of the voting block chain nodes aiming at each block chain management transaction request.
Optionally, the block chain management apparatus may further include: a block chain management transaction revocation request receiving module, configured to receive a block chain management transaction revocation request sent by the proposed block chain link point for the block chain management transaction request; and the request cancellation processing module is used for performing cancellation processing on the block chain management transaction request.
Optionally, the voting block chain node is all or part of block chain link points in the block chain network.
Optionally, the block chain network is provided with an initialized voting block chain node and an initialized voting parameter.
The block chain management device can execute the block chain management method provided by any embodiment of the invention, and has corresponding functional modules and beneficial effects of the execution method. For the technical details that are not described in detail in this embodiment, reference may be made to the block chain management method provided in any embodiment of the present invention.
Since the above-described blockchain management device is a device capable of executing the blockchain management method in the embodiment of the present invention, based on the blockchain management method described in the embodiment of the present invention, a person skilled in the art can understand the specific implementation of the blockchain management device in the embodiment of the present invention and various variations thereof, and therefore, how to implement the blockchain management method in the embodiment of the present invention by the blockchain management device is not described in detail herein. As long as those skilled in the art implement the apparatus used in the block chain management method in the embodiment of the present invention, the apparatus is within the scope of the present application.
Example four
Fig. 5 is a schematic structural diagram of a computer device according to a fourth embodiment of the present invention. FIG. 5 illustrates a block diagram of a computer device 412, which is suitable for use in implementing embodiments of the present invention. The computer device 412 shown in FIG. 5 is only one example and should not impose any limitations on the functionality or scope of use of embodiments of the present invention. The device 412 is typically a computing device that assumes the functionality of a node of the blockchain system.
As shown in FIG. 5, computer device 412 is in the form of a general purpose computing device. Components of computer device 412 may include, but are not limited to: one or more processors 416, a storage device 428, and a bus 418 that couples the various system components including the storage device 428 and the processors 416.
Bus 418 represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, and a processor or local bus using any of a variety of bus architectures. By way of example, such architectures include, but are not limited to, an Industry Standard Architecture (ISA) bus, a Micro Channel Architecture (MCA) bus, an enhanced ISA bus, a Video Electronics Standards Association (VESA) local bus, and a Peripheral Component Interconnect (PCI) bus.
Computer device 412 typically includes a variety of computer system readable media. Such media can be any available media that is accessible by computer device 412 and includes both volatile and nonvolatile media, removable and non-removable media.
Storage 428 may include computer system readable media in the form of volatile Memory, such as Random Access Memory (RAM) 430 and/or cache Memory 432. The computer device 412 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 434 may be used to read from and write to non-removable, nonvolatile magnetic media (not shown in FIG. 5, commonly referred to as a "hard drive"). Although not shown in FIG. 5, a magnetic disk drive for reading from and writing to a removable, nonvolatile magnetic disk (e.g., a "floppy disk") and an optical disk drive for reading from or writing to a removable, nonvolatile optical disk (e.g., a Compact disk-Read Only Memory (CD-ROM), digital Video disk (DVD-ROM), or other optical media) may be provided. In these cases, each drive may be connected to bus 418 by one or more data media interfaces. Storage 428 may include at least one program product having a set (e.g., at least one) of program modules that are configured to carry out the functions of embodiments of the invention.
Program 436 having a set (at least one) of program modules 426 may be stored, for example, in storage 428, such program modules 426 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which examples or some combination may comprise an implementation of a network environment. Program modules 426 generally perform the functions and/or methodologies of embodiments of the invention as described herein.
The computer device 412 may also communicate with one or more external devices 414 (e.g., keyboard, pointing device, camera, display 424, etc.), with one or more devices that enable a user to interact with the computer device 412, and/or with any devices (e.g., network card, modem, etc.) that enable the computer device 412 to communicate with one or more other computing devices. Such communication may be through an Input/Output (I/O) interface 422. Also, computer device 412 may communicate with one or more networks (e.g., a Local Area Network (LAN), wide Area Network (WAN)) and/or a public Network, such as the Internet, through Network adapter 420. As shown, network adapter 420 communicates with the other modules of computer device 412 over bus 418. It should be appreciated that although not shown in the figures, other hardware and/or software modules may be used in conjunction with the computer device 412, including but not limited to: microcode, device drivers, redundant processing units, external disk drive Arrays, redundant Array of Independent Disks (RAID) systems, tape drives, and data backup storage systems, to name a few.
The processor 416 executes various functional applications and data processing by executing programs stored in the storage device 428, for example, to implement the block chain management method provided by the above-described embodiment of the present invention.
That is, the processing unit implements, when executing the program: receiving a block chain management transaction request sent by a proposed block chain link point aiming at a transaction to be managed; generating a cooperative management transaction request according to the block chain management transaction request, and sending the cooperative management transaction request to a block chain network so that a voting block link point performs management transaction voting processing on the cooperative management transaction request; receiving a voting processing result of the voting block chain nodes for performing management transaction voting processing; and processing the block chain management transaction request according to the voting processing result of each voting block chain node.
EXAMPLE five
An embodiment of the present invention further provides a computer storage medium storing a computer program, where the computer program is used to execute the blockchain management method according to any one of the above embodiments of the present invention when executed by a computer processor: receiving a block chain management transaction request sent by a proposed block chain link point aiming at a transaction to be managed; generating a cooperative management transaction request according to the block chain management transaction request, and sending the cooperative management transaction request to a block chain network so that a voting block link point performs management transaction voting processing on the cooperative management transaction request; receiving a voting processing result of the voting processing of each voting block chain node; and processing the block chain management transaction request according to the voting processing result of each voting block chain node.
Computer storage media for embodiments of the invention may employ any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a Read-Only Memory (ROM), an Erasable Programmable Read-Only Memory (EPROM) or flash Memory), an optical fiber, a portable compact disc Read-Only Memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, radio Frequency (RF), etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. Those skilled in the art will appreciate that the present invention is not limited to the particular embodiments described herein, and that various obvious changes, rearrangements and substitutions will now be apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (15)

1. A block chain management method is applied to a block chain intelligent contract and comprises the following steps:
receiving a block chain management transaction request sent by a proposed block chain link point aiming at a transaction to be managed;
traversing block chain management transaction requests recorded in a preset management transaction registration list, determining unprocessed block chain management transaction requests, generating collaborative management transaction requests according to the unprocessed block chain management transaction requests, and sending the collaborative management transaction requests to a block chain network so that voting processing is carried out on management transaction requests by voting block chain nodes;
receiving a voting processing result of the voting block chain nodes for performing management transaction voting processing;
processing the block chain management transaction request according to the voting processing result of each voting block chain node;
the number of the block chain management transaction requests is multiple, and the request initiation time of each block chain management transaction request is different;
wherein, the processing the block chain management transaction request according to the voting processing result of each voting block chain node comprises:
determining a target block chain management transaction request according to a voting processing result matched with each block chain management transaction request;
if the request initiation time of the target block chain management transaction request is earlier than that of a non-target block chain management transaction request, processing the target block chain management transaction request, and then continuously processing the non-target block chain management transaction request according to a voting processing result of each voting block chain node aiming at the non-target block chain management transaction request;
and if the request initiation time of the target block chain management transaction request is later than the request initiation time of the non-target block chain management transaction request, processing the target block chain management transaction request and then refusing to process the non-target block chain management transaction request.
2. The method of claim 1, wherein after receiving the blockchain management transaction request sent by the proposed blockchain node, further comprising:
checking the validity of the block chain management transaction request;
if the block chain management transaction request is determined to be legal, recording the block chain management transaction request in a preset management transaction registration list;
otherwise, sending a management transaction modification request to the proposed block chain node, so that the proposed block chain link node resends a legal block chain management transaction request after legality modification is carried out on the block chain management transaction request.
3. The method of claim 2, wherein verifying the validity of the blockchain management transaction request comprises:
acquiring request initiation time of the block chain management transaction request;
determining that the blockchain management transaction request is illegal if the request initiation time does not satisfy a proposed time limit condition.
4. The method of claim 2, wherein verifying the validity of the blockchain management transaction request comprises:
acquiring the identity of a request initiating node of the block chain management transaction request;
determining that the blockchain management transaction request is illegal if the request initiating node identity does not match the node identity of the proposed blockchain node.
5. The method of claim 1, wherein said processing said block chain management transaction request based on a voting processing result for each of said voter block chain nodes comprises:
calculating a vote pass ratio between the number of vote passes and the total number of voter blockchain nodes;
and if the voting ratio is determined to exceed a first set voting threshold value and the current system time does not reach the proposed effective time, determining that the block chain management transaction request passes voting and processing the block chain management transaction request.
6. The method as recited in claim 5, further comprising, prior to said calculating a vote ratio between the number of vote passes and the total number of voter blockchain nodes:
checking the validity of the voting processing result;
if the voting processing result is determined to be valid, updating a preset voting transaction registration list according to the voting processing result;
and counting the number of the voting processing results and the number of the voting passes in the preset voting transaction registration list.
7. The method of claim 6, wherein said processing said block chain management transaction request based on a voting processing result for each of said voter block chain nodes comprises:
acquiring current system time;
if the current system time is determined to reach the proposed effective time and the vote pass ratio is determined not to reach the first set voting threshold, determining that the block chain management transaction request fails voting and refusing to process the block chain management transaction request.
8. The method of claim 6, wherein said processing said block chain management transaction request based on a voting processing result for each of said voter block chain nodes comprises:
acquiring current system time;
and if the current system time is determined to reach the proposed effective time and the ratio of the number of the voting processing results to the total number of the voting block chain nodes is determined not to reach a second set voting threshold, determining that the block chain management transaction request is invalid and rejecting the block chain management transaction request to be processed.
9. The method of claim 1, wherein said processing said block chain management transaction request according to a voting processing result of each said voter block chain node, further comprises:
and if the request contents of the block chain management transaction requests are determined to be independent, processing the block chain management transaction requests according to the voting processing result of the voting block chain nodes respectively aiming at each block chain management transaction request.
10. The method of claim 1, wherein prior to said processing said block chain management transaction request based on the result of said voting process at each of said voter block chain nodes, further comprising:
receiving a block chain management transaction retraction request sent by the proposed block chain link point for the block chain management transaction request;
and performing revocation processing on the block chain management transaction request.
11. A method according to any one of claims 1 to 10, wherein the voter blockchain node is all or part of a blockchain link point in the blockchain network.
12. The method of any of claims 1-10, wherein the block chaining network is provided with initialized voter block chaining nodes and initialized voter parameters.
13. A blockchain management apparatus configured to a blockchain intelligent contract, comprising:
a block chain management transaction request receiving module, configured to receive a block chain management transaction request sent by a proposed block chain link point for a transaction to be managed;
the cooperative management transaction request sending module is used for traversing the block chain management transaction requests recorded in the preset management transaction registration list, determining unprocessed block chain management transaction requests, generating cooperative management transaction requests according to the unprocessed block chain management transaction requests, and sending the cooperative management transaction requests to a block chain network so as to enable voting points of voting block links to carry out management transaction voting processing on the cooperative management transaction requests;
a voting processing result receiving module, configured to receive a voting processing result of the management transaction voting processing performed by each voting block chain node;
the block chain management transaction request processing module is used for processing the block chain management transaction request according to the voting processing result of each voting block chain node;
the number of the block chain management transaction requests is multiple, and the request initiation time of each block chain management transaction request is different;
the block chain management transaction request processing module is specifically configured to:
determining a target block chain management transaction request according to a voting processing result matched with each block chain management transaction request;
if the request initiation time of the target block chain management transaction request is earlier than that of a non-target block chain management transaction request, processing the target block chain management transaction request, and then continuously processing the non-target block chain management transaction request according to a voting processing result of each voting block chain node aiming at the non-target block chain management transaction request;
and if the request initiation time of the target block chain management transaction request is later than the request initiation time of the non-target block chain management transaction request, processing the target block chain management transaction request and then refusing to process the non-target block chain management transaction request.
14. A computer device, characterized in that the computer device comprises:
one or more processors;
storage means for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement the blockchain management method of any one of claims 1-12.
15. A computer storage medium having a computer program stored thereon, wherein the program, when executed by a processor, implements the blockchain management method of any one of claims 1 to 12.
CN202010994657.XA 2020-09-21 2020-09-21 Block chain management method and device, computer equipment and storage medium Active CN112235251B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010994657.XA CN112235251B (en) 2020-09-21 2020-09-21 Block chain management method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010994657.XA CN112235251B (en) 2020-09-21 2020-09-21 Block chain management method and device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN112235251A CN112235251A (en) 2021-01-15
CN112235251B true CN112235251B (en) 2022-11-15

Family

ID=74107363

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010994657.XA Active CN112235251B (en) 2020-09-21 2020-09-21 Block chain management method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112235251B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114244528A (en) * 2021-12-17 2022-03-25 深圳壹账通智能科技有限公司 Processing method, system, equipment and medium for block chain downlink management request

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108648323A (en) * 2018-05-10 2018-10-12 广州市申迪计算机***有限公司 Choosing method, device, computer equipment and the storage medium of target information
CN111008402A (en) * 2018-10-08 2020-04-14 国际商业机器公司 Block chain timestamp protocol
CN111312352A (en) * 2020-02-19 2020-06-19 百度在线网络技术(北京)有限公司 Data processing method, device, equipment and medium based on block chain
CN111311407A (en) * 2020-02-07 2020-06-19 腾讯科技(深圳)有限公司 Data processing method and device based on block chain system and electronic equipment
CN111669442A (en) * 2019-11-27 2020-09-15 朱培培 Data transmission method based on block chain and electronic equipment

Family Cites Families (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107360001B (en) * 2017-07-26 2021-12-14 创新先进技术有限公司 Digital certificate management method, device and system
EP3565218B1 (en) * 2018-04-30 2023-09-27 Hewlett Packard Enterprise Development LP System and method of decentralized management of multi-owner nodes using blockchain
CN108712423A (en) * 2018-05-18 2018-10-26 北京三六五八网络科技有限公司 Right management method and device
CN108665253A (en) * 2018-05-18 2018-10-16 百度在线网络技术(北京)有限公司 A kind of data processing method, device, equipment and the storage medium of block chain network
CN108920514B (en) * 2018-05-31 2020-10-09 百度在线网络技术(北京)有限公司 Information storage method, device, equipment and storage medium based on block chain
CN108921694B (en) * 2018-06-21 2022-03-04 北京京东尚科信息技术有限公司 Block chain management method, block chain node and computer readable storage medium
CN109474584B (en) * 2018-10-29 2021-12-07 中化能源科技有限公司 Rule-based block chain network automatic permission joining method
CN109710695B (en) * 2018-12-26 2021-10-08 百度在线网络技术(北京)有限公司 Transaction request validity identification and initiation method, device, equipment and medium
CN110084600B (en) * 2019-04-29 2021-08-27 百度在线网络技术(北京)有限公司 Processing and verifying method, device, equipment and medium for resolution transaction request
CN110138767B (en) * 2019-05-07 2021-11-30 百度在线网络技术(北京)有限公司 Transaction request processing method, device, equipment and storage medium
CN110855777B (en) * 2019-11-12 2022-09-13 腾讯科技(深圳)有限公司 Node management method and device based on block chain
CN111277647B (en) * 2020-01-19 2023-04-18 北京百度网讯科技有限公司 Block chain network member management method, device, equipment and medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108648323A (en) * 2018-05-10 2018-10-12 广州市申迪计算机***有限公司 Choosing method, device, computer equipment and the storage medium of target information
CN111008402A (en) * 2018-10-08 2020-04-14 国际商业机器公司 Block chain timestamp protocol
CN111669442A (en) * 2019-11-27 2020-09-15 朱培培 Data transmission method based on block chain and electronic equipment
CN111311407A (en) * 2020-02-07 2020-06-19 腾讯科技(深圳)有限公司 Data processing method and device based on block chain system and electronic equipment
CN111312352A (en) * 2020-02-19 2020-06-19 百度在线网络技术(北京)有限公司 Data processing method, device, equipment and medium based on block chain

Also Published As

Publication number Publication date
CN112235251A (en) 2021-01-15

Similar Documents

Publication Publication Date Title
CN110598394B (en) Authority verification method and device and storage medium
US11748337B2 (en) System and method of decentralized management of multi-owner nodes using blockchain
US10922772B2 (en) Copyright authorization management method and system
EP3610436B1 (en) Rapid distributed consensus on blockchain
WO2020216065A1 (en) Voting method and apparatus in blockchain
CN108429759B (en) Decentralized storage safety implementation method
WO2020062394A1 (en) Blockchain-based service processing method and system
TWI633455B (en) Social device security in a social network
US20190333029A1 (en) System, method, and computer program product for validating blockchain or distributed ledger transactions in a service requiring payment
CN110417790B (en) Block chain real-name system queuing system and method
CN112311735A (en) Credible authentication method, network equipment, system and storage medium
US20230006840A1 (en) Methods and devices for automated digital certificate verification
RU2622883C2 (en) System and method for managing access to personal data
CN109388957B (en) Block chain-based information transfer method, device, medium and electronic equipment
EP3966997B1 (en) Methods and devices for public key management using a blockchain
CN111292174A (en) Tax payment information processing method and device and computer readable storage medium
CN111709012A (en) User authentication method and device based on private chain and computer equipment
CN115841383A (en) Committee decision voting method, system, medium, equipment and terminal
CN112235251B (en) Block chain management method and device, computer equipment and storage medium
KR102235566B1 (en) Apparatus and method for anomaly detection based on blockchain
CN110557394B (en) Parallel chain management method, equipment and storage medium
CN111444284A (en) Intellectual property trading method, system, equipment and computer readable storage medium based on block chain
CN114154996A (en) Cross-block-chain data transfer method and system, storage medium and terminal
CN114449000A (en) Vehicle network data consensus optimization storage method and storage system
CN112950180A (en) Community certificate method and system based on alliance chain, electronic device and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right

Effective date of registration: 20220920

Address after: 25 Financial Street, Xicheng District, Beijing 100033

Applicant after: CHINA CONSTRUCTION BANK Corp.

Address before: 12 / F, 15 / F, 99 Yincheng Road, China (Shanghai) pilot Free Trade Zone, Pudong New Area, Shanghai, 200120

Applicant before: Jianxin Financial Science and Technology Co.,Ltd.

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant