CN110401715B - Resource collection task management method, device, storage medium and system - Google Patents

Resource collection task management method, device, storage medium and system Download PDF

Info

Publication number
CN110401715B
CN110401715B CN201910678946.6A CN201910678946A CN110401715B CN 110401715 B CN110401715 B CN 110401715B CN 201910678946 A CN201910678946 A CN 201910678946A CN 110401715 B CN110401715 B CN 110401715B
Authority
CN
China
Prior art keywords
data
task
block
resource collection
collection task
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910678946.6A
Other languages
Chinese (zh)
Other versions
CN110401715A (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
Tencent Cloud Computing Beijing Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Tencent Cloud Computing Beijing 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, Tencent Cloud Computing Beijing Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201910678946.6A priority Critical patent/CN110401715B/en
Publication of CN110401715A publication Critical patent/CN110401715A/en
Application granted granted Critical
Publication of CN110401715B publication Critical patent/CN110401715B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/04Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks
    • H04L63/0428Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/12Applying verification of the received information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network

Abstract

The embodiment of the invention discloses a resource collection task management method, a resource collection task management device, a storage medium and a resource collection task management system, and belongs to the technical field of internet. The method is applied to a blockchain network, the blockchain network comprises a plurality of application servers which are used as data nodes, and each data node is configured with the same blockchain, and the method comprises the following steps: receiving a resource collection task issuing request sent by a terminal, wherein the resource collection task issuing request carries task data of a resource collection task; and generating a fourth block for recording the task data according to the task data and the characteristic value of the third block in the block chain, and adding the fourth block in the block chain configured by each data node to obtain an updated block chain. The embodiment of the invention utilizes the characteristic that the data of the block chain can not be tampered, avoids the task data from being lost or tampered, and ensures the safety and the reliability of the task data.

Description

Resource collection task management method, device, storage medium and system
The present application is a divisional application of the chinese patent application filed on 27/04/2018, with application number 201810392313.4, entitled "resource collection task management method, apparatus, storage medium, and system," the entire contents of which are incorporated herein by reference.
Technical Field
The embodiment of the invention relates to the technical field of internet, in particular to a resource collection task management method, a resource collection task management device, a resource collection task management storage medium and a resource collection task management system.
Background
With the rapid development and popularization of internet technology, the operation of people in various aspects of life can be realized through the internet. At present, in order to meet the requirement of people for collecting resources, a plurality of crowd funding platforms appear in the internet, a funding party publishes crowd funding tasks on the crowd funding platforms, one or more investors invest the crowd funding tasks, a certain amount of resources are transferred to the funding party, and therefore the purpose of collecting the resources is achieved by the funding party.
Fig. 1 is a schematic diagram illustrating a process of collecting resources according to the related art, and fig. 2 is a schematic diagram illustrating a structure of a crowd funding platform according to the related art. Referring to fig. 1 and 2, the crowd funding platform is configured with an application server and a storage system, a funding party applies for publishing crowd funding tasks to the application server through an application client, the application server audits task data of the crowd funding tasks, the task data are stored in the storage system in a centralized mode after the audit is passed, and the task data are displayed through the application client for each investor to check. The investor can request investment on crowd funding tasks after checking the task data through the application client, the application server transfers a first amount of resources from the investor to the funding party, and the generated resource transfer data is stored in the storage system.
In the process of implementing the embodiment of the present invention, the inventor finds that the related art has at least the following problems: resource transfer data of the crowd funding task is stored in a storage system in a centralized mode and is easy to lose or be tampered, and therefore the safety and reliability of the resource transfer data are poor.
Disclosure of Invention
The embodiment of the invention provides a resource collection task management method, a resource collection task management device, a storage medium and a resource collection task management system, which can solve the problems in the related art. The technical scheme is as follows:
in a first aspect, a resource collection task management method is provided, which is applied to a blockchain network, where the blockchain network includes a plurality of application servers as data nodes, each data node configures an identical blockchain, and the blockchains are used to store task data of each resource collection task, and the method includes:
an application server receives a resource collection task issuing request sent by a terminal, wherein the resource collection task issuing request carries task data of a resource collection task;
and generating a fourth block for recording the task data according to the task data and the characteristic value of the third block in the block chain, adding the fourth block in the block chain configured for each data node to obtain an updated block chain, wherein the fourth block in the updated block chain becomes a next block of the third block.
In a second aspect, a resource collection task management method is provided, and is applied to a terminal, where the method includes:
displaying task data and progress data of a resource collection task through a management interface provided by an application server, wherein the progress data is used for representing the collection progress of the resource collection task;
detecting resource transfer operation on the resource collection task through the management interface;
sending a resource transfer request to the application server, obtaining resource transfer data after the application server performs a resource transfer operation, where the resource transfer data at least includes the number of resources transferred to the resource collection task by the first terminal, generating a second block for recording the resource transfer data according to the resource transfer data and a feature value of a first block in the block chain, adding the second block to a block chain configured for each data node in the block chain network, and obtaining an updated block chain, where the second block in the updated block chain becomes a next block of the first block;
the blockchain network comprises a plurality of application servers as data nodes, each data node is configured with the same blockchain, and the blockchains are used for storing task data of each resource collection task.
In a third aspect, a resource collection task management method is provided, where the method is applied in a terminal, and the method includes:
displaying a management interface provided by an application server, wherein the application server is a data node in a block chain network, the block chain network comprises a plurality of application servers as data nodes, and each data node is configured with the same block chain;
detecting issuing operation through the management interface, wherein the issuing operation comprises task data of a resource collection task to be issued;
sending a resource collection task issuing request to the application server, wherein the resource collection task issuing request carries the task data, the application server generates a fourth block for recording the task data according to the task data and a feature value of a third block in the block chain, and the fourth block is added to the block chain configured for each data node to enable the fourth block to become a next block of the third block.
In a fourth aspect, a resource collection task management apparatus is provided, which is applied in an application server of a blockchain network, where the blockchain network includes a plurality of application servers as data nodes, each data node configures an identical blockchain, and the blockchains are used to store task data of each resource collection task, and the apparatus includes:
the receiving module is used for receiving a resource collection task issuing request sent by a terminal, wherein the resource collection task issuing request carries task data of the resource collection task;
and the block processing module is used for generating a fourth block for recording the task data according to the task data and the characteristic value of the third block in the block chain, adding the fourth block in the block chain configured for each data node to obtain an updated block chain, and enabling the fourth block in the updated block chain to be the next block of the third block.
In a fifth aspect, a resource collection task management device is provided, which is applied in a terminal, and the device includes:
the system comprises a display module, a management module and a scheduling module, wherein the display module is used for displaying task data and progress data of a resource collection task through a management interface provided by an application server, and the progress data is used for representing the collection progress of the resource collection task;
the detection module is used for detecting resource transfer operation on the resource collection task through the management interface;
a sending module, configured to send a resource transfer request to the application server, where the application server obtains resource transfer data after performing a resource transfer operation, where the resource transfer data at least includes a quantity of resources transferred to the resource collection task by the first terminal, generate a second block for recording the resource transfer data according to the resource transfer data and a feature value of a first block in the block chain, and add the second block to a block chain configured for each data node in a block chain network, so that the second block becomes a next block of the first block;
the blockchain network comprises a plurality of application servers as data nodes, each data node is configured with the same blockchain, and the blockchains are used for storing task data of each resource collection task.
In a sixth aspect, a resource collection task management apparatus is provided, which is applied in a terminal, and includes:
the system comprises a display module, a management module and a management module, wherein the display module is used for displaying a management interface provided by an application server, the application server is a data node in a block chain network, the block chain network comprises a plurality of application servers as the data node, and each data node is configured with the same block chain;
the detection module is used for detecting issuing operation through the management interface, and the issuing operation comprises task data of a resource collection task to be issued;
a sending module, configured to send a resource collection task issuing request to the application server, where the resource collection task issuing request carries the task data, the application server generates a fourth block for recording the task data according to the task data and a feature value of a third block in the block chain, and adds the fourth block in the block chain configured for each data node, so that the fourth block becomes a next block of the third block.
In a seventh aspect, there is provided a resource collection task management apparatus, comprising a processor and a memory, wherein the memory stores at least one instruction, at least one program, a set of codes, or a set of instructions, and the instruction, the program, the set of codes, or the set of instructions is loaded by the processor and has the operations to implement the method for resource collection task management according to the first aspect, the second aspect, or the third aspect.
In an eighth aspect, there is provided a computer-readable storage medium having stored therein at least one instruction, at least one program, a set of codes, or a set of instructions, which is loaded by a processor and has an operation to implement the method for resource collection task management of the first, second, or third aspect.
In a ninth aspect, a resource collection task management system is provided, where the resource collection task management system includes multiple application servers as data nodes of a blockchain network, and each data node is configured with the same blockchain;
the application server is configured to perform operations performed by the application server in the resource collection task management method according to the first aspect.
According to the method, the device and the storage medium provided by the embodiment of the invention, based on the resource collection task issuing request sent by the terminal, the task data of the resource collection task is stored into the block chain in a block form. The next block in the block chain is generated according to the characteristic value of the previous block, and the front block and the rear block have an incidence relation, so that the block chain has the characteristic that data cannot be falsified, the task data is prevented from being lost or falsified in a mode of storing the task data into the block chain, the safety and the reliability of the task data are guaranteed, the possibility of surcharge of the crowd funding platform is greatly reduced, the data transparency and the trust degree are favorably improved, and the resource collection task can be conveniently subjected to resource transfer or inquiry and other management operations through the block chain in the follow-up process.
And recording the resource collection task in a blockchain of the blockchain network, and storing the acquired resource transfer data into the blockchain in a form of a block when the first user wants to transfer the resource to the resource collection task. The next block in the block chain is generated according to the characteristic value of the previous block, and the front block and the rear block have an incidence relation, so that the data cannot be falsified, the resource transfer data is prevented from being lost or falsified in a mode of storing the resource transfer data in the block chain, the safety and the reliability of the resource transfer data are ensured, malicious users are prevented from falsifiing or rejecting events of transferring resources, the follow-up management operations of inquiring the events of transferring resources through the block chain and the like are facilitated, the users on a plurality of crowd-funded platforms can inquire task data and progress data of resource collection tasks, and the inquiry operation is convenient and rapid. In addition, the supervision department can effectively inquire and supervise the resource collection task, the operation standardization of the crowd funding platform is guaranteed, and the illegal behaviors can be found in time.
And the data is verified by at least one endorsement node according to the endorsement policy, and the data is allowed to be stored in the block chain only when the verification passing message received by the application server meets the endorsement policy, so that the safety and the reliability are further ensured.
And the data transmitted in the block chain network is encrypted according to the public key and decrypted according to the private key, so that the possibility of data tampering in the transmission process is avoided, and the safety and reliability of the data in the transmission process are ensured.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, 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 invention, 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 schematic flow chart of a resource collection provided by the related art;
fig. 2 is a schematic structural diagram of a crowd funding platform provided in the related art;
FIG. 3 is a schematic illustration of an implementation environment provided by an embodiment of the invention;
FIG. 4 is a schematic illustration of an implementation environment provided by an embodiment of the invention;
FIG. 5 is a schematic illustration of an implementation environment provided by an embodiment of the invention;
FIG. 6 is a schematic illustration of an implementation environment provided by an embodiment of the invention;
FIG. 7 is a schematic illustration of an implementation environment provided by an embodiment of the invention;
FIG. 8 is a diagram illustrating a resource collection task management method according to an embodiment of the present invention;
fig. 9 is a schematic operational flow diagram of publishing crowd funding project according to an embodiment of the present invention;
FIG. 10 is a diagram illustrating a resource collection task management method according to an embodiment of the present invention;
FIG. 11 is a diagram illustrating a resource collection task management method according to an embodiment of the present invention;
fig. 12 is a schematic operational flow diagram of an investment crowd-funding project according to an embodiment of the present invention;
FIG. 13 is a schematic structural diagram of a resource collection task management apparatus according to an embodiment of the present invention;
FIG. 14 is a schematic structural diagram of a resource collection task management apparatus according to an embodiment of the present invention;
FIG. 15 is a schematic structural diagram of a resource collection task management apparatus according to an embodiment of the present invention;
fig. 16 is a schematic structural diagram of a server according to an embodiment of the present invention;
fig. 17 is a schematic structural diagram of a terminal according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the embodiments of the present invention will be described in further detail with reference to the accompanying drawings.
Before describing the embodiments of the present invention in detail, the concepts related to the embodiments of the present invention will be described as follows:
1. resource collection task: or crowd funding task, refers to the act of recruiting resources to the crowd to support an originating individual or organization. Resources gathered by the financing party can be used for supporting various activities, including disaster reconstruction, folk collection, competitive activities, startup investment recruitment, artistic creation, design invention, scientific research and the like.
The crowd funding task generally relates to a financing party, an investor and a crowd funding platform, generally, the financing party and the investor are connected through a crowd funding platform in the internet, and the crowd funding task has the characteristics of low threshold, diversity and dependence on the public power.
2. Block chains:
in a narrow sense, a blockchain is a chain-type data structure formed by combining data blocks in a sequential connection manner according to a time sequence, and is a distributed account book which is cryptographically guaranteed to be not falsifiable and not forged.
Broadly speaking, the blockchain technology is a brand new distributed infrastructure and computing method that uses blockchain data structures to verify and store data, uses a distributed node consensus algorithm to generate and update data, uses cryptography to ensure the security of data transmission and access, and uses intelligent contracts to manipulate data.
A plurality of data nodes (also called peer nodes) in the blockchain network are configured with the same blockchain, and data is stored in the blockchain, so that the stored data is ensured to be synchronous. And the adjacent blocks in the block chain have an incidence relation, so that any data in the blocks can be detected by the next block when being tampered, thereby avoiding the data from being tampered and ensuring the safety and reliability of the data.
3. Federation chain:
block chains are currently classified into three categories: public, private, and federation chains. Where public chains are open to all, private chains are open to individual individuals or groups of organizations, and federation chains are open to specific groups of organizations.
In the embodiment of the invention, one or more specific crowd-funding platforms participate in the blockchain to form a alliance chain, and the alliance chain is used for managing related data of the resource collection task.
4. Cloud computing: is an internet-based augmentation, usage and delivery model for related services, and generally involves providing dynamically scalable and often virtualized resources over the internet.
The cloud computing model may provide available, convenient, on-demand network access into a shared pool of configurable computing resources (resources including networks, servers, storage, applications, services, etc.) that can be provisioned quickly, with little administrative effort, or interaction with service providers.
In the embodiment of the invention, a block chain network is constructed based on cloud computing, and block chain service is provided for users.
FIG. 3 is a schematic diagram of an implementation environment provided by an embodiment of the invention. As shown in fig. 3, the implementation environment is a resource collection task management system, which is used for managing resource collection tasks and can provide functions of issuing resource collection tasks, investing resource collection tasks, inquiring resource collection tasks, and the like. The user of the resource collection task management system can comprise a financer and an investor, the financer issues a resource collection task in the resource collection task management system, the investor transfers resources to the financer of the resource collection task in the resource collection task management system, and the financer and the investor can inquire related data such as task data or progress data of the resource collection task.
The resource collection task management system includes a blockchain network 300, where the blockchain network 300 includes at least one application server 3001 as a data node, that is, the application server 3001 may implement multiple functions configured by itself, such as a login verification function, a function of displaying an interface at a terminal, a function of issuing a resource collection task, and a function of transferring resources for the resource collection task, and may also be used as a data node of the blockchain network 300, configure a blockchain for storing data, and implement data synchronization with other data nodes 3001 of the blockchain network 300.
Each data node 3001 is configured with the same blockchain, which is composed of a plurality of blocks, the blocks in a blockchain are stored in time sequence, and new blocks are added as the blockchain is used. Each block is used for recording data related to one transaction, such as task data of a released resource collection task, resource transfer data generated when a certain investor invests resources for the resource collection task, or other data related to the resource collection task.
Then, when the application servers of the crowd-funding platforms are added into the block chain network to form a alliance chain, the data related to the resource collection task issued by each crowd-funding platform can be shared among the crowd-funding platforms.
In one possible implementation, referring to fig. 4, the blockchain network 300 may further include at least one endorsement node 3002 for validating data requesting uplink registration. When the application server requests to store data such as task data of a resource collection task or resource transfer data generated when the resource collection task transfers resources to the block chain network, the data is submitted to the endorsement node 3002 for verification, and the data is allowed to be stored in the block chain only after the endorsement node 3002 passes the verification.
In another possible implementation manner, referring to fig. 5, the blockchain network further includes a sorting node 3003, and the sorting node 3003 is connected to the endorsement node 3002 and is configured to sort data for requesting uplink registration. When the application server 3001 requests to store task data of a resource collection task or data such as resource transfer data generated when the resource collection task transfers resources to the blockchain network, the data is first submitted to the sorting node 3003 through the endorsement node 3002 for sorting, and the sorting node 3003 generates a block based on the sorted data each time and adds the block to the blockchain configured by the data node 3001.
FIG. 6 is a schematic diagram of an implementation environment provided by an embodiment of the invention. As shown in fig. 6, each crowd-funding platform 601 in the implementation environment is provided with a first application server 6011, a storage system 6012, and a second application server 6013, where the first application server 6011 and the second application server 6013 perform data interaction through an interface, and the second application server 6013 of one or more crowd-funding platforms 601 is added to a blockchain network 602 to become a data node of the blockchain network 602. In addition, an endorsement node 6021 and an ordering node 6022 are also included in the blockchain network 602.
The first application server 6011 is configured to implement basic functions of the crowd funding platform 601, such as a login verification function, a function of displaying an interface at a terminal, a function of issuing a resource collection task, a function of transferring resources to the resource collection task, and the like, for example, the first application server 6011 may include a firewall server, a load control server, a static resource server, a front-end application server, and the like. And the data generated by the first application server 6011 is submitted to the second application server 6013, and then stored in the blockchain network 602, and is opened to a plurality of crowd-funding platforms through the blockchain network 602. In addition, data generated by the first application server 6011 may be stored in the storage system 6012.
In the embodiment of the invention, each crowd-funding platform is added into the management platform as a member, so that an alliance chain is formed, a transmission channel is established among a plurality of members, relevant data of the resource collection task is stored in the management platform in a block chain mode, each crowd-funding platform interacts with the management platform through a uniform interface, data sharing among the crowd-funding platforms is realized, and various functions of releasing the resource collection task, transferring the resource collection task and the like are realized. The management platform can be built based on a BASS (Block chain service), and the crowd funding platform interacts with the BASS cloud platform through a uniform REST API (an interface which uses a fixed resource identifier and variable parameters to access a certain service to complete a series of service requests).
Based on the above-mentioned implementation environments shown in fig. 3 to 5, another implementation environment is provided in the embodiments of the present invention. Fig. 7 is a schematic diagram of another implementation environment provided by an embodiment of the present invention, referring to fig. 7, the implementation environment includes a blockchain network 701, a first terminal 702, and a second terminal 703, where the blockchain network 701 includes one or more application servers 7011 as data nodes, the first terminal 702 and the second terminal 703 are both connected to any application server 7011 through a network, and the application servers 7011 connected to the first terminal 702 and the second terminal 703 may be the same or different (fig. 7 only takes the connected application servers 7011 as an example).
The first terminal 702 is a terminal configured by the investor, and can view the issued resource collection task through a management interface provided by the connected application server 7011, and can also initiate a resource transfer request for the resource collection task through the management interface, so as to invest resources for the resource collection task, and also share the generated resource transfer data and progress data on each application server 7011 in the blockchain network 701.
The second terminal 703 is a terminal configured by the financing party, and may issue the resource collection task through a management interface provided by the connected application server 7011, so that each application server 7011 in the blockchain network 701 shares task data of the resource collection task and resource transfer data and a progress number generated in a subsequent process.
In a possible implementation manner, both the first terminal 702 and the second terminal 703 may install an application client associated with the application server 7011, and interact with the application server 7011 through the application client, thereby implementing a function of managing a resource collection task.
In the current related technology, each crowd funding platform is respectively responsible for storing data on the platform, so that the data is easily tampered or lost. And a plurality of crowd funding platform resource collection tasks can not be shared, data are not intercommunicated, and the situation that one resource collection task repeatedly collects resources on different crowd funding platforms easily occurs.
The embodiment of the invention realizes a resource collection task management system based on cloud computing and block chains, and the application servers of all the crowd-funding platforms are set as data nodes of a block chain network by utilizing the characteristics of centralization, openness, transparency and tamper resistance of the block chains, so that the application servers can share the generated data with the application servers on other crowd-funding platforms through the block chain network while realizing management of resource collection tasks, the safety and reliability of the release process, the resource transfer process and the query process of the resource collection tasks on a plurality of crowd-funding platforms are ensured in the technical level on the basis of not depending on a specific credible main body, the situation that the same resource collection task repeatedly collects resources on different crowd-funding platforms is avoided, and the traceability of the data of the resource collection task is ensured, so that a funding party, The investor and the third-party supervision department can inquire related data at any time, so that the behaviors of the investor and the financing party are effectively restrained, the risk of the financing party of paying and surging and the risk of the investor rejecting the invested resources are reduced, and strong evidence can be provided for the legal department when property disputes occur.
The embodiment of the invention is applied to a scene of managing crowd-funding projects, provides a crowd-funding solution based on cloud computing and a block chain, constructs a crowd-funding alliance chain among a plurality of crowd-funding platforms based on a cloud computing technology and a block chain technology, and can release the crowd-funding projects on any crowd-funding platform when a certain user or a group organization needs to raise resources. By formulating a proper block chain endorsement mechanism, a plurality of crowd-funding platforms can check the same crowd-funding project, only the crowd-funding project which accords with the endorsement strategy can be online, and the crowd-funding project can be visible to investors on different crowd-funding platforms in an alliance chain after being online, namely the crowd-funding project can be shared on the plurality of crowd-funding platforms to attract a plurality of investors to invest the crowd-funding project, and when the investors invest in the project, investment information can be collected on the block chain in time to accelerate the funding progress; in addition, by utilizing the characteristics that the block chain cannot be tampered and can be traced, the behaviors of modifying the crowd funding project and the like by the platform side or the financing side can be avoided; by introducing the supervision node, the crowd funding platform and the crowd funding project become more transparent, and supervision is simpler and more convenient; based on the mature Bass service of the cloud platform, the block chain bottom platform can fully utilize the characteristics of high availability, integrated monitoring, global interconnection and intercommunication and the like of cloud computing, and management is more convenient.
The solutions for the related art and embodiments of the present invention are summarized as follows:
in the related art, because data among various crowd-funding platforms cannot be shared, the following problems can be caused:
1. the crowd funding platform lacks an auditing mechanism, and risks of privately tampering crowd funding projects and platform-side cash-up and potential escape exist.
2. Because data among a plurality of crowd-funding platforms are not intercommunicated, if a financing party publishes crowd-funding projects on the crowd-funding platforms, the situation that the same crowd-funding project changes phases and collects funds for many times exists.
3. The crowd funding platform with a large user amount generally has exclusivity, and does not allow the crowd funding project to be published on other crowd funding platforms.
In the embodiment of the invention, the cloud computing and block chain technology is applied to the crowd funding scene, and the method has the following advantages:
1. the crowd funding project is published on the block chain, is more public and transparent, and related data are difficult to tamper, so that the rights and interests of investors can be guaranteed to the maximum extent.
2. And the crowd-funding platforms establish an alliance chain, the crowd-funding projects share data and circulate resources in the alliance chain, the crowd-funding projects are quickly diffused to the crowd-funding platforms, and the fund funding speed is accelerated.
3. The alliance chain has strong expansibility and openness, and more crowd funding platforms can be introduced to expand influence. And the influence of the alliance chain is utilized to attract crowd funding platforms with large user quantity, and the exclusivity requirements of the crowd funding platforms are changed. And a supervision node can be introduced to realize the auditing and supervision of the crowd funding platform and the crowd funding project.
4. The BASS service can be used for deploying the block chain service platform by one key, and the realization is convenient and fast.
Fig. 8 is a schematic diagram of a resource collection task management method according to an embodiment of the present invention. An execution subject of the embodiment of the present invention is an application server serving as a data node in a second terminal and a block chain network, and a process of issuing a resource collection task by a financer is described in the embodiment of the present invention, with reference to fig. 8, the method includes:
801. and the second terminal displays a management interface provided by the application server, and detects issuing operation through the management interface, wherein the issuing operation comprises task data of the resource collection task to be issued.
In the embodiment of the present invention, the second terminal may be a device such as a mobile phone, a computer, a tablet computer, and the like, and the second terminal logs in the application server based on a second user identifier, where the second user identifier is used to represent an identity of a second user, and may be a user name or a user account of the second user, and the second user may be a personal user, an enterprise user, a bank user, a group organization user, and the like.
In the embodiment of the invention, the financing party uses the second terminal to access the application server by taking the second user as the financing party, the second terminal displays the management interface provided by the application server, and the resource collection task can be managed through the management interface.
When the resource collection task is to be issued by the financing party, the issuing operation is triggered on the management interface, and task data of the resource collection task to be issued is set so as to initiate a process of issuing the resource collection task. Optionally, a publishing option may be provided in the management interface, and when the financing party clicks the publishing option, the second terminal detects the publishing operation and provides a task data setting interface for the financing party to fill in various items of information of the task data in the task data setting interface.
The resource collection task is used for collecting resources, the resources to be collected may include multiple types of resources such as entity currency, virtual gifts, entity metal and the like circulating in each country, the task data may include a second user identifier of a financer, an account used by the financer to collect the resources, a type of the collected resources, a target resource quantity to be collected, a usage description of the collected resources, an expiration time of the collected resources, a quantity and a progress of the currently collected resources, and a resource allocation policy between the financer and the investor may be further included. Wherein the initial value of the number of resources that have been currently collected defaults to 0.
For example, when a certain user needs to raise money for treating a disease, a resource collection task may be issued, and task data of the resource collection task includes a user name "zhang san", a target resource amount "80 ten thousand" to be raised, a usage description "medical fee", and an expiration time "5 months and 1 day 2018". Or, when a certain company has a project to be invested, a resource collection task can be issued, and task data of the resource collection task comprises a company name 'XX development company', a target resource quantity '1 hundred million' to be raised, a purpose description 'XX block development project' and a resource allocation strategy of an investor and an investor, such as an obtained yield rate after investment of the investor or a resource allocation proportion between the investor and the investor.
802. And the second terminal sends a resource collection task issuing request to the application server, wherein the resource collection task issuing request carries task data.
The resource collection task issuing request is used for requesting the application server to issue the resource collection task, and the resource collection task issuing request can also carry a second user identifier so as to indicate which user issues the resource collection task.
803. And when the application server receives the resource collection task issuing request, generating a fourth block for recording the task data according to the task data and the characteristic value of the third block in the block chain, adding the fourth block in the block chain configured by each data node to obtain an updated block chain, and enabling the fourth block in the updated block chain to be the next block of the third block.
In the embodiment of the invention, one or more application servers are added into a blockchain network and used as data nodes of the blockchain network, each data node is configured with the same blockchain, so that data synchronization is realized, and the blockchains are used for recording resource collection tasks in the blockchains and storing task data of the resource collection tasks.
Therefore, when the application server receives a resource collection task issuing request, in order to implement the issuing of the resource collection task, the current last block in the block chain, that is, the third block, is determined, a fourth block for recording the task data is generated according to the task data and the feature value of the third block in the block chain, the fourth block is added to the block chain configured for each data node, an updated block chain is obtained, and the fourth block in the updated block chain becomes the next block of the third block. And the characteristic value of the fourth block is related to the characteristic value of the previous block, so that the purpose of connecting the adjacent blocks in series in the block chain is realized, the tampering of any information in the block chain can be detected by tracing the characteristic value stored in the next block, and the data security is ensured. The characteristic value may be a hash value of the data in the block or other characteristic values related to the data in the block.
In addition, in order to distinguish different resource collection tasks, the application server may allocate a task identifier, such as a task name, a task number, and the like, to the issued resource collection task, and store the task identifier as one item of task data in the block chain.
In a possible implementation manner, in order to ensure the safety and reliability of the data, the blockchain network may include at least one endorsement node, configured to verify the data requested to be stored, and set an endorsement policy, where the endorsement policy may specify the number of endorsement nodes used for verification, a verification manner, a verification passing condition, and the like, and the verification passing condition may be a minimum number of endorsement nodes that pass verification or a minimum proportion of all nodes of the blockchain network occupied by the endorsement nodes that pass verification.
When the application server receives the resource collection task issuing request, the application server sends task data to each endorsement node according to the endorsement policy, when at least one endorsement node receives the task data, the task data is verified, whether the task data meets the endorsement policy or not is verified, a verification passing message is returned to the application server after the verification passing, the application server receives the verification passing message returned by one or more endorsement nodes, when the received verification passing message meets the endorsement policy, a fourth block is generated according to the task data and the characteristic value of the third block, the fourth block is added to the block chain configured by each data node, and the updated block chain is obtained.
For example, the endorsement policy specifies that at least 5 endorsement nodes are required to perform verification, and at least 3 endorsement nodes can store data only after verification passes, the application server sends task data to the 5 endorsement nodes, and when a verification passing message returned by the at least 3 endorsement nodes is received, a fourth block is generated.
When each endorsement node verifies the task data according to the endorsement policy, whether the task data is generated according to a preset format, whether necessary information such as the quantity of target resources is omitted, whether a user who issues the task data is a legal user and the like can be verified. After the verification is passed, each endorsement node can sign the task data to obtain signature data, a verification passing message carrying the signature data is sent to the application server, and the application server can judge whether the received verification passing message meets the endorsement policy or not by verifying the signature data of the endorsement node.
In a possible implementation manner, the block chain network includes a sorting node, where the sorting node is configured to sort data requested to be stored, and then, for a generation process of a fourth block, the application server sends task data to one of the endorsement nodes, and the endorsement node that receives the task data sends the task data to the sorting node, and the sorting node sorts the task data, and generates a fourth block according to the sorted task data and a feature value of the third block, and sends the fourth block to each data node of the block chain network, where each data node can add the fourth block to a configured block chain to obtain an updated block chain.
For example, the sorting node sets a data queue, when receiving the task data, adds the task data to the data queue for sorting, generates a corresponding block for the data arranged at the first bit each time, and sends the block to each data node.
In addition, the sequencing node may also verify the task data, for example, verify whether signature data of the task data satisfies an endorsement policy, verify whether a format of the task data is legal, or verify a read data set of the task data, and allow the corresponding block to be generated for the task record after the verification is passed.
The read data set of the task data records the task identifier of the resource collection task corresponding to the task data and the block chain height for storing the task data, the block chain includes a plurality of blocks arranged according to a time sequence, and the block chain height is used for indicating the number of the blocks in the block chain, that is, the read data set records the number of the blocks in the block chain to which the task data is to be stored. The sequencing node may verify whether the blockchain height for which the task data is intended matches the actual height of the current blockchain to prevent the task data from colliding with other data requested to be stored to the blockchain. Or verifying whether the task data is generated according to a legal format, and whether the information such as the quantity of target resources is omitted.
Moreover, in the embodiment of the present invention, only for the task data, the scheduling node may actually receive various data such as the task data and the resource transfer data, and at this time, the received data is scheduled, and the data ranked first is processed each time.
In a possible implementation manner, in order to ensure the security in the data transmission process, a public key and a private key may be generated in advance for each node in the blockchain network, and the public key is opened to other nodes, so that when data transmission is performed between different nodes, data is encrypted according to the public key, and is decrypted according to the private key, so that the security of the data can be ensured by using a cryptography technology. Taking the first node and the second node as an example, when the first node sends the task data to the second node, the task data is encrypted according to the public key of the second node, the obtained encrypted data is sent to the second node, and the second node decrypts the encrypted data according to the private key to obtain the task data, so that the task data is prevented from being tampered.
After the application server issues the resource collection task, the application server can also send a resource collection task issuing result to the second terminal, and the second terminal displays the resource collection task issuing result on the management interface, so that the second user can know that the resource collection task is successfully issued. Or in another embodiment, when the application server fails to issue the resource collection task, the resource collection task issuing result is sent to the second terminal, so that the second user knows that the resource collection task fails to issue due to reasons such as failure of task data verification.
In another possible implementation manner, when receiving the resource collection task issuing request, the application server first calls the authentication service to perform authentication and authorization on the second terminal, and when the authentication and authorization passes, it indicates that the identity of the second terminal is legal, and then performs an operation of issuing the resource collection task. The authentication service may be a CA (digital certificate Authority) service or other services. Taking the CA service as an example, when the second user identifier is successfully registered, the application server calls the CA service to issue the digital certificate for the second user identifier, and when the second terminal logs in and initiates a resource collection task issuing request based on the second user identifier, the application server calls the CA service to authenticate the digital certificate for the second user identifier, and when the authentication passes, it indicates that the identity of the second user identifier is legal, and responds to the resource collection task issuing request.
In another possible implementation, the blockchain network may set an intelligent contract that specifies the operation of the data nodes in the blockchain network, and when the application server receives the resource collection task issuance request, the intelligent contract may be invoked to store task data of the resource collection task into the blockchain.
According to the method provided by the embodiment of the invention, based on the resource collection task issuing request sent by the second terminal, the task data of the resource collection task is stored into the block chain in a block form. The next block in the block chain is generated according to the characteristic value of the previous block, and the front block and the rear block have an incidence relation, so that the block chain has the characteristic that data cannot be falsified, the task data is prevented from being lost or falsified in a mode of storing the task data into the block chain, the safety and the reliability of the task data are guaranteed, the possibility of surcharge of the crowd funding platform is greatly reduced, the data transparency and the trust degree are favorably improved, and the resource collection task can be conveniently subjected to resource transfer or inquiry and other management operations through the block chain in the follow-up process.
And according to the endorsement strategy, at least one endorsement node verifies the task data, and only when the verification passing message received by the application server meets the endorsement strategy, if a sufficient number of endorsement nodes pass the verification, the task data is allowed to be stored in the block chain, so that the safety and the reliability are further ensured.
And the task data transmitted in the blockchain network is encrypted according to the public key and decrypted according to the private key, so that the possibility of tampering the task data in the transmission process is avoided, and the safety and reliability of the task data in the transmission process are ensured.
Fig. 9 is a schematic operational flow diagram of publishing crowd funding project according to an embodiment of the present invention, and referring to fig. 9, the operational flow includes:
step 1, a financing party initiates a crowd funding project release request to an application server through an application client of any crowd funding platform added to an alliance chain.
Step 2: the application server calls the CA service for authentication.
And step 3: after the authentication is passed, calling an intelligent contract to initiate a crowd funding project release proposal.
And 4, step 4: and each endorsement node executes an endorsement strategy to verify the crowd funding project requested to be issued and signs after the verification is passed, and returns a verification passing message carrying signature data to the application server.
And 5: the application server compares the signature data returned by the endorsement nodes, submits the crowd funding project to any endorsement node after determining that a sufficient amount of signature data are collected, and forwards the crowd funding project to the sequencing node by the endorsement node.
Step 6: and the sequencing node sequences the data of the crowd funding project, constructs a new block for the data arranged at the first position, sends the new block to all peer nodes, and adds the block in the block chain by the peer nodes.
Through the above 6 steps, the financing party can create an crowd-funding project, the crowd-funding project is stored in the alliance chain, all crowd-funding platforms added into the alliance chain can obtain relevant data of the crowd-funding project, and the investor can inquire the financing progress of the crowd-funding project or invest in the crowd-funding project on any crowd-funding platform.
Fig. 10 is a schematic diagram of a resource collection task management method according to an embodiment of the present invention. An execution subject of the embodiment of the present invention is a first terminal and an application server serving as a data node in a block chain network, and a process of querying a resource collection task by the first terminal is described in the embodiment of the present invention, with reference to fig. 10, where the method includes:
1001. and the first terminal displays a management interface provided by the application server, and detects query operation on the resource collection task through the management interface.
1002. The first terminal sends a task query request to the application server.
In the embodiment of the present invention, the first terminal may be a device such as a mobile phone, a computer, a tablet computer, and the like, and the first terminal logs in the application server based on a first user identifier, where the first user identifier is used to represent an identity of a first user, and may be a user name or a user account of the first user, and the first user may be a personal user, an enterprise user, a bank user, a group organization user, and the like. When the first terminal accesses the application server, a management interface provided by the application server is displayed, and the first user can trigger management operation on the management interface.
In the embodiment of the present invention, the management operation may be a query operation, and the query operation is used to instruct a query resource to collect relevant data of the task. For example, the management interface includes a query option for each resource collection task, and the first user may click on the query option for any resource collection task to trigger a query operation. And when detecting the query operation, the first terminal sends a corresponding task query request to the application server.
The task query request may carry a task identifier of the resource collection task and a first user identifier logged in by the first terminal, where the task identifier is used to indicate which resource collection task is queried, and the first user identifier is used to indicate an identity of a first terminal user.
1003. When the application server receives the task query request, the application server queries the task data of the resource collection task from the block chain and queries the progress data of the resource collection task from a preset database.
In the embodiment of the invention, each data node in the block chain network is configured with the same block chain and the preset database, the block chain is used for storing task data of each resource collection task, and the preset database is used for storing progress data of each resource collection task.
The progress data is used for representing the collection progress of the corresponding resource collection task, and can be obtained by counting according to task data of the corresponding resource collection task and at least one piece of resource transfer data generated when the resource collection task is invested into resources by at least one user. Optionally, the progress data is expressed as a difference between the target amount of resources and the currently collected amount of resources, or as a ratio between the currently collected amount of resources and the target amount of resources. When the resource collection task is issued, the initial value of the number of the currently collected resources can be set to 0, and when a user invests resources into the resource collection task at each subsequent time, the number of the currently collected resources can be accumulated according to the acquired resource transfer data, the number of the currently collected resources of the resource collection task is updated, and then the progress data of the resource collection task is updated.
The application server is used as a data node of the block chain network, stores relevant data of each issued resource collection task, such as task data, resource transfer data, progress data and the like, and can call the relevant data of any resource collection task to be displayed on the first terminal so as to be convenient for a user to check.
When the application server queries the task data, each block in the block chain can be traversed, a block containing a task identifier of the resource collection task is determined, and the task data recorded in the block is acquired. Or when the application server issues the resource collection task and records the task data, the application server establishes the corresponding relation between the task identifier of the resource collection task and the block where the task data is located, directly determines the block where the task data of the resource collection task is located according to the corresponding relation when the task data is inquired, and acquires the task data recorded in the block chain.
The application server can establish a corresponding relation between the task identification of the resource collection task and the progress data in a preset database, and determines the progress data of the resource collection task according to the corresponding relation when inquiring the progress data.
1004. And the application server sends the task data and the progress data to the first terminal.
1005. And the first terminal displays the task data and the progress data through the management interface.
And the application server takes the inquired task data and the progress data as inquiry results, returns the inquiry results to the first terminal and displays the inquiry results through the management interface by the first terminal. The user can check the task data and the progress data, and know information such as target resource quantity, collection deadline and the like of the resource collection task, so that the collection progress of the resource collection task is known, and whether to invest resources into the resource collection task is judged.
It should be noted that, the embodiment of the present invention is described by taking task data and progress data of a query resource collection task as an example. In another embodiment, the first terminal may query the task data and the progress data of the resource collection task in different manners, respectively. For example, the management interface comprises a first query option for querying task data and a second query option for querying progress data, the task data is queried in the blockchain when the selection operation of the user on the first query option is detected, and the progress data is queried in the blockchain when the selection operation of the user on the second query option is detected.
It should be noted that, in the embodiment of the present invention, a process of querying a resource collection task by a first terminal is taken as an example, and actually, a process of querying a resource collection task for other terminals is similar to this.
For example, the second terminal may be a financer for the resource collection task, and may perform the step of inquiring the collection progress of the resource collection task. That is, the method further includes:
and the second terminal displays a management interface provided by the application server, detects query operation on the resource collection task through the management interface and sends a task query request to the application server. When the application server receives the task query request, the application server queries the task data of the resource collection task from the block chain, queries the progress data of the resource collection task from a preset database, and sends the task data and the progress data to the second terminal. And the second terminal displays the task data and the progress data through the management interface.
Or the terminal configured by the department supervising the resource collection task management system can also execute the steps to inquire the collection progress of any resource collection task, so that the supervising personnel can inquire and supervise the resource collection task so as to find out the existing violation behavior in time.
According to the method provided by the embodiment of the invention, the task data of the resource collection task is stored in the block chain, the progress data of the resource collection task is stored in the preset database, the method is open to a plurality of crowd-funding platforms, the function of inquiring the resource collection task is provided, the task data and the progress data of the resource collection task can be inquired by users on the crowd-funding platforms, and the inquiry operation is convenient and rapid. In addition, the supervision department can effectively inquire and supervise the resource collection task, the operation standardization of the crowd funding platform is guaranteed, and the illegal behaviors can be found in time.
Based on the embodiment shown in fig. 10, after the first user views the data related to the resource collection task, the first user may invest the resource collection task with resources, and the specific process is described in detail in the embodiment shown in fig. 11 below.
Fig. 11 is a schematic diagram of a resource collection task management method according to an embodiment of the present invention. The execution subject of the embodiment of the present invention is the first terminal and the application server as the data node in the blockchain network, the embodiment of the present invention explains the process of transferring resources to the resource collection task by the sponsor, referring to fig. 11, after the above step 1005, the method includes:
1006. the first terminal detects resource transfer operation on the resource collection task through the management interface and sends a resource transfer request to the application server, wherein the resource transfer request comprises the quantity of resources to be transferred to the resource collection task.
The first user checks task data and progress data of the resource collection task and determines that a certain amount of resources are required to be invested into the resource collection task, resource transfer operation is triggered on a management interface, the amount of the resources to be transferred to a financing party is set, then the first terminal sends a resource transfer request to an application server, and the resource transfer request carries the amount of the resources and a first user identifier logged in by the first terminal. In addition, the resource transfer request may also carry a task identifier, which may indicate which resource collection task is to be invested in the resource.
For example, the management interface includes a resource transfer option of the resource collection task, and the first user may click the resource transfer option to trigger a resource transfer operation and set the number of resources to be invested in the resource collection task, where the set number of resources cannot be greater than a difference between a target number of resources of the resource collection task and a currently collected number of resources.
1007. And when the application server receives the resource transfer request, performing resource transfer operation based on the resource transfer request to acquire resource transfer data.
The task data of the resource collection task comprises an account of the resource collection task, the account is an account used by the financer for collecting the resources, and the account stores the quantity of the resources, and the quantity of the resources is used for indicating the quantity of the resources owned by the financer. The first user identifier may also set an account, where the account is an account used by the first user to store the resource, and the account stores the resource amount, where the resource amount is used to indicate how much of the resource the first user owns.
When the application server receives the resource transfer request, the resource transfer operation of the resource collection task is carried out, and the resource quantity is transferred from the account of the first user identifier to the account of the resource collection task, namely, the resource quantity is reduced from the account of the first terminal, and the resource quantity is increased to the account of the resource collection task. And resource transfer data is obtained aiming at the resource transfer operation, the resource transfer data at least comprises the resource quantity, the resource transfer data also can comprise a task identifier of a resource collection task, an account of the resource collection task, an account of a first user identifier, resource transfer time, a user identifier of a financer and the like, and the resource transfer data can represent an event that the first user transfers resources to the resource collection task.
1008. And the application server generates a second block for recording the resource transfer data according to the resource transfer data and the characteristic value of the first block in the block chain, adds the second block in the block chain configured by each data node to obtain an updated block chain, and the second block in the updated block chain becomes the next block of the first block.
In the embodiment of the invention, one or more application servers are added into a blockchain network and used as data nodes of the blockchain network, each data node is configured with the same blockchain, so that data synchronization is realized, and the blockchains are used for recording resource collection tasks in the blockchains and storing task data of the resource collection tasks.
Therefore, when the application server acquires the resource transfer data, the current last block in the block chain, namely the first block, is determined, a second block for recording the resource transfer data is generated according to the resource transfer data and the characteristic value of the first block, the second block is added in the block chain configured for each data node to obtain an updated block chain, the second block in the updated block chain becomes the next block of the first block, the resource transfer data is stored in the block chain, and the event that the first user puts resources into the resource collection task is recorded through the block chain. And the characteristic value of the second block is related to the characteristic value of the previous block, so that the purpose of connecting the adjacent blocks in the block chain in series is realized, the tampering of any information in the block chain can be detected by tracing the characteristic value stored in the next block, and the data security is ensured. The characteristic value may be a hash value of the data in the block or other characteristic values related to the data in the block.
In a possible implementation manner, in order to ensure the safety and reliability of the data, the blockchain network may include at least one endorsement node, configured to verify the data requested to be stored, and set an endorsement policy, where the endorsement policy may specify the number of endorsement nodes used for verification, a verification manner, a verification passing condition, and the like, and the verification passing condition may be a minimum number of endorsement nodes that pass verification or a minimum proportion of all nodes of the blockchain network occupied by the endorsement nodes that pass verification.
When the application server obtains the resource transfer data, the resource transfer data is sent to each endorsement node according to the endorsement policy, when at least one endorsement node receives the resource transfer data, the resource transfer data is verified, whether the resource transfer data meets the endorsement policy or not is verified, a verification passing message is returned to the application server after the verification is passed, the application server receives the verification passing message returned by one or more endorsement nodes, when the received verification passing message meets the endorsement policy, a second block is generated according to the resource transfer data and the characteristic value of the first block, and the second block is added to the block chain configured by each data node to obtain an updated block chain.
For example, the endorsement policy specifies that at least 5 endorsement nodes are required to perform verification, and at least 3 endorsement nodes can store data after verification passes, the application server sends the resource transfer data to the 5 endorsement nodes, and when a verification pass message returned by at least 3 endorsement nodes is received, the second block is generated.
When each endorsement node verifies the resource transfer data according to the endorsement policy, whether the resource transfer data are generated according to a preset format, whether the necessary information such as the transferred resource quantity is omitted, whether the transferred accounts and the transferred accounts are in an available state and the like can be verified. And after the verification is passed, each endorsement node can sign the resource transfer data to obtain signature data, and sends a verification passing message carrying the signature data to the application server, and the application server can judge whether the received verification passing message meets the endorsement policy through the signature data of the verification endorsement node.
In one possible implementation, a sorting node is included in the blockchain network, and the sorting node is used for sorting data requested to be stored. And aiming at the generation process of the second block, the application server sends resource transfer data to one endorsement node, the endorsement node receiving the resource transfer data sends the resource transfer data to the sequencing node, the sequencing node sequences the resource transfer data, generates the second block according to the sequenced resource transfer data and the characteristic value of the first block, and sends the second block to each data node of the block chain network, and each data node can add the second block to the configured block chain to obtain the updated block chain.
For example, the sorting node sets a data queue, when receiving the resource transfer data, adds the resource transfer data to the data queue for sorting, generates a corresponding block for the data arranged at the first bit each time, and sends the block to each data node.
In addition, the sequencing node may also verify the resource transfer data, for example, verify whether signature data of the resource transfer data satisfies an endorsement policy, verify whether a format of the resource transfer data is legal, or verify a read-write data set of the resource transfer data, and allow a corresponding block to be generated for the resource transfer data after the verification is passed.
The read data set of the resource transfer data records the task identifier of the resource collection task corresponding to the resource transfer data and the height of the block chain for storing the resource transfer data, the block chain includes a plurality of blocks arranged according to a time sequence, and the height of the block chain is used for indicating the number of blocks in the block chain, that is, the read data set records the number of blocks in the block chain to which the resource transfer data is to be stored. The sequencing node may verify whether the blockchain height for which the resource transfer data is intended matches the actual height of the current blockchain to prevent the resource transfer data from colliding with other data requesting storage to the blockchain. The resource amount transferred to the account is recorded in the write data set of the resource transfer data, and the sequencing node can verify whether the total resource amount collected by the resource collection task exceeds the target resource amount after the transferred account is transferred to the corresponding resource amount or whether the residual resource amount transferred to the account is enough to transfer to the corresponding resource amount.
Or the resource transfer data comprises the number of resources transferred from the transfer-out account and the number of resources transferred into the transfer-in account, and the sequencing node can verify whether the two resource numbers are equal or not, or verify whether the resource transfer data is generated according to a legal format or not, and whether the information such as the number of resources transferred from the transfer-out account and the number of resources transferred into the transfer-in account is omitted or not.
Moreover, in the embodiment of the present invention, only for the resource transfer data, the scheduling node may actually receive a plurality of data, such as task data and resource transfer data, and at this time, the received data is scheduled, and the data ranked first is processed each time.
In another possible implementation manner, in order to ensure the security in the data transmission process, a public key and a private key may be generated in advance for each node in the blockchain network, and the public key is opened to other nodes, so that when data transmission is performed between different nodes, data is encrypted according to the public key, decrypted according to the private key, and the security of the data is ensured by using a cryptography technology. Taking the first node and the second node as an example, when the first node is to send the resource transfer data to the second node, the resource transfer data is encrypted according to the public key of the second node, the obtained encrypted data is sent to the second node, and the second node decrypts the encrypted data according to the private key to obtain the resource transfer data, so that the resource transfer data is prevented from being tampered.
After the fourth block is generated, the application server may also send the resource transfer result to the first terminal, and the first terminal displays the resource transfer result on the management interface, so that the first user can know that the resource transfer operation is successful. Or in another embodiment, when the application server fails to perform the resource transfer operation or fails to verify the resource transfer data, the resource transfer result is sent to the first terminal, so that the first user knows the reason of the resource transfer failure.
In another possible implementation manner, when receiving the resource transfer request, the application server first invokes the authentication service to perform authentication on the first terminal, and when the authentication passes, it indicates that the identity of the first terminal is legal, and then performs the resource transfer operation. The authentication service may be a CA service or other services. Taking the CA service as an example, when the first user identifier is successfully registered, the application server calls the CA service to issue the digital certificate for the first user identifier, and when the first terminal logs in and initiates a resource transfer request based on the first user identifier, the application server calls the CA service to authenticate the digital certificate of the first user identifier, and when the authentication passes, it indicates that the identity of the first user identifier is legal, and responds to the resource transfer request.
In another possible implementation, the blockchain network may set an intelligent contract that specifies the operation of the data nodes in the blockchain network, and when the application server completes the resource transfer operation, the intelligent contract may be invoked to store the resource transfer data into the blockchain.
1009. The application server obtains the original progress data of the resource collection task from the preset database, carries out statistics according to the original progress data and the resource transfer data to obtain updated progress data of the resource collection task, and replaces the original progress data of the resource collection task in the preset database with the updated progress data.
The preset database is used for storing progress data of each resource collection task, and the progress data is used for representing the collection progress of the resource collection tasks.
When the application server stores the resource transfer data in the blockchain, the progress data of the resource collection task needs to be updated. In the updating process, the application server obtains the original progress data of the resource collection task from the preset database, the original progress data represents the quantity of the resources collected by the resource collection task before the resource transfer operation of the current time is carried out, the resource transfer data comprises the quantity of the resources collected by the resource collection task after the resource transfer operation of the current time is carried out, statistics is carried out according to the original progress data and the resource transfer data, updated progress data can be obtained and used for representing the quantity of the resources collected by the current resource collection task, the original progress data of the resource collection task in the preset database is replaced by the updated progress data, and the progress data is updated.
Optionally, in order to distinguish different resource collection tasks, the preset database may correspondingly store the task identifier and the progress data of the resource collection task, the application server obtains the original progress data corresponding to the task identifier of the resource collection task from the preset database, performs statistics according to the original progress data and the resource transfer data to obtain updated progress data, and replaces the original progress data with the updated progress data.
Optionally, the progress data is expressed as a difference between the target amount of resources and the currently collected amount of resources, or as a ratio between the currently collected amount of resources and the target amount of resources.
It should be noted that, for each data node except the application server, the data node may also set a preset database to store the progress data of the resource collection task, and when the data node adds a second block to the block chain based on the resource transfer data generated by the application server to obtain an updated block chain, the progress data in the preset database may also be updated according to the resource transfer data, thereby ensuring synchronization of the progress data on different data nodes.
The method provided by the embodiment of the invention records the resource collection task in the block chain of the block chain network, and stores the acquired resource transfer data into the block chain in a block form when the first user wants to transfer resources to the resource collection task. Because the next block in the block chain is generated according to the characteristic value of the previous block and the correlation relationship exists between the previous block and the next block, the block chain has the characteristic that data cannot be tampered, the resource transfer data is stored in the block chain, so that the resource transfer data is prevented from being lost or tampered, the safety and the reliability of the resource transfer data are ensured, the event that malicious users tamper or refuse to transfer resources is avoided, and the follow-up management operation such as query on the event of transferring resources through the block chain is facilitated.
And according to the endorsement policy, at least one endorsement node verifies the resource transfer data, and only when the verification passing message received by the application server meets the endorsement policy, if a sufficient number of endorsement nodes pass the verification, the resource transfer data is allowed to be stored in the block chain, so that the safety and the reliability are further ensured.
Moreover, the resource transfer data transmitted in the block chain network is encrypted according to the public key and decrypted according to the private key, so that the possibility of tampering the resource transfer data in the transmission process is avoided, and the safety and reliability of the resource transfer data in the transmission process are ensured.
Fig. 12 is a schematic operational flow diagram of an investment crowd-funding project provided by an embodiment of the present invention, and referring to fig. 12, the operational flow includes:
step 1, an investor checks crowd funding projects and determines the amount of money to be invested through an application client of any crowd funding platform added into an alliance chain, and initiates a crowd funding project investment request to an application server.
Step 2: the application server calls the CA service for authentication.
And step 3: and after the authentication is passed, transferring the corresponding amount of money from the account of the investor to the account of the crowd funding project, acquiring resource transfer data, and calling an intelligent contract to initiate an investment proposal.
And 4, step 4: and each endorsement node executes an endorsement strategy to audit resource transfer data generated by the investment crowd-funding project event, signs after the audit is passed, and returns a verification passing message carrying the signature data to the application server.
And 5: the application server compares the signature data returned by the endorsement nodes, submits the resource transfer data to any endorsement node after determining that a sufficient amount of signature data is collected, and forwards the resource transfer data to the sequencing node by the endorsement node.
Step 6: and the sequencing node sequences the resource transfer data, constructs a new block for the data arranged at the first position, sends the new block to all the peer nodes, and adds the block in the block chain by the peer nodes.
Through the above 6 steps, the investor can invest in one crowd-funding project, the resource transfer data is stored in the alliance chain, all crowd-funding platforms added into the alliance chain can obtain the resource transfer data of the crowd-funding project, and the investor can inquire the funding progress of the crowd-funding project or invest in the crowd-funding project on any crowd-funding platform.
It should be noted that, for the same resource collection task, the application server that issues the resource collection task in the embodiment shown in fig. 8 and the application server that queries data and transfers resources to the resource collection task in the embodiments shown in fig. 10 and 11 may be the same application server or different application servers. That is, when a financer issues a resource collection task on a certain crowd-funding platform, an investor on the same crowd-funding platform or investors on different crowd-funding platforms can query data of the resource collection task or transfer resources to the resource collection task, so as to help the financer collect resources.
Fig. 13 is a schematic structural diagram of a resource collection task management device according to an embodiment of the present invention. Referring to fig. 13, the apparatus is applied to an application server in a blockchain network, where the blockchain network includes a plurality of application servers as data nodes, and each data node configures the same blockchain and a preset database, and the apparatus includes:
the query module 1301 is configured to perform the steps of querying task data of the resource collection task from the block chain and querying progress data of the resource collection task from a preset database in the above embodiment;
a sending module 1302, configured to execute the step of sending the task data and the progress data to the first terminal in the foregoing embodiment;
a data obtaining module 1303, configured to perform the step of obtaining the resource transfer data of the first terminal in the foregoing embodiment;
the block processing module 1304 is configured to execute the steps of generating a second block for recording the resource transfer data according to the resource transfer data and the feature value of the first block in the block chain, and adding the second block to the block chain configured in each data node to obtain an updated block chain in the above embodiment.
Optionally, the blockchain network further includes at least one endorsement node, and the block processing module 1303 includes:
a sending unit, configured to execute the step of sending the resource transfer data to each endorsement node according to the endorsement policy in the above embodiment, where each endorsement node that receives the resource transfer data verifies the resource transfer data, and returns a verification passing message to the application server after the verification passes;
and the block processing unit is used for generating a second block and adding the second block in the block chain to obtain an updated block chain when the verification passing message received in the embodiment meets the endorsement policy.
Optionally, the blockchain network further includes a sorting node, and the block processing module 1303 includes:
a sending unit, configured to execute the step of sending the resource transfer data to any endorsement node in the foregoing embodiment, where the resource transfer data is sent to the sorting node by any endorsement node, the resource transfer data is sorted by the sorting node, a second block is generated according to the sorted resource transfer data and the feature value of the first block, and sent to each data node of the block chain network, and each data node of the block chain network adds the second block to the configured block chain, so as to obtain an updated block chain.
Optionally, the apparatus further comprises:
the counting module is used for carrying out counting according to the progress data and the resource transfer data in the embodiment to obtain the updated progress data;
and the replacing module is used for replacing the progress data of the resource collecting task in the preset database with the updated progress data.
Optionally, the apparatus further comprises:
a receiving module, configured to perform the step of receiving the resource collection task issuing request sent by the second terminal in the foregoing embodiment;
the block processing module 1303 is further configured to execute the steps of generating a fourth block according to the task data and the feature value of the third block and adding the fourth block to the block chain to obtain an updated block chain in the foregoing embodiment.
Optionally, the blockchain network further includes at least one endorsement node, and the block processing module 1303 includes:
the sending unit is used for executing the step of sending the task data to each endorsement node according to the endorsement policy in the embodiment, each endorsement node which receives the task data verifies the task data, and returns a verification passing message to the application server after the verification passes;
and the block processing unit is used for executing the steps of generating a fourth block and adding the fourth block in the block chain to obtain an updated block chain when the received verification passing message meets the endorsement policy in the embodiment.
Optionally, the blockchain network further includes a sorting node, and the block processing module 1303 includes:
a sending unit, configured to execute the step of sending the task data to any endorsement node in the above embodiment, where the task data is sent to the sorting node by any endorsement node, the task data is sorted by the sorting node, a fourth block is generated according to the sorted task data and a feature value of the third block, the fourth block is sent to each data node of the block chain network, and the fourth block is added to the configured block chain by each data node of the block chain network, so as to obtain an updated block chain.
Fig. 14 is a schematic structural diagram of a resource collection task management device according to an embodiment of the present invention. Referring to fig. 14, the apparatus is applied to a first terminal, and includes:
a display module 1401, configured to perform the steps of displaying the task data and the progress data in the foregoing embodiments;
a detecting module 1402, configured to perform the step of detecting, through a management interface, a resource transfer operation to a resource collection task in the foregoing embodiment;
a sending module 1403, configured to execute the step of sending the resource transfer request to the application server in the foregoing embodiment.
Optionally, the apparatus further comprises:
the detecting module 1402 is further configured to perform the step of detecting, through the management interface, the query operation on the resource collection task in the foregoing embodiment;
a sending module 1403, further configured to execute the step of sending the task query request to the application server in the foregoing embodiment;
the display module 1401 is further configured to perform the step of displaying the task data and the progress data through the management interface in the foregoing embodiment.
Fig. 15 is a schematic structural diagram of a resource collection task management device according to an embodiment of the present invention. Referring to fig. 15, the apparatus is applied to a second terminal, and includes:
a display module 1501, configured to perform the step of displaying the management interface provided by the application server in the foregoing embodiment;
a detection module 1502, configured to perform the steps of detecting the issuing operation through the management interface in the foregoing embodiment;
a sending module 1503, configured to execute the step of sending the resource collection task issuing request to the application server in the foregoing embodiment.
Optionally, the apparatus further comprises:
the detection module 1502 is further configured to perform the step of detecting, through the management interface, the query operation on the resource collection task in the foregoing embodiment;
the sending module 1503 is further configured to execute the step of sending the task query request to the application server in the foregoing embodiment;
the display module 1501 is further configured to display the task data and the progress data through the management interface in the foregoing embodiment.
All the above optional technical solutions may be combined arbitrarily to form optional embodiments of the present invention, and are not described herein again.
It should be noted that: the resource collection task management device provided in the above embodiment is only illustrated by the division of the above functional modules when managing the resource collection task, and in practical applications, the above function allocation may be completed by different functional modules according to needs, that is, the internal structure of the application server or the terminal is divided into different functional modules to complete all or part of the above described functions. In addition, the resource collection task management device and the resource collection task management method provided by the above embodiments belong to the same concept, and specific implementation processes thereof are detailed in the method embodiments and are not described herein again.
Fig. 16 is a schematic structural diagram of a server according to an embodiment of the present invention, where the server 1600 may generate a relatively large difference due to different configurations or performances, and may include one or more processors (CPUs) 1601 and one or more memories 1602, where the memory 1602 stores at least one instruction, and the at least one instruction is loaded and executed by the processors 1601 to implement the methods provided by the above method embodiments. Of course, the server may also have components such as a wired or wireless network interface, a keyboard, and an input/output interface, so as to perform input/output, and the server may also include other components for implementing the functions of the device, which are not described herein again.
The server 1600 may be used to perform the steps performed by the application server in the above-described resource collection task management method.
Fig. 17 shows a block diagram of a terminal 1700 according to an exemplary embodiment of the present invention, where the terminal 1700 is configured to execute the steps performed by the first terminal or the second terminal in the foregoing method embodiments.
The terminal 1700 may be a portable mobile terminal such as: smart phones, tablet computers, MP3 players (Moving Picture Experts Group Audio Layer III, motion Picture Experts compress standard Audio Layer 3), MP4 players (Moving Picture Experts Group Audio Layer IV, motion Picture Experts compress standard Audio Layer 4), notebook computers or desktop computers, and may also be AR devices such as AR glasses, AR helmets, and the like. Terminal 1700 may also be referred to by other names such as user equipment, portable terminal, laptop terminal, desktop terminal, and the like.
In general, terminal 1700 includes: a processor 1701 and a memory 1702.
The processor 1701 may include one or more processing cores, such as a 4-core processor, a 5-core processor, and the like. The processor 1701 may be implemented in at least one hardware form of a DSP (Digital Signal Processing), an FPGA (Field-Programmable Gate Array), and a PLA (Programmable Logic Array). The processor 1701 may also include a main processor, which is a processor for Processing data in an awake state, also called a Central Processing Unit (CPU), and a coprocessor; a coprocessor is a low power processor for processing data in a standby state. In some embodiments, the processor 1701 may be integrated with a GPU (Graphics Processing Unit) that is responsible for rendering and rendering content that the display screen needs to display. In some embodiments, the processor 1701 may further include an AI (Artificial Intelligence) processor for processing computing operations related to machine learning.
The memory 1702 may include one or more computer-readable storage media, which may be non-transitory. The memory 1702 may also include high-speed random access memory, as well as non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. In some embodiments, a non-transitory computer readable storage medium in the memory 1702 is used to store at least one instruction for the processor 1701 to carry out the resource collection task management method provided by the method embodiments of the present application.
In some embodiments, terminal 1700 may also optionally include: a peripheral interface 1703 and at least one peripheral. The processor 1701, memory 1702 and peripheral interface 1703 may be connected by buses or signal lines. Various peripheral devices may be connected to peripheral interface 1703 by a bus, signal line, or circuit board. Specifically, the peripheral device includes: at least one of a radio frequency circuit 1704, a touch display screen 1705, a camera 1706, an audio circuit 1707, a positioning component 1708, and a power source 1709.
The peripheral interface 1703 may be used to connect at least one peripheral associated with I/O (Input/Output) to the processor 1701 and the memory 1702. In some embodiments, the processor 1701, memory 1702, and peripheral interface 1703 are integrated on the same chip or circuit board; in some other embodiments, any one or both of the processor 1701, the memory 1702, and the peripheral interface 1703 may be implemented on separate chips or circuit boards, which are not limited in this embodiment.
The Radio Frequency circuit 1704 is used for receiving and transmitting RF (Radio Frequency) signals, also called electromagnetic signals. The radio frequency circuit 1704 communicates with a communication network and other communication devices via electromagnetic signals. The rf circuit 1704 converts the electrical signal into an electromagnetic signal for transmission, or converts the received electromagnetic signal into an electrical signal. Optionally, the radio frequency circuit 1704 includes: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a subscriber identity module card, and so forth. The radio frequency circuit 1704 may communicate with other terminals via at least one wireless communication protocol. The wireless communication protocols include, but are not limited to: metropolitan area networks, various generation mobile communication networks (2G, 3G, 4G, and 13G), Wireless local area networks, and/or WiFi (Wireless Fidelity) networks. In some embodiments, the rf circuit 1704 may further include NFC (Near Field Communication) related circuits, which are not limited in this application.
The display screen 1705 is used to display a UI (User Interface). The UI may include graphics, text, icons, video, and any combination thereof. When the display screen 1705 is a touch display screen, the display screen 1705 also has the ability to capture touch signals on or above the surface of the display screen 1705. The touch signal may be input as a control signal to the processor 1701 for processing. At this point, the display 1705 may also be used to provide virtual buttons and/or a virtual keyboard, also referred to as soft buttons and/or a soft keyboard. In some embodiments, display 1705 may be one, providing the front panel of terminal 1700; in other embodiments, display 1705 may be at least two, each disposed on a different surface of terminal 1700 or in a folded design; in still other embodiments, display 1705 may be a flexible display disposed on a curved surface or a folded surface of terminal 1700. Even further, the display screen 1705 may be arranged in a non-rectangular irregular figure, i.e., a shaped screen. The Display screen 1705 may be made of LCD (Liquid Crystal Display), OLED (Organic Light-Emitting Diode), or the like.
The camera assembly 1706 is used to capture images or video. Optionally, camera assembly 1706 includes a front camera and a rear camera. Typically, the front camera is disposed on the front panel of the terminal 1700 and the rear camera is disposed on the rear side of the terminal. In some embodiments, the number of the rear cameras is at least two, and each rear camera is any one of a main camera, a depth-of-field camera, a wide-angle camera and a telephoto camera, so that the main camera and the depth-of-field camera are fused to realize a background blurring function, and the main camera and the wide-angle camera are fused to realize panoramic shooting and VR (Virtual Reality) shooting functions or other fusion shooting functions. In some embodiments, camera assembly 1706 may also include a flash. The flash lamp can be a monochrome temperature flash lamp or a bicolor temperature flash lamp. The double-color-temperature flash lamp is a combination of a warm-light flash lamp and a cold-light flash lamp, and can be used for light compensation at different color temperatures.
The audio circuit 1707 may include a microphone and a speaker. The microphone is used for collecting sound waves of a user and the environment, converting the sound waves into electric signals, inputting the electric signals into the processor 1701 for processing, or inputting the electric signals into the radio frequency circuit 1704 for voice communication. For stereo capture or noise reduction purposes, multiple microphones may be provided, each at a different location of terminal 1700. The microphone may also be an array microphone or an omni-directional pick-up microphone. The speaker is used to convert electrical signals from the processor 1701 or the radio frequency circuit 1704 into sound waves. The loudspeaker can be a traditional film loudspeaker or a piezoelectric ceramic loudspeaker. When the speaker is a piezoelectric ceramic speaker, the speaker can be used for purposes such as converting an electric signal into a sound wave audible to a human being, or converting an electric signal into a sound wave inaudible to a human being to measure a distance. In some embodiments, the audio circuitry 1707 may also include a headphone jack.
The positioning component 1708 is used to locate the current geographic Location of the terminal 1700 to implement navigation or LBS (Location Based Service). The Positioning component 1708 may be a Positioning component based on a GPS (Global Positioning System) in the united states, a beidou System in china, a greiner System in russia, or a galileo System in the european union.
Power supply 1709 is used to power the various components in terminal 1700. The power supply 1709 may be ac, dc, disposable or rechargeable. When power supply 1709 includes a rechargeable battery, the rechargeable battery may support wired or wireless charging. The rechargeable battery may also be used to support fast charge technology.
In some embodiments, terminal 1700 also includes one or more sensors 1710. The one or more sensors 1710 include, but are not limited to: acceleration sensor 1711, gyro sensor 1712, pressure sensor 1713, fingerprint sensor 1714, optical sensor 1715, and proximity sensor 1716.
The acceleration sensor 1711 can detect the magnitude of acceleration on three coordinate axes of the coordinate system established with the terminal 1700. For example, the acceleration sensor 1711 may be used to detect components of gravitational acceleration in three coordinate axes. The processor 1701 may control the touch display screen 1705 to display a user interface in a landscape view or a portrait view according to the gravitational acceleration signal collected by the acceleration sensor 1711. The acceleration sensor 1711 may also be used for acquisition of motion data of a game or a user.
The gyro sensor 1712 may detect a body direction and a rotation angle of the terminal 1700, and the gyro sensor 1712 may cooperate with the acceleration sensor 1711 to acquire a 3D motion of the user on the terminal 1700. The processor 1701 may perform the following functions based on the data collected by the gyro sensor 1712: motion sensing (such as changing the UI according to a user's tilting operation), image stabilization at the time of photographing, game control, and inertial navigation.
Pressure sensors 1713 may be disposed on the side frames of terminal 1700 and/or underlying touch display 1705. When the pressure sensor 1713 is disposed on the side frame of the terminal 1700, the user's grip signal to the terminal 1700 can be detected, and the processor 1701 performs left-right hand recognition or shortcut operation according to the grip signal collected by the pressure sensor 1713. When the pressure sensor 1713 is disposed at the lower layer of the touch display screen 1705, the processor 1701 controls the operability control on the UI interface according to the pressure operation of the user on the touch display screen 1705. The operability control comprises at least one of a button control, a scroll bar control, an icon control and a menu control.
The fingerprint sensor 1714 is configured to capture a fingerprint of the user, and the processor 1701 is configured to identify the user based on the fingerprint captured by the fingerprint sensor 1714, or the fingerprint sensor 1714 is configured to identify the user based on the captured fingerprint. Upon identifying that the user's identity is a trusted identity, the processor 1701 authorizes the user to have relevant sensitive operations including unlocking the screen, viewing encrypted information, downloading software, paying for and changing settings, etc. Fingerprint sensor 1714 may be disposed on the front, back, or side of terminal 1700. When a physical key or vendor Logo is provided on terminal 1700, fingerprint sensor 1714 may be integrated with the physical key or vendor Logo.
The optical sensor 1715 is used to collect the ambient light intensity. In one embodiment, the processor 1701 may control the display brightness of the touch display screen 1705 based on the ambient light intensity collected by the optical sensor 1715. Specifically, when the ambient light intensity is high, the display brightness of the touch display screen 1705 is increased; when the ambient light intensity is low, the display brightness of the touch display screen 1705 is turned down. In another embodiment, the processor 1701 may also dynamically adjust the shooting parameters of the camera assembly 1706 according to the ambient light intensity collected by the optical sensor 1715.
Proximity sensors 1716, also known as distance sensors, are typically disposed on the front panel of terminal 1700. Proximity sensor 1716 is used to gather the distance between the user and the front face of terminal 1700. In one embodiment, when proximity sensor 1716 detects that the distance between the user and the front surface of terminal 1700 is gradually reduced, processor 1701 controls touch display 1705 to switch from a bright screen state to a dark screen state; when proximity sensor 1716 detects that the distance between the user and the front surface of terminal 1700 is gradually increased, processor 1701 controls touch display 1705 to switch from the breath-screen state to the bright-screen state.
Those skilled in the art will appreciate that the architecture shown in fig. 17 is not intended to be limiting with respect to terminal 1700, and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components may be employed.
The embodiment of the present invention further provides a resource collection task management device, where the resource collection task management device includes a processor and a memory, where the memory stores at least one instruction, at least one section of program, code set, or instruction set, and the instruction, the program, the code set, or the instruction set is loaded by the processor and has an operation to implement the resource collection task management method in the foregoing embodiment.
An embodiment of the present invention further provides a computer-readable storage medium, where at least one instruction, at least one program, a code set, or a set of instructions is stored in the computer-readable storage medium, and the instruction, the program, the code set, or the set of instructions is loaded by a processor and has an operation to implement the resource collection task management method of the foregoing embodiment.
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 a preferred embodiment of the present invention, and should not be taken as limiting the invention, and any modifications, equivalents, improvements, etc. made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (12)

1. A resource collection task management method is applied to a blockchain network, the blockchain network comprises a plurality of application servers which are used as data nodes, each data node is configured with the same blockchain and a preset database, the blockchain is used for storing task data of each resource collection task, the preset database is used for storing progress data of each resource collection task, and the progress data is used for representing the collection progress of the corresponding resource collection task, and the method comprises the following steps:
an application server receives a resource collection task issuing request sent by a terminal, wherein the resource collection task issuing request is used for requesting the application server to issue a resource collection task, and the resource collection task issuing request carries task data of the resource collection task;
generating a fourth block for recording the task data according to the task data and the characteristic value of the third block in the block chain, adding the fourth block in the block chain configured for each data node to obtain an updated block chain, wherein the fourth block in the updated block chain becomes a next block of the third block;
when the application server receives a task query request of the terminal, querying task data of the resource collection task from the block chain, querying progress data of the resource collection task from the preset database, wherein the progress data is obtained after statistics is carried out according to the task data of the resource collection task and at least one piece of resource transfer data;
and the application server sends the task data and the progress data to the terminal.
2. The method according to claim 1, wherein the blockchain network further includes at least one endorsement node, and the generating a fourth block for recording the task data according to the task data and the feature value of the third block, and adding the fourth block to a blockchain configured for each data node to obtain an updated blockchain includes:
the application server sends the task data to each endorsement node according to an endorsement strategy;
each endorsement node receiving the task data verifies the task data and returns a verification passing message to the application server after the verification passes;
and when the verification passing message received by the application server meets the endorsement policy, generating the fourth block according to the task data and the characteristic value of the third block, and adding the fourth block to the block chain configured by each data node to obtain an updated block chain.
3. The method according to claim 1 or 2, wherein the blockchain network further includes a sorting node, and the generating a fourth block for recording the task data according to the task data and the feature value of the third block, and adding the fourth block to the blockchain configured for each data node to obtain an updated blockchain includes:
the application server sends the task data to any endorsement node, and the arbitrary endorsement node sends the task data to the sequencing node;
the sorting node sorts the task data, generates a fourth block according to the sorted task data and the characteristic value of the third block, and sends the fourth block to each data node of the block chain network;
and each data node of the block chain network adds the fourth block in the block chain to obtain an updated block chain.
4. The method according to any one of claims 1-3, further comprising:
counting according to the progress data and the resource transfer data to obtain the updated progress data of the resource collection task;
and replacing the progress data of the resource collection task in the preset database with the updated progress data.
5. A resource collection task management method is applied to a terminal, and the method comprises the following steps:
displaying a management interface provided by an application server, wherein the application server is a data node in a block chain network, the block chain network comprises a plurality of application servers as data nodes, and each data node is configured with the same block chain;
detecting issuing operation through the management interface, wherein the issuing operation comprises task data of a resource collection task to be issued;
sending a resource collection task issuing request to the application server, wherein the resource collection task issuing request is used for requesting the application server to issue the resource collection task, the resource collection task issuing request carries the task data, the application server generates a fourth block for recording the task data according to the task data and a characteristic value of a third block in a block chain, the fourth block is added to the block chain configured for each data node to obtain an updated block chain, and the fourth block in the updated block chain becomes a next block of the third block;
detecting query operation on the resource collection task through the management interface;
sending a task query request to the application server, querying task data of the resource collection task from the block chain by the application server, and querying progress data of the resource collection task from a preset database, wherein the preset database is used for storing the progress data of each resource collection task, and the progress data is obtained after statistics is carried out according to the task data of the resource collection task and at least one piece of resource transfer data;
and when the task data and the progress data are received, displaying the task data and the progress data through the management interface.
6. A resource collection task management apparatus, applied to an application server in a blockchain network, where the blockchain network includes a plurality of application servers as data nodes, each data node is configured with a same blockchain and a preset database, the blockchain is used to store task data of each resource collection task, the preset database is used to store progress data of each resource collection task, and the progress data is used to indicate a collection progress of a corresponding resource collection task, the apparatus comprising:
the system comprises a receiving module, a resource collection task issuing module and a resource collection task issuing module, wherein the receiving module is used for receiving a resource collection task issuing request sent by a terminal, the resource collection task issuing request is used for requesting the application server to issue the resource collection task, and the resource collection task issuing request carries task data of the resource collection task;
the block processing module is configured to generate a fourth block for recording the task data according to the task data and a feature value of a third block in the block chain, add the fourth block to the block chain configured for each data node, and obtain an updated block chain, where the fourth block in the updated block chain becomes a next block of the third block;
the query module is used for querying task data of the resource collection task from the block chain and querying progress data of the resource collection task from the preset database when a task query request of the terminal is received, wherein the progress data is obtained after statistics is carried out according to the task data of the resource collection task and at least one piece of resource transfer data;
and the sending module is used for sending the task data and the progress data to the terminal.
7. The apparatus of claim 6, wherein the blockchain network further comprises at least one endorsement node, and wherein the block processing module comprises:
the sending unit is used for sending the task data to each endorsement node according to an endorsement strategy, verifying the task data by each endorsement node receiving the task data, and returning a verification passing message to the application server after the verification passes;
and the block processing unit is used for generating the fourth block according to the task data and the feature value of the third block when the verification passing message received by the application server meets the endorsement policy, and adding the fourth block to the block chain configured for each data node to obtain an updated block chain.
8. The apparatus of claim 6, wherein the blockchain network further comprises a sequencing node, and wherein the block processing module comprises:
a sending unit, configured to send the task data to any endorsement node, send the task data to the sorting node by any endorsement node, sort the task data by the sorting node, generate the fourth block according to the sorted task data and the feature value of the third block, send the fourth block to each data node of the block chain network, add the fourth block in the block chain by each data node of the block chain network, and obtain an updated block chain.
9. A resource collection task management device, applied to a terminal, the device comprising:
the system comprises a display module, a management module and a management module, wherein the display module is used for displaying a management interface provided by an application server, the application server is a data node in a block chain network, the block chain network comprises a plurality of application servers as the data node, and each data node is configured with the same block chain;
the detection module is used for detecting issuing operation through the management interface, and the issuing operation comprises task data of a resource collection task to be issued;
a sending module, configured to send a resource collection task issuing request to the application server, where the resource collection task issuing request is used to request the application server to issue the resource collection task, the resource collection task issuing request carries the task data, the application server generates a fourth block for recording the task data according to the task data and a feature value of a third block in a block chain, adds the fourth block in the block chain configured for each data node to obtain an updated block chain, and the fourth block in the updated block chain becomes a next block of the third block;
the detection module is further used for detecting query operation on the resource collection task through the management interface;
the sending module is further configured to send a task query request to the application server, the application server queries task data of the resource collection task from the block chain, and queries progress data of the resource collection task from a preset database, the preset database is configured to store the progress data of each resource collection task, and the progress data is obtained after statistics is performed according to the task data of the resource collection task and at least one piece of resource transfer data;
and the display module is further used for displaying the task data and the progress data through the management interface when the task data and the progress data are received.
10. A resource collection task management apparatus, 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 by the processor and has an operation to carry out the operation of the resource collection task management method according to any one of claims 1 to 4;
alternatively, an operation provided in the resource collection task management method according to claim 5.
11. A computer-readable storage medium having stored therein at least one instruction, at least one program, a set of codes, or a set of instructions, the instruction, the program, the set of codes, or the set of instructions being loaded by a processor and having an operation to implement the resource collection task management method according to any one of claims 1 to 4;
alternatively, an operation provided in the resource collection task management method according to claim 5.
12. A resource collection task management system is characterized by comprising a plurality of application servers as blockchain network data nodes, wherein each data node is configured with the same blockchain;
the application server is configured to perform the operations performed by the application server in the resource collection task management method according to any one of claims 1 to 4.
CN201910678946.6A 2018-04-27 2018-04-27 Resource collection task management method, device, storage medium and system Active CN110401715B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910678946.6A CN110401715B (en) 2018-04-27 2018-04-27 Resource collection task management method, device, storage medium and system

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910678946.6A CN110401715B (en) 2018-04-27 2018-04-27 Resource collection task management method, device, storage medium and system
CN201810392313.4A CN108696514B (en) 2018-04-27 2018-04-27 Resource collection task management method, device, storage medium and system

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
CN201810392313.4A Division CN108696514B (en) 2018-04-27 2018-04-27 Resource collection task management method, device, storage medium and system

Publications (2)

Publication Number Publication Date
CN110401715A CN110401715A (en) 2019-11-01
CN110401715B true CN110401715B (en) 2021-03-19

Family

ID=63845857

Family Applications (2)

Application Number Title Priority Date Filing Date
CN201910678946.6A Active CN110401715B (en) 2018-04-27 2018-04-27 Resource collection task management method, device, storage medium and system
CN201810392313.4A Active CN108696514B (en) 2018-04-27 2018-04-27 Resource collection task management method, device, storage medium and system

Family Applications After (1)

Application Number Title Priority Date Filing Date
CN201810392313.4A Active CN108696514B (en) 2018-04-27 2018-04-27 Resource collection task management method, device, storage medium and system

Country Status (1)

Country Link
CN (2) CN110401715B (en)

Families Citing this family (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11227282B2 (en) * 2018-08-20 2022-01-18 Probloch LLC Time-bounded activity chains with multiple authenticated agent participation bound by distributed single-source-of-truth networks that can enforce automated value transfer
CN109558130A (en) * 2018-10-25 2019-04-02 深圳市圆世科技有限责任公司 A kind of block chain framework of user interface
CN109585003A (en) * 2018-10-27 2019-04-05 平安医疗健康管理股份有限公司 A kind of medical resource method for tracing, server and system
CN109508973A (en) * 2018-11-09 2019-03-22 京东方科技集团股份有限公司 Price control method, apparatus and block catenary system based on block chain
CN110009317A (en) * 2018-12-27 2019-07-12 阿里巴巴集团控股有限公司 The monitoring method and device of resource transfers data
CN110874493A (en) * 2018-12-29 2020-03-10 厦门安妮股份有限公司 Block chain-based enterprise data tamper-proofing method
CN109547219A (en) * 2019-01-18 2019-03-29 杭州秘猿科技有限公司 Information collection and the method and apparatus for being submitted to block chain network
CN110417790B (en) * 2019-08-02 2021-11-23 中国工商银行股份有限公司 Block chain real-name system queuing system and method
CN110489488B (en) * 2019-08-21 2021-06-15 腾讯科技(深圳)有限公司 Data processing method and device
CN111104686B (en) * 2019-09-10 2021-07-30 腾讯科技(深圳)有限公司 Block chain network control method, device, equipment and storage medium
CN111611316A (en) * 2019-11-27 2020-09-01 朱培培 Data transmission device based on block chain
CN111045568B (en) * 2019-12-20 2021-05-14 腾讯科技(深圳)有限公司 Virtual article processing method, device, equipment and storage medium based on block chain
CN111738705A (en) * 2020-07-31 2020-10-02 支付宝(杭州)信息技术有限公司 Resource transfer method, device and equipment
CN112131266B (en) * 2020-08-12 2023-06-13 迅鳐成都科技有限公司 Method, device, system and storage medium for supporting block chain complex query
CN114520813B (en) * 2021-12-29 2023-09-01 浙江中环瑞蓝科技发展有限公司 Pollution source management and control system based on block chain

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102662567A (en) * 2012-03-23 2012-09-12 腾讯科技(深圳)有限公司 Method and device for triggering operation in webpage
CN105844505A (en) * 2016-03-17 2016-08-10 深圳市新世纪启航科技开发有限公司 Method of carrying out digital currency trading through block chain technology
CN106331151A (en) * 2016-09-19 2017-01-11 中国银联股份有限公司 Resource file processing system and method based on block chain structure
CN107067255A (en) * 2017-02-27 2017-08-18 腾讯科技(深圳)有限公司 The treating method and apparatus of account in block chain
CN107395353A (en) * 2017-04-24 2017-11-24 阿里巴巴集团控股有限公司 A kind of block chain common recognition method and device

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160277970A1 (en) * 2015-03-18 2016-09-22 John Werneke Mediated dynamic allocation of loads
CN105976232B (en) * 2016-06-24 2020-04-28 深圳前海微众银行股份有限公司 Asset transaction method and device
WO2018058108A1 (en) * 2016-09-26 2018-03-29 Shapeshift Ag System and method of providing a multi-asset rebalancing mechanism
CN106570757B (en) * 2016-11-07 2020-12-04 北京金股链科技有限公司 Crowd funding method, device and system based on block chain
CN106874393A (en) * 2017-01-13 2017-06-20 北京众享比特科技有限公司 Synchronizing traffic data method and system, Database Systems based on block chain
CN107301536B (en) * 2017-06-12 2019-07-12 腾讯科技(深圳)有限公司 Resource transfers method and device
CN107562775B (en) * 2017-07-14 2020-04-24 创新先进技术有限公司 Data processing method and device based on block chain
CN107729371B (en) * 2017-09-12 2020-04-21 深圳先进技术研究院 Data indexing and querying method, device, equipment and storage medium of block chain
CN107657438B (en) * 2017-09-18 2020-12-04 联动优势科技有限公司 Block chain generation method, data verification method, node and system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102662567A (en) * 2012-03-23 2012-09-12 腾讯科技(深圳)有限公司 Method and device for triggering operation in webpage
CN105844505A (en) * 2016-03-17 2016-08-10 深圳市新世纪启航科技开发有限公司 Method of carrying out digital currency trading through block chain technology
CN106331151A (en) * 2016-09-19 2017-01-11 中国银联股份有限公司 Resource file processing system and method based on block chain structure
CN107067255A (en) * 2017-02-27 2017-08-18 腾讯科技(深圳)有限公司 The treating method and apparatus of account in block chain
CN107395353A (en) * 2017-04-24 2017-11-24 阿里巴巴集团控股有限公司 A kind of block chain common recognition method and device

Also Published As

Publication number Publication date
CN110401715A (en) 2019-11-01
CN108696514B (en) 2022-04-01
CN108696514A (en) 2018-10-23

Similar Documents

Publication Publication Date Title
CN110401715B (en) Resource collection task management method, device, storage medium and system
CN109615516B (en) Resource transfer method, device, electronic equipment and storage medium
CN110245144B (en) Protocol data management method, device, storage medium and system
CN111245745B (en) Message sending method, device, node equipment and storage medium
CN111339086B (en) Block processing method, and data query method and device based on block chain
CN111008839A (en) Resource transfer data management method, device and storage medium
CN111340482B (en) Conflict detection method, device, node equipment and storage medium
CN110689460A (en) Traffic accident data processing method, device, equipment and medium based on block chain
CN110597924B (en) Block chain-based user identification processing method, device, equipment and storage medium
CN110555780B (en) Insurance data processing method, device and equipment based on block chain and storage medium
CN110598879A (en) Garbage recycling method, device and equipment based on block chain and storage medium
CN111339181B (en) Block storage method, block storage device, node equipment and storage medium
CN110851510A (en) Data processing method and device of transaction system based on block chain
CN111241115B (en) Data synchronization method, device, equipment and storage medium
CN110826103A (en) Block chain-based document authority processing method, device, equipment and storage medium
CN111260347A (en) Resource processing method, device and equipment based on block chain and storage medium
CN110933113A (en) Block chain-based interactive behavior detection method, device, equipment and storage medium
CN111212074B (en) Blockchain-based qualification identification method, device, equipment and storage medium
CN110599328B (en) Block chain based risk user determination method, device, equipment and storage medium
CN111667371B (en) Resource aggregation method, system, device and storage medium based on block chain
CN110855780B (en) Interview evaluation information sharing method, device, equipment and medium based on block chain
CN110659975B (en) Resource transfer method, device, equipment and storage medium based on block chain
CN111694892B (en) Resource transfer method, device, terminal, server and storage medium
CN111831385A (en) Business credit information processing method, device, equipment and storage medium
CN110597840A (en) Partner relationship establishing method, device, equipment and storage medium based on block chain

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
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 40015716

Country of ref document: HK

GR01 Patent grant
GR01 Patent grant