CN110727735A - 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
CN110727735A
CN110727735A CN201910989843.1A CN201910989843A CN110727735A CN 110727735 A CN110727735 A CN 110727735A CN 201910989843 A CN201910989843 A CN 201910989843A CN 110727735 A CN110727735 A CN 110727735A
Authority
CN
China
Prior art keywords
node
event
task
block chain
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.)
Granted
Application number
CN201910989843.1A
Other languages
Chinese (zh)
Other versions
CN110727735B (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

Images

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

Abstract

The application discloses a method, a device and equipment for completing task events based on block chain technology cooperation, and belongs to the field of computer networks. The method is applied to a first node corresponding to a main block chain and a second node corresponding to a side block chain, and comprises the following steps: the first node stores the received task event into a main block chain through a commercial value certification 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 the side block chain stores an intelligent contract; when the task event meets the completion condition, the second node calls an 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 completed task events into the master block chain via a commercial value proof consensus protocol.

Description

Method, device and equipment for cooperatively completing task event based on block chain technology
Technical Field
The present application relates to the field of computer networks, and in particular, to a method, an apparatus, and a device for cooperatively completing a task event based on a block chain technique.
Background
In the process of enterprise or organization operation, some work tasks are not independently completed by the enterprise or organization, and need to be completed by other organizations, other enterprises or individuals in a cooperative manner, that is, outsourcing the work tasks. With the development of internet technology, crowdsourcing service, which is a service that enterprises or institutions enjoy outsourcing internal work tasks to unspecified (and often large) public volunteers in a free-voluntary manner, is derived from outsourcing service.
Some crowdsourcing platforms are generated by crowdsourcing services that provide the aforementioned crowdsourcing services to enterprises or institutions. For example, some small enterprises do not have the capability of independently developing software, and can issue a work task of code development on a crowdsourcing platform, and related professionals can undertake all or part of the work task to complete the work task in cooperation with the enterprise, and when the work task is completed, the enterprise pays a reward to the related professionals, that is, the enterprise and the related professionals complete a transaction.
Based on the above situation, the crowdsourcing 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 completing task events in a cooperation mode based on a block chain technology, and can solve the problem that in the related technology, the management mode of cooperation task information is concentrated, 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 a device for completing task events cooperatively based on a blockchain technology are provided, 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 master block chain through a commercial value certification 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 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, and the 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 value proof consensus protocol.
According to another aspect of the present application, there is provided an apparatus for cooperatively completing a task event based on a blockchain technology, the apparatus being 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 apparatus including:
a first storage module, configured to store the received task event into the master block chain through a commercial value certification consensus protocol, 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, configured to send 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, and the intelligent contract is stored in the side block chain;
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 a 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 used for storing the completed task event into the main block chain through the commercial value certification consensus protocol.
According to another aspect of the present application, there is provided a computer device comprising a processor and a memory, the memory having stored therein at least one instruction, at least one program, set of codes, or set of instructions, which is loaded and executed by the processor to implement the method of cooperatively completing task events based on blockchain techniques as described above.
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 cooperatively completing task events based on blockchain techniques as described above.
The beneficial effects brought by the technical scheme provided by the embodiment of the application at least comprise:
based on a main block chain and a side block chain of a block chain system, a task event is sent to a second node corresponding to the side block chain through a first node corresponding to the main block chain, the second node calls 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 completed task event is stored into the main block chain through the first node. 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 performed by the blockchain technology. And the first node corresponding to the main block chain and the second node corresponding to the side block chain 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 in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a block diagram of a distributed system applied to a blockchain system as provided by an exemplary embodiment of the present application;
FIG. 2 is a block 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 task events based on blockchain techniques provided in an exemplary embodiment of the present application;
FIG. 6 is a flowchart of a method for collaboratively completing task events based on blockchain techniques, as provided in another exemplary embodiment of the present application;
FIG. 7 is a flow chart of a method for collaboratively completing a donation event provided by an exemplary embodiment of the present application;
FIG. 8 is a flow diagram of a method for collaborative completion authentication events provided by an exemplary embodiment of the present application;
fig. 9 is a flowchart of a method for collaboratively completing a credit investigation event according to an exemplary embodiment of the present application;
FIG. 10 is a block diagram of a platform for collaborative completion of task events provided by an exemplary embodiment of the present application;
FIG. 11 is a schematic illustration of a side block chain ecosphere provided by an exemplary embodiment of the present application;
FIG. 12 is a block chain system according to an exemplary embodiment of the present application;
fig. 13 is a block diagram of an apparatus for collaboratively completing a task event based on a blockchain technique according to an exemplary embodiment of the present application.
Detailed Description
To make the objects, technical solutions and advantages of the present application more clear, embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
First, terms referred to in the embodiments of the present application are described:
blockchain (Blockchain): refers to an intelligent peer-to-peer network that uses distributed databases to identify, disseminate, and document information. The block chain technology is based on a decentralized peer-to-peer network, and combines a cryptography principle, time sequence data and a consensus mechanism by using an open source program to ensure the consistency and the persistence of each node in a distributed database, so that information can be immediately verified, traceable, difficult to tamper and incapable of being shielded, and a block chain forms a sharing system with high privacy, high efficiency and safety. Each data block in the block chain 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 application service layers. The block chain is a chain data structure formed by combining data blocks in a sequential connection mode according to a time sequence, and is mainly used for solving the trust and safety problems of transactions.
The block chain technique includes a main block chain technique (Parent chain) and a side block chain technique (Sidechain). A side blockchain refers to all blockchains in a blockchain that follow a side blockchain protocol, the side blockchain and the main blockchain being relative, the side blockchain protocol refers to a protocol that allows transaction information to be securely transferred from the main blockchain to the side blockchain (or other blockchains) and also allows transaction information to be securely returned from the side blockchain (or other blockchains) to the main blockchain, and the side blockchain protocol includes a Two-way-peg. The side blockchain is an independent blockchain, and functions of shared accounts, consensus mechanisms, transaction types, intelligent contracts and the like are supported on the side blockchain.
Intelligent contract: the contract program is automatically executed according to specific conditions, and is an important way for a user to interact with the block chain and realize business logic by utilizing the block chain. The basic idea of intelligent contracts is that various contract terms can be embedded into hardware and software used by an attacker, so that the attacker needs a great cost to attack, the intelligent contracts are mutually participated in customizing and utilizing a Peer-to-Peer network (P2P) to be diffused and stored into a block chain, and the intelligent contracts constructed by the block chain are automatically executed under the triggering condition. For example, each organization may access the data storage system through an intelligent contract on a blockchain deployed in a server to use functions such as data storage and data query provided by the data storage system. The intelligent contract is essentially a set of contracts defined, propagated, verified or executed in a digital form, including contracts in which contract participants can execute the contracts, intelligent contracts which also allow trusted transactions to be conducted without third parties, and which transactions are traceable and irreversible. The intelligent contracts include at least one of static intelligent contracts and dynamic intelligent contracts. For example, according to the method for completing the task event in a collaboration manner based on the block chain technology, the two parties in the collaboration need to execute the steps of completing the task event, issuing the rights and interests certification and the like according to the provisions of the intelligent contract.
The application provides a method for completing task events in a cooperation mode based on a block chain technology.
The system related to the embodiment of the application can be a distributed system formed by connecting a client, a plurality of nodes (any form of computing equipment in an access network, such as a server and a user terminal) through a network communication mode.
Taking a 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 a blockchain system, which is provided by an exemplary embodiment of the present application, and is formed by a plurality of nodes 200 (computing devices in any form in an access network, such as servers and user terminals) and a client 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). In a distributed system, any machine, such as a server, a terminal, may join to become a 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) routing, a basic function that node 200 has, is used to support communication between 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, realizing specific services according to actual service requirements, recording data related to the realization functions to form recording data, carrying a digital signature in the recording data to represent a source of task data, and sending the recording data to other nodes in the block chain system, so that the other nodes add the recording data to a temporary block when the source and integrity of the recording data are verified successfully.
For example, the services implemented by the application include:
2.1) the wallet, is used for providing the function of carrying on the trade of the electronic currency, including initiating the trade, namely, send the trade record of the present trade to other nodes in the block chain system, after other nodes verify successfully, as the response of acknowledging that the trade is valid, store the record data of the trade in the temporary block of the block chain; the wallet also supports the querying of the electronic money remaining in the electronic money address. For example, after the nodes of the side block chain cooperate to complete the task event, the master block chain issues an entitlement certificate (e.g., a certificate) to the side block chain, and stores the transaction record into the temporary block of the side block chain, and optionally, the transaction record may also be stored into the temporary block of the master block chain.
And 2.2) sharing the account book, wherein the shared account book is used for providing functions of operations such as storage, query and modification of account data, record data of the operations on the account data are sent to other nodes in the block chain system, and after the other nodes verify the validity, the record data are stored in a temporary block as a response for acknowledging that the account data are valid, and confirmation can be sent to the node initiating the operations. For example, the task event is a donation event, any one of the main block chains stores the amount of donations and the information of the objects to be funded into the shared ledger, and optionally, the side block chain also stores the amount of donations and the information of the objects to be funded into the shared ledger.
2.3) Intelligent contracts, computerized agreements, which can enforce the terms of a contract, implemented by codes deployed on a shared ledger for execution when certain conditions are met, for completing automated transactions according to actual business requirement codes, such as querying the logistics status of goods purchased by a buyer, transferring the buyer's electronic money to the merchant's address after the buyer signs for the goods; of course, smart contracts are not limited to executing contracts for trading, but may also execute contracts that process received information. For example, the intelligent contract defines information of both collaboration parties, the deadline of a task event, and information such as a rights certificate of the task event, and when the collaboration task event is completed, the party corresponding to the completed task event receives the corresponding rights certificate according to the definition in the intelligent contract.
3) And the Block chain comprises a series of blocks (blocks) which are mutually connected according to the generated chronological order, new blocks cannot be removed once being added into the Block chain, and recorded data submitted by nodes in the Block chain system are recorded in the blocks. The block chain in the present application is a block chain system including a main block chain and a side block chain, the main block chain corresponds to at least one node, and the side block chain corresponds to at least one node.
Referring to fig. 2, fig. 2 is a schematic diagram of a Block Structure (Block Structure) provided in 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. The block may include information such as a time stamp at the time of block generation. A blockchain, which is essentially a decentralized database, is a string of data blocks associated using cryptography, each data block containing relevant information for verifying the validity of the information (anti-counterfeiting) and generating the next block.
Fig. 3 is a schematic structural diagram of a blockchain system according to an exemplary embodiment of the present application. The system includes a plurality of servers 101 and a plurality of storage devices 102, where the plurality of servers 101 may be configured with the same blockchain, that is, the plurality of servers 101 may 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 organization, or may be a plurality of servers belonging to different organizations, for example, servers of various departments of a hospital may be included in the blockchain system; of course, a charitable organization's server, an authentication center's server, a credit investigation organization's server, etc. may also be included in the blockchain system. Optionally, the servers are connected to each other through the internet or a local area network. Users of various organizations may access the servers of the organizations through the terminals 1011, and the plurality of terminal devices 1011 may be electronic devices capable of accessing the plurality of servers 101, which may be computers, smart phones, tablets, or other electronic devices.
Of course, in order to perform services such as security authentication and rights management, a CA center (Certificate Authority) 103 is configured in the blockchain system and is used for storing keys of each organization, and each server in the blockchain system may obtain the key of each organization from the CA center to perform processes such as encryption and decryption of data. The plurality of storage devices 102 are used for providing 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 provided in an exemplary embodiment of the present application. The server may be the server shown in fig. 3. Specifically, the method comprises the following steps:
the server 400 includes a Central Processing Unit (CPU) 401, a system Memory 404 including a Random Access Memory (RAM) 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)406, which facilitates the transfer of information between 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 a display 408 and an input device 409 are connected to the central processing unit 401 through an input output controller 410 connected 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, input/output controller 410 may also provide 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 media 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 disk Read Only Memory (CD-ROM) drive.
Without loss of generality, computer readable media may comprise computer storage media and communication media. 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), Electrically Erasable Programmable Read-Only Memory (EEPROM), flash Memory or other solid state Memory technology, CD-ROM, Digital Versatile Disks (DVD), or other optical storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices. Of course, those skilled in the art will appreciate that computer storage media is not limited to the foregoing. 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 as a remote computer connected to a network through a network, such as the Internet. That is, the server 400 may be connected to the network 412 through the network interface unit 411 connected to the system bus 405, or may be connected to other types of networks or remote computer systems (not shown) using the network interface unit 411.
The memory further includes one or more programs, and the one or more programs are stored in the memory and configured to be executed by the CPU.
Fig. 5 is a flowchart illustrating a method for collaboratively completing a task event based on a blockchain technique according to 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 comprising a first node corresponding to a main blockchain and a second node corresponding to a side blockchain, the method comprising the steps of:
step 501, the first node stores the received task event into a main block chain through a commercial value certification 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 main block chain and the side block chain are two relatively independent block chains, and are connected through a bidirectional anchoring mechanism. The first node is any one node corresponding to the main block chain, a Proof of Business Value consensus protocol (PoBV) is one of the Delegated Proof of rights of trust (DPoS) consensus mechanisms, and is used in a block chain system in a Business model, and a block producer (i.e., a node) is responsible for creating and signing a new block, and has a limited number, and is voted and selected by a voter (i.e., other nodes in the block chain system).
The task event refers to an event corresponding to a task issued by the task main body, and at least one assisting object is needed to assist the task main body in completing the event corresponding to the task. Optionally, the task subject includes a company, a business, an organization, or any department of the company, the business, or the organization, for example, the task subject is a charity. The task events include: at least one of a donation event, an authentication event, a credit investigation event, a loan event, a financial transaction event. The embodiment of the application takes task events including donation events, appraisal events and credit investigation events as examples for illustration.
Optionally, the blockchain system comprises at least one side blockchain, and one main blockchain may correspond to a plurality of side blockchains. The main blockchain and the side blockchain can be blockchains corresponding to different enterprises or organizations, 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 blockchains corresponding to different departments of the same enterprise or organization, for example, the master blockchain is a blockchain constructed by data analysis departments of an enterprise, and the side blockchain is a blockchain constructed by sales departments of the enterprise.
Step 502, the first node sends the task event to the second node through the bidirectional anchoring mechanism.
Optionally, the first node is elected by other nodes on the master block chain through a business certification consensus protocol, and may perform operations of receiving, sending, invoking an intelligent contract, storing information, generating a new block, and the like. The second node is any one 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 accounts, a consensus mechanism, an intelligent contract and the like.
The process of sending the task event comprises the following steps:
1. locking information corresponding to the task event on the main block chain;
2. waiting for a period of confirmation, namely requiring more nodes to confirm that the information corresponding to the task event is locked on the master block chain;
3. performing a task event on the side block chain, wherein a certificate is required to be provided, and the certificate is used for representing that information corresponding to the task event on the side block chain is output of information corresponding to the locked task event on the main block chain;
4. waiting for a period of competition to prevent the side blockchain from branching;
5. information corresponding to the task event can be transmitted between nodes corresponding to the side block chain.
The process is also applicable to the second node corresponding to the side block chain sending the completed task event to the first node corresponding to the main block chain.
And step 503, the second node stores the task event into a side block chain through a consensus mechanism, and the side block chain stores an intelligent contract.
Alternatively, the consensus mechanism followed by the side block chain may be the same or different from the consensus mechanism followed by the main block chain, or the consensus mechanism followed by the side block chain is a different consensus mechanism in the same type as the consensus mechanism followed by the main block chain. In one example, the consensus mechanism followed by the master blockchain is a commercial value Proof consensus protocol, and the consensus mechanism followed by the side blockchain is a workload Proof consensus mechanism (Proof of Work, PoW); in another example, the consensus mechanism followed by the primary block chain is the Proof of stock consensus mechanism (Proof of station, POS) and the consensus mechanism followed by the lateral block chain is the delegated Proof of stock consensus mechanism (DPoS).
Optionally, the side block chain system includes an intelligent contract template library, and the intelligent contract template library is used for providing an intelligent contract template for the task main body. The intelligent contract is used for restricting the cooperation relation between the task main body and the object for cooperatively finishing the task, and the intelligent contract comprises at least one of information of task events, finishing time limit, information of the task main body, information of the cooperative object, rights and interests information of the cooperative object and electronic signatures of both cooperative parties. In one example, the intelligent contract is a static intelligent contract, the intelligent contract specifies that the task event is a contribution from a pool, the completion period of the task is one week, the task subject is a charity, the collaboration object is a bank, and the charity and the bank have electronic signatures on the intelligent contract.
And step 504, 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.
Optionally, the completion condition is meeting acceptance criteria, or meeting target requirements. In one example, the task event is to grant a loan amount to a credit investigation object, the first node is a node corresponding to a bank, the second node is a node corresponding to a credit investigation institution, the first node needs to inquire the credit level of the credit investigation object through the second node, and when the credit level of the user reaches the credit level of loan issuance, the first node grants the loan amount to the credit investigation object.
Optionally, the first node and the second node respectively complete half of the workload of the task event, or the first node bears the primary 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 bears the primary workload of the task event.
In step 505, the second node sends the completed task event to the first node through the bidirectional anchoring mechanism.
Optionally, the second node is elected by other nodes on the side block chain through a consensus mechanism, and may perform operations such as receiving, sending, invoking an intelligent contract, storing information, generating a new block, and the like. The consensus mechanism may be any consensus mechanism. After the task event is completed, the second node sends the completion result of the task event to the first node through the bidirectional anchoring mechanism.
Step 506, the first node stores the completed task event into the master block chain through a commercial value proof consensus protocol.
Optionally, the completed task event corresponds to time, cost, information of the collaboration object, and a right certificate corresponding to the collaboration object used for completing the task event.
Optionally, when receiving a completed task event, the master block chain checks the task event, stores the task event in a memory pool after the check is completed, and updates a hash tree used for recording the task event; then, updating the update timestamp to be the time of receiving the task event, trying different random numbers, and calculating the characteristic value for multiple times, so that the calculated characteristic value can satisfy the following formula:
SHA256(SHA256(version+prev_hash+merkle_root+ntime+nbits+x))<TARGET
wherein, SHA256 is a characteristic value algorithm used for calculating a characteristic value, optionally, the characteristic value algorithm may also be ecdsasep 256k 1; version is version information of the relevant block protocol in the block chain; prev _ hash is a block head characteristic value of a parent block of the current block; merkle _ root is a characteristic value of the input information; ntime is the update time of the update timestamp; nbits is the calculation difficulty of the current block, is a fixed value within a period of time, and is determined again after the fixed time period is exceeded; x is a random number; TARGET is a feature threshold, which can be determined from nbits.
When the random number meeting the formula is obtained through calculation, the task event can be correspondingly stored, a block head and a block subject 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 to the block chain stored in the block chain after the check is completed.
The completed task event storage process is also applicable to the processes corresponding to the side block chain storage task event and the intelligent contract.
Optionally, when the task event is completed, a rights and interests certificate is issued to a completion object of the task event, where the rights and interests certificate is used to characterize that the completion object of the task event has completed the corresponding task event.
In summary, based on the main block chain and the side block chain of the block chain system, the task event is sent to the second node corresponding to the side block chain through the first node corresponding to the main block chain, the second node calls an intelligent contract to cooperate with the first node to complete the task event, and sends the completed task event to the first node, and the first node stores the completed task event into the main block chain. 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 performed by the blockchain technology. And the first node corresponding to the main block chain and the second node corresponding to the side block chain cooperate to complete the task event, so that the efficiency of completing the task event can be improved.
The embodiment of the application is described by taking at least one of task events including donation events, appraisal events and credit investigation events as an example. Fig. 6 is a flowchart illustrating a method for collaboratively completing a task event based on a blockchain technique according to 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 comprising a first node corresponding to a main blockchain and a second node corresponding to a side blockchain, the method comprising the steps of:
step 601, the first node stores the received task event into a main block chain through a commercial value certification 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.
In step 602, the first node sends a task event to the second node through the bidirectional anchoring mechanism.
And 603, the second node stores the task event into a side block chain through a consensus mechanism, and the side block chain stores an intelligent contract.
Steps 601 to 603 are the same as steps 501 to 503 shown in fig. 5, and are not described herein again.
In step 604a, when the donation event meets the first condition, the second node calls an intelligent contract to cooperate with the first node to complete the donation event according to the first completion condition.
Optionally, the first node corresponds to a charity mechanism for collecting profits, and the block chain corresponding to the first node corresponds to at least one charity mechanism; the second node corresponds to a donation object, the side block chain corresponding to the second node corresponds to at least one donation object, or the block chain system comprises at least one side block chain, and each side block chain corresponds to one donation object. Alternatively, the donation object may be an individual account, or a team account, or an enterprise account.
The first completing condition comprises at least one of the amount of donation reaching the target amount, the subsidized objects meeting the subsidizing condition, information corresponding to the amount of donation (such as the source of the amount of donation and the specific amount of each donation), and information corresponding to the task subject initiating the event of donation. In one example, the donation event is to raise a school fee for a poor school son, the first completion condition is to reach a target amount of one ten thousand yuan, the number of the subsidized objects is three, when the donation amount reaches one ten thousand yuan, the second node calls an intelligent contract to cooperate with the first node to complete the donation event according to the first completion condition, and the intelligent contract automatically executes to issue information corresponding to the donation amount to the three subsidized objects.
And step 604b, when the authentication event meets the second condition, the second node calls an intelligent contract to cooperate with the first node to complete the authentication event according to the second completion condition.
Optionally, the first node corresponds to an object having a play (or an antique, or a cultural relic), and the block chain corresponding to the first node comprises at least one object having a play; the second node corresponds to an identifier, the side blockchain corresponding to the second node corresponds to at least one identifier, or the deblock chain system comprises at least one side blockchain, and each side blockchain corresponds to a group of identifiers. Alternatively, the appraiser may be an individual, or an appraisal team, or an appraisal organization.
The second completion condition includes at least one of information corresponding to an authenticating person, an article to be authenticated, an authentication standard, an authentication result, and authentication proof. In one example, the appraisal event is appraisal porcelain, the appraisal result meets the standard when the second completion condition is met (such as the appraiser has professional qualification certificate of a professional appraisal institution or the appraisal process meets the state-specified appraisal standard), when the appraisal standard is met by the appraisal person, the second node calls an intelligent contract to cooperate with the first node to complete the appraisal event according to the second completion condition, and the intelligent contract automatically executes the appraisal result of the appraised porcelain, such as the porcelain is fake.
And step 604c, when the credit investigation event meets the third condition, the second node calls an intelligent contract to cooperate with the first node to finish the authentication event according to the third finishing condition.
Optionally, the first node corresponds to a financial institution (e.g. a bank), and the block chain corresponding to the first node corresponds to at least one financial institution; the second node corresponds to a credit investigation mechanism, the side block chain corresponding to the second node corresponds to at least one credit investigation mechanism, or the block chain system comprises at least one side block chain, and each side block chain corresponds to one credit investigation mechanism.
The third completing condition comprises at least one of the credit rating that the credit of the credit object reaches the requirement, the information (such as name, occupation, credit condition in the credit investigation system) of the credit object, and the credit investigation type. In one example, the credit investigation event is to grant a loan amount to the user, the third completion condition is that the credit level of the user reaches good, the credit investigation amount can be granted to the user in five ten thousand yuan, when the credit level of the user is good, the second node calls an intelligent contract to complete the credit investigation event cooperatively according to the third completion condition, and the intelligent contract automatically executes the operation of granting the loan 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 bidirectional anchoring mechanism.
At step 606, the first node stores the completed task event into the master chunk chain via a commercial value proof consensus protocol.
Steps 605 to 606 are identical to the method of steps 505 to 506 shown in fig. 5, and are not described herein again.
It is understood that the steps 604a, 604b and 604c can be implemented independently, or any two steps can be implemented in combination, such as the steps 604b and 604c, or three steps can be implemented in combination.
In summary, different completion conditions are set for different task events, and when a task event meets the corresponding completion conditions, the second node invokes an intelligent contract to cooperate with the first node to complete the task event according to the corresponding completion conditions, so that the efficiency of completing the task event is improved.
The following describes the cooperative completion of the donation event, the appraisal event and the credit investigation event respectively.
And calling an intelligent contract for the second node in combination with the donation event to cooperate with the first node to complete the donation event according to the first completion condition. Fig. 7 shows a flowchart of a method for completing donation event collaboratively according to an exemplary embodiment of the present application, the method may be applied to at least one node in a blockchain system as shown in fig. 3, the blockchain system includes a first node corresponding to a main blockchain and a second node corresponding to a side blockchain, the method includes the following steps:
in step 701, the second node receives donation task information.
Optionally, the donation task information includes at least one of a target amount of donation and a funded subject, and the donation task information is sent by the first node to the second node through a bidirectional anchoring mechanism. Optionally, there is a platform (including an application program or a web page) for creating a donation event at the first node, and there is a platform for receiving donation task information at the second node, for example, a charity issues the donation task information (including a donation topic and a situation of a funding object) through the platform for creating the donation event, and a business or an individual queries the donation task information and performs a donation operation on the platform for receiving the donation task information.
In step 702, the second node stores the donation task information into the lateral blockchain through a consensus mechanism.
And step 703, when the received donation amount reaches the target donation amount, the second node calls an intelligent contract to cooperate with the first node to complete the donation event.
Optionally, the donation amount received by the second node and the information corresponding to each donation item (e.g., a donation of ten thousand yuan by company a, a donation of one thousand yuan by user B) may be sent by other nodes corresponding to the lateral block chain, or may be sent by the first node corresponding to the main block chain. Optionally, the second node assumes the main workload of the donation event. Alternatively, the master blockchain corresponds to a plurality of side blockchains, and the plurality of side blockchains may correspond to blockchains of at least one organization of charity, banking institution, government department, or a combination thereof. In one example, the blockchain system includes three side blockchains, each corresponding to a blockchain of a charity, a banking institution, a government department, or each corresponding to a blockchain of three charities.
Optionally, the intelligent contract is an intelligent contract template provided in an intelligent contract template library, or the intelligent contract is an intelligent contract created by the task agent itself. Optionally, the task agent may customize the intelligent contract template in an intelligent contract template library, and illustratively, the task agent uses a computer in which the intelligent contract template library and a platform for customizing the intelligent contract are stored.
At step 704, the second node stores the completed donation event into the lateral blockchain through a consensus mechanism.
At step 705, the second node sends the completed donation event to the first node via a bidirectional anchoring mechanism.
At step 706, the first node stores the completed donation event into the primary blockchain via a commercial value consensus protocol.
Optionally, when the donation event is completed, any node corresponding to the main block chain or the lateral block chain issues a equity certificate to a completed object of the donation event, for example, a charity organization issues an love certificate to a donated enterprise.
In conclusion, the donation event can be completed through cooperation of the main block chain and the lateral block chain, completion efficiency of the donation event is improved, and storage pressure of the main block chain is reduced.
And calling an intelligent contract for the second node by combining the donation event, and cooperating the first node to finish the identification event according to a second finishing condition to carry out specific explanation. FIG. 8 illustrates a flow chart of a method for collaboratively completing an authentication event as provided in 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 comprising 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 801, the second node receives authentication task information.
Optionally, the authentication task information includes at least one of an authenticated item and an authenticator, the authentication task information being sent by the first node to the second node via a two-way anchoring mechanism. Optionally, there is a platform (including an application or a web page) on the first node for creating authentication task information, and there is a platform on the second node for receiving the authentication task information, such as issuing the authentication task information (including the authenticated item and the designated authenticating person) by the platform for creating the authentication event, and the individual queries the platform for the authentication result of the authenticated item on the platform for receiving the authentication task information.
In step 802, the second node stores the authentication task information into the side blockchain through a consensus mechanism.
And 803, 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.
Optionally, the authentication result received by the second node is sent by other nodes corresponding to the side block chain, or may be sent by the first node corresponding to the main block chain. Illustratively, the authentication result of the authentication mechanism a on the authenticated article is that the article is a counterfeit, and the authentication result of the authentication mechanism B on the authenticated article is that the article is a counterfeit. Optionally, the second node assumes the main workload of authenticating the event. Optionally, the main blockchain corresponds to a plurality of side blockchains, and the plurality of side blockchains may correspond to blockchains corresponding to a plurality of authentication organizations or blockchains corresponding to authentication personnel. In one example, the blockchain system includes three side blockchains, which correspond to the blockchains of three authentication institutions, respectively.
At step 804, the second node stores the completed authentication event into the side blockchain through a consensus mechanism.
The second node sends the completed authentication event to the first node via a bi-directional anchoring mechanism, step 805.
At step 806, the first node stores the completed qualification event into the master blockchain via a commercial value consensus protocol.
Optionally, any node corresponding to the master or side blockchain issues a right certificate to the completion of the authentication event when the authentication event is completed, for example, the authentication agency a and the authentication agency B issue authentication certificates to users.
In conclusion, the identification event can be completed through the cooperation of the main block chain and the side block chain, so that the completion efficiency of the identification event and the accuracy of an identification result are improved, and the storage pressure of the main block chain is reduced.
And calling an intelligent contract for the second node by combining the donation event, and cooperating the first node to finish the credit investigation event according to a third finishing condition. Fig. 9 is a flowchart illustrating a method for collaboratively completing a credit investigation event according to 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 comprising 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 investigation task information.
Optionally, the credit investigation task information includes at least one of a credit investigation object, a credit investigation institution and a credit rating, the credit investigation task information is sent from the first node to the second node through a bidirectional anchoring mechanism, optionally, a platform (including an application program or a webpage) for creating the credit investigation task information is provided at the first node, and a platform for receiving the credit investigation task information is provided at the second node. If the user transacts the loan to the bank, the bank issues credit investigation task information (including credit investigation type, credit investigation object information, credit rating and the like) on a platform for creating the credit investigation task information, and the credit investigation institution issues the stored credit investigation object information and credit investigation type through the platform for receiving the credit investigation task information.
And step 902, the second node stores the credit investigation task information into the side block chain through a consensus mechanism.
And 903, when the received credit level meets the credit investigation standard, the second node calls an intelligent contract to cooperate with the first node to complete the credit investigation event.
Optionally, the information of the credit investigation type and the credit investigation object received by the second node (e.g., the credit level of the user K in the credit investigation type a is a, and the credit level of the user K in the credit investigation type b is b) may be sent by other nodes corresponding to the side blockchain, or sent by the first node corresponding to the main blockchain. Optionally, the second node assumes the main workload of the credit investigation event. Optionally, the main block chain corresponds to a plurality of side block chains, and the side block chains can correspond to block chains corresponding to a plurality of credit investigation institutions. In one example, the block chain system includes three side block chains, which correspond to the credit investigation institution L, the credit investigation institution M, and the credit investigation institution N, respectively.
At step 904, the second node stores the completed credit investigation event into the side blockchain through a consensus mechanism.
Step 905, the second node sends the completed credit investigation event to the first node through the bidirectional anchoring mechanism.
Step 906, the first node stores the completed credit investigation event into the master block chain through the commercial value consensus protocol.
Optionally, when the credit investigation event is completed, any node corresponding to the main block chain or the lateral block chain issues a rights and interests certificate to a completed object of the donation event, for example, a bank issues a credential corresponding to a credit investigation result to a credit investigation institution.
In conclusion, the credit investigation event can be completed through the cooperation of the main block chain and the side block chain, so that the completion efficiency of the credit investigation event is improved, the integrity of the credit investigation file of a user is ensured, and the storage pressure of the main block chain is reduced.
The structure of the platform for cooperatively completing the task event is described below with reference to fig. 10, where the platform for cooperatively completing the task event 110 includes: the interface layer 111 is used for providing interfaces for various applications, front-end interfaces and Software Development Kits (SDKs); the service layer 112 is used for supporting a bidirectional anchoring mechanism of the main block chain and the side block chain, storing a corresponding function of an intelligent contract or an intelligent contract template library, and providing an asset gateway for different types of transactions; the network layer 113 is used for supporting the network structure for constructing the main block chain and the side block chain, and providing a verification mechanism and a consensus mechanism among nodes; the data layer 114 is used to store data in the blockchain system and platform, including blockdata, hash functions, rights and interests structure, digital signatures (or electronic signatures), merkel trees, and distributed databases.
The side blockchain is illustrated in conjunction with fig. 11. The side block chain ecosphere 100 comprises a crowdsourcing platform 101 and an e-commerce platform 102, wherein the crowdsourcing platform 101 and the e-commerce platform 102 collaborate to complete a task event based on an intelligent contract. Alternatively, the crowdsourcing platform 101 may also be a platform for a donated object, or an authentication institution, or a credit investigation institution, and the e-commerce platform 102 may also be a platform for a funded object, or a platform for receiving authenticated item information, or a banking institution. Optionally, the crowdsourcing platform 101 corresponds to a side block chain or a plurality of side block chains, the nodes corresponding to the side block chains complete task events in a business cooperation mode, workflow information of the crowdsourcing platform is stored into the side block chains, and the e-commerce platform 102 corresponds to the main block chain or the side block chains. In one example, the e-commerce platform 102 corresponds to a master blockchain, and a node corresponding to the master blockchain includes a risk system for performing operations such as risk assessment and asset mapping on a task event and issuing a rights and interest certificate to a completion object of the task event.
The structure of the main block chain 201 and the side block chain 202 in the block chain system 200 will be described with reference to fig. 12. The side block chain 201 is a block chain constructed for an enterprise, an organization, or an individual, and is equivalent to a private chain of an enterprise, an organization, or an individual, and data can be viewed or stored only after acquiring a right. The side block chains comprise enterprise, organization or individual privacy information such as videos, images and texts, the privacy information is encrypted through an encryption algorithm, the side block chains are isolated from one another, cross-organization transfer workflow can be achieved only after rights are acquired, optionally, an enterprise account can be in an anonymous state as a default, and in the cross-organization transfer workflow, information in the sub-process is opaque to other enterprises in the default state. The main block chain 202 includes public information, such as rules, characters, intelligent contracts and the like, encryption operation is not needed, efficiency of completing task events by two cooperative parties is improved, and therefore information corresponding to the task events is rapidly stored in the block chain.
The following are embodiments of an apparatus of the present application that may be used to perform embodiments of the methods of the present application. For details which are not disclosed in the device embodiments of the present application, reference is made to the method embodiments of the present application.
Fig. 13 illustrates an apparatus for cooperatively completing a task event based on a blockchain technology according to an exemplary embodiment of the present application, where the apparatus is disposed at least one node in a blockchain system, and the blockchain system includes a first node corresponding to a main blockchain and a second node corresponding to a side blockchain, and the apparatus includes:
a first storage module 1310 for storing the received task event into a master block chain through a commercial value certification consensus protocol, the task event being provided by a task subject, the task subject being a subject object for creating a task;
a first sending module 1320, configured to send the task event to the second node through the bidirectional anchoring mechanism;
a second storing module 1330, configured to store the task event into a side block chain through a consensus mechanism, where the side block chain stores an intelligent contract;
a calling module 1340, configured to call the intelligent contract to cooperate with the first node to complete the task event when the task event meets the completion condition, and a second sending module 1350, configured to send the completed task event to the first node through the bidirectional anchoring mechanism;
the first storage module 1310 is configured to store the completed task event into the master block chain through a commercial value identification consensus protocol.
In an alternative embodiment, the mission event includes at least one of a donation event, an identification event, and a credit investigation event;
the calling module 1340 is configured to, when the donation event meets a first completion condition, call an intelligent contract to cooperate with the first node to complete the donation event according to the first completion condition; or, when the authentication event meets the second completion condition, calling an 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 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 target amount of donation and a funded object, and the donation task information is sent from a first node to a second node through a bidirectional anchoring mechanism;
the second storage module 1330, configured to store the donation task information into the lateral blockchain through a consensus mechanism;
the calling module 1340 is configured to call an intelligent contract to cooperate with a first node to complete a donation event when the received donation amount reaches a target donation amount, and the second storing module 1330 is configured to store the completed donation event into a lateral block chain through a consensus mechanism;
the second sending module 1350 is configured to send the completed donation events to the first node through a bidirectional anchoring mechanism, and the first storing module 1310 is configured to store the completed donation events in the main chunk chain through a commercial value evidence consensus protocol.
In an alternative embodiment, the apparatus includes a receiving module 1360;
the receiving module 1360 is configured to receive authentication task information, the authentication task information including at least one of an authenticated article and an authenticator, the authentication task information being sent from a first node to a second node via a bidirectional anchoring mechanism;
the second storage module 1330, configured to store the authentication task information into the side block chain through a consensus mechanism;
the invoking module 1340 is configured to invoke an intelligent contract to cooperate with the first node to complete the authentication event when the received authentication result meets the authentication criterion, and the second storing module 1330 is configured to store the completed authentication event into the side block chain through the consensus mechanism;
the second sending module 1350 is configured to send the completed authentication event to the first node through the bidirectional anchoring mechanism, and the first storing module 1310 is configured to store the completed authentication event into the master block chain through the commercial value certification consensus protocol.
In an alternative embodiment, the apparatus includes a receiving module 1360;
the receiving module 1360 is configured to receive, by the second node, credit investigation task information, where the credit investigation task information includes at least one of a credit investigation object, a credit investigation institution and a credit rating, and the credit investigation task information is sent to the second node by the first node through a bidirectional anchoring mechanism;
the second storage module 1330 is configured to store the credit investigation task information into the side block chain through a consensus mechanism;
the invoking module 1340 is configured to invoke an intelligent contract to cooperate with the first node to complete a credit investigation event when the received credit rating meets a credit investigation criterion, and the second storing module 1350 is configured to store the completed credit investigation event into the side block chain through a consensus mechanism;
the second sending module 1350 is configured to send the completed authentication event to the first node through the bidirectional anchoring mechanism, and the first storing module 1310 is configured to store the completed authentication event into the master block chain through the commercial value certification consensus protocol.
In an optional embodiment, the side block chain comprises an intelligent contract template library, and the intelligent contract template library is used for providing templates of intelligent contracts for the task main bodies.
In an optional embodiment, the first sending module is configured to, when the task event is completed, issue a rights and interests certificate to a completion object of the task event, where the rights and interests certificate is used to characterize that the completion object of the task event has completed a corresponding task event.
Embodiments of the present application further provide a computer device, where the computing 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, and 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 completing task events based on cooperation of block chain technologies, provided by the foregoing method embodiments.
Embodiments of the present application further provide a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements the method for completing task events based on cooperation of block chain technologies, provided by the foregoing method embodiments.
It should be understood that reference to "a plurality" herein means two or more. "and/or" describes the association relationship of the associated objects, meaning that there may be three relationships, e.g., a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone. The character "/" generally indicates that the former and latter associated objects are in 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 instructing relevant hardware, where the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The above description is only exemplary of the present application and should not be taken as limiting, as any modification, equivalent replacement, or improvement made within the spirit and principle of the present application should be included in the protection scope of the present application.

Claims (15)

1. A method for cooperatively completing task events based on blockchain technology 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 master block chain through a commercial value certification 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 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, and the 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 value proof consensus protocol.
2. The method of claim 1, wherein the mission events include at least one of donation events, qualification events, and credit reporting events;
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 method comprises the following steps:
when the donation event meets a first completion condition, the second node calls the intelligent contract to cooperate with the first node to complete the donation event according to the first completion condition;
or the like, or, alternatively,
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 the like, or, alternatively,
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 when the donation event satisfies a first completion condition, the second node invokes the smart contract to collaborate with the first node to complete the donation event according to the first completion condition, comprising:
the second node receives donation task information, wherein the donation task information comprises at least one of a target amount of donation and a funded object, and the donation task information is sent to the second node by the first node through the bidirectional anchoring mechanism;
the second node stores the donation task information into the lateral blockchain through the consensus mechanism;
when the received donation amount reaches the target donation amount, the second node calls 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 lateral block chain through the consensus mechanism;
the second node sends the completed donation events to the first node through the bidirectional anchoring mechanism, and the first node stores the completed donation events into the master blockchain through the commercial value proof consensus protocol.
4. The method of claim 2, wherein the second node invoking the smart contract when the evaluation event satisfies a second completion condition to collaborate with the first node to complete the evaluation event according to the second completion condition comprises:
the second node receiving authentication task information, the authentication task information including at least one of an item being authenticated and an authenticator, the authentication task information being sent by the first node to the second node via the bidirectional anchoring mechanism;
the second node stores the authentication task information into the side blockchain through the consensus mechanism;
when the received identification result meets the identification standard, the second node calls the intelligent contract to cooperate with the first node to complete the identification event, and the second node stores the completed identification event into the side block chain through the consensus mechanism;
the second node sends the completed authentication event to the first node through the bidirectional anchoring mechanism, and the first node stores the completed authentication event into the master block chain through the commercial value proof consensus protocol.
5. The method according to claim 2, wherein the second node invoking the intelligent contract to cooperate the first node to complete the credit investigation event according to a third completion condition when the credit investigation event meets 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 mechanisms and credit levels, 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 investigation criteria, the second node calls the intelligent contract to cooperate with the first node to complete the credit investigation event, and the second node stores the completed credit investigation event into the side block chain through a consensus mechanism;
the second node sends the completed authentication event to the first node through the bidirectional anchoring mechanism, and the first node stores the completed authentication event into the master block chain through the commercial value proof consensus protocol.
6. The method of any one of claims 1 to 5, wherein the side block chain comprises an intelligent contract template library, and the intelligent contract template library is used for providing the intelligent contract template for the task main body.
7. The method of any of claims 1 to 5, further comprising:
and when the task event is completed, issuing a rights and interests certificate to a completed object of the task event, wherein the rights and interests certificate is used for representing that the completed 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, the apparatus being 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 apparatus comprising:
a first storage module, configured to store the received task event into the master block chain through a commercial value certification consensus protocol, 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, configured to send 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, and the intelligent contract is stored in the side block chain;
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 a 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 used for storing the completed task event into the main block chain through the commercial value certification consensus protocol.
9. The apparatus of claim 8, wherein the mission events include at least one of donation events, qualification events, and credit reporting events;
the calling module is used for calling the intelligent contract to cooperate with the first node to complete the donation event according to a first completion condition when the donation event meets the first completion condition;
or the like, or, alternatively,
the calling module is used for calling the intelligent contract to cooperate with the first node to complete the authentication event according to a second completion condition when the authentication event meets the second completion condition;
or the like, or, alternatively,
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 a 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 configured to receive donation task information, where the donation task information includes at least one of a target amount of donation and a funded subject, and the donation task information is sent from the first node to the second node through the bidirectional anchoring mechanism;
the second storage module is used for storing the donation task information into the lateral 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 target donation amount, and the second storage module is used for storing the completed donation event into the side block chain through the consensus mechanism;
the second sending module is used for sending the completed donation events to the first node through the bidirectional anchoring mechanism, and the first storage module is used for storing the completed donation events into the main block chain through the commercial value evidence consensus protocol.
11. The apparatus of claim 9, wherein the apparatus comprises a receiving module;
the receiving module is used for receiving authentication task information, the authentication task information comprises at least one of an authenticated article and an authenticator, and the authentication 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 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 complete the identification event when the received identification result meets the identification standard, and the second storage module is used for storing the completed identification event into the side block chain through the consensus mechanism;
the second sending module is used for sending the completed authentication event to the first node through the bidirectional anchoring mechanism, and the first storage module is used for storing the completed authentication event into the main block chain through the commercial value certification 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 organization, 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 complete the credit investigation event when the received credit level meets credit investigation criteria, and the second storage module is used for storing the completed credit investigation event into the side block chain through the consensus mechanism;
the second sending module is used for sending the completed authentication event to the first node through the bidirectional anchoring mechanism, and the first storage module is used for storing the completed authentication event into the main block chain through the commercial value certification consensus protocol.
13. The apparatus according to any one of claims 8 to 12, wherein the first sending module is configured to, when the task event is completed, issue a rights and interests certificate to a completion object of the task event, where the rights and interests certificate is used 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, wherein the memory has stored therein at least one instruction, at least one program, a set of codes, or a set of instructions, which is loaded and executed by the processor to implement a method for collaborative completion of task events based on blockchain techniques according to any of claims 1 to 7.
15. A computer-readable storage medium, having stored thereon a computer program which, when being executed by a processor, implements the method for collaboratively completing task events based on blockchain techniques according to any one 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 true CN110727735A (en) 2020-01-24
CN110727735B 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)

Cited By (2)

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

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107368259A (en) * 2017-05-25 2017-11-21 阿里巴巴集团控股有限公司 A kind of method and apparatus that business datum is write in the catenary system to block
CN108764925A (en) * 2018-05-31 2018-11-06 李沁福 A kind of synthesis business platform based on block chain technology
KR20190002078A (en) * 2017-06-29 2019-01-08 주식회사 아이피미라클 Easy fund raising method and system based on open banking api
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
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

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107368259A (en) * 2017-05-25 2017-11-21 阿里巴巴集团控股有限公司 A kind of method and apparatus that business datum is write in the catenary system to block
KR20190002078A (en) * 2017-06-29 2019-01-08 주식회사 아이피미라클 Easy fund raising method and system based on open banking api
CN108764925A (en) * 2018-05-31 2018-11-06 李沁福 A kind of synthesis business platform based on block chain technology
CN110914857A (en) * 2019-04-08 2020-03-24 阿里巴巴集团控股有限公司 Product promotion using intelligent contracts in blockchain networks
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
CN111448781A (en) * 2019-07-11 2020-07-24 阿里巴巴集团控股有限公司 Shared blockchain data storage

Cited By (4)

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

Also Published As

Publication number Publication date
CN110727735B (en) 2023-07-25

Similar Documents

Publication Publication Date Title
CN110599181B (en) Data processing method, device and equipment based on block chain and storage medium
Kokina et al. Blockchain: Emergent industry adoption and implications for accounting
US11102279B2 (en) System for external validation of private-to-public transition protocols
Sadouskaya Adoption of blockchain technologyin supply chain and logistics
Khan et al. A distributed-ledger consortium model for collaborative innovation
WO2019144745A1 (en) Smart contract generation method and apparatus
US7680681B2 (en) Shared insurance industry system for non-disruptive enhancement and substitution of insurance transaction processing
CN117151853A (en) Method for secure point-to-point communication on a blockchain
US20200005410A1 (en) System and Method for Facilitating Legal Review for Commercial Loan Transactions
CN110599348B (en) Method, device, equipment and storage medium for stock right incentive
CN110728494A (en) Real estate service handling method, real estate property information system and real estate property information device
Gupta et al. Enhancing privacy through “smart contract” using blockchain-based dynamic access control
Sujatha et al. Optimized digital transformation in government services with blockchain
CN111402033A (en) Asset information management method and device based on block chain
CN111340628A (en) Asset information management method and device based on block chain
CN114363327A (en) Compliance mechanism in blockchain networks
CN111640002A (en) Block chain-based mortgage loan method and device
CN110727735B (en) Method, device and equipment for cooperatively completing task event based on block chain technology
Killeen et al. Global financial institutions 2.0
Irshad et al. Block-ed: The proposed blockchain solution for effectively utilising educational resources
CN111444416A (en) Method, system and device for popularizing financial business
Gómez et al. Blockverse: A cloud blockchain-based platform for tracking in affiliate systems
Adelowotan et al. Blockchain technology and implications for accounting practice
Arredondo Blockchain and certificate authority cryptography for an asynchronous on-line public notary system
Das et al. Blockchain Technology: Applications and Open Issues

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.