CN111311211A - Data processing method and device based on block chain - Google Patents

Data processing method and device based on block chain Download PDF

Info

Publication number
CN111311211A
CN111311211A CN202010076892.9A CN202010076892A CN111311211A CN 111311211 A CN111311211 A CN 111311211A CN 202010076892 A CN202010076892 A CN 202010076892A CN 111311211 A CN111311211 A CN 111311211A
Authority
CN
China
Prior art keywords
decoration
node
user
enterprise
account
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.)
Pending
Application number
CN202010076892.9A
Other languages
Chinese (zh)
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 CN202010076892.9A priority Critical patent/CN111311211A/en
Publication of CN111311211A publication Critical patent/CN111311211A/en
Pending legal-status Critical Current

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
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/08Payment architectures
    • G06Q20/085Payment architectures involving remote charge determination or related payment systems
    • G06Q20/0855Payment architectures involving remote charge determination or related payment systems involving a third party
    • 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
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/22Payment schemes or models
    • G06Q20/28Pre-payment schemes, e.g. "pay before"
    • 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
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/40Authorisation, e.g. identification of payer or payee, verification of customer or shop credentials; Review and approval of payers, e.g. check credit lines or negative lists
    • G06Q20/401Transaction verification
    • 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
    • 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
    • G06Q50/00Systems or methods specially adapted for specific business sectors, e.g. utilities or tourism
    • G06Q50/08Construction

Abstract

The embodiment of the application discloses a data processing method and equipment based on a block chain, wherein the method comprises the following steps: acquiring decoration requirement information issued by a user node; acquiring response information of the decoration enterprise node to decoration requirement information, and sending the response information to the user node; acquiring a decoration enterprise node selected by a user node, determining the decoration enterprise node as a target decoration enterprise node, and generating a decoration electronic contract related to the user node and the target decoration enterprise node through an intelligent contract; sending a first digital asset corresponding to the pre-transferred asset production from the user account to the escrow account; when the decoration electronic contract is in a service completion state, acquiring the residual asset quantity of the decoration electronic contract, sending the second digital asset corresponding to the residual asset quantity to the hosting account from the user account, and sending the first digital asset and the second digital asset in the hosting account to the enterprise account. By the method and the device, the accuracy of the data can be improved.

Description

Data processing method and device based on block chain
Technical Field
The present application relates to the field of electronic technologies, and in particular, to a data processing method and device based on a block chain.
Background
In the decoration field, the execution of decoration services is maintained between a user and a decoration enterprise through a decoration protocol, but due to the fact that the user and the enterprise are in one-to-one relationship, the supervision of a third party is lacked, the authenticity of information cannot be ensured, decoration data are easily tampered, and the data accuracy of the decoration protocol cannot be guaranteed.
Disclosure of Invention
The embodiment of the application provides a data processing method and device based on a block chain, which can improve the accuracy of data.
An aspect of the present application provides a data processing method based on a block chain, which may include:
obtaining decoration requirement information issued by a user node, and issuing the decoration requirement information in a block chain network;
acquiring response information of at least one decoration enterprise node to the decoration requirement information, and sending the response information of the at least one decoration enterprise node to the user node;
acquiring a decoration enterprise node selected by the user node, determining the decoration enterprise node selected by the user node as a target decoration enterprise node, and generating a decoration electronic contract related to the user node and the target decoration enterprise node through an intelligent contract; the decoration electronic contract is maintained by the intelligent contract;
determining the pre-transferred asset yield of the decoration electronic contract according to the intelligent contract, and sending the first digital asset corresponding to the pre-transferred asset yield to a hosting account from a user account of the user node;
when the decoration electronic contract is in a service completion state, acquiring the residual asset output of the decoration electronic contract according to an intelligent contract, sending the second digital asset corresponding to the residual asset output to the hosting account from the user account, and sending the first digital asset and the second digital asset in the hosting account to an enterprise account of a target decoration enterprise node.
The obtaining of the response information of at least one decoration enterprise node to the decoration requirement information and the sending of the response information of at least one decoration enterprise node to the user node include:
acquiring response information of at least one decoration enterprise node to the decoration requirement information, and setting a classification label for the at least one decoration enterprise node according to a screening condition in the decoration requirement information;
and sending the classification label and the response information of the at least one decoration enterprise node to the user node.
The acquiring of the decoration enterprise node selected by the user node, determining the decoration enterprise node selected by the user node as a target decoration enterprise node, and generating a decoration electronic contract associated with the user node and the target decoration enterprise node through an intelligent contract, includes:
obtaining a decoration enterprise node selected by the user node, and determining the decoration enterprise node selected by the user node as a target decoration enterprise node;
acquiring an initial decoration electronic contract corresponding to the user node through an intelligent contract;
generating a decoration electronic contract according to the enterprise signature of the target enterprise, the user signature of the target user and the initial decoration electronic contract;
and encrypting the decoration electronic contract, and synchronizing the encrypted decoration electronic contract to the block chain network.
The method for determining the pre-transferred resource yield of the decoration electronic contract according to the intelligent contract and sending the first digital assets corresponding to the pre-transferred resource yield to a hosting account from a user account of the user node comprises the following steps:
determining the total resource yield and the pre-transfer proportion of the decoration electronic contract according to the intelligent contract, and determining the pre-transfer resource yield according to the total resource yield and the pre-transfer proportion;
generating transaction data according to the user account, a hosting account of a blockchain network, the pre-transferred asset production and a source account of the pre-transferred asset production;
acquiring a user private key of a target user, and signing the transaction data by adopting the user private key to obtain transfer signature information;
performing consensus processing on the transaction data and the transfer signature information;
after the consensus passes, storing the transaction data and the transfer signature information to a blockchain network; the escrow account is provided with asset transfer rights to the transaction data that has been stored into a blockchain network.
When the decoration electronic contract is in a service completion state, acquiring the remaining asset yield of the decoration electronic contract according to an intelligent contract, sending a second digital asset corresponding to the remaining asset yield from the user account to the hosting account, and sending the first digital asset and the second digital asset in the hosting account to an enterprise account of a target decoration enterprise node, wherein the method comprises the following steps:
acquiring a service completion instruction of a user node, and setting the state of the decoration electronic contract into a service completion state according to the service completion instruction;
determining the total resource yield and the pre-transfer proportion of the decoration electronic contract according to the intelligent contract, and determining the residual resource yield according to the total resource yield and the pre-transfer proportion;
and sending the second digital assets corresponding to the residual asset amount from the user account to the hosting account, and sending the first digital assets and the second digital assets in the hosting account to an enterprise account of a target decoration enterprise node.
Wherein, still include:
and acquiring evaluation information of the user node based on the decoration electronic contract, binding the evaluation information and the decoration electronic contract, and issuing the bound evaluation information to a block chain network.
Wherein, still include:
generating enterprise qualification information of the decoration enterprise node according to the evaluation information of the decoration enterprise node, and adding the decoration enterprise node into a blacklist when the enterprise qualification information of the decoration enterprise node is greater than threshold information; the decoration enterprise nodes in the blacklist do not have the service function of responding decoration requirement information issued by the user nodes.
An aspect of an embodiment of the present application provides a data processing apparatus based on a block chain, which may include:
the system comprises a demand information acquisition unit, a block chain network and a data processing unit, wherein the demand information acquisition unit is used for acquiring decoration demand information issued by user nodes and issuing the decoration demand information in the block chain network;
the response information acquisition unit is used for acquiring response information of at least one decoration enterprise node to the decoration requirement information and sending the response information of the at least one decoration enterprise node to the user node;
the electronic contract generating unit is used for acquiring the decoration enterprise node selected by the user node, determining the decoration enterprise node selected by the user node as a target decoration enterprise node, and generating a decoration electronic contract related to the user node and the target decoration enterprise node through an intelligent contract; the decoration electronic contract is maintained by the intelligent contract;
the first asset transfer unit is used for determining the pre-transfer asset yield of the decoration electronic contract according to the intelligent contract and sending the first digital asset corresponding to the pre-transfer asset yield to a hosting account from a user account of the user node;
and the second asset transfer unit is used for acquiring the residual asset output of the decoration electronic contract according to the intelligent contract when the decoration electronic contract is in a service completion state, sending the second digital asset corresponding to the residual asset output to the hosting account from the user account, and sending the first digital asset and the second digital asset in the hosting account to an enterprise account of a target decoration enterprise node.
Wherein the response information acquiring unit is specifically configured to:
acquiring response information of at least one decoration enterprise node to the decoration requirement information, and setting a classification label for the at least one decoration enterprise node according to a screening condition in the decoration requirement information;
and sending the classification label and the response information of the at least one decoration enterprise node to the user node.
Wherein the electronic contract generating unit is specifically configured to:
obtaining a decoration enterprise node selected by the user node, and determining the decoration enterprise node selected by the user node as a target decoration enterprise node;
acquiring an initial decoration electronic contract corresponding to the user node through an intelligent contract;
generating a decoration electronic contract according to the enterprise signature of the target enterprise, the user signature of the target user and the initial decoration electronic contract;
and encrypting the decoration electronic contract, and synchronizing the encrypted decoration electronic contract to the block chain network.
Wherein the first asset transfer unit is specifically configured to:
determining the total resource yield and the pre-transfer proportion of the decoration electronic contract according to the intelligent contract, and determining the pre-transfer resource yield according to the total resource yield and the pre-transfer proportion;
generating transaction data according to the user account, a hosting account of a blockchain network, the pre-transferred asset production and a source account of the pre-transferred asset production;
acquiring a user private key of a target user, and signing the transaction data by adopting the user private key to obtain transfer signature information;
performing consensus processing on the transaction data and the transfer signature information;
after the consensus passes, storing the transaction data and the transfer signature information to a blockchain network; the escrow account is provided with asset transfer rights to the transaction data that has been stored into a blockchain network.
Wherein the second asset transfer unit is specifically configured to:
acquiring a service completion instruction of a user node, and setting the state of the decoration electronic contract into a service completion state according to the service completion instruction;
determining the total resource yield and the pre-transfer proportion of the decoration electronic contract according to the intelligent contract, and determining the residual resource yield according to the total resource yield and the pre-transfer proportion;
and sending the second digital assets corresponding to the residual asset amount from the user account to the hosting account, and sending the first digital assets and the second digital assets in the hosting account to an enterprise account of a target decoration enterprise node.
Wherein, still include:
and the evaluation information acquisition unit is used for acquiring the evaluation information of the user node based on the decoration electronic contract, binding the evaluation information and the decoration electronic contract, and issuing the bound evaluation information to the block chain network.
Wherein, still include:
the qualification information generating unit is used for generating enterprise qualification information of the decoration enterprise node according to the evaluation information of the decoration enterprise node, and adding the decoration enterprise node into a blacklist when the enterprise qualification information of the decoration enterprise node is greater than threshold information; the decoration enterprise nodes in the blacklist do not have the service function of responding decoration requirement information issued by the user nodes.
An aspect of the embodiments of the present application provides a computer-readable storage medium storing a plurality of instructions adapted to be loaded by a processor and to perform the above-mentioned method steps.
An aspect of an embodiment of the present application provides a computer device, including a processor and a memory; wherein the memory stores a computer program adapted to be loaded by the processor and to perform the above-mentioned method steps.
In the embodiment of the application, decoration demand information issued by user nodes is acquired, the decoration demand information is issued in a block chain network, response information of at least one decoration enterprise node to the decoration demand information is acquired, the response information of at least one decoration enterprise node is sent to the user nodes, the decoration enterprise node selected by the user nodes is acquired, the decoration enterprise node selected by the user nodes is determined as a target decoration enterprise node, decoration electronic contracts related to the user nodes and the target decoration enterprise node are generated through intelligent contracts, pre-transfer resource yield of the decoration electronic contracts is determined according to the intelligent contracts, first digital assets corresponding to the pre-transfer resource yield are sent to a hosting account from a user account of the user nodes, and when the decoration electronic contracts are in a service completion state, the residual resource yield of the decoration electronic contracts is acquired according to the intelligent contracts, and sending the second digital assets corresponding to the residual asset quantity from the user account to the hosting account, and sending the first digital assets and the second digital assets in the hosting account to the enterprise account of the target decoration enterprise node. The decoration electronic contract is issued to the block chain, and the electronic contract is added into the escrow account to transfer the assets, so that the safety of the assets is guaranteed, and the accuracy of data is improved.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1a is a system architecture diagram of a data processing system according to an embodiment of the present application;
fig. 1b is a schematic view of a scenario of a data sharing system according to an embodiment of the present application;
FIG. 1c is a diagram illustrating the result of a block chain according to an embodiment of the present invention;
FIG. 1d is a schematic diagram of a block generation process according to an embodiment of the present disclosure;
fig. 2 is a schematic flowchart of a data processing method according to an embodiment of the present application;
fig. 3 is a schematic flowchart of a data processing method according to an embodiment of the present application;
fig. 4 is a scene schematic diagram of a decoration service provided in an embodiment of the present application;
fig. 5 is a schematic structural diagram of a data processing apparatus according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of a computer device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Fig. 1a is a block diagram of a data processing system according to an embodiment of the present invention. Blockchain network 10d establishes connections with user nodes 10a and enterprise node clusters, including enterprise nodes 10 b. The block chain network 10d includes block chain nodes 10e, 10f, the user node 10a and the enterprise node also belong to the nodes in the block chain network 10d, the block chain network 10d acquires decoration requirement information issued by the user node, issues the decoration requirement information in the block chain network, acquires response information of at least one decoration enterprise node to the decoration requirement information, sends the response information of the at least one decoration enterprise node to the user node, the block chain network 10d acquires the decoration enterprise node selected by the user node, determines the decoration enterprise node selected by the user node as a target decoration enterprise node, generates decoration electronic contracts related to the user node and the target decoration enterprise node through intelligent contracts, and determines pre-transfer resource yield of the decoration electronic contracts according to the intelligent contracts, and sending the first digital assets corresponding to the pre-transferred asset yield to a hosting account from a user account of the user node, when the decoration electronic contract is in a service completion state, obtaining the remaining asset yield of the decoration electronic contract according to an intelligent contract by using the blockchain network 10d, sending the second digital assets corresponding to the remaining asset yield to the hosting account from the user account, and sending the first digital assets and the second digital assets in the hosting account to an enterprise account of a target decoration enterprise node.
The enterprise node related to the embodiment of the application can comprise a server with data processing, and the user node comprises: terminal equipment such as tablet personal computers, smart phones, Personal Computers (PCs), notebook computers, palmtop computers and the like.
The block chain related in the embodiment of the application 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 using cryptography, each data block contains information of a batch of network transactions, and the information is used for verifying the validity (anti-counterfeiting) of the information and generating the next block. The blockchain may include a blockchain underlying platform, a platform product services layer, and an application services layer.
The block chain underlying platform can comprise processing modules such as user management, basic service, intelligent contract and operation monitoring. The user management module is responsible for identity information management of all blockchain participants, and comprises public and private key generation maintenance (account management), key management, user real identity and blockchain address corresponding relation maintenance (authority management) and the like, and under the authorization condition, the user management module supervises and audits the transaction condition of certain real identities and provides rule configuration (wind control audit) of risk control; the basic service module is deployed on all block chain node equipment and used for verifying the validity of the service request, recording the service request to storage after consensus on the valid request is completed, for a new service request, the basic service firstly performs interface adaptation analysis and authentication processing (interface adaptation), then encrypts service information (consensus management) through a consensus algorithm, transmits the service information to a shared account (network communication) completely and consistently after encryption, and performs recording and storage; the intelligent contract module is responsible for registering and issuing contracts, triggering the contracts and executing the contracts, developers can define contract logics through a certain programming language, issue the contract logics to a block chain (contract registration), call keys or other event triggering and executing according to the logics of contract clauses, complete the contract logics and simultaneously provide the function of upgrading and canceling the contracts; the operation monitoring module is mainly responsible for deployment, configuration modification, contract setting, cloud adaptation in the product release process and visual output of real-time states in product operation, such as: alarm, monitoring network conditions, monitoring node equipment health status, and the like.
The platform product service layer provides basic capability and an implementation framework of typical application, and developers can complete block chain implementation of business logic based on the basic capability and the characteristics of the superposed business. The application service layer provides the application service based on the block chain scheme for the business participants to use.
Fig. 1b shows a data sharing system, where the data sharing system 100 refers to a system for performing data sharing between nodes, the data sharing system may include a plurality of nodes 101, and the plurality of nodes 101 may refer to respective clients in the data sharing system. Each node 101 may receive input information while operating normally and maintain shared data within the data sharing system based on the received input information. In order to ensure information intercommunication in the data sharing system, information connection can exist between each node in the data sharing system, and information transmission can be carried out between the nodes through the information connection. For example, when an arbitrary node in the data sharing system receives input information, other nodes in the data sharing system acquire the input information according to a consensus algorithm, and store the input information as data in shared data, so that the data stored on all the nodes in the data sharing system are consistent.
Each node in the data sharing system has a node identifier corresponding thereto, and each node in the data sharing system may store a node identifier of another node in the data sharing system, so that the generated block is broadcast to the other node in the data sharing system according to the node identifier of the other node in the following. Each node may maintain a node identifier list as shown in the following table, and store the node name and the node identifier in the node identifier list correspondingly. The node identifier may be an IP (Internet Protocol) address and any other information that can be used to identify the node, and table 1 only illustrates the IP address as an example.
TABLE 1 correspondence of node names and node identities
Node name Node identification
Node
1 117.114.151.174
Node 2 117.116.189.145
Node N 119.123.789.258
Each node in the data sharing system stores one identical blockchain. The block chain is composed of a plurality of blocks, referring to fig. 1c, the block chain is composed of a plurality of blocks, the starting block comprises a block head and a block main body, the block head stores an input information characteristic value, a version number, a timestamp and a difficulty value, and the block main body stores input information; the next block of the starting block takes the starting block as a parent block, the next block also comprises a block head and a block main body, the block head stores the input information characteristic value of the current block, the block head characteristic value of the parent block, the version number, the timestamp and the difficulty value, and the like, so that the block data stored in each block in the block chain is associated with the block data stored in the parent block, and the safety of the input information in the block is ensured.
When each block in the block chain is generated, referring to fig. 1d, when a node where the block chain is located receives input information, the input information is verified, after the verification is completed, the input information is stored in a memory pool, and a hash tree used for recording the input information is updated; and then, updating the updating time stamp to the time when the input information is received, trying different random numbers, and calculating the characteristic value for multiple times, so that the calculated characteristic value can meet the following formula:
SHA256(SHA256(version+prev_hash+merkle_root+ntime+nbits+x))<TARGET
wherein SHA-256 is a characteristic value algorithm used for calculating a characteristic value; version is version information of the relevant block protocol in the block chain; prev _ hash is a block head characteristic value of a parent block of the current block; merkle _ root is a characteristic value of the input information; ntime is the update time of the update timestamp; nbits is the 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 feature threshold, which can be determined from nbits.
Therefore, when the random number meeting the formula is obtained through calculation, the information can be correspondingly stored, and the block head and the block main body are generated to obtain the current block. And then, the node where the block chain is located respectively sends the newly generated blocks to other nodes in the data sharing system where the newly generated blocks are located according to the node identifications of the other nodes in the data sharing system, the newly generated blocks are verified by the other nodes, and the newly generated blocks are added to the block chain stored in the newly generated blocks after the verification is completed.
Referring to fig. 2, a schematic flow chart based on a data processing method is provided in an embodiment of the present application. As shown in fig. 2, the method of the embodiment of the present application may include the following steps S101 to S105.
S101, obtaining decoration requirement information issued by a user node, and issuing the decoration requirement information in a block chain network;
specifically, the data processing device obtains decoration requirement information issued by a user node, and issues the decoration requirement information in the blockchain network, it can be understood that the user node is a node device corresponding to the user on the blockchain, the blockchain can include a plurality of user nodes, the decoration requirement information is a requirement instruction issued by the user for a specific decoration object, the decoration requirement information includes information of the decoration object, specifically, the decoration object can be a commodity house or an office building, and a decoration style, decoration materials and the like, the decoration requirement information also includes conditions for the decoration enterprise, including a scale of the decoration enterprise, qualification information of the enterprise and the like, the data processing device obtains the decoration requirement information issued by the user node, issues the decoration requirement information in the blockchain network, and after the decoration requirement information is issued in the blockchain network, and the decoration enterprise nodes in the block chain network can acquire the decoration requirement information and respond to the decoration requirement information.
S102, acquiring response information of at least one decoration enterprise node to the decoration requirement information, and sending the response information of the at least one decoration enterprise node to the user node;
specifically, the data processing device obtains response information of at least one decoration enterprise node to the decoration requirement information, and sends the response information of the at least one decoration enterprise node to the user node, wherein the decoration enterprise node is a corresponding node device of a decoration enterprise on a block chain, the block chain can comprise a plurality of decoration enterprise nodes, each decoration enterprise node can respond to the decoration requirement information, for example, two decoration enterprises receive the decoration requirement information for the decoration requirement information of a user, namely respond to the decoration requirement information to generate response information, the data processing device obtains response information of at least one decoration enterprise node to the decoration requirement information, the response information comprises the decoration enterprise information, including enterprise qualification information and whether the conditions of the decoration requirement information issued by the user are met, and the data processing equipment sends the response information of the at least one decoration enterprise node to the user node.
S103, obtaining a decoration enterprise node selected by the user node, determining the decoration enterprise node selected by the user node as a target decoration enterprise node, and generating a decoration electronic contract related to the user node and the target decoration enterprise node through an intelligent contract; the decoration electronic contract is maintained by the intelligent contract;
specifically, the data processing device acquires a decoration enterprise node selected by the user node, determines the decoration enterprise node selected by the user node as a target decoration enterprise node, and generates a decoration electronic contract associated with the user node and the target decoration enterprise node through an intelligent contract, it is understood that a user may select one decoration enterprise node to perform decoration service with respect to a decoration enterprise node responding to decoration requirement information, the data processing device acquires the decoration enterprise node selected by the user node, determines the decoration enterprise node selected by the user node as a target decoration enterprise node, and the target decoration enterprise node may be any one decoration enterprise node responding to decoration requirement information, and generates a decoration electronic contract associated with the user node and the target decoration enterprise node through an intelligent contract, the decoration electronic contract is a term which is signed by a user and an enterprise and used for binding contracts and signing both parties, the intelligent contract is a program code of various instructions in a running block chain, specifically, the initial decoration electronic contract can be obtained from a block chain network, the initial decoration electronic contract comprises various contract terms and can comprise requirements for contract signing both parties and the term of the contract, and the like, the decoration electronic contract is generated according to the signatures of the contract signing both parties and the initial decoration electronic contract and is stored in the block chain, and the decoration electronic contract is maintained by the intelligent contract, namely, the execution term in the decoration electronic contract is executed through the intelligent contract.
S104, determining the pre-transferred asset yield of the decoration electronic contract according to the intelligent contract, and sending the first digital assets corresponding to the pre-transferred asset yield to a hosting account from a user account of the user node;
specifically, the data processing device determines a pre-transfer resource yield of the decoration electronic contract according to an intelligent contract, and transmits a first digital asset corresponding to the pre-transfer resource yield from a user account of the user node to a hosting account, it can be understood that, when the decoration electronic contract is signed, the digital asset transfer service between the nodes normally operates through maintenance of the intelligent contract, the digital asset transfer service is a payment service between an enterprise and a user, the pre-transfer resource yield is a part of the total transfer resource yield of the decoration service, and is a sum paid in advance, and specifically may be determined according to the decoration electronic contract, for example, the total sum of the decoration service is 100, that is, the total transfer resource yield of the decoration service is 100, terms in the decoration electronic contract specify that the pre-transfer resource yield is 10% of the total transfer resource yield, and the pre-transfer resource yield is 10, that is, the sum paid in advance is 10, the data processing equipment sends the first digital assets corresponding to the pre-transferred asset amount to an escrow account from a user account of the user node, wherein the escrow account is a public account maintained by the blockchain network, the user account is a private account of the user in the blockchain network, and the escrow account is used as an intermediate account between the user account and an enterprise account.
And S105, when the decoration electronic contract is in a service completion state, acquiring the residual asset yield of the decoration electronic contract according to an intelligent contract, sending the second digital asset corresponding to the residual asset yield to the hosting account from the user account, and sending the first digital asset and the second digital asset in the hosting account to an enterprise account of a target decoration enterprise node.
Specifically, when the decoration electronic contract is in a service completion state, the data processing device acquires the remaining resource yield of the decoration electronic contract according to an intelligent contract, transmits the second digital asset corresponding to the remaining resource yield from the user account to the hosting account, and transmits the first digital asset and the second digital asset in the hosting account to an enterprise account of a target decoration enterprise node, it can be understood that after the decoration service is completed, the user can check and accept the decoration result, and after the user checks and accepts, a service completion instruction is issued, the data processing device sets the decoration electronic contract to be in a service completion state according to the service completion instruction, when the decoration electronic contract is in the service completion state, the remaining resource yield of the decoration electronic contract is acquired according to the intelligent contract, and the remaining resource yield is the amount of the total transferred resource yield which is not transferred to the hosting account, for example, the total amount of the decoration service is 100, that is, the total amount of transferred assets of the decoration service is 100, the terms in the decoration electronic contract specify that the amount of pre-transferred assets is 10% of the total amount of transferred assets, the amount of pre-transferred assets is 10% and the amount of remaining assets is 90%, the data processing device sends the second digital assets corresponding to the amount of remaining assets from the user account to the hosting account, sends the first digital assets and the second digital assets in the hosting account to an enterprise account of a target decoration enterprise node, the enterprise account is a private account of an enterprise in a block chain network, and the sum of the first digital assets and the second digital assets in the hosting account is the digital assets corresponding to the total amount of transferred assets.
In the embodiment of the application, decoration demand information issued by user nodes is acquired, the decoration demand information is issued in a block chain network, response information of at least one decoration enterprise node to the decoration demand information is acquired, the response information of at least one decoration enterprise node is sent to the user nodes, the decoration enterprise node selected by the user nodes is acquired, the decoration enterprise node selected by the user nodes is determined as a target decoration enterprise node, decoration electronic contracts related to the user nodes and the target decoration enterprise node are generated through intelligent contracts, pre-transfer resource yield of the decoration electronic contracts is determined according to the intelligent contracts, first digital assets corresponding to the pre-transfer resource yield are sent to a hosting account from a user account of the user nodes, and when the decoration electronic contracts are in a service completion state, the residual resource yield of the decoration electronic contracts is acquired according to the intelligent contracts, and sending the second digital assets corresponding to the residual asset quantity from the user account to the hosting account, and sending the first digital assets and the second digital assets in the hosting account to the enterprise account of the target decoration enterprise node. The decoration electronic contract is issued to the block chain, and the electronic contract is added into the escrow account to transfer the assets, so that the safety of the assets is guaranteed, and the accuracy of data is improved.
Referring to fig. 3, a flow chart of a data processing method according to an embodiment of the present application is schematically shown. As shown in fig. 3, the method of the embodiment of the present application may include the following steps S201 to S207.
S201, obtaining decoration requirement information issued by a user node, and issuing the decoration requirement information in a block chain network;
specifically, the data processing device obtains decoration requirement information issued by a user node, and issues the decoration requirement information in the blockchain network, it can be understood that the user node is a node device corresponding to the user on the blockchain, the blockchain can include a plurality of user nodes, the decoration requirement information is a requirement instruction issued by the user for a specific decoration object, the decoration requirement information includes information of the decoration object, specifically, the decoration object can be a commodity house or an office building, and a decoration style, decoration materials and the like, the decoration requirement information also includes conditions for the decoration enterprise, including a scale of the decoration enterprise, qualification information of the enterprise and the like, the data processing device obtains the decoration requirement information issued by the user node, issues the decoration requirement information in the blockchain network, and after the decoration requirement information is issued in the blockchain network, and the decoration enterprise nodes in the block chain network can acquire the decoration requirement information and respond to the decoration requirement information.
S202, acquiring response information of at least one decoration enterprise node to the decoration requirement information, and setting a classification label for the at least one decoration enterprise node according to a screening condition in the decoration requirement information; and sending the classification label and the response information of the at least one decoration enterprise node to the user node.
Specifically, the data processing equipment acquires response information of at least one decoration enterprise node to the decoration requirement information, and sets a classification label for the at least one decoration enterprise node according to a screening condition in the decoration requirement information; sending the classification label and the response information of the at least one decoration enterprise node to the user node, wherein the decoration enterprise node is a corresponding node device of a decoration enterprise on a block chain, the block chain can comprise a plurality of decoration enterprise nodes, each decoration enterprise node can respond to the decoration requirement information, the data processing device obtains the response information of the at least one decoration enterprise node to the decoration requirement information, the response information comprises decoration enterprise information, enterprise qualification information and the like, the screening condition in the decoration requirement information comprises the requirement of a user on the decoration enterprise qualification information, the decoration budget and the like, the data processing device sets the classification label for the at least one decoration enterprise node according to the screening condition in the decoration requirement information, and the classification label can be the matching degree of the decoration enterprise to the screening condition, for example, the decoration enterprise label satisfying one screening condition is 1, the decoration enterprise label satisfying two screening conditions is 2, and the classification label and the response information of the decoration enterprise node are sent to the user node.
S203, acquiring the decoration enterprise node selected by the user node, and determining the decoration enterprise node selected by the user node as a target decoration enterprise node; acquiring an initial decoration electronic contract corresponding to the user node through an intelligent contract; generating a decoration electronic contract according to the enterprise signature of the target enterprise, the user signature of the target user and the initial decoration electronic contract; and encrypting the decoration electronic contract, and synchronizing the encrypted decoration electronic contract to the block chain network.
Specifically, for decoration enterprise nodes responding to decoration requirement information, a user can select a decoration enterprise node to execute decoration service, a data processing device obtains the decoration enterprise node selected by the user node, the decoration enterprise node selected by the user node is determined as a target decoration enterprise node, the target decoration enterprise node can be any decoration enterprise node responding to the decoration requirement information, an initial decoration electronic contract is obtained from a block chain network, decoration enterprises and users of a contract signing party respectively sign the initial decoration electronic contract, a decoration electronic contract is generated according to the signatures of the contract signing party and the initial decoration electronic contract, the initial decoration electronic contract comprises various contracts, requirements for the contract signing party and the term of the contract are included, and the decoration electronic contract is maintained by an intelligent contract, namely, the execution clauses in the decoration electronic contract are executed through the intelligent contract. Paying decoration money to enterprises according to a contract appointed time limit, finally encrypting a decoration electronic contract, and synchronizing the encrypted decoration electronic contract to a block chain network.
S204, determining the pre-transferred asset yield of the decoration electronic contract according to the intelligent contract, and sending the first digital asset corresponding to the pre-transferred asset yield to a hosting account from a user account of the user node;
the step S204 of the embodiment of the present application may include the following steps S2041 to S2044.
S2041, determining the total resource yield and the pre-transfer proportion of the decoration electronic contract according to the intelligent contract, and determining the pre-transfer resource yield according to the total resource yield and the pre-transfer proportion;
specifically, the data processing device determines a total resource yield and a pre-transfer proportion of the decoration electronic contract according to the intelligent contract, and determines a pre-transfer resource yield according to the total resource yield and the pre-transfer proportion, wherein the total resource yield is a total amount of decoration services, the pre-transfer proportion is a contract term in the decoration electronic contract, and the pre-transfer resource yield is determined according to the total resource yield and the pre-transfer proportion, for example, the total amount of the decoration services is 100, that is, the total transfer resource yield of the decoration services is 100, and a term in the decoration electronic contract specifies that the pre-transfer proportion is 10%, and then the pre-transfer resource yield is 10.
S2042, generating transaction data according to the user account, the escrow account of the block chain network, the pre-transferred resource yield and the source account of the pre-transferred resource yield;
specifically, the data processing device generates transaction data according to the user account, the escrow account of the blockchain network, the pre-transfer asset production and the source account of the pre-transfer asset production, it can be understood that the escrow account is a public account in the blockchain network, the user account is a private account of the user in the blockchain network, the source account of the transfer asset production is an account corresponding to a source of the digital asset in the user account and can be used as a tag of the digital asset, and the data processing device packages the user account, the escrow account, the pre-transfer asset production and the source account of the pre-transfer asset production to generate the transaction data.
S2043, obtaining a user private key of a target user, and signing the transaction data by adopting the user private key to obtain transfer signature information;
specifically, the data processing device obtains a user private key of a target user, signs the transaction data by using the user private key to obtain transfer signature information, and it can be understood that the data processing device has a use right to the user private key through authorization of the user, signs the transaction data by using the user private key to obtain the transfer signature information.
S2044, carrying out consensus processing on the transaction data and the transfer signature information, and storing the transaction data and the transfer signature information to a block chain network after consensus is passed; the escrow account is provided with asset transfer rights to the transaction data that has been stored into a blockchain network.
Specifically, the data processing device performs consensus processing on the transaction data and the transfer signature information, and stores the transaction data and the transfer signature information into the blockchain network after the consensus passes, it can be understood that the consensus processing is that the blockchain network verifies the transaction data and the transfer signature information, and when the consensus passes, the escrow account has an asset transfer authority for the transaction data stored in the blockchain network, that is, after the consensus passes, the digital asset in the transaction data can be transferred.
S205, acquiring a service completion instruction of a user node, and setting the state of the decoration electronic contract into a service completion state according to the service completion instruction; determining the total resource yield and the pre-transfer proportion of the decoration electronic contract according to the intelligent contract, and determining the residual resource yield according to the total resource yield and the pre-transfer proportion; and sending the second digital assets corresponding to the residual asset amount from the user account to the hosting account, and sending the first digital assets and the second digital assets in the hosting account to an enterprise account of a target decoration enterprise node.
Specifically, after finishing the decoration service, the user can check the decoration result, after the user checks the decoration result, the user issues a service completion instruction, the data processing device sets the contract into a service completion state according to the service completion instruction, when the decoration electronic contract is in the service completion state, the total resource yield and the pre-transfer proportion of the decoration electronic contract are determined according to the intelligent contract, the remaining resource yield is determined according to the total resource yield and the pre-transfer proportion, the remaining resource yield is the asset quantity which is not transferred into the hosting account in the total transferred resource yield, for example, the total sum of the decoration service is 100, namely the total transferred resource yield of the decoration service is 100, the term in the decoration electronic contract specifies that the pre-transferred yield is 10% of the total transferred resource yield, the pre-transferred resource yield is 10, the remaining resource yield is 90, and the data processing device sends the second digital asset corresponding to the remaining asset quantity from the user account to the hosting account, and sending the first digital asset and the second digital asset in the managed account to an enterprise account of a target decoration enterprise node, wherein the enterprise account is a private account of the enterprise in the blockchain network, and the sum of the first digital asset and the second digital asset in the managed account is a digital asset corresponding to the total transfer asset. Please refer to fig. 4, which provides a scene diagram of a decoration service according to an embodiment of the present application. As shown in fig. 4, the decoration enterprise acquires decoration requirement information issued by a user and responds to the decoration requirement information, the user acquires response information of the decoration enterprise to the decoration requirement information, the user selects the decoration enterprise to carry out decoration service, on the basis of the requirement information, a decoration electronic contract related to the user and a decoration enterprise is generated through an intelligent contract, determining the pre-transferred asset yield of the decoration electronic contract according to the intelligent contract, sending the first digital assets corresponding to the pre-transferred asset yield to a hosting account from a user account of a user, when the decoration service is finished, when the decoration electronic contract is in a service completion state, the second digital assets corresponding to the residual asset yield are sent to the hosting account from the user account according to the intelligent contract, and finally the first digital assets and the second digital assets in the hosting account are sent to the enterprise account of the decoration enterprise.
S206, obtaining the evaluation information of the user node based on the decoration electronic contract, binding the evaluation information with the decoration electronic contract, and issuing the bound evaluation information to a block chain network.
Specifically, the data processing device acquires evaluation information of the user node based on the decoration electronic contract, binds the evaluation information with the decoration electronic contract, and issues the bound evaluation information to the block chain network, it can be understood that the evaluation information is for the decoration electronic contract, and can issue the evaluation information only when the decoration electronic contract is in a service completion state, after the user evaluates the decoration service, the data processing device acquires the evaluation information of the user node based on the decoration electronic contract, binds the evaluation information with the corresponding decoration electronic contract, and issues the evaluation information to the block chain network, and other users on the block chain network can view the evaluation information.
S207, generating enterprise qualification information of the decoration enterprise node according to the evaluation information of the decoration enterprise node, and adding the decoration enterprise node into a blacklist when the enterprise qualification information of the decoration enterprise node is greater than threshold information; the decoration enterprise nodes in the blacklist do not have the service function of responding decoration requirement information issued by the user nodes.
Specifically, the data processing device obtains all evaluation information of the decoration enterprise node, generates enterprise qualification information of the decoration enterprise node according to all the evaluation information, specifically, can take an average value of user scores in all the evaluation information according to the user scores in the evaluation information, determines the enterprise qualification information of the decoration enterprise node according to the average value of the user scores, and adds the decoration enterprise node into a blacklist when the enterprise qualification information of the decoration enterprise node is greater than threshold information, wherein the decoration enterprise node in the blacklist does not have a service function of responding decoration requirement information issued by the user node, namely, the decoration enterprise added into the blacklist cannot accept decoration services.
In the embodiment of the application, decoration demand information issued by user nodes is acquired, the decoration demand information is issued in a block chain network, response information of at least one decoration enterprise node to the decoration demand information is acquired, the response information of at least one decoration enterprise node is sent to the user nodes, the decoration enterprise node selected by the user nodes is acquired, the decoration enterprise node selected by the user nodes is determined as a target decoration enterprise node, decoration electronic contracts related to the user nodes and the target decoration enterprise node are generated through intelligent contracts, pre-transfer resource yield of the decoration electronic contracts is determined according to the intelligent contracts, first digital assets corresponding to the pre-transfer resource yield are sent to a hosting account from a user account of the user nodes, and when the decoration electronic contracts are in a service completion state, the residual resource yield of the decoration electronic contracts is acquired according to the intelligent contracts, and sending the second digital assets corresponding to the residual asset quantity from the user account to the hosting account, and sending the first digital assets and the second digital assets in the hosting account to the enterprise account of the target decoration enterprise node. The decoration electronic contract is issued to the block chain, and the electronic contract is added into the escrow account to transfer the assets, so that the safety of the assets is guaranteed, and the accuracy of data is improved.
Referring to fig. 5, a schematic structural diagram of a data processing apparatus is provided in an embodiment of the present application. The data processing device may be a computer program (comprising program code) running on a computer device, e.g. an application software; the device can be used for executing the corresponding steps in the method provided by the embodiment of the application. As shown in fig. 5, the data processing apparatus 1 according to the embodiment of the present application may include: the system comprises a demand information acquisition unit 11, a response information acquisition unit 12, an electronic contract generation unit 13, a first asset transfer unit 14 and a second asset transfer unit 15.
The demand information acquiring unit 11 is configured to acquire decoration demand information issued by a user node, and issue the decoration demand information in a block chain network;
a response information obtaining unit 12, configured to obtain response information of at least one decoration enterprise node to the decoration requirement information, and send the response information of the at least one decoration enterprise node to the user node;
an electronic contract generating unit 13, configured to obtain a decoration enterprise node selected by the user node, determine the decoration enterprise node selected by the user node as a target decoration enterprise node, and generate a decoration electronic contract associated with the user node and the target decoration enterprise node through an intelligent contract; the decoration electronic contract is maintained by the intelligent contract;
the first asset transfer unit 14 is configured to determine a pre-transfer asset yield of the decoration electronic contract according to the intelligent contract, and send a first digital asset corresponding to the pre-transfer asset yield from a user account of the user node to a hosting account;
and the second asset transfer unit 15 is configured to, when the decoration electronic contract is in a service completion state, obtain a remaining asset production amount of the decoration electronic contract according to an intelligent contract, send a second digital asset corresponding to the remaining asset production amount from the user account to the hosting account, and send the first digital asset and the second digital asset in the hosting account to an enterprise account of a target decoration enterprise node.
The response information obtaining unit 12 is specifically configured to:
acquiring response information of at least one decoration enterprise node to the decoration requirement information, and setting a classification label for the at least one decoration enterprise node according to a screening condition in the decoration requirement information;
and sending the classification label and the response information of the at least one decoration enterprise node to the user node.
The electronic contract generating unit 13 is specifically configured to:
obtaining a decoration enterprise node selected by the user node, and determining the decoration enterprise node selected by the user node as a target decoration enterprise node;
acquiring an initial decoration electronic contract corresponding to the user node through an intelligent contract;
generating a decoration electronic contract according to the enterprise signature of the target enterprise, the user signature of the target user and the initial decoration electronic contract;
and encrypting the decoration electronic contract, and synchronizing the encrypted decoration electronic contract to the block chain network.
The first asset transfer unit 14 is specifically configured to:
determining the total resource yield and the pre-transfer proportion of the decoration electronic contract according to the intelligent contract, and determining the pre-transfer resource yield according to the total resource yield and the pre-transfer proportion;
generating transaction data according to the user account, a hosting account of a blockchain network, the pre-transferred asset production and a source account of the pre-transferred asset production;
acquiring a user private key of a target user, and signing the transaction data by adopting the user private key to obtain transfer signature information;
performing consensus processing on the transaction data and the transfer signature information;
after the consensus passes, storing the transaction data and the transfer signature information to a blockchain network; the escrow account is provided with asset transfer rights to the transaction data that has been stored into a blockchain network.
The second asset transfer unit 15 is specifically configured to:
acquiring a service completion instruction of a user node, and setting the state of the decoration electronic contract into a service completion state according to the service completion instruction;
determining the total resource yield and the pre-transfer proportion of the decoration electronic contract according to the intelligent contract, and determining the residual resource yield according to the total resource yield and the pre-transfer proportion;
and sending the second digital assets corresponding to the residual asset amount from the user account to the hosting account, and sending the first digital assets and the second digital assets in the hosting account to an enterprise account of a target decoration enterprise node.
As shown in fig. 5, the data processing apparatus 1 according to the embodiment of the present application may include: an evaluation information acquisition unit 16;
and the evaluation information acquisition unit 16 is configured to acquire evaluation information of the user node based on the decoration electronic contract, bind the evaluation information with the decoration electronic contract, and issue the bound evaluation information to the blockchain network.
As shown in fig. 5, the data processing apparatus 1 according to the embodiment of the present application may include: a qualification information generating unit 17;
a qualification information generating unit 17, configured to generate enterprise qualification information for the decoration enterprise node according to the evaluation information of the decoration enterprise node, and add the decoration enterprise node to a blacklist when the enterprise qualification information of the decoration enterprise node is greater than threshold information; the decoration enterprise nodes in the blacklist do not have the service function of responding decoration requirement information issued by the user nodes.
In the embodiment of the application, decoration demand information issued by user nodes is acquired, the decoration demand information is issued in a block chain network, response information of at least one decoration enterprise node to the decoration demand information is acquired, the response information of at least one decoration enterprise node is sent to the user nodes, the decoration enterprise node selected by the user nodes is acquired, the decoration enterprise node selected by the user nodes is determined as a target decoration enterprise node, decoration electronic contracts related to the user nodes and the target decoration enterprise node are generated through intelligent contracts, pre-transfer resource yield of the decoration electronic contracts is determined according to the intelligent contracts, first digital assets corresponding to the pre-transfer resource yield are sent to a hosting account from a user account of the user nodes, and when the decoration electronic contracts are in a service completion state, the residual resource yield of the decoration electronic contracts is acquired according to the intelligent contracts, and sending the second digital assets corresponding to the residual asset quantity from the user account to the hosting account, and sending the first digital assets and the second digital assets in the hosting account to the enterprise account of the target decoration enterprise node. The decoration electronic contract is issued to the block chain, and the electronic contract is added into the escrow account to transfer the assets, so that the safety of the assets is guaranteed, and the accuracy of data is improved.
Referring to fig. 6, a schematic structural diagram of a computer device is provided in an embodiment of the present application. As shown in fig. 6, the computer apparatus 1000 may include: at least one processor 1001, such as a CPU, at least one network interface 1004, a user interface 1003, memory 1005, at least one communication bus 1002. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may include a Display screen (Display), and the optional user interface 1003 may also include a standard wired interface or a wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The memory 1005 may be a high-speed RAM memory or a non-volatile memory (non-volatile memory), such as at least one disk memory. The memory 1005 may optionally be at least one memory device located remotely from the processor 1001. As shown in fig. 6, the memory 1005, which is a kind of computer storage medium, may include therein an operating system, a network communication module, a user interface module, and a data processing application program.
In the computer apparatus 1000 shown in fig. 6, a network interface 1004 may provide a network communication function, and a user interface 1003 is mainly used as an interface for providing input for a user; the processor 1001 may be configured to call a data processing application stored in the memory 1005, so as to implement the description of the data processing method in the embodiment corresponding to any one of fig. 2 to fig. 4, which is not described herein again.
It should be understood that the computer device 1000 described in this embodiment of the present application may perform the description of the data processing method in the embodiment corresponding to any one of fig. 2 to fig. 4, and may also perform the description of the data processing device in the embodiment corresponding to fig. 5, which is not described herein again. In addition, the beneficial effects of the same method are not described in detail.
Further, here, it is to be noted that: an embodiment of the present application further provides a computer-readable storage medium, where a computer program executed by the aforementioned data processing apparatus is stored in the computer-readable storage medium, and the computer program includes program instructions, and when the processor executes the program instructions, the description of the data processing method in any one of the embodiments corresponding to fig. 2 to fig. 4 can be performed, so that details are not repeated here. In addition, the beneficial effects of the same method are not described in detail. For technical details not disclosed in embodiments of the computer-readable storage medium referred to in the present application, reference is made to the description of embodiments of the method of the present application. As an example, program instructions may be deployed to be executed on one computing device or on multiple computing devices at one site or distributed across multiple sites and interconnected by a communication network, which may comprise a block chain system.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), or the like.
The above disclosure is only for the purpose of illustrating the preferred embodiments of the present application and is not to be construed as limiting the scope of the present application, so that the present application is not limited thereto, and all equivalent variations and modifications can be made to the present application.

Claims (10)

1. A data processing method based on a block chain is characterized by comprising the following steps:
obtaining decoration requirement information issued by a user node, and issuing the decoration requirement information in a block chain network;
acquiring response information of at least one decoration enterprise node to the decoration requirement information, and sending the response information of the at least one decoration enterprise node to the user node;
acquiring a decoration enterprise node selected by the user node, determining the decoration enterprise node selected by the user node as a target decoration enterprise node, and generating a decoration electronic contract related to the user node and the target decoration enterprise node through an intelligent contract; the decoration electronic contract is maintained by the intelligent contract;
determining the pre-transferred asset yield of the decoration electronic contract according to the intelligent contract, and sending the first digital asset corresponding to the pre-transferred asset yield to a hosting account from a user account of the user node;
when the decoration electronic contract is in a service completion state, acquiring the residual asset output of the decoration electronic contract according to an intelligent contract, sending the second digital asset corresponding to the residual asset output to the hosting account from the user account, and sending the first digital asset and the second digital asset in the hosting account to an enterprise account of a target decoration enterprise node.
2. The method of claim 1, wherein the obtaining of the response information of the at least one decoration enterprise node to the decoration requirement information and the sending of the response information of the at least one decoration enterprise node to the user node comprise:
acquiring response information of at least one decoration enterprise node to the decoration requirement information, and setting a classification label for the at least one decoration enterprise node according to a screening condition in the decoration requirement information;
and sending the classification label and the response information of the at least one decoration enterprise node to the user node.
3. The method of claim 1, wherein the obtaining the decoration enterprise node selected by the user node, determining the decoration enterprise node selected by the user node as a target decoration enterprise node, and generating a decoration electronic contract associated with the user node and the target decoration enterprise node through an intelligent contract comprises:
obtaining a decoration enterprise node selected by the user node, and determining the decoration enterprise node selected by the user node as a target decoration enterprise node;
acquiring an initial decoration electronic contract corresponding to the user node through an intelligent contract;
generating a decoration electronic contract according to the enterprise signature of the target enterprise, the user signature of the target user and the initial decoration electronic contract;
and encrypting the decoration electronic contract, and synchronizing the encrypted decoration electronic contract to the block chain network.
4. The method of claim 1, wherein determining a pre-transferred asset production of the finishing electronic contract according to a smart contract, and sending a first digital asset corresponding to the pre-transferred asset production from a user account of the user node to a hosting account comprises:
determining the total resource yield and the pre-transfer proportion of the decoration electronic contract according to the intelligent contract, and determining the pre-transfer resource yield according to the total resource yield and the pre-transfer proportion;
generating transaction data according to the user account, a hosting account of a blockchain network, the pre-transferred asset production and a source account of the pre-transferred asset production;
acquiring a user private key of a target user, and signing the transaction data by adopting the user private key to obtain transfer signature information;
performing consensus processing on the transaction data and the transfer signature information;
after the consensus passes, storing the transaction data and the transfer signature information to a blockchain network; the escrow account is provided with asset transfer rights to the transaction data that has been stored into a blockchain network.
5. The method of claim 1, wherein when the decoration electronic contract is in a service completion state, acquiring a remaining resource amount of the decoration electronic contract according to an intelligent contract, sending a second digital asset corresponding to the remaining resource amount from the user account to the hosting account, and sending the first digital asset and the second digital asset in the hosting account to an enterprise account of a target decoration enterprise node, comprises:
acquiring a service completion instruction of a user node, and setting the state of the decoration electronic contract into a service completion state according to the service completion instruction;
determining the total resource yield and the pre-transfer proportion of the decoration electronic contract according to the intelligent contract, and determining the residual resource yield according to the total resource yield and the pre-transfer proportion;
and sending the second digital assets corresponding to the residual asset amount from the user account to the hosting account, and sending the first digital assets and the second digital assets in the hosting account to an enterprise account of a target decoration enterprise node.
6. The method of claim 1, further comprising:
and acquiring evaluation information of the user node based on the decoration electronic contract, binding the evaluation information and the decoration electronic contract, and issuing the bound evaluation information to a block chain network.
7. The method of claim 1, further comprising:
generating enterprise qualification information of the decoration enterprise node according to the evaluation information of the decoration enterprise node, and adding the decoration enterprise node into a blacklist when the enterprise qualification information of the decoration enterprise node is greater than threshold information; the decoration enterprise nodes in the blacklist do not have the service function of responding decoration requirement information issued by the user nodes.
8. A blockchain-based data processing apparatus, comprising:
the system comprises a demand information acquisition unit, a block chain network and a data processing unit, wherein the demand information acquisition unit is used for acquiring decoration demand information issued by user nodes and issuing the decoration demand information in the block chain network;
the response information acquisition unit is used for acquiring response information of at least one decoration enterprise node to the decoration requirement information and sending the response information of the at least one decoration enterprise node to the user node;
the electronic contract generating unit is used for acquiring the decoration enterprise node selected by the user node, determining the decoration enterprise node selected by the user node as a target decoration enterprise node, and generating a decoration electronic contract related to the user node and the target decoration enterprise node through an intelligent contract; the decoration electronic contract is maintained by the intelligent contract;
the first asset transfer unit is used for determining the pre-transfer asset yield of the decoration electronic contract according to the intelligent contract and sending the first digital asset corresponding to the pre-transfer asset yield to a hosting account from a user account of the user node;
and the second asset transfer unit is used for acquiring the residual asset output of the decoration electronic contract according to the intelligent contract when the decoration electronic contract is in a service completion state, sending the second digital asset corresponding to the residual asset output to the hosting account from the user account, and sending the first digital asset and the second digital asset in the hosting account to an enterprise account of a target decoration enterprise node.
9. A computer-readable storage medium, characterized in that the computer storage medium stores a computer program comprising program instructions which, when executed by a processor, perform the method according to any of claims 1-7.
10. A computer device, comprising: a processor and a memory; wherein the memory stores a computer program adapted to be loaded by the processor and to perform the method steps of any of claims 1-7.
CN202010076892.9A 2020-01-23 2020-01-23 Data processing method and device based on block chain Pending CN111311211A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010076892.9A CN111311211A (en) 2020-01-23 2020-01-23 Data processing method and device based on block chain

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010076892.9A CN111311211A (en) 2020-01-23 2020-01-23 Data processing method and device based on block chain

Publications (1)

Publication Number Publication Date
CN111311211A true CN111311211A (en) 2020-06-19

Family

ID=71161568

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010076892.9A Pending CN111311211A (en) 2020-01-23 2020-01-23 Data processing method and device based on block chain

Country Status (1)

Country Link
CN (1) CN111311211A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111598735A (en) * 2020-06-23 2020-08-28 烟台大学 House decoration supervisory systems based on block chain
CN111598736A (en) * 2020-06-23 2020-08-28 烟台大学 House decoration supervision method based on block chain technology
CN111858835A (en) * 2020-07-31 2020-10-30 平安国际智慧城市科技股份有限公司 Enterprise relation display method and related equipment
CN112950371A (en) * 2021-02-26 2021-06-11 iCALC控股有限公司 Data processing method, device and equipment and readable storage medium
CN114723449A (en) * 2022-05-17 2022-07-08 北京连琪科技有限公司 Block chain piece payment method and electronic equipment
CN117474534A (en) * 2023-12-26 2024-01-30 成都天府通数字科技有限公司 Management system for conditional payment

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111598735A (en) * 2020-06-23 2020-08-28 烟台大学 House decoration supervisory systems based on block chain
CN111598736A (en) * 2020-06-23 2020-08-28 烟台大学 House decoration supervision method based on block chain technology
CN111858835A (en) * 2020-07-31 2020-10-30 平安国际智慧城市科技股份有限公司 Enterprise relation display method and related equipment
CN111858835B (en) * 2020-07-31 2024-04-02 深圳赛安特技术服务有限公司 Enterprise relation display method and related equipment
CN112950371A (en) * 2021-02-26 2021-06-11 iCALC控股有限公司 Data processing method, device and equipment and readable storage medium
CN112950371B (en) * 2021-02-26 2023-11-21 iCALC控股有限公司 Data processing method, device, equipment and readable storage medium
CN114723449A (en) * 2022-05-17 2022-07-08 北京连琪科技有限公司 Block chain piece payment method and electronic equipment
CN117474534A (en) * 2023-12-26 2024-01-30 成都天府通数字科技有限公司 Management system for conditional payment
CN117474534B (en) * 2023-12-26 2024-03-19 成都天府通数字科技有限公司 Management system for conditional payment

Similar Documents

Publication Publication Date Title
CN110599173B (en) Block chain consensus node determination method, device, equipment and storage medium
CN111311211A (en) Data processing method and device based on block chain
CN111427957B (en) Block chain voting information verification method, device, equipment and storage medium
CN110933163B (en) Block chain contract deployment method, device, equipment and storage medium
CN110519297B (en) Data processing method and device based on block chain private key
CN110717832B (en) Clean energy trading method, system, device and storage medium based on block chain
CN111291060A (en) Method, device and computer readable medium for managing block chain nodes
CN111884807B (en) Article reservation method, apparatus, device and medium based on block chain
CN112527912B (en) Data processing method and device based on block chain network and computer equipment
CN110601896B (en) Data processing method and equipment based on block chain nodes
CN111325581B (en) Data processing method and device, electronic equipment and computer readable storage medium
AU2019380381A1 (en) Smart logistics management using blockchain
CN111292057A (en) Service processing method based on block chain
CN110968644A (en) Data processing method and equipment
CN110866265A (en) Data storage method, device and storage medium based on block chain
CN109194651A (en) A kind of identity identifying method, device, equipment and storage medium
CN112069550A (en) Electronic contract deposit certificate system based on intelligent contract mode
CN110866289A (en) Data processing method and device based on block chain, server and storage medium
CN111461881A (en) Data management method and device, computer equipment and storage medium
CN110908812A (en) Business data processing method and device, readable storage medium and computer equipment
CN111274597B (en) Data processing method and device
CN110599384B (en) Organization relation transferring method, device, equipment and storage medium
CN112231755A (en) Data authorization method, device and system based on block chain
CN110598475A (en) Block chain-based work attribute information acquisition method and device and computer equipment
CN112926981B (en) Transaction information processing method, device and medium for block chain and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination