CN111667371A - Resource aggregation method, system, device and storage medium based on block chain - Google Patents

Resource aggregation method, system, device and storage medium based on block chain Download PDF

Info

Publication number
CN111667371A
CN111667371A CN202010611083.3A CN202010611083A CN111667371A CN 111667371 A CN111667371 A CN 111667371A CN 202010611083 A CN202010611083 A CN 202010611083A CN 111667371 A CN111667371 A CN 111667371A
Authority
CN
China
Prior art keywords
data
target
resource aggregation
node device
qualification
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202010611083.3A
Other languages
Chinese (zh)
Other versions
CN111667371B (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
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN202010611083.3A priority Critical patent/CN111667371B/en
Publication of CN111667371A publication Critical patent/CN111667371A/en
Application granted granted Critical
Publication of CN111667371B publication Critical patent/CN111667371B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/23Updating
    • G06F16/2365Ensuring data consistency and integrity
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/602Providing cryptographic facilities or services
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/64Protecting data integrity, e.g. using checksums, certificates or signatures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/03Credit; Loans; Processing thereof

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Business, Economics & Management (AREA)
  • Physics & Mathematics (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Databases & Information Systems (AREA)
  • Marketing (AREA)
  • Strategic Management (AREA)
  • Technology Law (AREA)
  • Health & Medical Sciences (AREA)
  • Bioethics (AREA)
  • General Health & Medical Sciences (AREA)
  • Computer Hardware Design (AREA)
  • General Business, Economics & Management (AREA)
  • Software Systems (AREA)
  • Economics (AREA)
  • Data Mining & Analysis (AREA)
  • Development Economics (AREA)
  • Computing Systems (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)

Abstract

The application discloses a resource aggregation method, a system, equipment and a storage medium based on a block chain, and belongs to the technical field of block chains. According to the method and the device, the first node equipment obtains the target qualification certification data from the block chain based on the resource aggregation type of the target mechanism, the target mechanism does not need to prepare the data by itself and submit the data offline, and time consumption in a data preparation stage is reduced; the first node device stores the resource aggregation request containing the target qualification data to the block chain, and the second node device acquires the target qualification data from the block chain for verification. By applying the scheme, the efficiency and the safety of the resource aggregation process are improved in two stages of data preparation and data verification.

Description

Resource aggregation method, system, device and storage medium based on block chain
Technical Field
The present application relates to the field of block chain technologies, and in particular, to a method, a system, a computer device, and a computer-readable storage medium for resource aggregation based on a block chain.
Background
The supply chain is a functional network chain structure which connects suppliers, manufacturers, distributors, retailers and purchasing users into a whole, and with the continuous promotion of social production modes, the supply chain mode is widely applied to various production fields, so that various links in production activities are well connected. Due to the mainstream transaction mode between credit enterprises in the supply chain, it is difficult for the enterprises to receive the payment in time, and the enterprises in the supply chain often need to obtain resource support through financing, i.e. resource aggregation, to maintain the subsequent production.
At present, when an enterprise in a supply chain carries out resource aggregation, different bill qualification materials need to be prepared according to resource aggregation types and are submitted to resource holding organizations such as banks in an online manner, the banks need to carry out manual examination and verification on the materials submitted by the enterprise, and resource transfer is carried out after the enterprise is determined to have the resource aggregation qualification. In the resource aggregation process, for an enterprise, the material preparation steps are complicated, the time consumption is long, the data security in the material submission process cannot be ensured, for resource holding organizations such as banks, whether the materials submitted by the enterprise are effective or not is difficult to determine in the auditing process, and the auditing period is long. Therefore, how to ensure the safety and the high efficiency of the resource aggregation process is an important research direction.
Disclosure of Invention
The embodiment of the application provides a resource aggregation method, a system, equipment and a storage medium based on a block chain, which can improve the efficiency and the safety of a resource aggregation process. The technical scheme is as follows:
in one aspect, a method for resource aggregation based on a block chain is provided, where the method includes:
the first node equipment responds to a data acquisition instruction of a target mechanism, and acquires target qualification certification data indicated by a resource aggregation type from qualification certification data of the target mechanism stored in a block chain based on a mechanism identification and the resource aggregation type of the target mechanism carried by the data acquisition instruction;
the first node equipment responds to a data submission instruction and generates a resource aggregation request, wherein the resource aggregation request comprises the organization identification, the resource aggregation type and the target qualification data;
the first node device constructing a target block based on the resource aggregation request and a block with a highest block height in the blockchain, and storing the target block to the blockchain in response to the common identification of the target block through the blockchain system;
the first node device sends prompt information of data storage completion to a second node device, wherein the prompt information carries storage position information of the resource aggregation request in the block chain;
the second node device obtains the resource aggregation request from the block chain based on the storage location information, and matches the target qualification certification data in the resource aggregation request with the aggregation condition corresponding to the resource aggregation type;
and the second node equipment responds to the successful matching and carries out resource transfer.
In one aspect, a resource aggregation system based on a block chain is provided, and the system includes a first node device and a second node device;
the first node device is configured to respond to a data acquisition instruction of a target organization, and acquire target qualification certification data indicated by a resource aggregation type from qualification certification data of the target organization stored in a block chain based on an organization identifier and the resource aggregation type of the target organization, which are carried by the data acquisition instruction; responding to a data submission instruction, and generating a resource aggregation request, wherein the resource aggregation request comprises the institution identification, the resource aggregation type and the target qualification data; constructing a target block based on the resource aggregation request and a block with a highest block height in the blockchain, and storing the target block to the blockchain in response to the consensus of the target block through the blockchain system; sending prompt information of data storage completion to second node equipment, wherein the prompt information carries storage position information of the resource aggregation request in the block chain;
the second node device is configured to obtain the resource aggregation request from the block chain based on the storage location information, and match the target qualification certification data in the resource aggregation request with an aggregation condition corresponding to the resource aggregation type; and responding to the matching success to perform resource transfer.
In one possible implementation, the system further comprises a third node device;
the first node device is configured to send a prompt message indicating that the data storage is completed to the third node device;
the third node device is configured to verify the resource aggregation request in response to the prompt message.
In a possible implementation manner, the third node device is configured to, in response to the hint information, obtain the resource aggregation request from the block chain based on storage location information in the hint information; and verifying the data state information of the target qualification data in the resource aggregation request.
In a possible implementation manner, the third node device is configured to obtain data state information of the target qualification data from the blockchain; determining that the target qualification certification data passes verification in response to the data state information not participating in resource aggregation; and in response to the data state information being that the resource aggregation is participated, determining that the target qualification data verification fails.
In a possible implementation, the third node device is configured to send the verification result to the second node device;
and the second node equipment is used for responding to the successful matching and the verification result is that the verification is passed, and performing resource transfer.
In one possible implementation, the third node device is configured to set the data state information of the target qualification data to a participated resource aggregation state in response to the target qualification data passing verification; based on a consensus mechanism, the data state information of the target qualification data is stored to the blockchain of the blockchain system.
In one possible implementation, the second node device is configured to store the matching result to the blockchain of the blockchain system based on a consensus mechanism.
In one possible implementation, the system further includes a node device of the target organization;
the first node device is used for sending the target qualification data to the node device of the target organization;
and the node equipment of the target organization is used for displaying the target qualification data on a data viewing interface.
In one aspect, a computer device is provided that includes one or more processors and one or more memories having at least one program code stored therein, the at least one program code being loaded and executed by the one or more processors to implement the operations performed by the block chain based resource aggregation method.
In one aspect, a computer-readable storage medium having at least one program code stored therein is provided, the at least one program code being loaded and executed by a processor to implement the operations performed by the block chain based resource aggregation method.
In one aspect, a computer program product is provided that includes computer instructions stored in a computer readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions to cause the computer device to implement the operations performed by the block chain based resource aggregation method.
According to the technical scheme provided by the embodiment of the application, the first node equipment acquires the target qualification certification data from the block chain based on the resource aggregation type of the target mechanism, the target mechanism does not need to prepare the data by itself and submit the data offline, and the time consumption of a data preparation stage is reduced; the first node device stores the resource aggregation request containing the target qualification data to the block chain, and the second node device acquires the target qualification data from the block chain for verification. By applying the scheme, the efficiency and the safety of the resource aggregation process are improved from two stages of data preparation and data verification.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a block chain system 100 according to an embodiment of the present disclosure;
FIG. 2 is a schematic diagram of an alliance chain system provided by an embodiment of the present application;
fig. 3 is a timing diagram of a resource aggregation method based on a block chain according to an embodiment of the present application;
FIG. 4 is a diagram of a data interaction architecture provided by an embodiment of the present application;
fig. 5 is a timing diagram of a resource aggregation method based on a block chain according to an embodiment of the present application;
fig. 6 is a flowchart of resource aggregation provided in an embodiment of the present application;
fig. 7 is a hierarchical framework diagram of a system for block chain resource aggregation according to an embodiment of the present application;
fig. 8 is a schematic diagram of data interaction of a node device according to an embodiment of the present application;
fig. 9 is a schematic structural diagram of a resource aggregation system based on a block chain according to an embodiment of the present application;
fig. 10 is a schematic structural diagram of a terminal according to an embodiment of the present application;
fig. 11 is a schematic structural diagram of a server according to an embodiment of the present application.
Detailed Description
To make the objects, technical solutions and advantages of the present application more clear, embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
In order to facilitate understanding of the technical processes of the embodiments of the present application, some terms referred to in the embodiments of the present application are explained below:
block chain (Block chain): the method is a novel application mode of computer technologies such as distributed data storage, point-to-point transmission, a consensus mechanism, an encryption algorithm and the like. The blockchain is essentially a decentralized database, which is a string of data blocks associated by cryptography, each data block containing information about a network transaction for verifying the validity (anti-counterfeiting) of the information and generating the next block, each block containing a timestamp and a link to the previous block. In a narrow sense, a blockchain is a distributed ledger of data blocks assembled in a sequential manner into a chain data structure in chronological order and cryptographically secured as non-falsifiable and non-forgeable, i.e. the data in the blockchain will be irreversible once recorded.
Consensus mechanism (Consensus mechanism): the block chain system is a mathematical algorithm for establishing trust and obtaining rights and interests among different nodes. In the block chain system, the verification and confirmation of the transaction can be completed in a short time through the voting of special nodes, and if a plurality of nodes with irrelevant benefits can achieve consensus on a transaction, all the nodes in the system can also achieve consensus on the transaction.
Smart contract (Smart contract): is a computer protocol intended to propagate, validate or execute contracts in an informational manner. Each node in the blockchain system can automatically execute a contract program according to a specific condition, can operate data stored in the chain, and is an important way for a user to interact with the blockchain and realize business logic by using the blockchain. The goal of smart contracts is to provide a secure method over traditional contracts and to reduce other transaction costs associated with the contracts, which allows for trusted transactions that are traceable and irreversible without third parties.
The present embodiment provides a blockchain system 100 implemented based on blockchain technology, and a system architecture of the blockchain system is described below.
Fig. 1 is a schematic diagram of a blockchain system 100 according to an embodiment of the present disclosure, and referring to fig. 1, the blockchain system 100 includes a plurality of node apparatuses 101, and each node apparatus 101 may belong to different organizations. For example, at least one node device 101 belongs to a bank, and at least one node device 101 belongs to a regulatory body, and of course, it may also be included that at least one node device 101 belongs to a target body that needs to perform resource aggregation. In addition, the blockchain system 100 may further include at least one client, that is, at least one node device 101 may have the client installed and operated therein, and the client may be a client of a target application for providing a resource aggregation function, for example, a client of a financial application, and the like.
The node device 101 may be any form of computing device in a network, such as a server, a host, a user terminal, etc. The node apparatus 101 and the node apparatus 101 can share data therebetween. Among them, the node devices 101 may establish a P2P network based on a Peer-To-Peer (P2P) protocol. The P2P Protocol is an application layer Protocol that runs on top of the Transmission Control Protocol (TCP) Protocol.
Each node apparatus 101 receives input information during normal operation, and maintains the shared data in the blockchain system 100 based on the received input information, that is, maintains the blockchain in the blockchain system 100. In order to ensure information intercommunication in the blockchain system 100, there may be an information connection between each node apparatus 101 in the blockchain system 100, and the node apparatuses 101 perform information transmission through the information connection. For example, when any node device 101 in the blockchain system 100 receives input information, other node devices 101 in the blockchain system 100 may also obtain the input information and store the input information as data in shared data, so that the data stored on all node devices 101 in the blockchain system 100 are consistent.
The technical scheme provided by the embodiment of the application can be combined with multiple fields and multiple application scenes, for example, the technical scheme can be combined with a supply chain, and when all organizations in the supply chain carry out resource aggregation, all organizations, banks, warranty companies, supervision agencies, bill qualification management platforms and the like in the supply chain can construct a block chain system. The blockchain system may be a federation chain system, see fig. 2, and fig. 2 is a schematic diagram of a federation chain system provided in the embodiment of the present application, and the federation chain system 201 may include node devices 202 of various enterprises in a supply chain, node devices 203 of banks, node devices 204 of a supervision platform, node devices 205 of a bill qualification management platform, and the like. Of course, the blockchain system may also be implemented in other forms, which is not limited in the embodiments of the present application. And each node device in the blockchain system performs data storage, data sharing and data verification through the blockchain. For example, when a target mechanism with resource aggregation requirement applies for resource aggregation, the data stored in the block chain is used as an application certificate, so that the application material does not need to be prepared, and the efficiency of a material preparation stage is improved; in the process of applying for resource aggregation, the application voucher is shared to resource holding organizations such as banks and warranty companies through a block chain, materials do not need to be submitted offline, and the safety of data is ensured; the resource holding mechanism verifies the qualification of the target mechanism based on the data in the block chain, and the difficulty of data verification can be effectively reduced because the data stored in the block chain cannot be deleted and tampered.
Fig. 3 is a timing diagram of a resource aggregation method based on a block chain according to an embodiment of the present application. The method can be applied to the above implementation environment, and the resource aggregation method is briefly described below with reference to fig. 3:
301. the first node equipment responds to a data acquisition instruction of a target organization, and acquires target qualification certification data indicated by a resource aggregation type from qualification certification data of the target organization stored in a block chain based on an organization identifier and the resource aggregation type of the target organization carried by the data acquisition instruction.
The first node device is deployed with a bill qualification management platform, and the bill qualification management platform is used for managing bill data, voucher data and the like. The target mechanism may be any mechanism in the supply chain.
In a possible implementation manner, a client of the ticket qualification management platform is installed and operated on the node device corresponding to the target organization, and the target organization can log in the client when applying for resource aggregation, select a resource aggregation type through the client, and send a data acquisition instruction to the first node device. The first node device executes a data acquisition step from a blockchain of a blockchain system in response to the data acquisition instruction. The block chain stores qualification certification data of a plurality of organizations, including bill data, voucher data, organization operation data and the like. And the first node equipment acquires target qualification certification data required by the target organization in the resource aggregation process from the block chain based on the organization identification and the resource aggregation type carried in the data acquisition instruction. Wherein an institution identification is used to uniquely identify an institution, optionally the institution identification is represented as an account address of the institution in the blockchain system, etc.
In the embodiment of the application, the first node device automatically acquires the target qualification certification data from the block chain system based on the resource aggregation type without inputting data by a user or sorting the data by the user according to the resource aggregation type, so that the data preparation stage is standardized and normalized, the time consumption of the data preparation stage is reduced, and data loss is avoided.
302. The first node device generates a resource aggregation request in response to the data submission instruction, the resource aggregation request including the institution identification, the resource aggregation type, and the target qualification data.
In a possible implementation manner, the first node device sends a prompt message of data acquisition completion to the node device of the target organization after data acquisition is completed, the target organization sends a data submission instruction to the first node device through the client after confirming that the acquired target qualification certification data is correct, and the first node device generates a resource aggregation request based on the organization identifier of the target organization, the resource aggregation type and the target qualification certification data. In a possible implementation manner, the first node device may further perform desensitization processing on the acquired target qualification certification data, and generate a resource aggregation request based on the desensitized target qualification certification data, so as to ensure data security of the target organization.
303. The first node device constructs a target block based on the resource aggregation request and a block with a highest block height in the blockchain, and stores the target block to the blockchain in response to a consensus that the target block passes through the blockchain system.
In one possible implementation, the first node device broadcasts the resource aggregation request to each target node device of the blockchain system, and each target node device may perform the step of target block construction. The target node device is a node device with an accounting function in the block chain system. In this embodiment, taking the example that the first node device constructs the target block as an example, the first node device stores the resource aggregation request into a memory pool, where the memory pool is used to store data that is not added to the block chain. The first node device obtains a hash value of a block with the highest block height in the block chain, and constructs a target block based on the data in the memory pool and the hash value of the block, wherein the target block comprises the resource aggregation request. For example, after the first node device receives the input information, the update timestamp may be updated to the time when the input information is received, different random numbers are tried, and the feature value calculation is performed multiple times, so that the calculated feature value satisfies the following formula (1):
SHA256(SHA256(version+prev_hash+meikle_root+ntime+nbits+x))<TARGET (1)
wherein, SHA256 is a characteristic value algorithm used for calculating a characteristic value; version is version information of the relevant block protocol in the block chain; the prev _ hash is a block head characteristic value of a parent block of the current block, namely a hash value of a block with the highest block height; merkle _ root is a characteristic value of the input information; ntime is the update time of the update timestamp; nbits is the current difficulty, is a fixed value within a period of time, and is determined again after exceeding a fixed time period; x is a random number; TARGET is a threshold value of the characteristic value, and the threshold value of the characteristic value is determined according to nbits.
When the random number meeting the formula is obtained through calculation, the information can be correspondingly stored, and a block header and a block main body are generated to obtain a target block. In response to the target block generation, the first node device broadcasts the target block to at least two other target node devices of the blockchain system based on the node identifiers of the other target node devices in the blockchain system, and each target node device verifies the target block; in response to the target node device verifying the target block, i.e., agreeing, the target block is added to the end of the blockchain.
It should be noted that the above description of the method for storing the resource aggregation request to the block chain is only an exemplary description, and the embodiment of the present application does not limit which method is specifically used to store the resource aggregation request to the block chain. In the embodiment of the application, the resource aggregation request is stored in the blockchain, and the blockchain system is applied to share data, so that data information among node devices is prevented from being broken and unequal, and data consistency among the node devices is ensured.
304. And the first node equipment sends prompt information for finishing data storage to the second node equipment, wherein the prompt information carries the storage position information of the resource aggregation request in the block chain.
The second node device is a node device corresponding to a resource holding organization such as a bank, a warranty organization and the like.
In a possible implementation manner, after the resource aggregation request is completely stored in the blockchain, the first node device needs to send a prompt message indicating that data storage is completed to the second node device, so as to prompt the second node device to verify the resource aggregation request of the target institution.
305. And the second node equipment acquires the resource aggregation request from the block chain based on the storage position information, and matches the target qualification certification data in the resource aggregation request with the aggregation condition corresponding to the resource aggregation type.
Optionally, the storage location information includes location information of the target block in a block chain and location information of the resource aggregation request in the target block.
In one possible implementation manner, the second node device obtains the resource aggregation request from the target block of the block chain based on the storage location information in the hint information. The second node device obtains the target qualification certification data and the resource aggregation type in the resource aggregation request, and matches the target qualification certification data with the aggregation condition corresponding to the resource aggregation type. The aggregation condition and the corresponding relationship between the resource aggregation type and the aggregation condition may be set by a developer, which is not limited in this application.
It should be noted that the above description of the method for verifying the resource aggregation request by the second node device is only an exemplary description of a verification method, and the embodiment of the present application does not limit which method is specifically adopted by the second node device to verify the resource aggregation request. In the embodiment of the application, because the data stored in the block chain cannot be deleted and tampered, the authenticity and the validity of the acquired data can be ensured, and therefore, the difficulty of data verification can be reduced by performing resource aggregation request verification based on the data in the block chain.
306. And the second node equipment responds to the successful matching and carries out resource transfer.
In a possible implementation manner, if the target qualification certification data is successfully matched with the aggregation condition corresponding to the resource aggregation type, the second node device transfers the resource to the target institution based on the account address of the target institution, and sends a prompt message of successful resource aggregation; and if the target qualification certification data is successfully matched with the aggregation condition corresponding to the resource aggregation type, the second node equipment sends prompt information of resource aggregation failure to the target mechanism to prompt the target mechanism to resubmit the qualification certification data.
According to the technical scheme provided by the embodiment of the application, the first node equipment acquires the target qualification certification data from the block chain based on the resource aggregation type of the target mechanism, the target mechanism does not need to prepare the data by itself and submit the data offline, and the time consumption of a data preparation stage is reduced; the first node device stores the resource aggregation request containing the target qualification certification data to the block chain, and the second node device acquires the target qualification certification data from the block chain for verification. By applying the scheme, the efficiency and the safety of the resource aggregation process are improved from two stages of data preparation and data verification.
In the embodiment of the present application, data interaction is performed between node devices corresponding to a target organization, node devices corresponding to resource holding organizations such as banks, node devices corresponding to a monitoring organization, and a bill qualification management platform based on a blockchain system, so that safety and efficiency of a resource aggregation process can be ensured. For example, fig. 4 is a data interaction architecture diagram provided in an embodiment of the present application, as shown in fig. 4, a business processing system and a financial system of a target organization 401, a core business system and a resource transfer business system of a bank 402, and a monitoring organization 403 for providing mid-registration, invoice data inspection, electronic subscription, real name authentication, and business networking verification functions may perform data interaction with a bill qualification management platform 404 in a blockchain system, and perform each step in a resource aggregation process based on bill data management, a certificate data management function, and data stored in a blockchain provided by the bill qualification management platform 404, so as to improve efficiency and security of the resource aggregation process. The resource aggregation process will be specifically described below with reference to fig. 5. Fig. 5 is a timing diagram of a resource aggregation method based on a block chain according to an embodiment of the present application, where the method may be applied in the implementation environment shown in fig. 1. Referring to fig. 5, this embodiment includes the steps of:
501. the first node device receives a data acquisition instruction of a target mechanism.
In a possible implementation manner, a client having a ticket qualification management platform is installed and operated on a node device corresponding to the target organization, that is, a fourth node device, where an account of the target organization may be logged in the client, and the fourth node device may display different interfaces of the client based on user operations. For example, the fourth node device may display a resource aggregation type selection interface, and the fourth node device may obtain the selected resource aggregation type in the resource aggregation type selection interface, and generate the data obtaining instruction. Wherein, the data acquisition instruction carries the mechanism identifier of the target mechanism and the resource aggregation type. And the first node equipment sends the data acquisition instruction to a background server of the bill management platform, namely the first node equipment.
It should be noted that the above description of the data acquisition instruction generation method is only an exemplary description, and the embodiment of the present application is not limited to which method is specifically adopted by the node device corresponding to the target mechanism, that is, the device in the fourth section, to generate the data acquisition instruction.
502. The first node device acquires target qualification data from a blockchain of the blockchain system in response to the data acquisition instruction.
In one possible implementation manner, the first node device obtains, based on the organization identifier, certification data including the organization identifier from the blockchain; determining at least one data type corresponding to the resource aggregation type based on the resource aggregation type; the first node device obtains the target qualification data including the type identifier from the qualification data based on the type identifier of the at least one data type. The different resource aggregation types correspond to different data types, and the correspondence between the resource aggregation types and the data types may be set by a developer, which is not limited in the embodiment of the present application.
In one possible implementation, the data acquisition process may be implemented based on a smart contract. For example, the data acquisition instruction may trigger a first intelligent contract in the blockchain system, the contract content of the first intelligent contract comprising acquiring data from the blockchain based on the organization identification of the target organization and the resource aggregation type. After the first intelligent contract is triggered, the steps appointed in the contract content can be executed, and the target qualification certification data required by the target mechanism in the resource aggregation process is obtained from the block chain.
It should be noted that the above description of the method for acquiring target qualification data is only an exemplary description, and the embodiment of the present application is not limited to which method is specifically adopted by the first node device to acquire the target qualification data.
503. The first node device sends the target qualification data to the fourth node device.
In a possible implementation manner, after the data is acquired, the first node device may send the target qualification data to a node device of the target organization, that is, a fourth node device, where the node device of the target organization displays the target qualification data on a data viewing interface, so that a user can check the target qualification data.
504. The first node device generates a resource aggregation request in response to a data submission instruction of the target qualification data by the fourth node device.
In a possible implementation manner, the data viewing interface may display a submission control, and when the node device corresponding to the target organization, that is, the fourth node device detects a trigger operation on the submission control, a data submission instruction is generated. The data submission instruction may carry an organization identifier of the target organization, and the triggering operation may be a click operation, a long-time press operation, or the like, which is not limited in the embodiment of the present application. It should be noted that the above description of the data submission instruction generation method is only an exemplary description, and the embodiment of the present application does not limit which method is specifically used to generate the data submission instruction. And the fourth node equipment sends the data submission instruction to the first node equipment, and the first node equipment responds to the data submission instruction and generates a resource aggregation request. Wherein the resource aggregation request includes the institution identification, the resource aggregation type, and target qualification data of the target institution.
505. The first node device stores the resource aggregation request to the block chain based on a consensus mechanism.
In this embodiment of the application, the first node device needs to store the resource aggregation request to the blockchain to ensure that data is not lost or tampered, and synchronize the resource sharing request to other node devices in the blockchain system through the blockchain, which is also convenient for the other node devices to perform data auditing.
It should be noted that the process of storing the resource aggregation request to the block chain is the same as that in step 303, and is not described herein again.
506. And the first node equipment responds to the resource aggregation request and stores the resource aggregation request into the block chain, and sends prompt information of data storage completion to the second node equipment and the third node equipment.
The second node equipment is corresponding to a resource holding organization such as a bank, and a user of the second node equipment determines the resource aggregation qualification of the target organization; the third node device is a node device corresponding to the supervision organization, and the third node device is used for verifying the resource aggregation request; the hint information carries the storage location information of the resource aggregation request in the block chain.
In this embodiment of the application, after the data storage is completed, the first node device needs to send a prompt message indicating that the data storage is completed to the node devices corresponding to the mechanism for performing data verification in the block chain system, that is, the second node device and the third node device, so that the node devices can verify the data in time, time consumed in the data verification stage is shortened, and the efficiency of resource aggregation is improved.
507. And the second node equipment responds to the prompt message, acquires the resource aggregation request from the block chain, and determines the resource aggregation qualification of the target institution based on the resource aggregation request.
In this embodiment, the second node device obtains the resource aggregation request from the block chain based on the storage location information, for example, based on location information of a target block storing the resource aggregation request in the block chain and location information of the resource aggregation request in the target block, and matches the target qualification certification data in the resource aggregation request with the aggregation condition corresponding to the resource aggregation type. In a possible implementation manner, a resource set type may correspond to at least one data type, where the data types are data types of data that a target entity needs to provide when performing resource aggregation, and each data type may correspond to an aggregation condition, where the aggregation condition is used to indicate a data value condition corresponding to a certain data type. For example, the data type is a product delivery record, and the corresponding aggregation condition may be set as a product delivery number of the target institution in a certain time period, and the like, which is not limited in the embodiment of the present application. The second node device may match data of each data type in the target qualification data with the corresponding data aggregation condition.
In a possible implementation manner, if, in the target qualification certification data, the data of each data type is successfully matched with the corresponding aggregation condition, or is successfully matched with aggregation conditions exceeding a target number, the first node device determines that the target qualification certification data is successfully matched with the resource aggregation type, that is, determines that the target institution has resource aggregation qualification; otherwise, the matching fails, and the target mechanism does not have the resource aggregation qualification.
In one possible implementation, the data matching and resource aggregation qualification determination process may be implemented based on an intelligent contract. For example, the hint information may trigger a second intelligent contract in the blockchain system, the contract content of the second intelligent contract including matching the target qualification data with the aggregation condition corresponding to the resource aggregation type. After the second intelligent contract is triggered, the steps appointed in the contract content can be executed to obtain a matching result and determine the resource aggregation qualification of the target mechanism.
It should be noted that the above description of the data matching and resource aggregation qualification determining method is only an exemplary description, and the second node device may also determine the resource aggregation qualification of the target institution based on other aspects, and the embodiment of the present application is not limited to which method is specifically adopted for data matching and determining the resource aggregation qualification of the target institution.
In a possible implementation manner, the second node device may further store the matching result to the blockchain of the blockchain system based on a consensus mechanism, so as to avoid data loss and tampering and facilitate data verification. It should be noted that the process of storing the matching result in the block chain is the same as the process of storing the resource aggregation request in the block chain in step 303, and details are not described herein.
508. And the third node equipment responds to the prompt message, acquires the resource aggregation request from the block chain and verifies the resource aggregation request.
In this embodiment, the third node device may obtain the resource aggregation request from the block chain based on the storage location information in the prompt information, and verify the target qualification data in the resource aggregation request. In one possible implementation, the third node device may verify data status information of the target qualification data. The data state information includes two states of participating in resource aggregation and not participating in resource aggregation, the data state information is stored in a block chain, and the data state information of one data carries the data identifier of the one data. Taking data state information verification of a target qualification data as an example, the third node device obtains the data state information of the target qualification data from the block chain based on the data identifier of the target qualification data; determining that the target qualification certification data passes verification in response to the data state information not participating in resource aggregation; and in response to the data state information being that the resource aggregation is participated, determining that the target qualification data verification fails.
In one possible implementation, the data validation process described above may be implemented based on smart contracts. For example, the hint information may trigger a third intelligent contract in the blockchain system, the contract content of the third intelligent contract including verifying the data state of the target qualification data. After the third intelligent contract is triggered, the steps appointed in the contract content can be executed, and the data state information is obtained from the block chain for data state verification.
It should be noted that the above description of the method for verifying the resource aggregation request by the third node device is only an exemplary description, and the third node device may also verify the resource aggregation request by other methods, which is not limited in this embodiment of the present application. In the embodiment of the present application, the third node device performs verification based on the data state information stored in the block chain, so that a situation that one qualification data participates in multiple resource aggregation can be avoided, and the security and normalization of resource aggregation are ensured.
In one possible implementation manner, the third node device sets the data state information of the target qualification data to be a participated resource aggregation state in response to the target qualification data passing verification, and stores the data state information of the target qualification data to the blockchain of the blockchain system based on a consensus mechanism. Of course, the third node device may also store the verification result of the data status information to the block chain for data verification. It should be noted that the process of storing the resource aggregation state and the verification result in the block chain is the same as the process of storing the resource aggregation request in the block chain in step 303, and is not described herein again.
It should be noted that, in this embodiment of the present application, an execution sequence of determining the resource aggregation qualification by the second node device first and then performing the data state verification by the third node device is described, in some embodiments, the data state verification by the third node device may be performed first and then determining the resource aggregation qualification by the second node device, or both steps are performed simultaneously, which is not limited in this embodiment of the present application.
509. The third node device sends the verification result to the second node device.
In this embodiment of the present application, after the data verification is completed, the third node device sends a verification result to the second node device, and the second node device may perform subsequent steps based on the verification result. For example, if the verification result is that the verification passes, the second node device may continue to perform step 410; if the verification result is that the verification fails, the second node device does not need to perform the step of resource transfer, and the second node device may send a prompt message of failure of resource aggregation to the node device corresponding to the target mechanism, that is, the fourth node device, so as to prompt the target mechanism to re-trigger the process of applying for resource aggregation.
510. And the second node equipment carries out resource transfer in response to the successful matching and the verification result is that the verification is passed.
In this embodiment, the second node device determines that the target qualification data is successfully matched with the aggregation condition, that is, it is determined that the target institution has resource aggregation qualification, and when the data verification result of the third node device is verification pass, resource transfer may be performed based on the account address of the target institution. In a possible implementation manner, when the second node device performs data matching, the resource aggregation qualification level of the target institution may be determined based on a matching condition of the target qualification data and the aggregation condition. For example, if the target qualification data is successfully matched with each resource aggregation condition, the resource aggregation qualification level of the target organization is level a, and if the target qualification data is successfully matched with aggregation conditions exceeding the target number, the resource aggregation qualification level is level B. The different resource aggregation qualification levels correspond to different resource aggregation limits, and the second node device can perform resource transfer based on the resource aggregation qualification level of the target institution and the account address of the target institution. The target number, the resource aggregation qualification level, and the resource aggregation amount may be set by a developer, which is not limited in the embodiment of the present application.
It should be noted that the above description of the resource transfer method is only an exemplary description, and the embodiment of the present application does not limit which method is specifically adopted for resource transfer.
Fig. 6 is a resource aggregation flowchart provided in an embodiment of the present application, and the resource aggregation method is described with reference to fig. 6, where when a target organization has a resource aggregation requirement, a node device of the target organization performs a step 601 of logging in a bill qualification management platform, after a financing type is selected, a node device corresponding to the bill qualification management platform performs a step 602 of acquiring target qualification data and a step 603 of storing the target qualification data in a block chain, that is, the node device of the bill qualification management platform completes the steps 501 to 505. After the node device of the bill qualification management platform completes data chaining, that is, after the target qualification data is synchronized to the resource holding institution and the supervising institution, on one hand, the node device of the supervising institution performs data state verification 604, and performs data state marking and data state chaining 605 in response to the verification passing, and synchronizes the verification result to the node device of the resource holding institution, that is, the node device of the supervising institution completes the step 508; on the other hand, the node device of the resource holding organization performs the qualification verification step 606, and in response to the qualification verification passing and the data status verification passing, the node device of the resource holding organization performs the step 407 of linking the qualification verification result successfully to the resource aggregation, that is, the node device of the resource holding organization completes the step 507.
According to the technical scheme provided by the embodiment of the application, the first node equipment acquires the target qualification certification data from the block chain based on the resource aggregation type of the target mechanism, the target mechanism does not need to prepare the data by itself and submit the data offline, and the time consumption of a data preparation stage is reduced; the first node device stores the resource aggregation request containing the target qualification certification data to the block chain, and the second node device acquires the target qualification certification data from the block chain for verification. By applying the scheme, the efficiency and the safety of the resource aggregation process are improved from two stages of data preparation and data verification.
In the embodiment of the present application, the blockchain system can be divided into a plurality of different data processing layers to process different types of data. Fig. 7 is a hierarchical framework diagram of a block chain resource aggregation system according to an embodiment of the present application, where the system includes a service layer 701, a service layer 702, a core layer 703, and a base layer 704, and different data processing layers are used for processing different services. For example, the service layer 701 is configured to process interaction data generated by each node device in an interaction process, provide a data sharing and exchange function, for example, process interaction data between a service system of a target organization, a financial system, a service system of a bank, and the like, and a bill qualification management platform, that is, provide support for the above steps 501, 503, 504, 506, 509, and the like, which relate to data interaction between node devices. The server 702 is configured to provide reliable and efficient blockchain access and monitoring functions, for example, services such as unified access and node management are provided by calling core layer functional components; reliable and efficient service is provided for users through efficient caching, reliable storage, load balancing and the like. The core layer 703 is used to provide support for a consensus mechanism between node devices and data and ledger records on the consensus mechanism, so as to lay the root of the block chain system. The base layer 704 is used to provide the operating environment and basic components required for the normal operation of the blockchain system, for example, the base layer 704 is used to uplink the ticket qualification data; chaining the bill transfer information; the uplink information is synchronized. That is, the service layer 702, core layer 703 and base layer 704 are used to support the above steps 502, 505, 507, 508, etc. that involve data interaction with the blockchain. Fig. 8 is a schematic diagram of node device data interaction provided in an embodiment of the present application, and referring to fig. 8, a node device 801 of a target organization, a node device 802 of a resource holding organization, and a node device 803 of a regulatory organization perform data interaction with a ticket qualification management platform through a business layer of a system, run various intelligent contracts in the system, such as a ticket qualification recording contract, a protocol contract, and the like, based on data supports provided by a service layer, a core layer, and a base layer, and implement interaction with a block chain.
In the embodiment of the application, by dividing the plurality of data processing layers and processing different types of data at different levels, better data processing service can be provided for users, the operation of the ticket qualification management platform can be better supported, and the efficiency and the safety of the resource aggregation process can be further improved.
All the above optional technical solutions may be combined arbitrarily to form optional embodiments of the present application, and are not described herein again.
Fig. 9 is a schematic structural diagram of a resource aggregation system based on a block chain according to an embodiment of the present application, and referring to fig. 9, the system includes a first node device 901 and a second node device 902;
the first node device 901 is configured to, in response to a data acquisition instruction of a target organization, acquire target qualification certification data indicated by a resource aggregation type from qualification certification data of the target organization stored in a block chain based on an organization identifier and the resource aggregation type of the target organization carried by the data acquisition instruction; responding to a data submission instruction, and generating a resource aggregation request, wherein the resource aggregation request comprises the institution identification, the resource aggregation type and the target qualification data; constructing a target block based on the resource aggregation request and a block with a highest block height in the blockchain, and storing the target block to the blockchain in response to the consensus of the target block through the blockchain system; sending prompt information of data storage completion to second node equipment, wherein the prompt information carries storage position information of the resource aggregation request in the block chain;
the second node device 902 is configured to obtain the resource aggregation request from the block chain based on the storage location information, and match the target qualification data in the resource aggregation request with the aggregation condition corresponding to the resource aggregation type; and responding to the matching success to perform resource transfer.
In a possible implementation manner, the first node device 901 is configured to obtain, based on the agency identifier, the certification data including the agency identifier from the blockchain; determining at least one data type corresponding to the resource aggregation type based on the resource aggregation type; and obtaining the target qualification data comprising the type identification from the qualification data based on the type identification of the at least one data type.
In a possible implementation manner, the first node device 901 is configured to store the resource aggregation request into a memory pool, where the memory pool is used to store data that is not added to the block chain; constructing a target block based on the data in the memory pool and the hash value of the block, wherein the target block comprises the resource aggregation request; broadcasting the target block to at least two target node devices of the blockchain system; in response to the target node device passing the target block consensus, adding the target block to the end of the blockchain.
In one possible implementation, the system further comprises a third node device;
the first node device 901 is configured to send a prompt message indicating that the data storage is completed to the third node device;
the third node device is configured to verify the resource aggregation request in response to the prompt message.
In a possible implementation manner, the third node device is configured to, in response to the hint information, obtain the resource aggregation request from the block chain based on storage location information in the hint information; and verifying the data state information of the target qualification data in the resource aggregation request.
In a possible implementation manner, the third node device is configured to obtain data state information of the target qualification data from the blockchain; determining that the target qualification certification data passes verification in response to the data state information not participating in resource aggregation; and in response to the data state information being that the resource aggregation is participated, determining that the target qualification data verification fails.
In a possible implementation, the third node device is configured to send the verification result to the second node device;
and the second node equipment is used for responding to the successful matching and the verification result is that the verification is passed, and performing resource transfer.
In one possible implementation, the third node device is configured to set the data state information of the target qualification data to a participated resource aggregation state in response to the target qualification data passing verification; based on a consensus mechanism, the data state information of the target qualification data is stored to the blockchain of the blockchain system.
In one possible implementation, the second node apparatus 902 is configured to store the matching result to the blockchain of the blockchain system based on a consensus mechanism.
In one possible implementation, the system further includes a node device of the target organization;
the first node device is used for sending the target qualification data to the node device of the target organization;
and the node equipment of the target organization is used for displaying the target qualification data on a data viewing interface.
According to the system provided by the embodiment of the application, the first node equipment acquires the target qualification data from the block chain based on the resource aggregation type of the target mechanism, the target mechanism does not need to prepare the data by itself and submit the data offline, and the time consumption of a data preparation stage is reduced; the first node device stores the resource aggregation request containing the target qualification certification data to the block chain, and the second node device acquires the target qualification certification data from the block chain for verification. By applying the system, the efficiency and the safety of the resource aggregation process are improved from two stages of data preparation and data verification.
It should be noted that: in the resource aggregation system based on the block chain provided in the foregoing embodiment, only the division of the functional modules is illustrated in the foregoing, 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 system is divided into different functional modules, so as to complete all or part of the functions described above. In addition, the resource aggregation system based on the block chain and the resource aggregation method based on the block chain provided in 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.
The computer device provided by the above technical solution can be implemented as a terminal or a server, for example, fig. 10 is a schematic structural diagram of a terminal provided in an embodiment of the present application. The terminal 1000 can be: a smart phone, a tablet computer, an MP3 player (Moving Picture Experts Group Audio Layer III, motion video Experts compression standard Audio Layer 3), an MP4 player (Moving Picture Experts Group Audio Layer IV, motion video Experts compression standard Audio Layer 4), a notebook computer, or a desktop computer. Terminal 1000 can also be referred to as user equipment, portable terminal, laptop terminal, desktop terminal, or the like by other names.
In general, terminal 1000 can include: one or more processors 1001 and one or more memories 1002.
Processor 1001 may include one or more processing cores, such as a 4-core processor, an 8-core processor, and so forth. The processor 1001 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 1001 may also include a main processor and a coprocessor, where the main processor is a processor for processing data in an awake state, and is also referred to as a Central Processing Unit (CPU); a coprocessor is a low power processor for processing data in a standby state. In some embodiments, the processor 1001 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content required to be displayed on the display screen. In some embodiments, the processor 1001 may further include an AI (Artificial Intelligence) processor for processing a computing operation related to machine learning.
Memory 1002 may include one or more computer-readable storage media, which may be non-transitory. The memory 1002 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 1002 is configured to store at least one program code for execution by the processor 1001 to implement the method for block chain based resource aggregation provided by the method embodiments herein.
In some embodiments, terminal 1000 can also optionally include: a peripheral interface 1003 and at least one peripheral. The processor 1001, memory 1002 and peripheral interface 1003 may be connected by a bus or signal line. Various peripheral devices may be connected to peripheral interface 1003 via a bus, signal line, or circuit board. Specifically, the peripheral device includes: at least one of radio frequency circuitry 1004, display screen 1005, camera assembly 1006, audio circuitry 1007, positioning assembly 1008, and power supply 1009.
The peripheral interface 1003 may be used to connect at least one peripheral related to I/O (Input/Output) to the processor 1001 and the memory 1002. In some embodiments, processor 1001, memory 1002, and peripheral interface 1003 are integrated on the same chip or circuit board; in some other embodiments, any one or two of the processor 1001, the memory 1002, and the peripheral interface 1003 may be implemented on separate chips or circuit boards, which are not limited by this embodiment.
The Radio Frequency circuit 1004 is used for receiving and transmitting RF (Radio Frequency) signals, also called electromagnetic signals. The radio frequency circuitry 1004 communicates with communication networks and other communication devices via electromagnetic signals. The radio frequency circuit 1004 converts an electrical signal into an electromagnetic signal to transmit, or converts a received electromagnetic signal into an electrical signal. Optionally, the radio frequency circuit 1004 comprises: 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 1004 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 5G), Wireless local area networks, and/or WiFi (Wireless Fidelity) networks. In some embodiments, the rf circuit 1004 may further include NFC (Near Field Communication) related circuits, which are not limited in this application.
The display screen 1005 is used to display a UI (User Interface). The UI may include graphics, text, icons, video, and any combination thereof. When the display screen 1005 is a touch display screen, the display screen 1005 also has the ability to capture touch signals on or over the surface of the display screen 1005. The touch signal may be input to the processor 1001 as a control signal for processing. At this point, the display screen 1005 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 screen 1005 can be one, providing a front panel of terminal 1000; in other embodiments, display 1005 can be at least two, respectively disposed on different surfaces of terminal 1000 or in a folded design; in some embodiments, display 1005 can be a flexible display disposed on a curved surface or a folded surface of terminal 1000. Even more, the display screen 1005 may be arranged in a non-rectangular irregular figure, i.e., a shaped screen. The Display screen 1005 may be made of LCD (Liquid Crystal Display), OLED (Organic Light-Emitting Diode), and the like.
The camera assembly 1006 is used to capture images or video. Optionally, the camera assembly 1006 includes a front camera and a rear camera. Generally, a front camera is disposed at a front panel of the terminal, and a rear camera is disposed at a rear surface 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 1006 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 1007 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, and inputting the electric signals to the processor 1001 for processing or inputting the electric signals to the radio frequency circuit 1004 for realizing voice communication. For stereo sound collection or noise reduction purposes, multiple microphones can be provided, each at a different location of terminal 1000. 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 1001 or the radio frequency circuit 1004 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 circuit 1007 may also include a headphone jack.
A location component 1008 is employed to locate a current geographic location of terminal 1000 for navigation or LBS (location based Service). The positioning component 1008 may be a positioning component based on the GPS (global positioning System) in the united states, the beidou System in china, the graves System in russia, or the galileo System in the european union.
Power supply 1009 is used to supply power to various components in terminal 1000. The power source 1009 may be alternating current, direct current, disposable batteries, or rechargeable batteries. When the power source 1009 includes a rechargeable battery, the rechargeable battery may support wired charging or wireless charging. The rechargeable battery may also be used to support fast charge technology.
In some embodiments, terminal 1000 can also include one or more sensors 1010. The one or more sensors 1010 include, but are not limited to: acceleration sensor 1011, gyro sensor 1012, pressure sensor 1013, fingerprint sensor 1014, optical sensor 1015, and proximity sensor 1016.
Acceleration sensor 1011 can detect acceleration magnitudes on three coordinate axes of a coordinate system established with terminal 1000. For example, the acceleration sensor 1011 may be used to detect components of the gravitational acceleration in three coordinate axes. The processor 1001 may control the display screen 1005 to display the user interface in a landscape view or a portrait view according to the gravitational acceleration signal collected by the acceleration sensor 1011. The acceleration sensor 1011 may also be used for acquisition of motion data of a game or a user.
The gyro sensor 1012 may detect a body direction and a rotation angle of the terminal 1000, and the gyro sensor 1012 and the acceleration sensor 1011 may cooperate to acquire a 3D motion of the user on the terminal 1000. From the data collected by the gyro sensor 1012, the processor 1001 may implement the following functions: 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 sensor 1013 can be disposed on a side frame of terminal 1000 and/or underneath display screen 1005. When pressure sensor 1013 is disposed on a side frame of terminal 1000, a user's grip signal on terminal 1000 can be detected, and processor 1001 performs left-right hand recognition or shortcut operation according to the grip signal collected by pressure sensor 1013. When the pressure sensor 1013 is disposed at a lower layer of the display screen 1005, the processor 1001 controls the operability control on the UI interface according to the pressure operation of the user on the display screen 1005. 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 1014 is used to collect a fingerprint of the user, and the processor 1001 identifies the user according to the fingerprint collected by the fingerprint sensor 1014, or the fingerprint sensor 1014 identifies the user according to the collected fingerprint. Upon identifying that the user's identity is a trusted identity, the processor 1001 authorizes the user to perform relevant sensitive operations including unlocking a screen, viewing encrypted information, downloading software, paying, and changing settings, etc. Fingerprint sensor 1014 can be disposed on the front, back, or side of terminal 1000. When a physical key or vendor Logo is provided on terminal 1000, fingerprint sensor 1014 can be integrated with the physical key or vendor Logo.
The optical sensor 1015 is used to collect the ambient light intensity. In one embodiment, the processor 1001 may control the display brightness of the display screen 1005 according to the ambient light intensity collected by the optical sensor 1015. Specifically, when the ambient light intensity is high, the display brightness of the display screen 1005 is increased; when the ambient light intensity is low, the display brightness of the display screen 1005 is turned down. In another embodiment, the processor 1001 may also dynamically adjust the shooting parameters of the camera assembly 1006 according to the intensity of the ambient light collected by the optical sensor 1015.
Proximity sensor 1016, also known as a distance sensor, is typically disposed on a front panel of terminal 1000. Proximity sensor 1016 is used to gather the distance between the user and the front face of terminal 1000. In one embodiment, when proximity sensor 1016 detects that the distance between the user and the front surface of terminal 1000 is gradually reduced, processor 1001 controls display screen 1005 to switch from a bright screen state to a dark screen state; when proximity sensor 1016 detects that the distance between the user and the front of terminal 1000 is gradually increased, display screen 1005 is controlled by processor 1001 to switch from a breath-screen state to a bright-screen state.
Those skilled in the art will appreciate that the configuration shown in FIG. 10 is not intended to be limiting and that terminal 1000 can include more or fewer components than shown, or some components can be combined, or a different arrangement of components can be employed.
Fig. 11 is a schematic structural diagram of a server according to an embodiment of the present application, where the server 1100 may generate a relatively large difference due to a difference in configuration or performance, and may include one or more processors (CPUs) 1101 and one or more memories 1102, where at least one program code is stored in the one or more memories 1102, and is loaded and executed by the one or more processors 1101 to implement the methods provided by the above method embodiments. Of course, the server 1100 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 1100 may also include other components for implementing device functions, which are not described herein again.
In an exemplary embodiment, a computer readable storage medium, such as a memory including at least one program code, which is executable by a processor to perform the resource aggregation method in the above embodiments, is also provided. For example, the computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a Compact Disc Read-Only Memory (CD-ROM), a magnetic tape, a floppy disk, an optical data storage device, and the like.
It will be understood by those skilled in the art that all or part of the steps of implementing the above embodiments may be implemented by hardware, or implemented by at least one program code associated with hardware, where the program code is stored in a computer readable storage medium, such as a read only memory, a magnetic or optical disk, etc.
The above description is only exemplary of the present application and should not be taken as limiting, as any modification, equivalent replacement, or improvement made within the spirit and principle of the present application should be included in the protection scope of the present application.

Claims (15)

1. A resource aggregation method based on a block chain is applied to a block chain system, and the method comprises the following steps:
the method comprises the steps that a first node device responds to a data acquisition instruction of a target mechanism, and obtains target qualification certification data indicated by a resource aggregation type from qualification certification data of the target mechanism stored in a block chain based on a mechanism identification and the resource aggregation type of the target mechanism carried by the data acquisition instruction;
the first node equipment responds to a data submission instruction and generates a resource aggregation request, wherein the resource aggregation request comprises the mechanism identification, the resource aggregation type and the target qualification data;
the first node device constructing a target block based on the resource aggregation request and a block with a highest block height in the blockchain, and storing the target block to the blockchain in response to the common identification of the target block through the blockchain system;
the first node equipment sends prompt information of finishing data storage to second node equipment, wherein the prompt information carries storage position information of the resource aggregation request in the block chain;
the second node device acquires the resource aggregation request from the block chain based on the storage location information, and matches the target qualification certification data in the resource aggregation request with an aggregation condition corresponding to the resource aggregation type;
and the second node equipment responds to the successful matching and carries out resource transfer.
2. The method according to claim 1, wherein the obtaining target qualification data indicated by the resource aggregation type from qualification data of the target institution stored in a blockchain based on the institution identification of the target institution and the resource aggregation type carried by the data obtaining instruction comprises:
the first node equipment acquires the qualification data containing the organization identification from the block chain based on the organization identification;
the first node equipment determines at least one data type corresponding to the resource aggregation type based on the resource aggregation type;
the first node device obtains the target qualification data including the type identifier from the qualification data based on the type identifier of the at least one data type.
3. The method of claim 1, wherein the first node device constructs a target chunk based on the resource aggregation request and a chunk with a highest chunk height in the blockchain, and wherein storing the target chunk to the blockchain in response to a consensus of the target chunk by the blockchain system comprises:
the first node device stores the resource aggregation request into a memory pool, wherein the memory pool is used for storing data which are not added to the block chain;
the first node device constructs a target block based on the data in the memory pool and the hash value of the block, wherein the target block comprises the resource aggregation request;
the first node device broadcasting the target tiles to at least two target node devices of the blockchain system;
the first node device adds the target block to the tail of the block chain in response to the target node device passing the target block consensus.
4. The method of claim 1, wherein the first node device constructs a target chunk based on the resource aggregation request and a chunk with a highest chunk height in the blockchain, and wherein the target chunk is stored to the blockchain after the blockchain in response to a consensus of the target chunk by the blockchain system, the method further comprises:
the first node equipment sends prompt information of finishing the data storage to third node equipment;
and the third node equipment responds to the prompt message and verifies the resource aggregation request.
5. The method of claim 4, wherein the third node device, in response to the hints information, validates the resource aggregation request, comprising:
the third node equipment responds to the prompt message and acquires the resource aggregation request from the block chain based on the storage position information in the prompt message;
the third node device verifies the data state information of the target qualification data in the resource aggregation request.
6. The method of claim 5, wherein the third node device verifying the data state information of the target qualification data in the resource aggregation request comprises:
the third node device obtains the data state information of the target qualification data from the block chain;
the third node equipment responds to the data state information that the data does not participate in resource aggregation, and determines that the target qualification data passes verification;
and the third node equipment responds to the data state information as participated resource aggregation and determines that the target qualification data verification fails.
7. The method of claim 5, wherein before the second node device performs the resource transfer in response to a successful match, the method further comprises:
the third node device sends the verification result to the second node device;
the second node device, in response to a successful matching, performing resource transfer includes:
and the second node equipment carries out resource transfer in response to the successful matching and the verification result is that the verification is passed.
8. The method according to claim 5, wherein after the third node device verifies the data state information of the target qualification data in the resource aggregation request, the method further comprises:
the third node device responds to the verification of the target qualification data and sets the data state information of the target qualification data to be in a participated resource aggregation state;
the third node device stores the data state information of the target qualification data onto the blockchain of the blockchain system based on a consensus mechanism.
9. The method according to claim 1, wherein the second node device obtains the resource aggregation request from the block chain based on the storage location information, and after matching the target qualification data in the resource aggregation request with the aggregation condition corresponding to the resource aggregation type, the method further comprises:
the second node device stores a matching result to the blockchain of the blockchain system based on a consensus mechanism.
10. The method according to claim 1, wherein the first node device, in response to a data acquisition instruction of a target organization, based on an organization identifier of the target organization and a resource aggregation type carried by the data acquisition instruction, after acquiring target qualification data indicated by the resource aggregation type from qualification data of the target organization stored in a blockchain, the method further comprises:
the first node equipment sends the target qualification certification data to the node equipment of the target organization;
and the node equipment of the target mechanism displays the target qualification certification data on a data viewing interface.
11. A resource aggregation system based on block chains is characterized in that the system comprises a first node device and a second node device;
the first node device is configured to respond to a data acquisition instruction of a target organization, and acquire target qualification certification data indicated by a resource aggregation type from qualification certification data of the target organization stored in a block chain based on an organization identifier of the target organization and the resource aggregation type, which are carried by the data acquisition instruction; generating a resource aggregation request in response to a data submission instruction, the resource aggregation request including the institution identification, the resource aggregation type, and the target qualification data; constructing a target chunk based on the resource aggregation request and a chunk with a highest chunk height in the blockchain, and storing the target chunk to the blockchain in response to a consensus of the target chunk through the blockchain system; sending prompt information of data storage completion to second node equipment, wherein the prompt information carries storage position information of the resource aggregation request in the block chain;
the second node device is configured to obtain the resource aggregation request from the block chain based on the storage location information, and match the target qualification certification data in the resource aggregation request with an aggregation condition corresponding to the resource aggregation type; and responding to the matching success to perform resource transfer.
12. The system according to claim 11, wherein the first node device is configured to obtain the certification data including the agency identity from the blockchain based on the agency identity; determining at least one data type corresponding to the resource aggregation type based on the resource aggregation type; and obtaining the target qualification data comprising the type identifier from the qualification data based on the type identifier of the at least one data type.
13. The system according to claim 11, wherein the first node device is configured to store the resource aggregation request into a memory pool, and the memory pool is configured to store data that is not added to the block chain; constructing a target block based on the data in the memory pool and the hash value of the block, wherein the target block comprises the resource aggregation request; broadcasting the target tiles to at least two target node devices of the blockchain system; in response to the target node device passing the target block consensus, adding the target block to the end of the block chain.
14. A computer device comprising one or more processors and one or more memories having at least one program code stored therein, the at least one program code being loaded and executed by the one or more processors to perform operations performed by the blockchain based resource aggregation method of any one of claims 1 to 10.
15. A computer-readable storage medium having at least one program code stored therein, the at least one program code being loaded and executed by a processor to perform operations performed by the block chain based resource aggregation method according to any one of claims 1 to 10.
CN202010611083.3A 2020-06-30 2020-06-30 Resource aggregation method, system, device and storage medium based on block chain Active CN111667371B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010611083.3A CN111667371B (en) 2020-06-30 2020-06-30 Resource aggregation method, system, device and storage medium based on block chain

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010611083.3A CN111667371B (en) 2020-06-30 2020-06-30 Resource aggregation method, system, device and storage medium based on block chain

Publications (2)

Publication Number Publication Date
CN111667371A true CN111667371A (en) 2020-09-15
CN111667371B CN111667371B (en) 2021-08-06

Family

ID=72390417

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010611083.3A Active CN111667371B (en) 2020-06-30 2020-06-30 Resource aggregation method, system, device and storage medium based on block chain

Country Status (1)

Country Link
CN (1) CN111667371B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112862650A (en) * 2021-02-24 2021-05-28 浙江蓝景科技有限公司 Object handover method and device and electronic equipment
CN113032594A (en) * 2021-02-26 2021-06-25 广东核电合营有限公司 Label image storage method and device, computer equipment and storage medium
CN114095497A (en) * 2021-09-30 2022-02-25 网络通信与安全紫金山实验室 Resource usage amount proving method and system based on block chain and oriented to cloud network scene

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107679981A (en) * 2017-09-27 2018-02-09 阳光保险集团股份有限公司 Lending method based on block chain data verification service
CN109615516A (en) * 2018-12-05 2019-04-12 腾讯科技(深圳)有限公司 Resource transfers method, apparatus, electronic equipment and storage medium
US20190251555A1 (en) * 2018-02-12 2019-08-15 Bank Of America Corporation Distributed ledger system for standby guarantee resources
CN110288479A (en) * 2019-06-28 2019-09-27 深圳市网心科技有限公司 A kind of the common recognition method and relevant device of block chain data
CN110493148A (en) * 2019-08-12 2019-11-22 深圳前海微众银行股份有限公司 A kind of block processes, block common recognition and block synchronous method and device
CN110599328A (en) * 2019-09-09 2019-12-20 腾讯科技(深圳)有限公司 Block chain based risk user determination method, device, equipment and storage medium
TW202001656A (en) * 2018-06-29 2020-01-01 香港商阿里巴巴集團服務有限公司 Intelligent contract invocation method and device based on block chain, and electronic device
CN110998641A (en) * 2017-07-05 2020-04-10 瑞皮欧国际经济特区公司 Credit network based on intelligent contracts
CN111212074A (en) * 2020-01-02 2020-05-29 腾讯科技(深圳)有限公司 Qualification determination method, device, equipment and storage medium based on block chain
CN111222865A (en) * 2019-09-19 2020-06-02 腾讯科技(深圳)有限公司 Resource data transfer method, device, storage medium and computer equipment
CN111260347A (en) * 2020-01-13 2020-06-09 北京三快在线科技有限公司 Resource processing method, device and equipment based on block chain and storage medium

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110998641A (en) * 2017-07-05 2020-04-10 瑞皮欧国际经济特区公司 Credit network based on intelligent contracts
CN107679981A (en) * 2017-09-27 2018-02-09 阳光保险集团股份有限公司 Lending method based on block chain data verification service
US20190251555A1 (en) * 2018-02-12 2019-08-15 Bank Of America Corporation Distributed ledger system for standby guarantee resources
TW202001656A (en) * 2018-06-29 2020-01-01 香港商阿里巴巴集團服務有限公司 Intelligent contract invocation method and device based on block chain, and electronic device
CN109615516A (en) * 2018-12-05 2019-04-12 腾讯科技(深圳)有限公司 Resource transfers method, apparatus, electronic equipment and storage medium
CN110288479A (en) * 2019-06-28 2019-09-27 深圳市网心科技有限公司 A kind of the common recognition method and relevant device of block chain data
CN110493148A (en) * 2019-08-12 2019-11-22 深圳前海微众银行股份有限公司 A kind of block processes, block common recognition and block synchronous method and device
CN110599328A (en) * 2019-09-09 2019-12-20 腾讯科技(深圳)有限公司 Block chain based risk user determination method, device, equipment and storage medium
CN111222865A (en) * 2019-09-19 2020-06-02 腾讯科技(深圳)有限公司 Resource data transfer method, device, storage medium and computer equipment
CN111212074A (en) * 2020-01-02 2020-05-29 腾讯科技(深圳)有限公司 Qualification determination method, device, equipment and storage medium based on block chain
CN111260347A (en) * 2020-01-13 2020-06-09 北京三快在线科技有限公司 Resource processing method, device and equipment based on block chain and storage medium

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112862650A (en) * 2021-02-24 2021-05-28 浙江蓝景科技有限公司 Object handover method and device and electronic equipment
CN113032594A (en) * 2021-02-26 2021-06-25 广东核电合营有限公司 Label image storage method and device, computer equipment and storage medium
CN113032594B (en) * 2021-02-26 2023-12-08 广东核电合营有限公司 Label image storage method, apparatus, computer device and storage medium
CN114095497A (en) * 2021-09-30 2022-02-25 网络通信与安全紫金山实验室 Resource usage amount proving method and system based on block chain and oriented to cloud network scene
CN114095497B (en) * 2021-09-30 2024-04-19 网络通信与安全紫金山实验室 Cloud network scene-oriented resource usage amount proving method and system based on blockchain

Also Published As

Publication number Publication date
CN111667371B (en) 2021-08-06

Similar Documents

Publication Publication Date Title
CN109615516B (en) Resource transfer method, device, electronic equipment and storage medium
CN108696514B (en) Resource collection task management method, device, storage medium and system
CN111339086B (en) Block processing method, and data query method and device based on block chain
CN111245745B (en) Message sending method, device, node equipment and storage medium
CN111401867A (en) Resource transfer method and device based on block chain, node equipment and storage medium
CN111340482B (en) Conflict detection method, device, node equipment and storage medium
CN110598482A (en) Block chain-based digital certificate management method, device, equipment and storage medium
CN111667371B (en) Resource aggregation method, system, device and storage medium based on block chain
CN110689460A (en) Traffic accident data processing method, device, equipment and medium based on block chain
CN111444092B (en) Intelligent contract testing method and device, electronic equipment and storage medium
CN110555780B (en) Insurance data processing method, device and equipment based on block chain and storage medium
CN110597924B (en) Block chain-based user identification processing method, device, equipment and storage medium
CN110933113B (en) Block chain-based interactive behavior detection method, device, equipment and storage medium
CN111339181B (en) Block storage method, block storage device, node equipment and storage medium
CN111260347A (en) Resource processing method, device and equipment based on block chain and storage medium
CN111241115B (en) Data synchronization method, device, equipment and storage medium
CN111080443A (en) Service processing method, device, equipment and storage medium based on block chain
CN110826103A (en) Block chain-based document authority processing method, device, equipment and storage medium
CN110581891A (en) Game data processing method, device, equipment and storage medium based on block chain
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
CN110659975B (en) Resource transfer method, device, equipment and storage medium based on block chain
CN110570289A (en) service processing method, device, equipment and storage medium based on block chain
CN110597840A (en) Partner relationship establishing method, device, equipment and storage medium based on block chain
CN111327427B (en) Method, device, node equipment, system and storage medium for submitting alternative blocks

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 40028919

Country of ref document: HK

SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant