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.
In one aspect, an embodiment of the present application provides a data processing method based on a blockchain, which may include:
acquiring decoration demand information issued by a user node, and issuing the decoration demand information in a block chain network;
acquiring response information of at least one repair enterprise node to the decoration demand information, and transmitting the response information of the at least one repair 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 associated with the user node and the target decoration enterprise node through an intelligent contract;
Determining the pre-transfer resource yield of the decoration electronic contract according to an intelligent contract, and sending a first digital asset corresponding to the pre-transfer resource yield from a user account of the user node to a hosting account;
And when the decoration electronic contract is in a business completion state, acquiring the residual resource yield of the decoration electronic contract according to an intelligent contract, sending a second digital asset corresponding to the residual resource yield from the user account to the managed 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.
The obtaining response information of at least one repair enterprise node to the decoration requirement information, and sending the response information of the at least one repair enterprise node to the user node includes:
acquiring response information of at least one repair enterprise node to the decoration requirement information, and setting a classification label for the at least one repair enterprise node according to screening conditions in the decoration requirement information;
and sending the classification label and response information of the at least one repair enterprise node to the user node.
The method for 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, generating a decoration electronic contract associated with the user node and the target decoration enterprise node through an intelligent contract, and comprises the following steps:
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;
encrypting the decoration electronic contract, and synchronizing the encrypted decoration electronic contract to a blockchain network.
Wherein the determining the pre-transfer asset yield of the decorated electronic contract according to the intelligent contract, and sending the first digital asset corresponding to the pre-transfer asset yield from the user account of the user node to the escrow account, comprises:
Determining total resource output and pre-transfer proportion of the decoration electronic contract according to the intelligent contract, and determining pre-transfer resource output according to the total resource output and the pre-transfer proportion;
generating transaction data according to the user account, a hosting account of a blockchain network, the pre-transfer asset yield and a source account of the pre-transfer asset yield;
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;
And after the consensus is passed, storing the transaction data and the transfer signature information into a blockchain network, wherein the managed account has asset transfer rights for the transaction data stored into the blockchain network.
When the decoration electronic contract is in a business completion state, acquiring the residual resource yield of the decoration electronic contract according to an intelligent contract, sending a second digital asset corresponding to the residual resource yield from the user account to the managed 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 method comprises the following steps:
Acquiring a service completion instruction of a user node, and setting the state of the decoration electronic contract as a service completion state according to the service completion instruction;
Determining total resource output and pre-transfer proportion of the decoration electronic contract according to the intelligent contract, and determining residual resource output according to the total resource output and the pre-transfer proportion;
and sending the second digital asset corresponding to the residual resource yield from the user account to the managed account, and sending the first digital asset and the second digital asset in the managed account to an enterprise account of a target finishing enterprise node.
Wherein, still include:
And acquiring evaluation information of the user node on the basis of the decoration electronic contract, binding the evaluation information with the decoration electronic contract, and issuing the bound evaluation information to a blockchain network.
Wherein, still include:
Generating enterprise qualification information for the decoration enterprise node according to the evaluation information of the decoration enterprise node, adding the decoration enterprise node into a blacklist when the enterprise qualification information of the decoration enterprise node is larger than threshold information, wherein the decoration enterprise node in the blacklist does not have a service function of responding decoration demand information issued by a user node.
An aspect of an embodiment of the present application provides a data processing apparatus based on a blockchain, which may include:
the demand information acquisition unit is used for acquiring decoration demand information issued by the user node 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 repair enterprise node to the decoration demand information and sending the response information of the at least one repair enterprise node to the user node;
The electronic contract generation 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 decoration electronic contracts related to the user node and the target decoration enterprise node through intelligent contracts, wherein the decoration electronic contracts are maintained by the intelligent contracts;
a first asset transfer unit, configured to determine a pre-transfer asset yield of the decorated electronic contract according to an 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 is used for acquiring the residual resource yield of the decoration electronic contract according to the intelligent contract when the decoration electronic contract is in a business completion state, sending the second digital asset corresponding to the residual resource yield from the user account to the managed account, and sending the first digital asset and the second digital asset in the managed account to the enterprise account of the target decoration enterprise node.
The response information acquiring unit is specifically configured to:
acquiring response information of at least one repair enterprise node to the decoration requirement information, and setting a classification label for the at least one repair enterprise node according to screening conditions in the decoration requirement information;
and sending the classification label and response information of the at least one repair enterprise node to the user node.
The electronic contract generating unit is specifically configured to:
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;
encrypting the decoration electronic contract, and synchronizing the encrypted decoration electronic contract to a blockchain network.
Wherein the first asset transfer unit is specifically configured to:
Determining total resource output and pre-transfer proportion of the decoration electronic contract according to the intelligent contract, and determining pre-transfer resource output according to the total resource output and the pre-transfer proportion;
generating transaction data according to the user account, a hosting account of a blockchain network, the pre-transfer asset yield and a source account of the pre-transfer asset yield;
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;
And after the consensus is passed, storing the transaction data and the transfer signature information into a blockchain network, wherein the managed account has asset transfer rights for the transaction data stored into the 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 as a service completion state according to the service completion instruction;
Determining total resource output and pre-transfer proportion of the decoration electronic contract according to the intelligent contract, and determining residual resource output according to the total resource output and the pre-transfer proportion;
and sending the second digital asset corresponding to the residual resource yield from the user account to the managed account, and sending the first digital asset and the second digital asset in the managed account to an enterprise account of a target finishing enterprise node.
Wherein, still include:
And the evaluation information acquisition unit is used for acquiring the evaluation information of the user node on the basis of the decoration electronic contract, binding the evaluation information with the decoration electronic contract, and issuing the bound evaluation information to a blockchain network.
Wherein, still include:
the qualification information generation 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 to decoration demand information issued by the user nodes.
In one aspect, embodiments of the present application provide a computer-readable storage medium storing a plurality of instructions adapted to be loaded by a processor and to perform the above-described method steps.
In one aspect, the embodiment of the application provides a computer device, which comprises a processor and a memory, wherein the memory stores a computer program, and the computer program is suitable for being loaded by the processor and executing the steps of the method.
In the embodiment of the application, decoration demand information issued by a user node is acquired, the decoration demand information is issued in a blockchain 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 transmitted to the user node, decoration enterprise nodes selected by the user node are acquired, the decoration enterprise nodes selected by the user node are determined to be target decoration enterprise nodes, decoration electronic contracts related to the user node and the target decoration enterprise nodes are generated through intelligent contracts, pre-transfer resource output of the decoration electronic contracts is determined according to the intelligent contracts, first digital assets corresponding to the pre-transfer resource output are transmitted to a hosting account from a user account of the user node, when the decoration electronic contracts are in a business completion state, residual resource output of the decoration electronic contracts is acquired according to the intelligent contracts, second digital assets corresponding to the residual asset quantity are transmitted to the hosting account from the user account, and the first digital assets and the second digital assets in the hosting account are transmitted to an enterprise account of the target decoration enterprise node. By publishing the decoration electronic contract to the blockchain and adding the decoration electronic contract to the escrow account for transferring the asset, the safety of the asset is ensured, and the accuracy of the data is improved.
Detailed Description
The following description of the embodiments of the present application will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present application, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
Fig. 1a is a system architecture diagram for data processing according to an embodiment of the present invention. The blockchain network 10d establishes a connection with a user node 10a and an enterprise node cluster including enterprise node 10 b. The blockchain network 10d includes a blockchain node 10e, a third party, and a blockchain node 10f, the user node 10a and the enterprise node also belong to nodes in the blockchain network 10d, the blockchain network 10d obtains fitment demand information published by the user node, publishes the fitment demand information in the blockchain network, obtains response information of at least one fitment enterprise node to the fitment demand information, sends the response information of the at least one fitment enterprise node to the user node, the blockchain network 10d obtains the fitment enterprise node selected by the user node, determines the fitment enterprise node selected by the user node as a target fitment enterprise node, generates a fitment electronic contract associated with the user node and the target fitment enterprise node through an intelligent contract, determines a pre-transfer asset yield of the fitment electronic contract according to the intelligent contract, sends a first digital asset corresponding to the pre-transfer asset yield from a user account of the user node to a hosted account, and when the fitment electronic contract is in a business completion state, the blockchain network 10d sends a second digital asset corresponding to the second digital asset yield from the second digital asset account of the user account and the host account corresponding to the second digital asset account.
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 a tablet personal computer, a smart phone, a Personal Computer (PC), a notebook computer, a palm computer and the like.
The blockchain related in the embodiment of the application is a novel application mode of computer technologies such as distributed data storage, point-to-point transmission, consensus mechanism, encryption algorithm and the like. The blockchain is essentially a decentralised database, which is a series of data blocks generated by cryptographic methods, each data block containing a batch of information of network transactions 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 blockchain underlying platform may include processing modules for user management, basic services, smart contracts, operation monitoring, and the like. The system comprises a user management module, a basic service module, a public and private key generation (account management), a key management and a corresponding relation maintenance (authority management) of a user real identity and a blockchain address, and the like, wherein the user management module is responsible for identity information management of all blockchain participants, comprises maintenance of public and private key generation (account management), key management, maintenance of a corresponding relation between the user real identity and the blockchain address (authority management) and the like, and provides rule configuration (wind control audit) of risk control under the authorized condition, the basic service module is deployed on all blockchain node devices and is used for verifying the validity of service requests, recording the valid requests after the valid requests are completed, for a new service request, the basic service firstly carries out interface adaptation analysis and authentication processing (interface adaptation), then carries out encryption (consensus management) on the service information, and carries out recording and storage on the encrypted and then completely consistent transmission to a shared account book (network communication), the intelligent contract module is responsible for registration issuing of contracts and contract triggering and contract execution, developers can define contract logic through programming language, issue contract logic on the blockchain, call key or other event triggering execution according to contract logic, and contract rule triggering execution, and completion logic, and also provides contract updating and main updating function control and updating and main function, and updating, and alarming and monitoring functions are arranged in a monitoring and monitoring module, and monitoring and control device are arranged in a product, and a monitoring device is suitable for monitoring and a real-time.
The platform product service layer provides basic capabilities and implementation frameworks of typical applications, and developers can complete the blockchain implementation of business logic based on the basic capabilities and the characteristics of the superposition business. The application service layer provides the application service based on the block chain scheme to the business participants for use.
In the following, description will be given of specific implementation scenarios provided in connection with fig. 1b, fig. 1c, and fig. 1d, where the data sharing system shown in fig. 1b is a data sharing system, and the data sharing system 100 refers to a system for performing data sharing between nodes, where the data sharing system may include a plurality of nodes 101, and the plurality of nodes 101 may be 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 the information intercommunication in the data sharing system, information connection can exist between each node in the data sharing system, and the nodes can transmit information through the information connection. For example, when any 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 the shared data, so that the data stored on all nodes in the data sharing system are consistent.
Each node in the data sharing system has a node identifier corresponding to the node identifier, and each node in the data sharing system can store the node identifiers of other nodes in the data sharing system, so that the generated block can be broadcast to other nodes in the data sharing system according to the node identifiers of other nodes. Each node can maintain a node identification list shown in the following table, and the node names and the node identifications are correspondingly stored in the node identification list. The node identifier may be an IP (Internet Protocol, protocol interconnected between networks) address and any other information that can be used to identify the node, and the IP address is only illustrated in table 1.
Table 1 correspondence between node names and node identifications
| 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 and the same blockchain. The block chain consists of a plurality of blocks, referring to fig. 1c, the block chain consists 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 time stamp and a difficulty value, the block main body stores input information, the next block of the starting block takes the starting block as a father 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, the version number, the time stamp and the difficulty value of the father block, and the like, so that the block data stored in each block in the block chain are associated with the block data stored in the father block, and the safety of the input information in the block is ensured.
When each block in the blockchain is generated, referring to fig. 1d, when the node where the blockchain is located receives input information, checking the input information, after the checking is completed, storing the input information into a memory pool, and updating a hash tree used for recording the input information, and then updating an update timestamp to be the time when the input information is received, and trying different random numbers to calculate 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
The SHA-256 is a eigenvalue algorithm used for calculating eigenvalues, version is version information of related block protocols in a block chain, prev_hash is a block head eigenvalue of a parent block of a current block, merkle _root is an eigenvalue of input information, ntime is update time of an update timestamp, nbits is current difficulty, is a fixed value in a period of time and is determined again after exceeding a fixed period of time, x is a random number, and TARGET is an eigenvalue threshold, wherein the eigenvalue threshold can be determined according to nbits.
Thus, when the random number meeting the formula is calculated, the information can be correspondingly stored to generate the block head and the block main body, and the current block is obtained. And then, the node where the blockchain is located sends the newly generated blocks to other nodes in the data sharing system where the newly generated blocks are located according to the node identification of other nodes in the data sharing system, the other nodes verify the newly generated blocks, and the newly generated blocks are added into the blockchain stored in the newly generated blocks after the verification is completed.
Referring to fig. 2, a flow chart of 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, acquiring decoration demand information issued by a user node, and issuing the decoration demand information in a block chain network;
Specifically, the data processing device obtains decoration requirement information issued by the user node, the decoration requirement information is issued in the blockchain network, it can be understood that the user node is a node device corresponding to the user node 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, the specific decoration object can be a commodity house or an office building, a decoration style, a decoration material and the like, the decoration requirement information also includes conditions of a decoration enterprise, including a scale of the decoration enterprise, qualification information and the like, the data processing device obtains the decoration requirement information issued by the user nodes, and issues the decoration requirement information in the blockchain network, and after the decoration requirement information is issued in the blockchain network, decoration enterprise nodes in the blockchain network can obtain the decoration requirement information and respond to the decoration requirement information.
S102, obtaining response information of at least one repair enterprise node to the decoration demand information, and sending the response information of the at least one repair enterprise node to the user node;
Specifically, the data processing device obtains response information of at least one repair enterprise node to the repair requirement information, sends the response information of the at least one repair enterprise node to the user node, it can be understood that the repair enterprise node is corresponding node equipment of a repair enterprise on a blockchain, the blockchain can include a plurality of repair enterprise nodes, each repair enterprise node can respond to the repair requirement information, for example, according to the repair requirement information of a user, two repair enterprises accept the used repair requirement information, namely, respond to the repair requirement information to generate response information, the data processing device obtains response information of the at least one repair enterprise node to the repair requirement information, the response information includes information of the repair enterprise, including enterprise qualification information and whether the condition of the repair requirement information issued by the user is met, and the data processing device sends the response information of the at least one repair enterprise node to the user node.
S103, acquiring decoration enterprise nodes selected by the user nodes, determining the decoration enterprise nodes selected by the user nodes as target decoration enterprise nodes, and generating decoration electronic contracts related to the user nodes and the target decoration enterprise nodes through intelligent contracts, wherein the decoration electronic contracts are maintained by the intelligent contracts;
Specifically, the data processing device obtains 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 generates a decoration electronic contract associated with the target decoration enterprise node through an intelligent contract, wherein the decoration electronic contract is a program code for running various instructions in a block chain, specifically, the initial decoration electronic contract can be obtained from the block chain network and comprises various contract types, the initial decoration electronic contract can comprise requirements for the user node, the decoration enterprise node selected by the user node is determined as the target decoration enterprise node, the target decoration enterprise node can be any decoration enterprise node responding to the decoration requirement information, the electronic contract associated with the user node and the target decoration enterprise node is generated through an intelligent contract, the decoration electronic contract is a term for restricting the contract of the two parties bound by a user and an enterprise, the intelligent contract is a program code for running various instructions in a block chain, the initial decoration electronic contract can comprise various contract types, the initial decoration electronic contract can comprise requirements for the user node, the electronic contract types can be stored in the electronic contract types of the electronic contract, and the electronic contract types of the electronic contract types can be stored in the electronic contract types are executed, and the electronic contract types of the electronic contract types are stored in the electronic contract types are executed.
S104, determining the pre-transfer resource yield of the decoration electronic contract according to the intelligent contract, and sending a first digital asset corresponding to the pre-transfer resource yield from a user account of the user node to a hosting account;
Specifically, the data processing device determines the pre-transfer fund yield of the decoration electronic contract according to the intelligent contract, and sends the first digital asset corresponding to the pre-transfer fund yield to the escrow account from the user account of the user node, it can be understood that when the decoration electronic contract is signed, the digital asset transfer service between the nodes operates normally through the intelligent contract maintenance, the digital asset transfer service is a payment service between enterprises and users, the pre-transfer fund yield is a part of the total transfer fund yield of the decoration service at this time and is a pre-paid amount, specifically can be determined according to the decoration electronic contract, for example, the total amount of the decoration service is 100, namely, the total transfer fund yield of the decoration service is 100, the pre-transfer fund yield is 10, namely, the pre-paid amount is 10, the first digital asset corresponding to the pre-transfer fund yield is sent from the user account of the user node to the escrow account, the escrow account is a public account maintained by the block chain network, the user is a private account maintained by the block chain network, and the user is an intermediate account between the users and the enterprises.
S105, when the decoration electronic contract is in a business completion state, acquiring the residual resource yield of the decoration electronic contract according to an intelligent contract, sending a second digital asset corresponding to the residual resource 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.
Specifically, when the decoration electronic contract is in a business completion state, the data processing device obtains a residual resource yield of the decoration electronic contract according to an intelligent contract, sends a second digital asset corresponding to the residual resource yield from the user account to the host account, and sends the first digital asset and the second digital asset in the host account to an enterprise account of a target decoration enterprise node, it can be understood that when the decoration business is completed, a user can check a decoration result, after the user checks to complete, a business completion instruction is issued, the data processing device sets the decoration electronic contract to the business completion state according to the business completion instruction, when the decoration electronic contract is in the business completion state, obtains the residual resource yield of the electronic contract according to the intelligent contract, the residual resource yield is an asset yield which is not transferred to the host account in total transfer resource yield, for example, a total amount of decoration business is 100, that is 10% of total transfer resource yield, a preset by provision of a term in the decoration electronic contract is 10% of total transfer resource yield, and the residual resource yield is 90 is transferred to the corresponding digital asset account in the host account from the first digital asset and the second digital asset account, and the second digital asset is sent to the host account in the corresponding to the host account in the digital account.
In the embodiment of the application, decoration demand information issued by a user node is acquired, the decoration demand information is issued in a blockchain 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 transmitted to the user node, decoration enterprise nodes selected by the user node are acquired, the decoration enterprise nodes selected by the user node are determined to be target decoration enterprise nodes, decoration electronic contracts related to the user node and the target decoration enterprise nodes are generated through intelligent contracts, pre-transfer resource output of the decoration electronic contracts is determined according to the intelligent contracts, first digital assets corresponding to the pre-transfer resource output are transmitted to a hosting account from a user account of the user node, when the decoration electronic contracts are in a business completion state, residual resource output of the decoration electronic contracts is acquired according to the intelligent contracts, second digital assets corresponding to the residual asset quantity are transmitted to the hosting account from the user account, and the first digital assets and the second digital assets in the hosting account are transmitted to an enterprise account of the target decoration enterprise node. By publishing the decoration electronic contract to the blockchain and adding the decoration electronic contract to the escrow account for transferring the asset, the safety of the asset is ensured, and the accuracy of the data is improved.
Referring to fig. 3, a flow chart of a data processing method is provided in an embodiment of the present application. As shown in fig. 3, the method of the embodiment of the present application may include the following steps S201 to S207.
S201, acquiring decoration demand information issued by a user node, and issuing the decoration demand information in a block chain network;
Specifically, the data processing device obtains decoration requirement information issued by the user node, the decoration requirement information is issued in the blockchain network, it can be understood that the user node is a node device corresponding to the user node 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, the specific decoration object can be a commodity house or an office building, a decoration style, a decoration material and the like, the decoration requirement information also includes conditions of a decoration enterprise, including a scale of the decoration enterprise, qualification information and the like, the data processing device obtains the decoration requirement information issued by the user nodes, and issues the decoration requirement information in the blockchain network, and after the decoration requirement information is issued in the blockchain network, decoration enterprise nodes in the blockchain network can obtain the decoration requirement information and respond to the decoration requirement information.
S202, response information of at least one repair enterprise node to the decoration requirement information is obtained, classification labels are set for the at least one repair enterprise node according to screening conditions in the decoration requirement information, and the classification labels and the response information of the at least one repair enterprise node are sent to the user node.
The data processing device obtains response information of at least one repair enterprise node to the repair demand information, sets a classification label for the at least one repair enterprise node according to screening conditions in the repair demand information, and sends the classification label and the response information of the at least one repair enterprise node to the user node, wherein it is understood that the repair enterprise node is corresponding node equipment of a repair enterprise on a blockchain, a plurality of repair enterprise nodes can be included on the blockchain, each repair enterprise node can respond to the repair demand information, the data processing device obtains response information of the at least one repair enterprise node to the repair demand information, the response information comprises repair enterprise information and the like, the screening conditions in the repair demand information comprise requirements of users on the qualification information of the repair enterprise, the budget of the repair and the like, the data processing device sets the classification label for the at least one repair enterprise node according to the screening conditions in the repair demand information, the classification label can be matching degree of the repair conditions of the enterprise, for example, the repair nodes meeting one screening condition are screening conditions, and the two repair enterprise nodes are corresponding to the classification label of the user node 2.
S203, 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, acquiring an initial decoration electronic contract corresponding to the user node through an intelligent contract, generating a decoration electronic contract according to an enterprise signature of the target enterprise, a user signature of the target user and the initial decoration electronic contract, encrypting the decoration electronic contract, and synchronizing the encrypted decoration electronic contract to a blockchain network.
Specifically, for the decoration enterprise node responding to the decoration demand information, a user may select a decoration enterprise node to execute a decoration service, the data processing device obtains 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 obtain an initial decoration electronic contract from the blockchain network for any one of the decoration enterprise nodes responding to the decoration demand information, signs the decoration enterprise and the user on the initial decoration electronic contract, and generates the decoration electronic contract according to the signs of the two parties and the initial decoration electronic contract, wherein the initial decoration electronic contract includes various contract terms, may include requirements for the two parties of the contract signing, and a term of the contract, and the decoration electronic contract is maintained by an intelligent contract, that is, the execution terms in the decoration electronic contract are executed by the intelligent contract. The method comprises the steps of paying a decoration amount to an enterprise according to contract stipulation deadlines, encrypting a decoration electronic contract, and synchronizing the encrypted decoration electronic contract to a blockchain network.
S204, determining the pre-transfer resource yield of the decoration electronic contract according to the intelligent contract, and sending a first digital asset corresponding to the pre-transfer resource yield from a user account of the user node to a hosting account;
The step S204 of the embodiment of the present application may include the following steps S2041 to S2044.
S2041, determining total resource output and pre-transfer proportion of the decoration electronic contract according to the intelligent contract, and determining pre-transfer resource output according to the total resource output and the pre-transfer proportion;
Specifically, the data processing apparatus determines the total resource amount and the pre-transfer ratio of the decoration electronic contract according to the intelligent contract, and determines the pre-transfer resource amount according to the total resource amount and the pre-transfer ratio, and it is understood that the total resource amount is the total amount of the decoration business, the pre-transfer ratio is the contract term in the decoration electronic contract, and the pre-transfer resource amount is determined according to the total resource amount and the pre-transfer ratio, for example, the total amount of the decoration business is 100, that is, the total transfer resource amount of the decoration business is 100, and the provision in the decoration electronic contract specifies the pre-transfer ratio to be 10%, and the pre-transfer resource amount is 10.
S2042, generating transaction data according to the user account, a hosting account of a blockchain network, the pre-transfer asset yield and a source account of the pre-transfer asset yield;
specifically, the data processing device generates transaction data according to the user account, the hosting account of the blockchain network, the pre-transfer asset yield and the source account of the pre-transfer asset yield, and it is understood that the hosting account is a public account in the blockchain network, the user account is a private account of a user in the blockchain network, the source account of the transfer asset yield is an account corresponding to the source of the digital asset in the user account and can be used as a label of the digital asset, and the data processing device packages the user account, the hosting account, the pre-transfer asset yield and the source account of the pre-transfer asset yield 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 the target user, signs the transaction data by adopting the user private key to obtain transfer signature information, and it can be understood that the data processing device has the use authority of the user private key after the authorization of the user, signs the transaction data by adopting 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 into a blockchain network after the consensus is passed, wherein the escrow account has asset transfer authority for the transaction data stored into the blockchain network.
Specifically, the data processing device performs consensus processing on the transaction data and the transfer signature information, and after the consensus is passed, the transaction data and the transfer signature information are stored in a blockchain network, and as can be understood, the consensus process is that the blockchain network verifies the transaction data and the transfer signature information, and when the consensus is passed, the escrow account has asset transfer authority for the transaction data stored in the blockchain network, namely, after the consensus is passed, the digital asset in the transaction data can be transferred.
S205, acquiring a business completion instruction of a user node, setting the state of the decoration electronic contract to be a business completion state according to the business completion instruction, determining total resource output and pre-transfer proportion of the decoration electronic contract according to an intelligent contract, determining residual resource output according to the total resource output and the pre-transfer proportion, sending a second digital asset corresponding to the residual resource output 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.
Specifically, when the decoration operation is completed, the user can check and accept the decoration result, after the user checks and accepts, a business completion instruction is issued, the data processing device sets the contract to a business completion state according to the business completion instruction, when the decoration electronic contract is in the business completion state, the total resource yield and the pre-transfer proportion of the decoration electronic contract are determined according to the intelligent contract, the residual resource yield is determined according to the total resource yield and the pre-transfer proportion, the total amount of the assets which are not transferred to the escrow account in the total transferred resource yield is 100, for example, the total amount of the decoration operation is 100, namely, the total transferred resource yield of the decoration operation is 10% when the provision in the decoration electronic contract prescribes the pre-transfer resource yield to be 10%, the residual resource yield is 90%, the data processing device sends the second digital asset corresponding to the residual asset amount from the user account to the escrow account, the first digital asset and the second digital asset in the escrow account are sent to the target node, the enterprise is the first digital asset in the escrow account and the second digital asset in the escrow account in the block chain network, and the second digital asset corresponding to the second digital asset in the escrow account is the private account of the enterprise is the private digital asset in the block chain network. Referring to fig. 4, a schematic view of a decoration service scenario is provided in an embodiment of the present application. As shown in fig. 4, a decoration enterprise obtains decoration demand information issued by a user and responds to the decoration demand information, the user obtains response information of the decoration enterprise to the decoration demand information, the user selects the decoration enterprise to accept a decoration service, decoration electronic contracts associated with the user and the decoration enterprise are generated through intelligent contracts based on the demand information, the 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, when the decoration service is completed, namely, when the decoration electronic contracts are in a service completion state, second digital assets corresponding to the residual resource yield are sent to the hosting account from the user account according to the intelligent contracts, and finally the first digital assets and the second digital assets in the hosting account are sent to an enterprise account of the decoration enterprise.
S206, acquiring evaluation information of the user node on the basis of the decoration electronic contract, binding the evaluation information with the decoration electronic contract, and issuing the bound evaluation information to a blockchain network.
Specifically, the data processing device obtains the evaluation information of the user node on the basis of the decoration electronic contract, binds the evaluation information with the decoration electronic contract, and distributes the bound evaluation information to the blockchain network, and it can be understood that the evaluation information is aimed at the decoration electronic contract, and can be distributed only when the decoration electronic contract is in a service completion state, after the user evaluates the decoration service, the data processing device obtains the evaluation information of the user node on the basis of the decoration electronic contract, binds the evaluation information with the corresponding decoration electronic contract, and distributes the bound evaluation information to the blockchain network, and other users on the blockchain network can view the evaluation information.
S207, generating enterprise qualification information of the decoration enterprise nodes according to the evaluation information of the decoration enterprise nodes, and adding the decoration enterprise nodes into a blacklist when the enterprise qualification information of the decoration enterprise nodes is larger than threshold information, wherein the decoration enterprise nodes in the blacklist do not have a service function of responding to decoration demand information issued by 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 average the 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, adds the decoration enterprise node into a blacklist when the enterprise qualification information of the decoration enterprise node is greater than threshold information, and the decoration enterprise node in the blacklist does not have a service function for responding to decoration demand information issued by the user node, namely, the decoration enterprise added into the blacklist cannot accept decoration service.
In the embodiment of the application, decoration demand information issued by a user node is acquired, the decoration demand information is issued in a blockchain 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 transmitted to the user node, decoration enterprise nodes selected by the user node are acquired, the decoration enterprise nodes selected by the user node are determined to be target decoration enterprise nodes, decoration electronic contracts related to the user node and the target decoration enterprise nodes are generated through intelligent contracts, pre-transfer resource output of the decoration electronic contracts is determined according to the intelligent contracts, first digital assets corresponding to the pre-transfer resource output are transmitted to a hosting account from a user account of the user node, when the decoration electronic contracts are in a business completion state, residual resource output of the decoration electronic contracts is acquired according to the intelligent contracts, second digital assets corresponding to the residual asset quantity are transmitted to the hosting account from the user account, and the first digital assets and the second digital assets in the hosting account are transmitted to an enterprise account of the target decoration enterprise node. By publishing the decoration electronic contract to the blockchain and adding the decoration electronic contract to the escrow account for transferring the asset, the safety of the asset is ensured, and the accuracy of the 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 in a computer device, for example an application software, which device may be adapted to perform the corresponding steps of the method provided by the embodiments of the application. As shown in fig. 5, the data processing apparatus 1 of the embodiment of the present application may include a demand information acquiring unit 11, a response information acquiring unit 12, an electronic contract generating unit 13, a first asset transferring unit 14, and a second asset transferring unit 15.
A demand information obtaining unit 11, configured to obtain decoration demand information issued by a user node, and issue the decoration demand information in a blockchain network;
a response information obtaining unit 12, configured to obtain response information of at least one repair enterprise node to the decoration requirement information, and send the response information of the at least one repair 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;
A first asset transfer unit 14, configured to determine a pre-transfer asset yield of the decorated electronic contract according to an 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 obtain a remaining resource yield of the decorated electronic contract according to an intelligent contract when the decorated electronic contract is in a business completion state, send a second digital asset corresponding to the remaining resource yield from the user account to the escrow account, and send the first digital asset and the second digital asset in the escrow account to an enterprise account of a target decorated enterprise node.
The response information acquiring unit 12 specifically is configured to:
acquiring response information of at least one repair enterprise node to the decoration requirement information, and setting a classification label for the at least one repair enterprise node according to screening conditions in the decoration requirement information;
and sending the classification label and response information of the at least one repair enterprise node to the user node.
The electronic contract generation unit 13 specifically functions to:
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;
encrypting the decoration electronic contract, and synchronizing the encrypted decoration electronic contract to a blockchain network.
The first asset transfer unit 14 is specifically configured to:
Determining total resource output and pre-transfer proportion of the decoration electronic contract according to the intelligent contract, and determining pre-transfer resource output according to the total resource output and the pre-transfer proportion;
generating transaction data according to the user account, a hosting account of a blockchain network, the pre-transfer asset yield and a source account of the pre-transfer asset yield;
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;
And after the consensus is passed, storing the transaction data and the transfer signature information into a blockchain network, wherein the managed account has asset transfer rights for the transaction data stored into the 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 as a service completion state according to the service completion instruction;
Determining total resource output and pre-transfer proportion of the decoration electronic contract according to the intelligent contract, and determining residual resource output according to the total resource output and the pre-transfer proportion;
and sending the second digital asset corresponding to the residual resource yield from the user account to the managed account, and sending the first digital asset and the second digital asset in the managed account to an enterprise account of a target finishing enterprise node.
As shown in fig. 5, the data processing apparatus 1 of the embodiment of the present application may include an evaluation information acquisition unit 16;
and the evaluation information acquisition unit 16 is used for acquiring the evaluation information of the user node on the basis of the decoration electronic contract, binding the evaluation information with the decoration electronic contract, and issuing the bound evaluation information to a blockchain network.
As shown in fig. 5, the data processing apparatus 1 of the embodiment of the present application may include a qualification information generation unit 17;
And 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 the threshold information, where the decoration enterprise node in the blacklist does not have a service function of responding to decoration demand information issued by the user node.
In the embodiment of the application, decoration demand information issued by a user node is acquired, the decoration demand information is issued in a blockchain 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 transmitted to the user node, decoration enterprise nodes selected by the user node are acquired, the decoration enterprise nodes selected by the user node are determined to be target decoration enterprise nodes, decoration electronic contracts related to the user node and the target decoration enterprise nodes are generated through intelligent contracts, pre-transfer resource output of the decoration electronic contracts is determined according to the intelligent contracts, first digital assets corresponding to the pre-transfer resource output are transmitted to a hosting account from a user account of the user node, when the decoration electronic contracts are in a business completion state, residual resource output of the decoration electronic contracts is acquired according to the intelligent contracts, second digital assets corresponding to the residual asset quantity are transmitted to the hosting account from the user account, and the first digital assets and the second digital assets in the hosting account are transmitted to an enterprise account of the target decoration enterprise node. By publishing the decoration electronic contract to the blockchain and adding the decoration electronic contract to the escrow account for transferring the asset, the safety of the asset is ensured, and the accuracy of the 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 device 1000 may include at least one processor 1001, e.g., a CPU, at least one network interface 1004, a user interface 1003, a memory 1005, and at least one communication bus 1002. Wherein the communication bus 1002 is used to enable connected communication between these components. The user interface 1003 may include a Display (Display), and the optional user interface 1003 may further include a standard wired interface, a wireless interface, among others. 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 also optionally be at least one storage device located remotely from the processor 1001. As shown in fig. 6, an operating system, network communication modules, user interface modules, and data processing applications may be included in memory 1005, which is a type of computer storage medium.
In the computer device 1000 shown in fig. 6, the network interface 1004 may provide a network communication function, the user interface 1003 is mainly used for providing an input interface for a user, and the processor 1001 may be used for calling a data processing application program stored in the memory 1005 to implement the description of the data processing method in any of the embodiments corresponding to fig. 2 to 4, which is not repeated herein.
It should be understood that the computer device 1000 described in the embodiment of the present application may perform the description of the data processing method in the embodiment corresponding to any of fig. 2 to 4, and may also perform the description of the data processing device in the embodiment corresponding to fig. 5, which is not repeated herein. In addition, the description of the beneficial effects of the same method is omitted.
In addition, it should be noted that the 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, and the computer program includes program instructions, when executed by the processor, can execute the description of the data processing method in any of the foregoing embodiments corresponding to fig. 2 to 4, and therefore, a description will not be repeated herein. In addition, the description of the beneficial effects of the same method is omitted. For technical details not disclosed in the embodiments of the computer-readable storage medium according to the present application, please refer to the description of the method embodiments 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, where the multiple computing devices distributed across multiple sites and interconnected by a communication network may constitute a blockchain system.
Those skilled in the art will appreciate that implementing all or part of the above-described methods in accordance with the embodiments may be accomplished by way of a computer program stored in a computer-readable storage medium, which when executed, may comprise the steps 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 (Random Access Memory, RAM), or the like.
The foregoing disclosure is illustrative of the present application and is not to be construed as limiting the scope of the application, which is defined by the appended claims.