CN113055453A - Operation processing method, device and system based on block chain - Google Patents

Operation processing method, device and system based on block chain Download PDF

Info

Publication number
CN113055453A
CN113055453A CN202110254023.5A CN202110254023A CN113055453A CN 113055453 A CN113055453 A CN 113055453A CN 202110254023 A CN202110254023 A CN 202110254023A CN 113055453 A CN113055453 A CN 113055453A
Authority
CN
China
Prior art keywords
node
light
information
block
job
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.)
Granted
Application number
CN202110254023.5A
Other languages
Chinese (zh)
Other versions
CN113055453B (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.)
Industrial and Commercial Bank of China Ltd ICBC
Original Assignee
Industrial and Commercial Bank of China Ltd ICBC
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 Industrial and Commercial Bank of China Ltd ICBC filed Critical Industrial and Commercial Bank of China Ltd ICBC
Priority to CN202110254023.5A priority Critical patent/CN113055453B/en
Publication of CN113055453A publication Critical patent/CN113055453A/en
Application granted granted Critical
Publication of CN113055453B publication Critical patent/CN113055453B/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
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1001Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
    • H04L67/1004Server selection for load balancing
    • H04L67/1012Server selection for load balancing based on compliance of requirements or conditions with available server resources
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5027Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals
    • G06F9/5044Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals considering hardware capabilities
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5061Partitioning or combining of resources
    • G06F9/5072Grid computing

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mathematical Physics (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention discloses a method, a device and a system for processing operation based on a block chain, which relate to the technical field of block chains, wherein the method comprises the following steps: receiving a job processing request, the request comprising: job information; calculating the block height of the operation posting information according to the operation information, and judging whether the corresponding block is a check point block or not according to the block height; responding to the judgment result that the check point block is detected, and judging whether the equipment to which the light node belongs can process the operation according to the current resource of the equipment to which the light node belongs; triggering a voting right transfer process in response to the judgment result that the operation cannot be processed, so that after the voting right transfer process is completed, the whole node executes the operation corresponding to the operation information and generates posting information; and receiving the posting information from the full node, and executing the posting operation of the check point block according to the posting information. By the invention, the mobile equipment is added into the block chain network as the independent block chain node, and the block chain light node program can run on the mobile equipment.

Description

Operation processing method, device and system based on block chain
Technical Field
The invention relates to the technical field of block chains, in particular to a method, a device and a system for processing operation based on a block chain.
Background
Traditional mobile devices can simultaneously access a single blockchain node server, and are connected with the blockchain network through blockchain nodes. With the increasing of the hardware processing capacity of the mobile device, the mobile device is added to the blockchain network as one of the blockchain nodes, so that the processing capacity of the mobile device can be fully utilized, and the threshold that the user needs to operate and maintain the server when participating in the construction of the blockchain network is reduced.
However, there is currently no effective solution for a mobile device to join a blockchain network as a standalone blockchain node to process transactions.
Disclosure of Invention
In view of the above, the present invention provides a method, an apparatus and a system for processing operations based on a block chain to solve at least one of the above-mentioned problems.
According to a first aspect of the present invention, there is provided a method for processing a job based on a blockchain, the blockchain including: a light node and a full node, the method being applied to the light node, the method comprising:
receiving a job processing request, the request comprising: job information;
calculating the block height of the operation posting information according to the operation information, and judging whether the corresponding block is a check point (checkpoint) block or not according to the block height;
responding to the judgment result that the check point block is detected, and judging whether the equipment to which the light node belongs can process the operation according to the current resource of the equipment to which the light node belongs;
triggering a voting right transfer process in response to the judgment result that the operation cannot be processed, so that after the voting right transfer process is completed, all nodes execute operation corresponding to the operation information and generate posting information;
and receiving the account-entering information from the full node, and executing the account-entering operation of a check point (check point) block according to the account-entering information.
According to a second aspect of the present invention, there is provided a method for processing a job based on a blockchain, the blockchain including: a light node and a full node, the method being applied to the full node, the method comprising:
receiving a voting right transfer message with a ring signature from a light node, wherein the voting right transfer message comprises: job information;
responding to the ring signature verification success, executing operation corresponding to the operation information, and generating an operation result;
and executing block posting operation according to the operation result, and sending posting information to the light node.
According to a third aspect of the present invention, there is provided a block chain-based job processing apparatus, the block chain including: a light node and a full node, the apparatus being located at the light node, the apparatus comprising:
a request receiving unit operable to receive a job processing request, the request including: job information;
a check point block determining unit, configured to calculate a block height at which the job posting information is located according to the job information, and determine whether a corresponding block is a check point (check point) block according to the block height;
the execution capacity judging unit is used for responding to the judgment result that the check point block is detected, and judging whether the equipment to which the light node belongs can process the operation according to the current resource of the equipment to which the light node belongs;
the transfer triggering unit is used for triggering the voting right transfer process in response to the judgment result that the operation cannot be processed, so that after the voting right transfer process is completed, the whole node executes the operation corresponding to the operation information and generates the posting information;
and the first accounting unit is used for receiving accounting information from the full node and executing accounting operation of a check point (checkpoint) block according to the accounting information.
According to a fourth aspect of the present invention, there is provided a block chain-based job processing apparatus, the block chain including: a light node and a full node, the apparatus being located at the full node, the apparatus comprising:
a message receiving unit, configured to receive a voting right transfer message with a ring signature from a light node, where the voting right transfer message includes: job information;
the job execution unit is used for responding to the success of the verification of the ring signature, executing the operation corresponding to the job information and generating an operation result;
and the posting information sending unit is used for executing block posting operation according to the operation result and sending posting information to the light node.
According to a fifth aspect of the present invention, there is provided a blockchain-based job processing system, the blockchain comprising: a light node and a full node, the system comprising: the job processing device located in the light node, the job processing device located in the full node, and the authentication device are configured to perform authentication on the light node and the full node and issue a node certificate.
According to a sixth aspect of the present invention, there is provided an electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the steps of the above method when executing the program.
According to a seventh aspect of the present invention, there is provided a computer readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of the above method.
According to the technical scheme, the height of a block where job account information is located is calculated according to a received job processing request, whether the corresponding block is a check point (checkpoint) block is judged according to the block height, whether equipment to which the light node belongs can process the job is judged according to current resources of the equipment to which the light node belongs when the judgment result is the check point block, a voting right transfer process is triggered when the judgment result is that the job cannot be processed, so that after the voting right transfer process is completed, a whole node executes operation corresponding to the job information and generates account information, then the account information from the whole node is received, and account operation of the check point (checkpoint) block is executed according to the account information, so that the design that the mobile equipment accesses a block chain network as an independent node is realized, and a block chain light node program can run on the mobile equipment, the application scenes of the block chain technology are widened.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
FIG. 1 is a block diagram of a block chain based job processing system according to an embodiment of the present invention;
fig. 2 is a block diagram of the configuration of the job processing apparatus 10 located at a light node according to an embodiment of the present invention;
FIG. 3(a) is a block diagram of a checkpoint block according to an embodiment of the present invention;
FIG. 3(b) is a block diagram of a conventional block structure;
fig. 4 is a block diagram of the configuration of the job processing apparatus 20 located at all nodes according to the embodiment of the present invention;
FIG. 5 is an exemplary block diagram of a job processing system according to an embodiment of the present invention;
fig. 6 is a block diagram illustrating an exemplary structure of a blockchain full node 1 according to an embodiment of the present invention;
fig. 7 is a block diagram of an example structure of a blockchain light node 2 according to an embodiment of the present invention;
fig. 8 is a flowchart of certificate issuance by a blockchain light node to establish a link with a mutually trusted group according to an embodiment of the present invention;
FIG. 9 is a flow diagram of voting right security privacy transfer and transaction posting for blockchain light nodes, according to an embodiment of the present invention;
FIG. 10 is a flow diagram of a light node completing a vote weight transfer protocol sign-up with other blockchain light nodes before going offline in accordance with an embodiment of the present invention;
FIG. 11 is a flow diagram of a light node once offline but involving transaction processing according to an embodiment of the present invention;
FIG. 12 is a flowchart of a blockchain full-node adaptive selection blockchain light node to perform intelligent contract execution processing according to an embodiment of the present invention;
FIG. 13 is a process flow diagram of a blockchain light node adaptive selection intelligent contract execution environment in accordance with an embodiment of the present invention;
FIG. 14 is a flow diagram of a job processing method according to an embodiment of the present invention;
FIG. 15 is another flowchart of a job processing method according to an embodiment of the present invention;
fig. 16 is a schematic block diagram of a system configuration of an electronic apparatus 600 according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Traditional mobile devices can simultaneously access a single blockchain node server, and are connected with the blockchain network through blockchain nodes. However, multiple mobile devices access the blockchain node at the same time, increasing the transaction pressure of the blockchain node; moreover, a single point of failure of a blockchain node is likely to cause multiple connected mobile devices to be unable to transact. However, there is currently no effective solution for a mobile device to join a blockchain network as a standalone blockchain node to process transactions. Based on this, the embodiment of the present invention provides a block chain-based job processing scheme, in which a block chain light node program supports running on a mobile device, and it is implemented that the mobile device accesses a block chain network as an independent node without accessing a block chain node, and this scheme widens the application scenarios of the block chain technology.
In this embodiment, the mobile device accessing the blockchain network as an independent node has two benefits: the transaction pressure of a plurality of mobile devices on a single block chain node is avoided, and the mobile device is also a block chain node and is beneficial to dispersing the transaction pressure; the problem that a plurality of mobile devices cannot trade due to single-point faults of the block link points is solved, and the mobile device is also one block link point and contributes to reducing the influence caused by downtime of a block link node server.
Embodiments of the present invention are described in detail below with reference to the accompanying drawings.
The embodiment of the invention provides a work processing system based on a block chain. Fig. 1 is a block diagram of a block chain-based job processing system, as shown in fig. 1, including: the job processing apparatus 10 located at a light node, the job processing apparatus 20 located at a full node, and the authentication apparatus 30, wherein the authentication apparatus is configured to authenticate the light node and the full node and issue a node certificate. The job processing apparatuses 10 located at the light nodes and the job processing apparatuses 20 located at the full nodes are described below, respectively.
Fig. 2 is a block diagram of the configuration of the job processing apparatus 10 located at the light node, and as shown in fig. 2, the job processing apparatus 10 includes: a request receiving unit 101, a checkpoint block determining unit 102, an execution capability determining unit 103, a transfer triggering unit 104, and a first posting unit 105, wherein:
a request receiving unit 101 configured to receive a job processing request, the request including: and (4) job information.
The check point block determining unit 102 is configured to calculate a block height of the job posting information according to the job information, and determine whether a corresponding block is a check point (check point) block according to the block height.
In the implementation process, the blocks in the blockchain network can be divided into two types, i.e., a checkpoint block shown in fig. 3(a) and a non-checkpoint block (i.e., a conventional block) shown in fig. 3(b), where:
the checkpoint block structure is almost identical to the conventional block structure, except for one more checkpoint block inter-increment transaction zero knowledge proof (ZK proof). The ZK proof field of the incremental transaction is mainly used for the all-node to prove that the all-node locally owns the incremental transaction ledger between checkpoint blocks, once the light node needs to query the full-amount ledger, the full-amount ledger can be acquired by any all-node, and the light node does not need to locally store a full-amount ledger data. The block numbers of the checkpoint blocks are discontinuous, and the block numbers of the conventional blocks are continuous.
And the execution capacity judgment unit 103 is configured to, in response to the judgment result being the check point block, judge whether the device to which the light node belongs can process the job according to the current resource of the device to which the light node belongs.
The resources here refer to memory resources, computing resources, storage resources, network resources, and the like of the device in which the light node is located.
And a transfer triggering unit 104, configured to trigger the voting right transfer process in response to that the job cannot be processed as a result of the determination, so that after the voting right transfer process is completed, all nodes execute an operation corresponding to the job information and generate posting information.
A first accounting unit 105, configured to receive accounting information from the full node, and execute an accounting operation of a checkpoint (checkpoint) block according to the accounting information.
The check point block determining unit 102 calculates the block height of the check point block where the job account information is located according to the job processing request received by the request receiving unit 101, and determines whether the corresponding block is a check point (checkpoint) block according to the block height, when the determination result is the check point block, the execution capacity determining unit 103 determines whether the device to which the light node belongs can process the job according to the current resource of the device to which the light node belongs, and when the determination result is that the job cannot be processed, the transfer triggering unit 104 triggers the voting right transfer flow so that after the voting right transfer flow is completed, the whole node executes the operation corresponding to the job information and generates the account information, and then the first account entering unit 105 receives the account information from the whole node and executes the account operation of the check point block according to the account information, thus realizing the design of the mobile device as an independent node access block chain network, therefore, the block chain light node program can be operated on the mobile equipment, and the application scene of the block chain technology is widened.
In actual operation, when the light node is started, the authentication operation of the authentication device 30 is received. Accordingly, the job processing apparatus 10 includes: a node certificate receiving unit, a group join request sending unit and a link establishing unit, wherein:
a node certificate receiving unit for receiving a node certificate from the authentication apparatus;
a group join request sending unit, configured to send a mutual trust group join request to other light nodes in a blockchain, where the mutual trust group join request includes: node certificate information;
and the link establishing unit is used for responding to the received request success information and respectively establishing links with other light nodes in the mutual trust group.
Through the node certificate receiving unit, the group joining request sending unit and the link establishing unit, the light node can join the mutual trust group, and communication with other light nodes in the mutual trust group is realized.
In one embodiment, the job processing apparatus 10 further includes: an execution unit configured to execute an operation corresponding to the job information and generate posting information in response to a result of the determination by the execution capability determination unit 103 being that the job can be processed.
In a specific implementation, the job processing apparatus 10 further includes: the system comprises a transfer message-light node sending unit, a signature checking unit, a ring signature unit and a transfer message-full node sending unit, wherein:
a transfer message-light node sending unit, configured to generate a voting right transfer message and send the voting right transfer message to other light nodes in the block chain;
the signature verification unit is used for receiving the signature information of the voting right transfer message from the other light nodes and performing signature verification operation on the received signature information;
the ring signature unit is used for responding to the success of signature verification operation and executing ring signature on the voting right transfer message according to a pre-received ring signature public key;
and the transfer message-full node sending unit is used for sending the voting right transfer message with the ring signature to a full node in a block chain so that the full node performs signature verification operation on the ring signature.
The voting right transfer process can be completed through the transfer message-light node sending unit, the signature checking unit, the ring signature unit and the transfer message-full node sending unit. After the ring signature of the full node is successfully checked, the full node can execute the operation corresponding to the operation information and generate the posting information.
When the execution capability judgment unit 103 judges that the device to which the light node belongs cannot process the job, the job may be executed by other light nodes in the blockchain in addition to the transfer trigger unit triggering the voting right transfer flow and the job being executed by the whole node.
Correspondingly, the above device further comprises: a request sending unit and a second posting unit, wherein:
a request sending unit, configured to send the job processing request to one or more of the other light nodes in the blockchain, so that the one or more light nodes perform an operation corresponding to the job information;
and the second posting unit is used for receiving the operation result from the one or more light nodes and executing the posting operation of the checkpoint block according to the operation result.
Fig. 4 is a block diagram showing the configuration of the job processing apparatus 20 located at all the nodes, and as shown in fig. 4, the job processing apparatus 20 includes: a message receiving unit 201, a job executing unit 202, and an posting information sending unit 203, wherein:
a message receiving unit 201, configured to receive a voting right transfer message with a ring signature from a light node, where the voting right transfer message includes: job information;
a job execution unit 202, configured to, in response to a successful signature verification of the ring signature, execute an operation corresponding to the job information, and generate an operation result;
and an account posting information sending unit 203, configured to perform block account posting operation according to the operation result, and send account posting information to the light node.
By the above message receiving unit 201, job executing unit 202, and posting information sending unit 203, a function of executing a job by all nodes when the device to which the light node belongs cannot process the job is realized.
In one embodiment, the job processing apparatus 20 further includes: job request receiving unit, light node selection unit, operation result receiving unit and posting unit, wherein:
a job request receiving unit for receiving a job processing request;
a light node selection unit, configured to, in response to a local failure to process the job processing request, select one or more of the light nodes of the blockchain to cause the one or more light nodes to perform an operation corresponding to the job processing request;
an operation result receiving unit, configured to receive a job operation result with a threshold signature from one or more light nodes;
and the posting unit is used for responding to the success of the verification of the threshold signature and executing block posting processing according to the operation result.
By the job request receiving unit, the light node selecting unit, the operation result receiving unit, and the posting unit, a function of executing a job by the light node when all nodes cannot process the job can be realized.
For a better understanding of the present invention, embodiments of the present invention are described in detail below in connection with the exemplary system shown in FIG. 5.
As shown in fig. 5, the example system includes: a plurality of blockchain overall nodes 1(VP having the function of the job processing apparatus 20 located at the overall node), a plurality of blockchain light nodes 2 (having the function of the job processing apparatus 10 located at the light node), and a plurality of authentication means 3(CA having the function of the authentication apparatus 30). The block chain light nodes 2 and the block chain total nodes 1 are connected with each other through a network, the block chain light nodes 2 are connected with each other through a network, and the block chain light nodes 2 are connected with the authentication mechanism 3 through the network. These three sections are described separately below.
(1) Block chain full node 1
The block chain full node 1 refers to a node for bearing the complete logic function of a block chain node, and includes processing links such as block chain user authentication, block chain link point block consensus, intelligent contract execution, inter-node account checking, all-block account entry and the like, and a server with rich storage, calculation and network resources in a network generally bears the role of the full node in a block chain network.
Fig. 6 is a block diagram showing an example of the structure of the blockchain complete node 1, and as shown in fig. 6, the blockchain complete node 1 includes: a transaction processing module 601, a storage module 602, a light node communication module 603, a contract execution environment module 604, a cryptography module 605, and other modules 606, wherein:
the transaction processing module 601 is responsible for accessing block chain transactions, covers a series of processes such as parameter check, consensus calculation, and the like, and can realize processing of a checkpoint block and a non-checkpoint block.
The storage module 602 is responsible for the storage management of all transaction block posting records and related consensus data, and has full data.
The light node communication module 603 is responsible for exchanging messages with the light node, including a voting right transfer message, a contract execution environment switching message, and the like.
The contract execution environment module 604 is responsible for adaptively selecting the environment of the execution environment in which the node program is located according to the current node system resource tension degree, or forwarding the execution environment to one or more light nodes in the light node group to complete contract processing.
The cryptography module 605 is responsible for performing ring signature verification on the voting right transfer message sent by the light node, and is responsible for a series of related cryptography operations such as key certificate management, signature verification, encryption and decryption, and the like of the node.
The other module 606 is responsible for other functions of the node as a whole.
(2) Block chain light node 2
The block chain light node 2 is a node that takes charge of a part of key logic functions of a block chain node point, and a local account book (i.e., a key account book) records only key checkpoint block data. The blocks in the block chain network can be divided into two types, namely a checkpoint block and a non-checkpoint block, and the block types are determined by common knowledge achieved by all nodes in the network. The light nodes with insufficient resources in the group can coordinate in the group through technologies such as voting right security privacy transfer (namely, the voting right transfer process), contract execution environment adaptive switching and the like when the network is judged to make checkpoint block account agreement, and the light nodes in the group finish processes such as intelligent contract processing or consensus voting by other idle light nodes in the group or other whole nodes in the network, and the light node book only records the checkpoint block finally.
Fig. 7 is a block diagram showing an example of the structure of the blockchain light node 2, and as shown in fig. 7, the blockchain light node 2 includes: a transaction processing module 701, a storage module 702, a light node communication module 703, a contract execution environment module 704, a cryptography module 705, and other modules 706.
The transaction processing module 701 is responsible for accessing block chain transactions, and checks whether a transaction access parameter belongs to a checkpoint block and is distributed to each module for processing, checkpoint block consensus, and the like. Compared with the full node, the consensus computation amount is greatly reduced.
The storage module 702 is responsible for storage management of checkpoint block accounting records and checkpoint related consensus data. Compared with a full node, the storage data volume is greatly reduced.
The light node communication module 703 is responsible for communicating with an authentication mechanism and other blockchain light nodes in the group, and includes operations of joining in the light node group, consensus of the voting right transfer group, intelligent contract execution environment switching request management, exiting the light node group, and the like.
The contract execution environment module 704 is responsible for adaptively selecting the contract execution environment in the environment of the node program according to the resource shortage degree of the current node system, or initiating a voting right transfer consensus to a group through the light node communication management module, and finally forwarding the voting right transfer message subjected to the ring signature to other whole nodes in the network.
The cryptography module 705 is responsible for a series of related cryptography processes such as threshold signature verification, ring signature and signature verification, node key certificate management and the like used in the light node group consensus.
The other module 706 is responsible for other functions of the light node.
(3) Authentication mechanism 3
The authentication mechanism 3 refers to a node in the block chain which bears the identity security functions of the block chain light node and the block chain whole node, such as identity authentication, node certificate signing and the like, and executes identity authentication and certificate signing and issuing on the block chain light node and the whole node, and the block chain light node uses the signed certificate to complete the building of the block chain light node mutual trust group.
After the blockchain light node is started, communication is established with the mutual trust group. Fig. 8 is a flowchart of certificate issuing of a blockchain light node and establishment of a link with a mutually trusted group, where, as shown in fig. 8, after the blockchain light node is started, the blockchain light node requests an authentication authority to issue a node certificate and requests other light nodes in the light node group to join the mutually trusted group, and the specific steps include:
step 801: and the block chain light node requests an authentication authority to issue a node certificate.
Step 802: the authentication authority issues a node certificate based on the root certificate and returns the node certificate to the light node.
Step 803: the light node stores the node certificate sent by the authentication authority.
Step 804: and the light node initiates a request for joining the mutual trust group to other block chain light nodes, wherein the request contains certificate information. And after receiving the successful response, locally establishing a group mutual trust relationship list and establishing a safe link with the light nodes in the list.
Step 805: and other light nodes update the local group mutual trust relationship list, complete verification and signing based on the received certificate information, and establish a safe link with the new light node.
After the link is established, the light node may receive a job (or called transaction) processing request and perform the corresponding operation. Fig. 9 is a flow diagram of voting right security privacy transfer and transaction posting for a blockchain light node, involving blockchain whole node 1 and blockchain light node 2. As shown in fig. 9, the processing step of receiving a blockchain transaction by a light node in the blockchain network includes:
step 901: and the block chain light node waits for transaction access and receiving processing.
Step 902: and the block chain light node calculates the block height of the transaction posting information.
Step 903: and judging whether the corresponding block is a checkpoint block or not by the block chain light node according to the height of the block where the transaction place is located, thereby determining whether to participate in consensus voting, if not, executing 904, and if so, executing 905.
Step 904: and if the block chain light node judges that the height of the block where the transaction is located is not the checkpoint block, the node does not participate in voting or accounting of the block chain, and directly returns to 901.
Step 905: and the block chain light node confirms that the height of the block where the transaction is located is a checkpoint block, judges whether the calculation or storage resources of the equipment are in shortage or not, executes 906 if the resources are abundant, and executes 907 if the resources are in shortage.
The resource shortage includes a series of resources such as memory resources, computing resources, storage resources, network resources and the like of the device where the light node is located, and any one of the resources has a high utilization rate and cannot be sufficient or seriously affects the processing of the new blockchain transaction.
Step 906: the block chain light node judges that the resources of the device are abundant, and the node completes a series of processing such as transaction-related intelligent contract execution, node consensus (block voting), checkpoint block posting and the like.
Step 907: and judging that the resources of the equipment are in shortage by the block chain light node, triggering a voting right transfer process and establishing a voting right transfer message.
Step 908: and triggering the block chain light nodes to execute threshold signature on the voting right transfer message, wherein other light nodes in the group participate in voting to determine whether to agree, and if the other light nodes sign the message, the agreement is represented.
Step 909: and collecting signature results of all nodes by the block chain light nodes, executing threshold signature verification by combining the signature results, continuing the next step after the signature verification is successful, and otherwise, returning to fail.
It should be noted that the threshold signature is used in the voting right transfer, and the light nodes execute the threshold signature and the threshold signature check signature on the voting right transfer message, which ensures that the light nodes in a group with enough number agree to the voting right transfer to execute the subsequent processing, and the rogue of the minority nodes does not affect the final result, thereby ensuring the safety, overcoming the problems that when a certain light node is hijacked or deliberately rogue, the signature of the single node cannot be prevented, and the safety is lower, and avoiding the scene that the whole nodes obtaining the voting right and the light nodes initiating the transfer cooperate with each other to be rogue.
Step 910: and according to the ring signature public key broadcasted in the previous group, the block chain light node executes ring signature on the voting right transfer message and sends the voting right transfer message to other full nodes in the block chain network.
Step 911: and (4) executing ring signature verification by all the nodes of the block chain, and continuing the next step if the verification is passed, or else, returning to fail.
The ring signature is used in the voting right transfer, so that the whole nodes receiving the voting right transfer message can not judge which light node initiates the transfer specifically, but can verify that the transfer message is approved by the group where the light node is located.
It should be noted that directly using the private key signature reveals the identity of the light node initiating the voting right transfer, and cannot ensure the identity privacy of the light node participant. And the light node executes ring signature on the voting right transfer message, and the full node executes ring signature verification on the voting right transfer message, so that the identity information of the light node initiating the voting right transfer is not leaked, and the privacy is ensured.
Step 912: and the whole nodes of the block chain complete the operations of transaction related intelligent contract execution, node consensus (block voting), block posting and the like, and broadcast the posting result.
Step 913: and the block chain light node completes check point block posting according to the broadcast result. The ledger related to light node posting herein generally refers to a block data containing checkpoint, consensus data of transaction in transit related to checkpoint, and the like.
In the above step 907, the voting right transfer is involved, and the voting right transfer can be supported by a mechanism of establishing a light node mutual trust group.
In practice, two cases trigger the transfer of voting right: (1) the light node is offline, (2) the light node is resource-strained (corresponding to step S307 described above).
For the case (1) triggered voting right transfer before the light node is offline, a voting right transfer protocol of a trustee and a trustee is set, the trustee is the local light node to be offline, and the trustee is one or more other blockchain light nodes or all nodes, and fig. 10 shows a flow that the light node completes the signing of the voting right transfer protocol with other blockchain light nodes before the light node is offline. Fig. 11 is a schematic flow chart of the light node once offline but related to transaction processing, as shown in fig. 11, according to a pre-signed voting right transfer protocol, the entrusted node executes a transaction-related intelligent contract, participates in transaction consensus voting, the common signature or threshold signature of the entrusted node is used for replacing the signature of the entrusted node, and other block chain nodes in the whole network approve the execution result of the signature of the entrusted node and record an account book.
Fig. 12 is a flowchart of processing performed by the blockchain full node to adaptively select the blockchain light node to complete the intelligent contract, and relates to the blockchain full node 1 and the blockchain light node 2. As shown in fig. 12, the processing steps of receiving an intelligent contract transaction by a whole node in the blockchain network are as follows:
step 1201: and the whole node of the block chain executes transaction access and processing.
Step 1202: and judging whether the resources of the equipment are in shortage by all the nodes of the block chain, if the resources are abundant, executing 1203, and if the resources are in shortage, executing 1205.
Step 1203: when the resources are abundant, the intelligent contract execution environment selection of all the nodes of the block chain is the same as the node operation environment.
Step 1204: and the block whole node completes contract execution, whole network consensus and block posting processing.
Step 1205: when resources are in shortage, the intelligent contract execution environment of the whole block nodes selects one or more light nodes, and the contract execution request is forwarded to the corresponding block chain light nodes.
Step 1206: and executing the contract by the block chain light node and initiating a threshold signature to the execution result read-write set, if the threshold signature processing is successful, executing the next step, and otherwise, reporting an error and returning.
Step 1207: and (4) judging by the block chain light node, and returning an execution result if the signature process is successful.
Step 1208: and the block chain full node conducts threshold signature verification on the contract execution result read-write set, the next step is executed after the signature verification is successful, and otherwise, an error is reported and returned.
Step 1209: and the block chain whole node executes subsequent whole network consensus according to the execution result read-write set and completes block account entry processing.
As can be seen from the above description, the intelligent contract execution environment of the full node supports the same server as the node operation environment, and one or more light nodes may also be selected. And when only one light node is selected, the whole default node approves the execution result of the light node, when a plurality of light nodes are selected, the interior of the light nodes executes threshold signature on the returned result, the read-write set result and the corresponding signature of the execution result are returned to the whole nodes, the whole nodes execute threshold signature verification processing, and follow-up common identification and account entry processing of the nodes in the whole network is continuously executed according to the read-write set commonly identified by the light node group.
Fig. 13 is a process flow diagram of a blockchain light node adaptive selection intelligent contract execution environment, involving blockchain light node 2. As shown in fig. 13, the processing steps of receiving an intelligent contract transaction by a light node in the blockchain network are as follows:
step 1301: and the blockchain light node executes transaction access and processing.
Step 1302: and the blockchain light node judges whether the resource of the device is in shortage or not, if the resource is abundant, executing 1303, and if the resource is in shortage, executing 1305.
Step 1303: when the resources are abundant, the intelligent contract execution environment selection of the light nodes of the block chain is the same as the node operation environment.
Step 1304: and the block light node completes contract execution, network consensus and block posting processing.
Step 1305: when resources are in shortage, the intelligent contract execution environment of the block light nodes selects one or more idle light nodes, and the contract execution request is forwarded to the corresponding other block chain light nodes.
Step 1306: and executing contracts and returning execution results to the read-write set by the other blockchain light nodes.
Step 1307: and the original block chain light node completes the whole network consensus and completes the block chain account entry processing.
It can be known from the above description that the intelligent contract execution environment of the light node may select the light node itself or may select other idle light nodes in the same group, and the other idle light nodes return the read-write set of the execution result, and the light node that originally received the transaction records the transaction result into the block information, participates in the global consensus, updates the ledger of the checkpoint block, and broadcasts the transaction result that is finally confirmed to other light nodes in the group, and the other light nodes update the ledger of the checkpoint block.
The block chain system suitable for the mobile equipment provided by the embodiment of the invention reserves the original block chain full nodes on the basis of the design of the traditional block chain nodes, and expands the block chain light nodes supported by the block chain network. The embodiment of the invention has the following advantages:
1. in the aspect of robustness, the block chain light node program provided by the embodiment of the invention is supported to be deployed in a mobile device, and the mobile device is used as an independent node to access a block chain network, so that on one hand, the transaction pressure of a plurality of mobile devices on a single block chain node is avoided, the mobile device is used as one block chain node to be beneficial to dispersing the transaction pressure, on the other hand, the problem that the plurality of mobile devices cannot perform transactions due to single-point faults of block chain nodes is avoided, and the influence of downtime of a single block chain node server on the block chain network is reduced.
2. In the aspect of storage, in the embodiment of the present invention, all the block data are stored in the block chain full nodes, that is, all the block chain full nodes have a complete ledger, and the block chain light nodes only store checkpoint block data, that is, only store key data of the ledger. Therefore, the data size required to be stored by the light node can be reduced, and the fact that the account book data between the creation block and the checkpoint block cannot be tampered to a certain extent is guaranteed.
3. In the aspect of security, the embodiment of the invention provides that the block chain light nodes with mutual trust relationship form a group, and when the voting right transfer is carried out, the light nodes in the group execute ring signature or threshold signature on the voting right transfer message. Threshold signatures are used, and the voting right transfer is executed only after a certain number of light nodes are met; the ring signature is used, the identity of the light node which actually initiates the transfer of the voting right can be hidden, and the block chain network can know the whole nodes which receive the voting right but cannot judge which light node in the group the voting right is transferred to.
4. In the aspect of system resource utilization, all the nodes of the block chain participate in the voting of all the blocks, and the light nodes of the block chain only participate in the voting of the checkpoint blocks. When non-checkpoint block votes, the light node can send out a voting right transfer message, and transfer the consensus voting right to some or some whole nodes, in the actual operation, token (token) can be added, when the total node consensus voting result is consistent with the whole situation, the light node obtains the token returned by the total number, otherwise, the token is deducted.
Based on similar inventive concepts, an embodiment of the present invention further provides a job processing method based on a block chain, where the block chain includes: light nodes and full nodes, the method may preferably be applied to the job processing apparatus 10 located at the light nodes described above.
Fig. 14 is a flowchart of the job processing method, which includes, as shown in fig. 14:
step 1401, receiving a job processing request, said request comprising: and (4) job information.
Step 1402, calculating a block height of the job posting information according to the job information, and determining whether the corresponding block is a check point (checkpoint) block according to the block height.
In step 1403, in response to the determination result being the check point block, it is determined whether the device to which the light node belongs can process the job according to the current resource of the device to which the light node belongs.
And 1404, in response to the judgment result that the job cannot be processed, triggering a voting right transfer process, so that after the voting right transfer process is completed, all nodes execute the operation corresponding to the job information and generate posting information.
In one embodiment, in response to the determination that the job can be processed, an operation corresponding to the job information is executed, and posting information is generated, and the flow ends.
Step 1405, receiving the posting information from the full node, and executing the posting operation of the checkpoint (checkpoint) block according to the posting information.
Calculating the block height of the job posting information according to the received job processing request, judging whether the corresponding block is a check point (checkpoint) block according to the block height, and when the judgment result is the checkpoint block, judging whether the equipment to which the light node belongs can process the operation according to the current resource of the equipment to which the light node belongs, when the judgment result is that the operation can not be processed, the voting right transfer process is triggered, so that after the voting right transfer process is completed, the whole node executes the operation corresponding to the job information and generates the posting information, and then receives the posting information from the whole node, according to the check-in information, executing check-in operation of check point (check point) block, thus realizing design of mobile device as independent node access block chain network, therefore, the block chain light node program can be operated on the mobile equipment, and the application scene of the block chain technology is widened.
In a specific implementation process, the method further includes: receiving a node certificate from an authentication device; sending a join mutually trusted group request to other light nodes in the blockchain, the mutually trusted group request comprising: node certificate information; and respectively establishing links with other light nodes in the mutual trust group in response to receiving the request success information. In this manner, communication can be made with the light nodes in the trust group in the blockchain.
After triggering the vote rights transfer process at step 1404, the method further comprises: generating a voting right transfer message and sending the voting right transfer message to other light nodes in the block chain; subsequently, receiving signature information of the voting right transfer message from the other light nodes, and performing signature verification operation on the received signature information; and responding to the successful signature verification operation, executing a ring signature on the voting right transfer message according to a pre-received ring signature public key, sending the voting right transfer message with the ring signature to a full node in a block chain, so that the full node performs signature verification operation on the ring signature, and after the full node successfully verifies the ring signature, executing corresponding operation by the full node.
In one embodiment, when the determination result in step 1403 is that the job cannot be processed, the job operation may also be performed by other idle light nodes in the block chain, specifically: the job processing request can be sent to one or more of other idle light nodes in the blockchain so as to enable the one or more light nodes to execute the operation corresponding to the job information; receiving operation results from the one or more light nodes, and executing the accounting operation of the check point (checkpoint) block according to the operation results.
An embodiment of the present invention further provides a method for processing a job based on a block chain, where the block chain includes: light nodes and full nodes, the method may preferably be applied to the job processing apparatus 20 located at the full node described above.
Fig. 15 is a flowchart of the job processing method, which includes, as shown in fig. 15:
step 1501, receiving a voting right transfer message with a ring signature from a light node, where the voting right transfer message includes: job information;
step 1502, responding to the ring signature verification success, executing operation corresponding to the job information, and generating an operation result;
and 1503, executing block posting operation according to the operation result, and sending posting information to the light node.
In one embodiment, the method further comprises: receiving a job processing request; in response to a local inability to process the job processing request, selecting one or more of the light nodes of the blockchain to cause the one or more light nodes to perform an operation corresponding to the job processing request; receiving job operation results with threshold signatures from one or more light nodes; and responding to the success of checking the threshold signature, and executing block posting processing according to the operation result.
For the specific implementation process of the above steps, reference may be made to the description in the above system/apparatus embodiments, and details are not described here.
The present embodiment also provides an electronic device, which may be a desktop computer, a tablet computer, a mobile terminal, and the like, but is not limited thereto. In this embodiment, the electronic device may refer to the above method embodiment and the embodiment of the operation processing apparatus/system based on the block chain, and the contents thereof are incorporated herein, and repeated descriptions are omitted.
Fig. 16 is a schematic block diagram of a system configuration of an electronic apparatus 600 according to an embodiment of the present invention. As shown in fig. 16, the electronic device 600 may include a central processor 100 and a memory 140; the memory 140 is coupled to the central processor 100. Notably, this diagram is exemplary; other types of structures may also be used in addition to or in place of the structure to implement telecommunications or other functions.
In one embodiment, the blockchain-based job processing functionality may be integrated into the central processor 100. The central processor 100 may be configured to control as follows:
step 1401, receiving a job processing request, said request comprising: and (4) job information.
Step 1402, calculating a block height of the job posting information according to the job information, and determining whether the corresponding block is a check point block according to the block height.
In step 1403, in response to the determination result being the check point block, it is determined whether the device to which the light node belongs can process the job according to the current resource of the device to which the light node belongs.
And 1404, in response to the judgment result that the job cannot be processed, triggering a voting right transfer process, so that after the voting right transfer process is completed, all nodes execute the operation corresponding to the job information and generate posting information.
Step 1405, receiving the posting information from the full node, and executing the posting operation of the checkpoint block according to the posting information.
As can be seen from the above description, in the electronic device provided in this embodiment of the present application, the block height of the job posting information is calculated according to the received job processing request, and whether the corresponding block is a check point block is determined according to the block height, when the determination result is the check point block, whether the device to which the light node belongs can process the job is determined according to the current resource of the device to which the light node belongs, and when the determination result is that the job cannot be processed, the voting right transfer procedure is triggered, so that after the voting right transfer procedure is completed, the whole node executes the operation corresponding to the job information and generates the posting information, and then receives the posting information from the whole node, and executes the posting operation of the check point (checkpoint) block according to the posting information, thereby implementing the design that the mobile device accesses the block chain network as an independent node, so that the block chain light node program can run on the mobile device, the application scene of the block chain technology is widened.
In another embodiment, the work processing apparatus/system based on the block chain may be configured separately from the central processor 100, for example, the work processing apparatus/system based on the block chain may be configured as a chip connected to the central processor 100, and the work processing function based on the block chain is realized by the control of the central processor.
As shown in fig. 16, the electronic device 600 may further include: communication module 110, input unit 120, audio processing unit 130, display 160, power supply 170. It is noted that the electronic device 600 does not necessarily include all of the components shown in FIG. 16; furthermore, the electronic device 600 may also include components not shown in fig. 16, which may be referred to in the prior art.
As shown in fig. 16, the central processor 100, sometimes referred to as a controller or operational control, may include a microprocessor or other processor device and/or logic device, the central processor 100 receiving input and controlling the operation of the various components of the electronic device 600.
The memory 140 may be, for example, one or more of a buffer, a flash memory, a hard drive, a removable media, a volatile memory, a non-volatile memory, or other suitable device. The information relating to the failure may be stored, and a program for executing the information may be stored. And the central processing unit 100 may execute the program stored in the memory 140 to realize information storage or processing, etc.
The input unit 120 provides input to the cpu 100. The input unit 120 is, for example, a key or a touch input device. The power supply 170 is used to provide power to the electronic device 600. The display 160 is used to display an object to be displayed, such as an image or a character. The display may be, for example, an LCD display, but is not limited thereto.
The memory 140 may be a solid state memory such as Read Only Memory (ROM), Random Access Memory (RAM), a SIM card, or the like. There may also be a memory that holds information even when power is off, can be selectively erased, and is provided with more data, an example of which is sometimes called an EPROM or the like. The memory 140 may also be some other type of device. Memory 140 includes buffer memory 141 (sometimes referred to as a buffer). The memory 140 may include an application/function storage section 142, and the application/function storage section 142 is used to store application programs and function programs or a flow for executing the operation of the electronic device 600 by the central processing unit 100.
The memory 140 may also include a data store 143, the data store 143 for storing data, such as contacts, digital data, pictures, sounds, and/or any other data used by the electronic device. The driver storage portion 144 of the memory 140 may include various drivers of the electronic device for communication functions and/or for performing other functions of the electronic device (e.g., messaging application, address book application, etc.).
The communication module 110 is a transmitter/receiver 110 that transmits and receives signals via an antenna 111. The communication module (transmitter/receiver) 110 is coupled to the central processor 100 to provide an input signal and receive an output signal, which may be the same as in the case of a conventional mobile communication terminal.
Based on different communication technologies, a plurality of communication modules 110, such as a cellular network module, a bluetooth module, and/or a wireless local area network module, may be provided in the same electronic device. The communication module (transmitter/receiver) 110 is also coupled to a speaker 131 and a microphone 132 via an audio processor 130 to provide audio output via the speaker 131 and receive audio input from the microphone 132 to implement general telecommunications functions. Audio processor 130 may include any suitable buffers, decoders, amplifiers and so forth. In addition, an audio processor 130 is also coupled to the central processor 100, so that recording on the local can be enabled through a microphone 132, and so that sound stored on the local can be played through a speaker 131.
An embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program is executed by a processor to implement the steps of the above-mentioned block chain-based job processing method.
In summary, the embodiments of the present invention provide a block chain system suitable for a mobile device, which optimizes the bottom layer design of the block chain system so that the block chain node program can also run on the mobile device. For the application scenes of mobile equipment, such as weak computing capability, limited storage space, poor wireless network quality and higher privacy requirement, the mobile equipment is accessed into the block chain network to complete the service logic processing specified by the intelligent contract, and the technologies of threshold signature, ring signature and the like are used in the design to protect the identity information of the users participating in the block chain from being leaked. The embodiment of the invention can effectively utilize the advantages of more mobile devices and lower user use threshold, and expand the application scene of the block chain.
The preferred embodiments of the present invention have been described above with reference to the accompanying drawings. The many features and advantages of the embodiments are apparent from the detailed specification, and thus, it is intended by the appended claims to cover all such features and advantages of the embodiments which fall within the true spirit and scope thereof. Further, since numerous modifications and changes will readily occur to those skilled in the art, it is not desired to limit the embodiments of the invention to the exact construction and operation illustrated and described, and accordingly, all suitable modifications and equivalents may be resorted to, falling within the scope thereof.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The principle and the implementation mode of the invention are explained by applying specific embodiments in the invention, and the description of the embodiments is only used for helping to understand the method and the core idea of the invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (17)

1. A method for processing jobs based on a blockchain, the blockchain comprising: a light node and a full node, the method being applied to the light node, the method comprising:
receiving a job processing request, the request comprising: job information;
calculating the block height of the operation posting information according to the operation information, and judging whether the corresponding block is a check point block or not according to the block height;
responding to the judgment result that the check point block is detected, and judging whether the equipment to which the light node belongs can process the operation according to the current resource of the equipment to which the light node belongs;
triggering a voting right transfer process in response to the judgment result that the operation cannot be processed, so that after the voting right transfer process is completed, all nodes execute operation corresponding to the operation information and generate posting information;
and receiving the posting information from the full node, and executing the posting operation of the check point block according to the posting information.
2. The method of claim 1, further comprising:
and responding to the judgment result that the job can be processed, executing the operation corresponding to the job information, and generating the posting information.
3. The method of claim 1, wherein prior to receiving a job processing request, the method further comprises:
receiving a node certificate from an authentication device;
sending a join mutually trusted group request to other light nodes in the blockchain, the mutually trusted group request comprising: node certificate information;
and respectively establishing links with other light nodes in the mutual trust group in response to receiving the request success information.
4. The method of claim 1, wherein after triggering the vote right transfer process, the method further comprises:
generating a voting right transfer message and sending the voting right transfer message to other light nodes in the block chain;
receiving signature information of the voting right transfer message from other light nodes, and performing signature verification operation on the received signature information;
and responding to the success of the signature verification operation, executing a ring signature on the voting right transfer message according to a ring signature public key received in advance, and sending the voting right transfer message with the ring signature to a full node in a block chain so that the full node performs signature verification operation on the ring signature.
5. The method of claim 1, wherein in response to determining that the job cannot be processed, the method further comprises:
sending the job processing request to one or more of other light nodes in a block chain to enable the one or more light nodes to execute the operation corresponding to the job information;
and receiving operation results from the one or more light nodes, and executing the posting operation of the check point block according to the operation results.
6. A method for processing jobs based on a blockchain, the blockchain comprising: a light node and a full node, the method being applied to the full node, the method comprising:
receiving a voting right transfer message with a ring signature from a light node, wherein the voting right transfer message comprises: job information;
responding to the ring signature verification success, executing operation corresponding to the operation information, and generating an operation result;
and executing block posting operation according to the operation result, and sending posting information to the light node.
7. The method of claim 6, further comprising:
receiving a job processing request;
in response to a local inability to process the job processing request, selecting one or more of the light nodes of the blockchain to cause the one or more light nodes to perform an operation corresponding to the job processing request;
receiving job operation results with threshold signatures from one or more light nodes;
and responding to the success of checking the threshold signature, and executing block posting processing according to the operation result.
8. A blockchain-based job processing apparatus, the blockchain comprising: a light node and a full node, the apparatus being located at the light node, the apparatus comprising:
a request receiving unit operable to receive a job processing request, the request including: job information;
the check point block determining unit is used for calculating the block height of the operation posting information according to the operation information and judging whether the corresponding block is a check point block or not according to the block height;
the execution capacity judging unit is used for responding to the judgment result that the check point block is detected, and judging whether the equipment to which the light node belongs can process the operation according to the current resource of the equipment to which the light node belongs;
the transfer triggering unit is used for triggering the voting right transfer process in response to the judgment result that the operation cannot be processed, so that after the voting right transfer process is completed, the whole node executes the operation corresponding to the operation information and generates the posting information;
and the first posting unit is used for receiving posting information from the full node and executing posting operation of the check point block according to the posting information.
9. The apparatus of claim 8, further comprising:
and the execution unit is used for responding to the judgment result that the job can be processed, executing the operation corresponding to the job information and generating the posting information.
10. The apparatus of claim 8, further comprising:
a transfer message-light node sending unit, configured to generate a voting right transfer message and send the voting right transfer message to other light nodes in the block chain;
the signature verification unit is used for receiving the signature information of the voting right transfer message from the other light nodes and performing signature verification operation on the received signature information;
the ring signature unit is used for responding to the success of signature verification operation and executing ring signature on the voting right transfer message according to a pre-received ring signature public key;
and the transfer message-full node sending unit is used for sending the voting right transfer message with the ring signature to a full node in a block chain so that the full node performs signature verification operation on the ring signature.
11. The apparatus of claim 8, further comprising:
a request sending unit, configured to send the job processing request to one or more of the other light nodes in the blockchain, so that the one or more light nodes perform an operation corresponding to the job information;
and the second posting unit is used for receiving the operation result from the one or more light nodes and executing the posting operation of the checkpoint block according to the operation result.
12. The apparatus of claim 8, further comprising:
a node certificate receiving unit for receiving a node certificate from the authentication apparatus;
a group join request sending unit, configured to send a mutual trust group join request to other light nodes in a blockchain, where the mutual trust group join request includes: node certificate information;
and the link establishing unit is used for responding to the received request success information and respectively establishing links with other light nodes in the mutual trust group.
13. A blockchain-based job processing apparatus, the blockchain comprising: a light node and a full node, the apparatus being located at the full node, the apparatus comprising:
a message receiving unit, configured to receive a voting right transfer message with a ring signature from a light node, where the voting right transfer message includes: job information;
the job execution unit is used for responding to the success of the verification of the ring signature, executing the operation corresponding to the job information and generating an operation result;
and the posting information sending unit is used for executing block posting operation according to the operation result and sending posting information to the light node.
14. The apparatus of claim 13, further comprising:
a job request receiving unit for receiving a job processing request;
a light node selection unit, configured to, in response to a local failure to process the job processing request, select one or more of the light nodes of the blockchain to cause the one or more light nodes to perform an operation corresponding to the job processing request;
an operation result receiving unit, configured to receive a job operation result with a threshold signature from one or more light nodes;
and the posting unit is used for responding to the success of the verification of the threshold signature and executing block posting processing according to the operation result.
15. A blockchain-based job processing system, the blockchain comprising: a light node and a full node, the system comprising: the job processing apparatus at a light node according to any one of claims 8 to 12, the job processing apparatus at a full node according to claim 13 or 14, and an authentication apparatus, wherein the authentication apparatus is configured to authenticate the light node and the full node and issue a node certificate.
16. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the steps of the method of any of claims 1 to 7 are implemented when the processor executes the program.
17. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 7.
CN202110254023.5A 2021-03-09 2021-03-09 Operation processing method, device and system based on block chain Active CN113055453B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110254023.5A CN113055453B (en) 2021-03-09 2021-03-09 Operation processing method, device and system based on block chain

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110254023.5A CN113055453B (en) 2021-03-09 2021-03-09 Operation processing method, device and system based on block chain

Publications (2)

Publication Number Publication Date
CN113055453A true CN113055453A (en) 2021-06-29
CN113055453B CN113055453B (en) 2022-08-02

Family

ID=76510564

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110254023.5A Active CN113055453B (en) 2021-03-09 2021-03-09 Operation processing method, device and system based on block chain

Country Status (1)

Country Link
CN (1) CN113055453B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020184137A1 (en) * 2001-06-05 2002-12-05 Oakeson Kenneth L. Use of a job ticket service to store bid information
CN108984784A (en) * 2018-07-26 2018-12-11 百度在线网络技术(北京)有限公司 Application implementation method, device, equipment and storage medium based on block chain network
CN110099055A (en) * 2019-04-29 2019-08-06 北京工业大学 Internet of Things service architecture based on lightweight block chain node
CN110166565A (en) * 2019-05-30 2019-08-23 中国联合网络通信集团有限公司 Block chain divides domain triggering method and system
CN111506589A (en) * 2020-04-13 2020-08-07 西安电子科技大学 Block chain data service system based on alliance chain, access method and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020184137A1 (en) * 2001-06-05 2002-12-05 Oakeson Kenneth L. Use of a job ticket service to store bid information
CN108984784A (en) * 2018-07-26 2018-12-11 百度在线网络技术(北京)有限公司 Application implementation method, device, equipment and storage medium based on block chain network
CN110099055A (en) * 2019-04-29 2019-08-06 北京工业大学 Internet of Things service architecture based on lightweight block chain node
CN110166565A (en) * 2019-05-30 2019-08-23 中国联合网络通信集团有限公司 Block chain divides domain triggering method and system
CN111506589A (en) * 2020-04-13 2020-08-07 西安电子科技大学 Block chain data service system based on alliance chain, access method and storage medium

Also Published As

Publication number Publication date
CN113055453B (en) 2022-08-02

Similar Documents

Publication Publication Date Title
US11558177B2 (en) Block chain permission control method, device, and node apparatus
JP6912585B2 (en) Digital certificate management methods and devices as well as electronic devices
CN111681003B (en) Resource cross-chain transfer method and device, computer equipment and storage medium
US20210150521A1 (en) Blockchain-based privacy transaction and blockchain-based privacy transaction application methods and apparatuses
US20200127825A1 (en) Revocation of cryptographic keys in the absence of a trusted central authority
KR20190118561A (en) Digital Certificate Management Methods, Devices, and Systems
EP3937053B1 (en) Methods and apparatuses for transferring transaction based on blockchain integrated station
CN111639932B (en) Offline resource transfer method and device based on block chain
CN111382168A (en) Node group creating method and node group-based transaction method in alliance chain network
EP3937052B1 (en) Methods and apparatuses for synchronizing data based on blockchain integrated station
CN111767569A (en) Access authorization method and node of block chain
CN110390525A (en) The direct access method and block chain node of block chain world state
CN110070357B (en) Data processing method, device and system
WO2021258548A1 (en) Interactive aggregate signature method, and device and storage medium
US20200349566A1 (en) Device control method and related device
CN115131022A (en) Block chain-based digital asset transaction method, device, equipment and medium
US11943210B2 (en) System and method for distributed, keyless electronic transactions with authentication
CN111709053B (en) Operation method and operation device based on loose coupling transaction network
US20230259930A1 (en) Cross-chain transaction processing method and apparatus, electronic device, and storage medium
CN113055453B (en) Operation processing method, device and system based on block chain
WO2021143027A1 (en) Transaction endorsement processing method, server, and computer-readable storage medium
CN115526629A (en) Receipt transaction method and device based on block chain network and identity authentication device
EP4163855A1 (en) Electronic wallet, server for executing same, and atomic exchange method of blockchain tokens by using same server
CN114139121A (en) Identity verification method and device, electronic equipment and computer readable storage medium
CN111915313B (en) Digital asset transfer control method, device and communication system for blockchain

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
GR01 Patent grant
GR01 Patent grant