CN110727735B - Method, device and equipment for cooperatively completing task event based on block chain technology - Google Patents

Method, device and equipment for cooperatively completing task event based on block chain technology Download PDF

Info

Publication number
CN110727735B
CN110727735B CN201910989843.1A CN201910989843A CN110727735B CN 110727735 B CN110727735 B CN 110727735B CN 201910989843 A CN201910989843 A CN 201910989843A CN 110727735 B CN110727735 B CN 110727735B
Authority
CN
China
Prior art keywords
node
event
task
blockchain
donation
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
CN201910989843.1A
Other languages
Chinese (zh)
Other versions
CN110727735A (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.)
Tencent Technology Shenzhen Co Ltd
Shenzhen Tencent Network Information Technology Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201910989843.1A priority Critical patent/CN110727735B/en
Publication of CN110727735A publication Critical patent/CN110727735A/en
Application granted granted Critical
Publication of CN110727735B publication Critical patent/CN110727735B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • 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
    • G06Q10/00Administration; Management
    • G06Q10/06Resources, workflows, human or project management; Enterprise or organisation planning; Enterprise or organisation modelling
    • G06Q10/063Operations research, analysis or management
    • G06Q10/0631Resource planning, allocation, distributing or scheduling for enterprises or organisations
    • 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
    • G06Q10/00Administration; Management
    • G06Q10/06Resources, workflows, human or project management; Enterprise or organisation planning; Enterprise or organisation modelling
    • G06Q10/063Operations research, analysis or management
    • G06Q10/0631Resource planning, allocation, distributing or scheduling for enterprises or organisations
    • G06Q10/06316Sequencing of tasks or work
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/30Computing systems specially adapted for manufacturing

Landscapes

  • Business, Economics & Management (AREA)
  • Engineering & Computer Science (AREA)
  • Human Resources & Organizations (AREA)
  • Strategic Management (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Economics (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Development Economics (AREA)
  • Educational Administration (AREA)
  • Databases & Information Systems (AREA)
  • Game Theory and Decision Science (AREA)
  • Marketing (AREA)
  • Operations Research (AREA)
  • Quality & Reliability (AREA)
  • Tourism & Hospitality (AREA)
  • General Business, Economics & Management (AREA)
  • General Engineering & Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Computing Systems (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)

Abstract

The application discloses a method, a device and equipment for cooperatively completing task events based on a blockchain technology, and belongs to the field of computer networks. The method is applied to a first node corresponding to a main blockchain and a second node corresponding to a side blockchain, and comprises the following steps: the first node stores the received task event into a main blockchain through a commercial value proof consensus protocol; the first node sends the task event to the second node through a bidirectional anchoring mechanism; the second node stores the task event into a side block chain through a consensus mechanism, and intelligent contracts are stored in the side block chain; when the task event meets the completion condition, the second node calls the intelligent contract to cooperate with the first node to complete the task event, and the second node sends the completed task event to the first node through a bidirectional anchoring mechanism; the first node stores the completed task event into the master blockchain via a commercial proof of value consensus protocol.

Description

Method, device and equipment for cooperatively completing task event based on block chain technology
Technical Field
The present invention relates to the field of computer networks, and in particular, to a method, an apparatus, and a device for cooperatively completing task events based on a blockchain technology.
Background
In the process of enterprise or organization operation, some work tasks are not independently finished by the enterprise or organization, and other organizations, other enterprises or individuals are required to finish the work tasks cooperatively, namely, outsourcing service is carried out on the work tasks. With the development of internet technology, crowdsourcing services, which are services that enterprises or institutions enjoy outsourcing internal work tasks in a free voluntary form to unspecified (and often large) mass volunteers, are derived from outsourcing services.
Some crowdsourcing platforms are created by crowdsourcing services that provide the aforementioned crowdsourcing services to businesses or institutions. For example, some small enterprises do not have the capability of independently developing software, work tasks for code development can be published on a crowdsourcing platform, related professionals can bear all or part of the work tasks, the work tasks are completed in cooperation with the enterprises, and when the work tasks are completed, the enterprises pay the related professionals, namely, the enterprises and the related professionals complete a transaction.
Based on the above situation, the crowd-sourced platform manages the relevant information in the collaboration process, so that the information management mode is centralized, and the data corresponding to the information is easy to tamper.
Disclosure of Invention
The embodiment of the application provides a method, a device and equipment for cooperatively completing task events based on a blockchain technology, which can solve the problem that the mode of cooperative task information management is centralized in the related technology, so that data corresponding to the information is easy to tamper. The technical scheme is as follows:
according to one aspect of the application, a method, a device and equipment for cooperatively completing task events based on a blockchain technology are provided, wherein the method is applied to at least one node in a blockchain system, the blockchain system comprises a first node corresponding to a main blockchain and a second node corresponding to a side blockchain, and the method comprises the following steps:
the first node stores the received task event into the main blockchain through a commercial value proof consensus protocol, wherein the task event is provided by a task subject, and the task subject is a subject object for creating a task;
the first node sends the task event to the second node through a bidirectional anchoring mechanism;
the second node stores the task event into the side block chain through a consensus mechanism, wherein an intelligent contract is stored in the side block chain;
When the task event meets a completion condition, the second node calls the intelligent contract to cooperate with the first node to complete the task event, and the second node sends the completed task event to the first node through the bidirectional anchoring mechanism;
the first node stores the completed task event into the master blockchain via the commercial proof consensus protocol.
According to another aspect of the present application, there is provided an apparatus for collaboratively completing a task event based on a blockchain technique, the apparatus being provided at least one node in a blockchain system including a first node corresponding to a main blockchain and a second node corresponding to a side blockchain, the apparatus comprising:
the first storage module is used for storing the received task event into the main blockchain through a commercial value proving consensus protocol, wherein the task event is provided by a task main body, and the task main body is a main body object for creating a task;
the first sending module is used for sending the task event to the second node through a bidirectional anchoring mechanism;
the second storage module is used for storing the task event into the side block chain through a consensus mechanism, wherein the side block chain stores intelligent contracts;
The calling module is used for calling the intelligent contract to cooperate with the first node to complete the task event when the task event meets the completion condition, and the second sending module is used for sending the completed task event to the first node through the bidirectional anchoring mechanism;
the first storage module is configured to store the completed task event into the master blockchain through the commercial value proof consensus protocol.
According to another aspect of the present application, there is provided a computer device comprising a processor and a memory having stored therein at least one instruction, at least one program, code set or instruction set loaded and executed by the processor to implement a method of co-operating to accomplish a task event based on blockchain techniques as described in the above aspects.
According to another aspect of the present application, there is provided a computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements a method of collaboratively completing task events based on blockchain technology as described in the above aspects.
The beneficial effects that technical scheme that this application embodiment provided include at least:
based on a main blockchain and a side blockchain of the blockchain system, a task event is sent to a second node corresponding to the side blockchain through a first node corresponding to the main blockchain, the second node invokes an intelligent contract to cooperate with the first node to complete the task event, the completed task event is sent to the first node, and the first node stores the completed task event into the main blockchain. Based on the characteristics of the blockchain technology, the information corresponding to the task event is prevented from being tampered, for example, the flow direction of each fund can be clearly inquired based on the donation event carried out by the blockchain technology. And the first node corresponding to the main blockchain and the second node corresponding to the side blockchain cooperate to complete the task event, so that the efficiency of completing the task event can be improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a block diagram of a distributed system as provided by one exemplary embodiment of the present application as applied to a blockchain system;
FIG. 2 is a schematic diagram of a block structure provided in an exemplary embodiment of the present application;
FIG. 3 is a block diagram of an implementation environment provided by an exemplary embodiment of the present application;
FIG. 4 is a block diagram of a server provided by an exemplary embodiment of the present application;
FIG. 5 is a flowchart of a method for collaboratively completing a task event based on blockchain technology provided by an exemplary embodiment of the present application;
FIG. 6 is a flowchart of a method for collaboratively completing a task event based on blockchain technology provided in another exemplary embodiment of the present application;
fig. 7 is a flow chart of a method of collaboratively completing a donation event provided by an exemplary embodiment of the present application;
FIG. 8 is a flowchart of a method for collaborative completion authentication events provided in one exemplary embodiment of the present application;
FIG. 9 is a flowchart of a method for collaboratively completing credit events provided by an exemplary embodiment of the present application;
FIG. 10 is a schematic diagram of a platform for collaborative completion of task events provided by an exemplary embodiment of the present application;
FIG. 11 is a schematic diagram of a side blockchain ecological cycle provided in an exemplary embodiment of the present application;
FIG. 12 is a schematic block chain system architecture provided in one exemplary embodiment of the present application;
FIG. 13 is a block diagram of an apparatus for collaboratively completing task events based on blockchain technology, as provided by an exemplary embodiment of the present application.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the present application more apparent, the embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
First, terms involved in the embodiments of the present application will be described:
blockchain (Blockchain): refers to an intelligent peer-to-peer network that uses distributed databases to identify, disseminate, and document information. The blockchain technology is based on a decentralised peer-to-peer network, and combines the cryptography principle, time sequence data and a consensus mechanism by using an open source program, so that the continuity and persistence of each node in a distributed database are ensured, information can be verified and traced in real time, but is difficult to tamper and cannot be shielded, and the blockchain forms a sharing system with high privacy, high efficiency and safety. Each data block in the blockchain contains information of a batch of network transactions, and the information is used for verifying the validity (anti-counterfeiting) of the information and generating a next block. The blockchain may include a blockchain underlying platform, platform product services, and an application services layer. A blockchain is a chained data structure which is formed by combining data blocks in a sequential connection mode according to a time sequence, and is mainly used for solving the trust and security problems of transactions.
Blockchain techniques include a master blockchain technique (Parent chain) and a side blockchain technique (Sidechain). The side blockchain refers to all blockchains in the blockchain that follow a side blockchain protocol, which is relatively speaking, and the main blockchain refers to a protocol that allows transaction information to be securely transferred from the main blockchain to the side blockchain (or other blockchain) and from the side blockchain (or other blockchain) back to the main blockchain, which includes a bi-directional anchoring mechanism (Two-way-peg). The side blockchain is an independent blockchain, and functions of shared account book, consensus mechanism, transaction type, intelligent contract and the like are supported on the side blockchain.
Intelligent contract: the method is characterized in that the method refers to a contract program which is automatically executed according to specific conditions, and is an important way for a user to interact with a blockchain and realize business logic by utilizing the blockchain. The basic idea of the intelligent contracts is that various contract terms can be embedded into the hardware and software used by us, so that an attacker needs great cost to attack, the intelligent contracts are diffused and stored in a blockchain by the common participation of multiparty users in customizing and utilizing a Peer-to-Peer (P2P) network, and the intelligent combination of the blockchain construction is automatically executed under the triggering condition. For example, each organization may access the data storage system through smart contracts on a blockchain deployed in a server to use the data storage and data querying functions provided by the data storage system. Smart contracts are essentially a set of conventions that are defined, propagated, verified, or executed in digital form, including that contract participants can execute conventions in smart contracts, which also allow trusted transactions to be made without third parties, and which transactions are traceable and irreversible. The smart contracts include at least one of static smart contracts and dynamic smart contracts. For example, according to the method for collaboratively completing task events based on the blockchain technology, the two collaborators need to execute the steps of completing task events, issuing rights and interests certification and the like according to the regulations of the intelligent contracts.
The application provides a method for completing task events based on the collaboration of a blockchain technology, which is based on a main blockchain and a side blockchain of a blockchain system, completes task events by the collaboration of the main blockchain of the side blockchain, and discloses task information in the collaboration process, and data corresponding to the information is not easy to tamper.
The system according to the embodiments of the present application may be a distributed system formed by connecting a client and a plurality of nodes (any form of computing device in an access network, such as a server and a user terminal) through a form of network communication.
Taking the distributed system as an example of a blockchain system, referring to fig. 1, fig. 1 is a schematic structural diagram of a distributed system 100 applied to the blockchain system according to an exemplary embodiment of the present application, the distributed system is formed by a plurality of nodes 200 (any type of computing devices in an access network, such as servers and user terminals) and clients 300, a P2P network is formed between the nodes, and a P2P protocol is an application layer protocol running on top of a transmission control protocol (TCP, transmission Control Protocol) protocol. In a distributed system, any machine, such as a server, terminal, may be added to become node 200, which includes a hardware layer, an intermediate layer, an operating system layer, and an application layer.
Referring to the functionality of each node 200 in the blockchain system shown in fig. 1, the functions involved include:
1) The node 200 has basic functions for supporting communication between the nodes 200.
The node 200 may have the following functions in addition to the routing function:
2) The application is used for being deployed in a block chain to realize specific service according to actual service requirements, recording data related to the realization function to form recorded data, carrying a digital signature in the recorded data to represent the source of task data, sending the recorded data to other nodes in the block chain system, and adding the recorded data into a temporary block when the source and the integrity of the recorded data are verified by the other nodes.
For example, the services implemented by the application include:
2.1 Wallet for providing electronic money transaction functions including initiating transactions, i.e., sending a transaction record of the current transaction to other nodes in the blockchain system, and after verification by the other nodes, storing record data of the transaction in a temporary block of the blockchain in response to acknowledging that the transaction is valid; the wallet also supports the inquiry of electronic money remaining in the electronic money address. For example, after the nodes of the side blockchain cooperate to complete the task event, the master blockchain issues a proof of interest (e.g., a certificate) to the side blockchain and stores the transaction record in a temporary block of the side blockchain, optionally, the transaction record may also be stored in the temporary block of the master blockchain.
2.2 The shared account book is used for providing the functions of storing, inquiring, modifying and the like of account data, sending record data of the operation on the account data to other nodes in the blockchain system, and after the other nodes verify to be effective, storing the record data into a temporary block as a response for acknowledging that the account data is effective, and also sending confirmation to the node initiating the operation. For example, the task event is a donation event, either of the master blockchains stores the amount of donated good and sponsored object information into the shared ledger, and optionally the side blockchains also stores the amount of donated good and sponsored object information into the shared ledger.
2.3 A computerized agreement that can execute the terms of a contract, implemented by code deployed on a shared ledger for execution when certain conditions are met, for completing automated transactions based on actual business demand codes, such as querying the physical distribution status of the goods purchased by the buyer, transferring the electronic money of the buyer to the merchant's address after the buyer signs for the goods; of course, the smart contract is not limited to executing the contract for the transaction, and may execute a contract that processes the received information. For example, information of both parties of the collaboration, the term of the task event, the equity proof of the task event and the like are specified in the intelligent contract, and when the collaboration task event is completed, the party corresponding to the completed task event receives the corresponding equity proof according to the specification in the intelligent contract.
3) The blockchain comprises a series of blocks (blocks) which are connected with each other according to the generated sequence time, the new blocks are not removed once being added into the blockchain, and record data submitted by nodes in the blockchain system are recorded in the blocks. The blockchain in the present application is a blockchain system that includes a master blockchain that corresponds to at least one node and a side blockchain that corresponds to at least one node.
Referring to fig. 2, fig. 2 is a schematic diagram of a Block Structure according to an exemplary embodiment of the present application, where each Block includes a hash value of a transaction record stored in the Block (hash value of the Block) and a hash value of a previous Block, and the blocks are connected by the hash values to form a Block chain. In addition, the block may include information such as a time stamp at the time of block generation. The blockchain is essentially a decentralised database, and is a series of data blocks which are generated by association using a cryptography method, and each data block contains relevant information for verifying the validity (anti-counterfeiting) of the information and generating the next block.
FIG. 3 illustrates a block chain system architecture diagram provided in one exemplary embodiment of the present application. The system comprises a plurality of servers 101 and a plurality of storage devices 102, wherein the plurality of servers 101 can be configured with the same blockchain, i.e. the plurality of servers 101 can form a blockchain system, and each server 101 is a node in the blockchain system. Optionally, the master blockchain includes at least one node, the side blockchain includes at least one node, and the blockchain system includes a first node corresponding to the master blockchain and a second node corresponding to the side blockchain. The plurality of servers 101 may be a plurality of servers of the same institution or a plurality of servers belonging to different institutions, for example, a server of each department of a hospital may be included in the blockchain system; of course, a charity server, an authentication center server, a credit bureau server, and the like may also be included within the blockchain system. Optionally, the servers are connected through the internet or a local area network. The user of each organization may access the servers of the organization through a terminal 1011, and the plurality of terminal devices 1011 may be electronic devices capable of accessing the plurality of servers 101, which may be computers, smartphones, tablets, or other electronic devices.
Of course, in order to perform services such as security verification and rights management, a CA center (Certificate Authority ) 103 is configured in the blockchain system for storing keys of respective institutions, and respective servers in the blockchain system may acquire keys of respective institutions from the CA center to perform processes such as encryption and decryption of data. The plurality of storage devices 102 are used to provide storage services for the plurality of servers 101, and it should be noted that the plurality of storage devices 102 may constitute a distributed storage system for providing storage data in a distributed form.
Fig. 4 shows a schematic structural diagram of a server according to an exemplary embodiment of the present application. The server may be the server shown in fig. 3. Specifically, the present invention relates to a method for manufacturing a semiconductor device.
The server 400 includes a central processing unit (CPU, central Processing Unit) 401, a system Memory 404 including a random access Memory (RAM, random Access Memory) 402 and a Read Only Memory (ROM) 403, and a system bus 405 connecting the system Memory 404 and the central processing unit 401. The server 400 also includes a basic input/output system (I/O system, input Output System) 406, which facilitates the transfer of information between the various devices within the computer, and a mass storage device 407 for storing an operating system 413, application programs 414 and other program modules 415.
The basic input/output system 406 includes a display 408 for displaying information and an input device 409, such as a mouse, keyboard, etc., for user input of information. Wherein both the display 408 and the input device 409 are coupled to the central processing unit 401 via an input output controller 410 coupled to the system bus 405. The basic input/output system 406 may also include an input/output controller 410 for receiving and processing input from a number of other devices, such as a keyboard, mouse, or electronic stylus. Similarly, the input output controller 410 also provides output to a display screen, a printer, or other type of output device.
The mass storage device 407 is connected to the central processing unit 401 through a mass storage controller (not shown) connected to the system bus 405. The mass storage device 407 and its associated computer-readable medium provide non-volatile storage for the server 400. That is, the mass storage device 407 may include a computer-readable medium (not shown) such as a hard disk or compact disc read-only memory (CD-ROM, compact Disc Read Only Memory) drive.
Computer readable media may include computer storage media and communication media without loss of generality. Computer storage media includes volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data. Computer storage media includes RAM, ROM, erasable programmable read-only memory (EPROM, erasable Programmable Read Only Memory), electrically erasable programmable read-only memory (EEPROM, electrically Erasable Programmable Read Only Memory), flash memory or other solid state memory technology, CD-ROM, digital versatile disks (DVD, digital Versatile Disc) or other optical storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices. Of course, those skilled in the art will recognize that computer storage media are not limited to the ones described above. The system memory 404 and mass storage device 407 described above may be collectively referred to as memory.
According to various embodiments of the present application, the server 400 may also operate by a remote computer connected to the network through a network, such as the Internet. I.e., server 400 may be connected to network 412 through a network interface unit 411 coupled to system bus 405, or other types of networks or remote computer systems (not shown) may be coupled using network interface unit 411.
The memory also includes one or more programs, one or more programs stored in the memory and configured to be executed by the CPU.
FIG. 5 illustrates a flowchart of a method for collaboratively completing task events based on blockchain technology, as provided by an exemplary embodiment of the present application. The method is applicable to at least one node in a blockchain system as shown in fig. 3, the blockchain system including a first node corresponding to a main blockchain and a second node corresponding to a side blockchain, the method comprising the steps of:
in step 501, the first node stores, via a commercial proof of value consensus protocol, a received task event in a master blockchain, the task event being provided by a task principal, the task principal being a principal object that creates a task.
The main blockchain and the side blockchain are two relatively independent blockchains, and the main blockchain and the side blockchain are connected through a bi-directional anchoring mechanism. The first node is any node corresponding to the main blockchain, the commercial value proof consensus protocol (Proof of Business Value, poBV) is one of the delegation share proof (Delegated Proof of Stake, DPoS) consensus mechanisms, and is used for the blockchain system of the business model, and the block producer (i.e. the node) is responsible for creating and signing new blocks, and the number of the new blocks is limited and selected by voting of the elections (i.e. other nodes in the blockchain system).
The task event refers to an event corresponding to a task issued by a task main body, and at least one assistant object is needed to assist the task main body to complete the event corresponding to the task. Optionally, the task subject includes a company, an enterprise, an organization, or any department of a company, an enterprise, an organization, for example, the task subject is a charity. The task event includes: at least one of a donation event, an identification event, a credit event, a loan event, and a transacting financial business event. The embodiments of the application are described by taking task events including donation events, identification events and credit events as examples.
Optionally, the blockchain system includes at least one side blockchain, and one master blockchain may correspond to a plurality of side blockchains. The main blockchain and the side blockchain can be blockchains corresponding to different enterprises or institutions, for example, the main blockchain is a blockchain constructed by company A, and the side blockchain is a blockchain constructed by company B; the master blockchain may also be a blockchain corresponding to a different department of the same enterprise or organization, e.g., the master blockchain is a blockchain built by a data analysis department of the enterprise and the side blockchains are blockchains built by a sales department of the enterprise.
Step 502, a first node sends a task event to a second node through a bi-directional anchoring mechanism.
Optionally, the first node is elected by other nodes on the main blockchain through a commercial proof consensus protocol, and may perform operations of receiving, sending, calling intelligent contracts, storing information, generating new blocks, and the like. The second node is any node corresponding to the side block chain, the side block chain and the main block chain are relatively independent block chains, and the side block chain also supports functions of shared account book, consensus mechanism, intelligent contract and the like.
The task event sending process includes:
1. information corresponding to the task event on the main blockchain is locked;
2. waiting for a confirmation period, namely requiring more nodes to confirm that the information corresponding to the task event is locked on the main blockchain;
3. performing a task event on a side blockchain, the need to provide a proof that characterizes the output of information corresponding to the task event on the side blockchain as the locked task event on the master blockchain;
4. waiting for a period of competition period to prevent the side block chain from branching;
5. information corresponding to the task event may be communicated between nodes corresponding to the side blockchain.
The process is also applicable to the second node corresponding to the side blockchain sending the completed task event to the first node corresponding to the main blockchain.
In step 503, the second node stores the task event in the side blockchain through a consensus mechanism, where the side blockchain stores the smart contract.
Alternatively, the consensus mechanism followed by the side blockchain may be the same as or different from the consensus mechanism followed by the master blockchain, or the consensus mechanism followed by the side blockchain may be a different consensus mechanism in the same type as the consensus mechanism followed by the master blockchain. In one example, the consensus mechanism followed by the master blockchain is a commercial Proof of value consensus protocol, and the consensus mechanism followed by the side blockchain is a Proof of workload consensus mechanism (PoW); in another example, the consensus mechanism followed by the master blockchain is a Proof of equity consensus mechanism (POS), and the consensus mechanism followed by the side blockchain is a delegated Proof of equity consensus mechanism (DPoS).
Optionally, the side blockchain system includes an intelligent contract template library, wherein the intelligent contract template library is used for providing intelligent contract templates for task subjects. The intelligent contract is used for restraining the cooperative relation between the task main body and the object for cooperatively completing the task, and comprises at least one of information of task events, completion deadlines, information of the task main body, information of the cooperative object, rights and interests information of the cooperative object and electronic signatures of the two parties. In one example, the smart contract is a static smart contract, the smart contract specifies that the task event is a raised donation, the completion deadline of the task is one week, the task subject is a charity, the collaboration object is a bank, and there are electronic signatures of the charity and the bank on the smart contract.
In step 504, when the task event meets the completion condition, the second node invokes the intelligent contract to cooperate with the first node to complete the task event.
Optionally, the completion condition is meeting acceptance criteria, or meeting target requirements. In one example, the task event is granting a credit limit to a credit object, the first node is a node corresponding to a bank, the second node is a node corresponding to a credit organization, the first node needs to query the credit level of the credit object through the second node, and when the credit level of the user reaches the credit level of the loan issued, the first node grants the credit limit to the credit object.
Optionally, the first node and the second node respectively complete half of the workload of the task event, or the first node takes on the main workload of the task event (for example, the workload of the first node for completing the task event accounts for 60% of the total workload), or the second node takes on the main workload of the task event.
The second node sends the completed task event to the first node via the bi-directional anchoring mechanism, step 505.
Optionally, the second node is selected by other nodes on the side blockchain through a consensus mechanism, and may perform operations of receiving, sending, calling an intelligent contract, storing information, generating a new block, and the like. The consensus mechanism may be any consensus mechanism. After completing the task event, the second node sends the completion result of the task event to the first node through the bi-directional anchoring mechanism.
The first node stores the completed task event in the master blockchain via the commercial proof of value consensus protocol, step 506.
Optionally, the completed task event corresponds to time, cost, information of the collaboration object, and benefit evidence corresponding to the collaboration object used for completing the task event.
Optionally, when the master block chain receives the completed task event, checking the task event, after checking, storing the task event into a memory pool, and updating a hash tree used for recording the task event; and then updating the update time stamp to be the time of receiving the task event, trying different random numbers, and calculating the characteristic value for a plurality of times, so that the calculated characteristic value can meet the following formula:
SHA256(SHA256(version+prev_hash+merkle_root+ntime+nbits+x))<TARGET
the SHA256 is a eigenvalue algorithm used for calculating eigenvalues, and optionally, the eigenvalue algorithm may also be ECDSASecp256k1; version (version number) is version information of the related block protocol in the block chain; the prev_hash is the block header characteristic value of the parent block of the current block; the merkle_root is a characteristic value of input information; ntime is the update time of the update timestamp; the nbits is the calculation difficulty of the current block, is a fixed value in a period of time, and is determined again after exceeding a fixed period of time; x is a random number; TARGET is a eigenvalue threshold that can be determined from nbits.
When the random number meeting the formula is calculated, the task event is correspondingly stored, a block head and a block theme are generated, a current block is obtained, then other nodes in the block chain system check the newly generated block, and the newly generated block is added into the block chain stored by the newly generated block after the check is completed.
The storage process of the completed task event is also applicable to the process corresponding to the side block chain storage task event and the intelligent contract.
Optionally, when the task event is completed, issuing a benefit proof to the completion object of the task event, wherein the benefit proof is used for representing that the completion object of the task event has completed the corresponding task event.
In summary, based on the main blockchain and the side blockchain of the blockchain system, the task event is sent to the second node corresponding to the side blockchain through the first node corresponding to the main blockchain, the second node invokes the intelligent contract to cooperate with the first node to complete the task event, the completed task event is sent to the first node, and the first node stores the completed task event in the main blockchain. Based on the characteristics of the blockchain technology, the information corresponding to the task event is prevented from being tampered, for example, the flow direction of each fund can be clearly inquired based on the donation event carried out by the blockchain technology. And the first node corresponding to the main blockchain and the second node corresponding to the side blockchain cooperate to complete the task event, so that the efficiency of completing the task event can be improved.
The embodiments of the present application illustrate examples in which the task event includes at least one of a donation event, an identification event, and a credit event. FIG. 6 illustrates a flowchart of a method for collaboratively completing a task event based on blockchain technology provided in another exemplary embodiment of the present application. The method is applicable to at least one node in a blockchain system as shown in fig. 3, the blockchain system including a first node corresponding to a main blockchain and a second node corresponding to a side blockchain, the method comprising the steps of:
in step 601, the first node stores the received task event in the main blockchain through a commercial value proof consensus protocol, the task event being provided by a task subject, the task subject being a subject object for creating a task.
The first node sends a task event to the second node via a bi-directional anchoring mechanism, step 602.
In step 603, the second node stores the task event into the side blockchain through a consensus mechanism, where the side blockchain stores the intelligent contract.
Steps 601 to 603 correspond to the method of steps 501 to 503 shown in fig. 5, and are not described here.
In step 604a, when the donation event satisfies a first condition, the second node invokes the intelligent contract to complete the donation event in cooperation with the first node according to the first completion condition.
Optionally, the first node corresponds to a charity that is a raised good, and the blockchain corresponding to the first node corresponds to at least one charity; the second node corresponds to a donation object, the side blockchain corresponding to the second node corresponds to at least one donation object, or the blockchain system comprises at least one side blockchain, and each side blockchain corresponds to one donation object. Alternatively, the donation object may be a personal account, or a team account, or an enterprise account.
The first completion condition includes at least one of a collection amount reaching a target amount, a sponsored subject meeting the sponsoring condition, corresponding information for collection of money (e.g., source of collection of money and specific amount of money per collection of money), and information corresponding to a subject of the task initiating the collection event. In one example, the donation event is a funding of a lean school sub-set, the first completion condition is that a target amount of ten thousand yuan is reached, the number of subsidized objects is three, and when the donation amount reaches ten thousand yuan, the second node invokes the intelligent contract to cooperate with the first node to complete the donation event according to the first completion condition, and the intelligent contract automatically performs issuing of information corresponding to the donation good to the three subsidized objects.
In step 604b, when the authentication event satisfies the second condition, the second node invokes the smart contract to complete the authentication event in cooperation with the first node according to the second completion condition.
Optionally, the first node corresponds to an object having a game (or antique, or cultural relic), and the blockchain corresponding to the first node includes at least one object having a game; the second node corresponds to an identifier, the side blockchain corresponding to the second node corresponds to at least one identifier, or the deblocking chain system comprises at least one side blockchain, and each side blockchain corresponds to a group of identifiers. Alternatively, the authenticating person may be an individual, or an authenticating team, or an authenticating agency.
The second completion condition includes at least one of information corresponding to the authenticating person, an article to be authenticated, an authentication criterion, an authentication result, and an authentication proof. In one example, the authentication event is an authentication of the porcelain, the authentication result meets a criterion at a second completion condition (e.g., an authentication staff has a practise qualification of a professional authentication agency or the authentication process meets an authentication criterion specified by a country), and when the authenticated porcelain meets the authentication criterion, the second node invokes an intelligent contract to cooperate with the first node to complete the authentication event according to the second completion condition, the intelligent contract automatically performs the authentication result of the authenticated porcelain, if the authentication result is that the porcelain is a counterfeit.
In step 604c, when the credit investigation event satisfies the third condition, the second node invokes the intelligent contract to cooperate with the first node to complete the credit investigation event according to the third completion condition.
Optionally, the first node corresponds to a financial institution (such as a bank), and the blockchain corresponding to the first node corresponds to at least one financial institution; the second node corresponds to a credit mechanism, the side block chain corresponding to the second node corresponds to at least one credit mechanism, or the block chain system comprises at least one side block chain, and each side block chain corresponds to one credit mechanism.
The third completion condition includes at least one of credit rating required for credit reaching of the credit object, information of the credit object (such as name, occupation, credit status in the credit system), and credit type. In one example, the credit investigation event is that a loan amount is granted to the user, the third completion condition is that the credit rating of the user is good, the credit amount can be granted to the user in the form of fifty thousand yuan, and when the credit rating of the user is good, the second node invokes the intelligent contract to cooperate to complete the credit investigation event according to the third completion condition, and the intelligent contract automatically executes the operation of granting the credit amount to the user account corresponding to the user.
Step 605, the second node sends the completed task event to the first node through the bi-directional anchoring mechanism.
The first node stores the completed task event in the master blockchain via the commercial proof consensus protocol, step 606.
Steps 605 to 606 are identical to the method of steps 505 to 506 shown in fig. 5, and will not be described here.
It is understood that the steps 604a, 604b and 604c may be implemented independently, or any two steps may be implemented in combination, such as the steps 604b and 604c may be implemented in combination, or three steps may be implemented in combination.
In summary, different completion conditions are set for different task events, and when the task events meet the corresponding completion conditions, the second node invokes the intelligent contract to cooperate with the first node to complete the task events according to the corresponding completion conditions, thereby improving the efficiency of completing the task events.
The completion of the collaboration donation event, the authentication event, and the credit event are described below, respectively.
The second node invokes the intelligent contract in combination with the donation event to specifically explain that the first node completes the donation event in cooperation with the first node according to the first completion condition. Fig. 7 shows a flowchart of a method of collaborative completion of a donation event provided by an exemplary embodiment of the present application, the method being applicable to at least one node in a blockchain system as shown in fig. 3, the blockchain system including a first node corresponding to a master blockchain and a second node corresponding to a side blockchain, the method comprising the steps of:
In step 701, a second node receives donation task information.
Optionally, the donation task information includes at least one of a donation target amount and a sponsor, the donation task information being sent by the first node to the second node through a bi-directional anchoring mechanism. Optionally, there is a platform (including an application program or a web page, etc.) at the first node that creates the donation event, and a platform for receiving the donation task information at the second node, such as issuing the donation task information (including the status of the donation topic and sponsors) at the charity through the platform that creates the donation event, the enterprise or person querying the donation task information and performing the donation operation on the platform that receives the donation task information.
The second node stores the donation task information into the side blockchain via a consensus mechanism, step 702.
In step 703, when the received donation amount reaches the target amount, the second node invokes the intelligent contract to cooperate with the first node to complete the donation event.
Optionally, the amount of the donation received by the second node and the information corresponding to each amount of the donation (e.g., one thousand yuan for a company a and one thousand yuan for a user B) may be sent by other nodes corresponding to the side blockchain or by the first node corresponding to the main blockchain. Optionally, the second node bears the primary workload of the donation event. Optionally, the master blockchain corresponds to a plurality of side blockchains, which may correspond to blockchains organized by at least one of a charity, banking institution, government department, or a combination thereof. In one example, the blockchain system includes three side blockchains that correspond to charity, banking, government blockchains, respectively, or three side blockchains that correspond to three charity blockchains, respectively.
Optionally, the smart contract is a smart contract template provided in a smart contract template library, or the smart contract is a smart contract created by the task body itself. Alternatively, the task body may customize the smart contract template in a library of smart contract templates, illustratively, a computer used by the task body stores the library of smart contract templates and a platform for customizing the smart contract.
The second node stores the completed donation event into the side blockchain via a consensus mechanism, step 704.
Step 705, the second node sends the completed donation event to the first node via a bi-directional anchoring mechanism.
The first node stores 706 the completed donation event into the master blockchain via the commercial value consensus protocol.
Optionally, when the donation event is completed, any node corresponding to the main blockchain or the side blockchain issues a benefit proof to the completion object of the donation event, for example, a charity issues a love certificate to the donated enterprise.
In summary, the donation event can be completed through the cooperation of the main blockchain and the side blockchain, so that the completion efficiency of the donation event is improved, and the storage pressure of the main blockchain is reduced.
The second node invoking the intelligent contract in conjunction with the donation event specifies that the first node completes the authentication event in accordance with the second completion condition. FIG. 8 illustrates a flow chart of a method of collaborative completion authentication events provided by one exemplary implementation of the present application. The method is applicable to at least one node in a blockchain system as shown in fig. 3, the blockchain system including a first node corresponding to a main blockchain and a second node corresponding to a side blockchain, the method comprising the steps of:
Step 801, a second node receives authentication task information.
Optionally, the authentication task information includes at least one of an authenticated item and an authenticated person, the authentication task information being transmitted by the first node to the second node via a bi-directional anchoring mechanism. Optionally, there is a platform (including an application program or a web page, etc.) on the first node that creates authentication task information, and a platform on the second node that receives authentication task information, such as where an individual issues authentication task information (including an item to be authenticated and a designated authenticator) via the platform that creates an authentication event, and the individual queries the platform that receives authentication task information for the authentication result of the item to be authenticated.
The second node stores the authentication task information into the side blockchain via a consensus mechanism, step 802.
Step 803, when the received authentication result meets the authentication standard, the second node invokes the intelligent contract to cooperate with the first node to complete the authentication event.
Optionally, the authentication result received by the second node is sent by other nodes corresponding to the side blockchain, and may also be sent by the first node corresponding to the main blockchain. Illustratively, the result of the authentication of the article being authenticated by the authentication mechanism A is that the article is a counterfeit, and the result of the authentication of the article being authenticated by the authentication mechanism B is that the article is a counterfeit. Optionally, the second node bears the main workload of authenticating the event. Alternatively, the master blockchain may correspond to a plurality of side blockchains, which may correspond to blockchains corresponding to a plurality of certification authorities, or to blockchains corresponding to certification personnel. In one example, the blockchain system includes three side blockchains that correspond to blockchains of three certification authorities, respectively.
The second node stores the completed authentication event in the side blockchain through a consensus mechanism, step 804.
The second node sends the completed authentication event to the first node via the bi-directional anchoring mechanism, step 805.
The first node stores 806 the completed authentication event in the master blockchain via the commercial value consensus protocol.
Optionally, when the authentication event is completed, any node corresponding to the main blockchain or the side blockchain issues a benefit proof to the completion correspondence of the authentication event, for example, the authentication organization a and the authentication organization B issue authentication certificates to the users.
In summary, the identification event can be completed through the cooperation of the main blockchain and the side blockchain, so that the completion efficiency of the identification event and the accuracy of the identification result are improved, and the storage pressure of the main blockchain is reduced.
And the second node invokes the intelligent contract in combination with the donation event to concretely explain the completion credit collection event of the first node in cooperation with the third completion condition. FIG. 9 illustrates a flow chart of a method for collaborative completion credit event provided by one exemplary implementation of the present application. The method is applicable to at least one node in a blockchain system as shown in fig. 3, the blockchain system including a first node corresponding to a main blockchain and a second node corresponding to a side blockchain, the method comprising the steps of:
In step 901, the second node receives credit task information.
Optionally, the credit investigation task information comprises at least one of credit investigation objects, credit investigation institutions and credit grades, the credit investigation task information is sent to the second node by the first node through a bidirectional anchoring mechanism, optionally, a platform (including an application program or a webpage and the like) for creating the credit investigation task information is arranged on the first node, and a platform for receiving the credit investigation task information is arranged on the second node. If the user handles loan to the bank, the bank issues credit investigation task information (including credit investigation type, credit investigation object information, credit grade and the like) on the platform for creating credit investigation task information, and the credit investigation mechanism issues the stored information of the credit investigation object and the credit investigation type through the platform for receiving the credit investigation task information.
In step 902, the second node stores credit task information into the side blockchain through a consensus mechanism.
In step 903, when the received credit rating meets the credit rating standard, the second node invokes the intelligent contract to cooperate with the first node to complete the credit rating event.
Alternatively, the information of the credit type and the credit object received by the second node (e.g., the credit level of the user K at the credit type a is a and the credit level of the user K at the credit type b is b) may be sent by other nodes corresponding to the side blockchain or the first node corresponding to the main blockchain. Optionally, the second node bears the main workload of the credit event. Optionally, the master blockchain corresponds to a plurality of side blockchains and may correspond to blockchains corresponding to a plurality of credit authorities. In one example, the blockchain system includes three side blockchains that correspond to the credit bureau L, the credit bureau M, and the credit bureau N, respectively.
In step 904, the second node stores the completed credit event in the side blockchain via a consensus mechanism.
In step 905, the second node sends the completed credit event to the first node through the bi-directional anchoring mechanism.
At step 906, the first node stores the completed credit event in the master blockchain via the commercial value consensus protocol.
Optionally, when the credit event is completed, any node corresponding to the main blockchain or the side blockchain issues a benefit proof to a completion object of the donation event, for example, a bank issues a certificate corresponding to the credit inquiry result to the credit organization.
In summary, the credit investigation event can be completed through the cooperation of the main blockchain and the side blockchain, so that the completion efficiency of the credit investigation event is improved, the completeness of the credit investigation file of the user is ensured, and the storage pressure of the main blockchain is reduced.
The structure of the platform for collaborative completion task event will be described with reference to fig. 10, and the platform for collaborative completion task event 110 includes: the interface layer 111, the service layer 112, the network layer 113 and the data layer 114, the interface layer 111 is used for providing interfaces for various application programs, front-end interfaces and software development kits (Software Development Kit, SDK); the service layer 112 is used for supporting a bi-directional anchoring mechanism of the main blockchain and the side blockchain, storing functions corresponding to intelligent contracts or intelligent contract template libraries, and providing asset gateways for different types of transactions; the network layer 113 is used for supporting the construction of the network structure of the main blockchain and the side blockchain, and providing a verification mechanism and a consensus mechanism between nodes; the data layer 114 is used to store data in the blockchain system and platform, including blockdata, hash functions, rights and interests proving structures, digital signatures (or electronic signatures), moek's tree, and distributed databases, among others.
The side blockchain is described in connection with fig. 11. The side blockchain ecological cycle 100 includes a crowdsourcing platform 101 and an e-commerce platform 102, the crowdsourcing platform 101 and the e-commerce platform 102 cooperate to complete a task event based on an intelligent contract. Alternatively, the crowdsourcing platform 101 may also be a platform corresponding to a donated object, or an authentication mechanism, or a credit investigation mechanism, and the e-commerce platform 102 may also be a platform corresponding to a sponsored object, or a platform corresponding to receiving information of an authenticated item, or a banking mechanism. Optionally, the crowdsourcing platform 101 corresponds to one side blockchain or a plurality of side blockchains, task events are completed between nodes corresponding to the side blockchains in a business collaboration mode, workflow information of the crowdsourcing platform is stored in the side blockchains, and the e-commerce platform 102 corresponds to a main blockchain or the side blockchains. In one example, the e-commerce platform 102 corresponds to a master blockchain, and the nodes corresponding to the master blockchain include a risk system for performing operations such as risk assessment, asset mapping, etc. on the task event and issuing a benefit proof to the completion object of the task event.
The structure of the main blockchain 201 and the side blockchain 202 in the blockchain system 200 is described in connection with fig. 12. The side blockchain 201 is a blockchain built for an enterprise, organization, or individual, and corresponds to a private chain of the enterprise, organization, or individual, and can only view or store data after acquiring rights. The side block chains comprise private information of enterprises, institutions or individuals, such as videos, images and texts, the private information is encrypted through an encryption algorithm, so that the side block chains are mutually isolated, workflow transmission across institutions can be realized only after rights are acquired, optionally, enterprise accounts can be in an anonymous state by default, and in the workflow transmission across institutions, information in sub-processes is opaque to other enterprises in a default state. The main blockchain 202 includes public information, such as rules, characters, intelligent contracts, and the like, and encryption operation is not needed, so that the efficiency of completing task events by the two parties in cooperation is improved, and the information carrying the task events is quickly stored in the blockchain.
The following are device embodiments of the present application, which may be used to perform method embodiments of the present application. For details not disclosed in the device embodiments of the present application, please refer to the method embodiments of the present application.
FIG. 13 illustrates an apparatus for collaboratively completing task events based on blockchain technology provided by an exemplary embodiment of the present application, the apparatus being disposed at least one node in a blockchain system that includes a first node corresponding to a master blockchain and a second node corresponding to a side blockchain, the apparatus comprising:
a first storage module 1310, configured to store, by using a commercial value proof consensus protocol, a received task event into a main blockchain, where the task event is provided by a task subject, and the task subject is a subject object for creating a task;
a first sending module 1320, configured to send the task event to the second node through a bi-directional anchoring mechanism;
the second storage module 1330 is configured to store the task event into a side blockchain through a consensus mechanism, where an intelligent contract is stored;
a calling module 1340 for calling the intelligent contract to cooperate with the first node to complete the task event when the task event satisfies the completion condition, and a second sending module 1350 for sending the completed task event to the first node through a bi-directional anchoring mechanism;
The first storage module 1310 is configured to store completed task events into the main blockchain through a commercial value proof consensus protocol.
In an alternative embodiment, the task event includes at least one of a donation event, an identification event, and a credit event;
the calling module 1340 is configured to call the intelligent contract to cooperate with the first node to complete the donation event according to the first completion condition when the donation event meets the first completion condition; or when the authentication event meets the second completion condition, calling the intelligent contract to cooperate with the first node to complete the authentication event according to the second completion condition; or when the credit investigation event meets the third completion condition, calling the intelligent contract to cooperate with the first node to complete the credit investigation event according to the third completion condition.
In an alternative embodiment, the apparatus includes a receiving module 1360;
the receiving module 1360 is configured to receive donation task information, where the donation task information includes at least one of a donation target amount and a sponsor, and the donation task information is sent by the first node to the second node through a bidirectional anchoring mechanism;
the second storage module 1330 is configured to store donation task information into the side blockchain through a consensus mechanism;
The calling module 1340 is configured to call the intelligent contract to cooperate with the first node to complete a donation event when the received donation amount reaches a target donation amount, and the second storage module 1330 is configured to store the completed donation event into the side blockchain through a consensus mechanism;
the second sending module 1350 is configured to send the completed donation event to the first node through a bi-directional anchoring mechanism, and the first storing module 1310 is configured to store the completed donation event into the main blockchain through a commercial proof consensus protocol.
In an alternative embodiment, the apparatus includes a receiving module 1360;
the receiving module 1360 is configured to receive authentication task information, where the authentication task information includes at least one of an article to be authenticated and an authenticating person, and the authentication task information is sent by the first node to the second node through a bi-directional anchoring mechanism;
the second storage module 1330 is configured to store authentication task information into the side blockchain through a consensus mechanism;
the calling module 1340 is configured to call the intelligent contract to cooperate with the first node to complete the authentication event when the received authentication result meets the authentication standard, and the second storage module 1330 is configured to store the completed authentication event into the side blockchain through a consensus mechanism;
The second sending module 1350 is configured to send the completed authentication event to the first node through a bi-directional anchoring mechanism, and the first storing module 1310 is configured to store the completed authentication event into the master blockchain through a commercial proof of value consensus protocol.
In an alternative embodiment, the apparatus includes a receiving module 1360;
the receiving module 1360 is configured to receive credit investigation task information by the second node, where the credit investigation task information includes at least one of a credit investigation object, a credit investigation mechanism and a credit rating, and the credit investigation task information is sent by the first node to the second node through a bidirectional anchoring mechanism;
the second storage module 1330 is configured to store credit task information into the side blockchain through a consensus mechanism;
the calling module 1340 is configured to call the intelligent contract collaboration first node to complete the credit investigation event when the received credit rating meets the credit investigation standard, and the second storage module 1350 is configured to store the completed credit investigation event into the side blockchain through a consensus mechanism;
the second sending module 1350 is configured to send the completed authentication event to the first node through a bi-directional anchoring mechanism, and the first storing module 1310 is configured to store the completed authentication event into the master blockchain through a commercial proof of value consensus protocol.
In an alternative embodiment, a library of intelligent contract templates is included in the side blockchain for providing templates of intelligent contracts for the task agents.
In an optional embodiment, the first sending module is configured to issue, when the task event is completed, a benefit proof to a completion object of the task event, where the benefit proof is used to characterize that the completion object of the task event has completed the corresponding task event.
Embodiments of the present application also provide a computer device, where the computing handset device includes a processor and a memory, where the memory stores at least one instruction, at least one program, a code set, or an instruction set, where the at least one instruction, the at least one program, the code set, or the instruction set is loaded and executed by the processor to implement the method for performing task events based on blockchain technology collaboration provided by the above-mentioned method embodiments.
Embodiments of the present application further provide a computer readable storage medium, where a computer program is stored, where the computer program, when executed by a processor, implements the method for performing task events based on blockchain technology collaboration provided in the foregoing method embodiments.
It should be understood that references herein to "a plurality" are to two or more. "and/or", describes an association relationship of an association object, and indicates that there may be three relationships, for example, a and/or B, and may indicate: a exists alone, A and B exist together, and B exists alone. The character "/" generally indicates that the context-dependent object is an "or" relationship.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program for instructing relevant hardware, where the program may be stored in a computer readable storage medium, and the storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The foregoing description of the preferred embodiments is merely exemplary in nature and is in no way intended to limit the invention, since it is intended that all modifications, equivalents, improvements, etc. that fall within the spirit and scope of the invention.

Claims (15)

1. A method of collaboratively completing a task event based on blockchain technology, the method being applied to at least one node in a blockchain system, the blockchain system including a first node corresponding to a main blockchain and a second node corresponding to a side blockchain, the main blockchain and the side blockchain being connected by a bi-directional anchoring mechanism, the main blockchain and the side blockchain being blockchains corresponding to different enterprises or institutions, or different departments of the same enterprise, or different departments of the same institution, the method comprising:
The first node stores the received task event into the main blockchain through a commercial value proof consensus protocol, wherein the task event is provided by a task subject, and the task subject is a subject object for creating a task;
the first node sends the task event to the second node through the bidirectional anchoring mechanism, the task event corresponds to proving information, the proving information is used for representing that the information corresponding to the task event on the side blockchain is output of the information corresponding to the task event locked on the main blockchain, and the locked task event is confirmed by the node on the main blockchain;
the second node stores the task event into the side block chain through a consensus mechanism, wherein an intelligent contract is stored in the side block chain;
when the task event meets a completion condition, the second node calls the intelligent contract to cooperate with the first node to complete the task event, the second node sends the completed task event to the first node through the bidirectional anchoring mechanism, and the intelligent contract is used for restraining a cooperation relation between the task main body and an object of a cooperation completion task corresponding to the second node;
The first node stores the completed task event into the master blockchain via the commercial proof consensus protocol.
2. The method of claim 1, wherein the task event comprises at least one of a donation event, an identification event, and a credit event;
and when the task event meets the completion condition, the second node calls the intelligent contract to cooperate with the first node to complete the task event, and the method comprises the following steps:
when the donation event meets a first completion condition, the second node invokes the intelligent contract to cooperate with the first node to complete the donation event according to the first completion condition;
or alternatively, the first and second heat exchangers may be,
when the authentication event meets a second completion condition, the second node calls the intelligent contract to cooperate with the first node to complete the authentication event according to the second completion condition;
or alternatively, the first and second heat exchangers may be,
and when the credit investigation event meets a third completion condition, the second node calls the intelligent contract to cooperate with the first node to complete the credit investigation event according to the third completion condition.
3. The method of claim 2, wherein the second node invoking the smart contract to cooperate with the first node to complete the donation event according to the first completion condition when the donation event satisfies a first completion condition comprises:
The second node receives donation task information including at least one of a donation target amount and a sponsor, the donation task information being sent by the first node to the second node through the bi-directional anchoring mechanism;
the second node stores the donation task information into the side blockchain through the consensus mechanism;
when the received donation amount reaches the donation target amount, the second node invokes the intelligent contract to cooperate with the first node to complete the donation event, and the second node stores the completed donation event into the side blockchain through the consensus mechanism;
the second node sends the completed donation event to the first node through the bi-directional anchoring mechanism, the first node storing the completed donation event into the master blockchain through the commercial proof of value consensus protocol.
4. The method of claim 2, wherein the second node invoking the smart contract to cooperate with the first node to complete the authentication event according to a second completion condition when the authentication event satisfies the second completion condition comprises:
The second node receiving authentication task information, the authentication task information including at least one of an item to be authenticated and an authenticating person, the authentication task information being transmitted by the first node to the second node through the bi-directional anchoring mechanism;
the second node stores the authentication task information into the side blockchain through the consensus mechanism;
when the received authentication result meets the authentication standard, the second node calls the intelligent contract to cooperate with the first node to complete the authentication event, and the second node stores the completed authentication event into the side blockchain through the consensus mechanism;
the second node sends the completed authentication event to the first node through the bi-directional anchoring mechanism, the first node storing the completed authentication event into the master blockchain through the proof of commercial consensus protocol.
5. The method of claim 2, wherein the second node invoking the smart contract to cooperate with the first node to complete the credit event according to a third completion condition when the credit event satisfies the third completion condition comprises:
The second node receives credit investigation task information, wherein the credit investigation task information comprises at least one of credit investigation objects, credit investigation institutions and credit grades, and the credit investigation task information is sent to the second node by the first node through the bidirectional anchoring mechanism;
the second node stores the credit investigation task information into the side block chain through the consensus mechanism;
when the received credit level meets credit rating standards, the second node calls the intelligent contract to cooperate with the first node to finish the credit rating event, and the second node stores the finished credit rating event into the side block chain through a consensus mechanism;
the second node sends the completed authentication event to the first node through the bi-directional anchoring mechanism, the first node storing the completed authentication event into the master blockchain through the proof of commercial consensus protocol.
6. The method of any one of claims 1 to 5, wherein a library of smart contract templates is included in the side blockchain, the library of smart contract templates being used to provide templates of the smart contracts for the task body.
7. The method according to any one of claims 1 to 5, further comprising:
and when the task event is completed, issuing a benefit proof to the completion object of the task event, wherein the benefit proof is used for representing that the completion object of the task event has completed the corresponding task event.
8. An apparatus for cooperatively completing a task event based on a blockchain technology, wherein the apparatus is disposed at least one node in a blockchain system, the blockchain system including a first node corresponding to a main blockchain and a second node corresponding to a side blockchain, the main blockchain and the side blockchain being connected by a bi-directional anchoring mechanism, the main blockchain and the side blockchain being blockchains corresponding to different enterprises or institutions, or different departments of the same enterprise, or different departments of the same institution, the apparatus comprising:
the first storage module is used for storing the received task event into the main blockchain through a commercial value proving consensus protocol, wherein the task event is provided by a task main body, and the task main body is a main body object for creating a task;
a first sending module, configured to send, by using the bi-directional anchoring mechanism, the task event to the second node, where the task event corresponds to proof information, where the proof information is used to characterize that information corresponding to the task event on the side blockchain is output of information corresponding to the task event that is locked on the main blockchain, and the locked task event is confirmed by a node on the main blockchain;
The second storage module is used for storing the task event into the side block chain through a consensus mechanism, wherein the side block chain stores intelligent contracts;
the calling module is used for calling the intelligent contract to cooperate with the first node to complete the task event when the task event meets the completion condition, and the second sending module is used for sending the completed task event to the first node through the bidirectional anchoring mechanism, wherein the intelligent contract is used for restraining the cooperation relation between the task main body and the object of the cooperation completion task corresponding to the second node;
the first storage module is configured to store the completed task event into the master blockchain through the commercial value proof consensus protocol.
9. The apparatus of claim 8, wherein the task event comprises at least one of a donation event, an identification event, and a credit event;
the calling module is used for calling the intelligent contract to cooperate with the first node to complete the donation event according to the first completion condition when the donation event meets the first completion condition;
or alternatively, the first and second heat exchangers may be,
the calling module is used for calling the intelligent contract to cooperate with the first node to complete the authentication event according to the second completion condition when the authentication event meets the second completion condition;
Or alternatively, the first and second heat exchangers may be,
and the calling module is used for calling the intelligent contract to cooperate with the first node to complete the credit investigation event according to the third completion condition when the credit investigation event meets the third completion condition.
10. The apparatus of claim 9, wherein the apparatus comprises a receiving module;
the receiving module is used for receiving donation task information, the donation task information comprises at least one of a donation target amount and a sponsor, and the donation task information is sent to the second node by the first node through the bidirectional anchoring mechanism;
the second storage module is used for storing the donation task information into the side blockchain through the consensus mechanism;
the calling module is used for calling the intelligent contract to cooperate with the first node to complete the donation event when the received donation amount reaches the donation target amount, and the second storage module is used for storing the completed donation event into the side blockchain through the consensus mechanism;
the second sending module is configured to send the completed donation event to the first node through the bi-directional anchoring mechanism, and the first storing module is configured to store the completed donation event into the master blockchain through the commercial value proof consensus protocol.
11. The apparatus of claim 9, wherein the apparatus comprises a receiving module;
the receiving module is configured to receive authentication task information, where the authentication task information includes at least one of an article to be authenticated and an authenticating person, and the authentication task information is sent by the first node to the second node through the bidirectional anchoring mechanism;
the second storage module is used for storing the identification task information into the side block chain through the consensus mechanism;
the calling module is used for calling the intelligent contract to cooperate with the first node to finish the authentication event when the received authentication result meets the authentication standard, and the second storage module is used for storing the finished authentication event into the side blockchain through the consensus mechanism;
the second sending module is configured to send the completed authentication event to the first node through the bi-directional anchoring mechanism, and the first storing module is configured to store the completed authentication event into the master blockchain through the commercial proof consensus protocol.
12. The apparatus of claim 9, wherein the apparatus comprises a receiving module;
The receiving module is configured to receive credit investigation task information by the second node, where the credit investigation task information includes at least one of a credit investigation object, a credit investigation mechanism and a credit rating, and the credit investigation task information is sent to the second node by the first node through the bidirectional anchoring mechanism;
the second storage module is used for storing the credit investigation task information into the side block chain through the consensus mechanism;
the calling module is used for calling the intelligent contract to cooperate with the first node to finish the credit investigation event when the received credit rating meets the credit investigation standard, and the second storage module is used for storing the finished credit investigation event into the side block chain through the consensus mechanism;
the second sending module is configured to send the completed authentication event to the first node through the bi-directional anchoring mechanism, and the first storing module is configured to store the completed authentication event into the master blockchain through the commercial proof consensus protocol.
13. The apparatus according to any one of claims 8 to 12, wherein the first sending module is configured to issue, when the task event is completed, a benefit proof to a completion object of the task event, the benefit proof being configured to characterize that the completion object of the task event has completed a corresponding task event.
14. A computer device comprising a processor and a memory having stored therein at least one instruction, at least one program, code set, or instruction set that is loaded and executed by the processor to implement the method of co-operating to accomplish a task event based on blockchain technology as claimed in any of claims 1 to 7.
15. A computer readable storage medium having stored thereon a computer program which when executed by a processor implements a method of co-operating with task events based on blockchain technology as in any of claims 1 to 7.
CN201910989843.1A 2019-10-17 2019-10-17 Method, device and equipment for cooperatively completing task event based on block chain technology Active CN110727735B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910989843.1A CN110727735B (en) 2019-10-17 2019-10-17 Method, device and equipment for cooperatively completing task event based on block chain technology

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910989843.1A CN110727735B (en) 2019-10-17 2019-10-17 Method, device and equipment for cooperatively completing task event based on block chain technology

Publications (2)

Publication Number Publication Date
CN110727735A CN110727735A (en) 2020-01-24
CN110727735B true CN110727735B (en) 2023-07-25

Family

ID=69220259

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910989843.1A Active CN110727735B (en) 2019-10-17 2019-10-17 Method, device and equipment for cooperatively completing task event based on block chain technology

Country Status (1)

Country Link
CN (1) CN110727735B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111355718B (en) * 2020-02-25 2022-04-15 中国工商银行股份有限公司 Block chain intelligent contract cloud deployment system and method
CN112541037B (en) * 2020-11-25 2022-09-06 福建师范大学 Spatial crowdsourcing method and terminal based on block chain and deep reinforcement learning

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20190002078A (en) * 2017-06-29 2019-01-08 주식회사 아이피미라클 Easy fund raising method and system based on open banking api
CN110914857A (en) * 2019-04-08 2020-03-24 阿里巴巴集团控股有限公司 Product promotion using intelligent contracts in blockchain networks
CN111448781A (en) * 2019-07-11 2020-07-24 阿里巴巴集团控股有限公司 Shared blockchain data storage

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107368259B (en) * 2017-05-25 2020-07-10 创新先进技术有限公司 Method and device for writing service data into block chain system
CN108764925A (en) * 2018-05-31 2018-11-06 李沁福 A kind of synthesis business platform based on block chain technology
CN110163607A (en) * 2019-05-10 2019-08-23 南京邮电大学 The personal reference method of college student number based on block chain intelligence contract
CN110322196A (en) * 2019-06-21 2019-10-11 迅鳐成都科技有限公司 A kind of warehouse receipt reference management platform based on block chain

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20190002078A (en) * 2017-06-29 2019-01-08 주식회사 아이피미라클 Easy fund raising method and system based on open banking api
CN110914857A (en) * 2019-04-08 2020-03-24 阿里巴巴集团控股有限公司 Product promotion using intelligent contracts in blockchain networks
CN111448781A (en) * 2019-07-11 2020-07-24 阿里巴巴集团控股有限公司 Shared blockchain data storage

Also Published As

Publication number Publication date
CN110727735A (en) 2020-01-24

Similar Documents

Publication Publication Date Title
Sunyaev et al. Distributed ledger technology
CN112214797B (en) Data processing method, device, equipment, block chain system and storage medium
Tasatanattakool et al. Blockchain: Challenges and applications
Lu et al. Blockchain technology for governmental supervision of construction work: Learning from digital currency electronic payment systems
Nguyen et al. Towards a blockchain-based certificate authentication system in Vietnam
JP2021168171A (en) Method and system for recording multiple transactions on block chain
Guerar et al. A fraud-resilient blockchain-based solution for invoice financing
Komalavalli et al. Overview of blockchain technology concepts
KR20180115768A (en) Encryption method and system for secure extraction of data from a block chain
Jeong et al. Design of recruitment management platform using digital certificate on blockchain
CN110599348B (en) Method, device, equipment and storage medium for stock right incentive
Yadav Blockchain security
CN110728494A (en) Real estate service handling method, real estate property information system and real estate property information device
Wagner et al. Dispute resolution for smart contract-based two-party protocols
US11233638B1 (en) Secured electronic token register system
CN110008716A (en) Block chain method of commerce and device, electronic equipment, storage medium
CN111402033A (en) Asset information management method and device based on block chain
CN110599331A (en) Debt charging system, method, device and storage medium based on block chain
CN110033370A (en) Account creation method and device, electronic equipment, storage medium
JP2021028824A (en) Management of learning history and learning behavior data on block chain
CN110727735B (en) Method, device and equipment for cooperatively completing task event based on block chain technology
Rustiana et al. Adoption computerized certificate transparency and confidentiality
US11900337B1 (en) Distributed ledger receipt wallet system and method
CN114331437A (en) Block chain-based digital seal using method and device
Arredondo Blockchain and certificate authority cryptography for an asynchronous on-line public notary system

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
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20231205

Address after: 518057 Tencent Building, No. 1 High-tech Zone, Nanshan District, Shenzhen City, Guangdong Province, 35 floors

Patentee after: TENCENT TECHNOLOGY (SHENZHEN) Co.,Ltd.

Patentee after: SHENZHEN TENCENT NETWORK INFORMATION TECHNOLOGY Co.,Ltd.

Address before: 518057 Tencent Building, No. 1 High-tech Zone, Nanshan District, Shenzhen City, Guangdong Province, 35 floors

Patentee before: TENCENT TECHNOLOGY (SHENZHEN) Co.,Ltd.