A data processing method and device based on blockchain
By adopting blockchain-based data processing methods in the field of decoration and using smart contracts and blockchain networks, the problems of authenticity and accuracy of decoration data are solved, the security and transparency of data are achieved, and the trust between users and decoration companies is enhanced.
Patent Information
- Application Number
- CN202010076892.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-01-23
- Publication Date
- 2025-06-06
- Estimated Expiration
- 2040-01-23
AI Technical Summary
In the field of decoration, there is a lack of third-party supervision between users and decoration companies, which makes it difficult to guarantee the authenticity and accuracy of decoration data, and data tampering problems are prone to occur.
Using blockchain-based data processing methods, smart contracts are generated and maintained to ensure the transparency and immutability of data in the blockchain network, and asset transfer is carried out through custodial accounts to ensure the security of assets.
It improves the accuracy and security of decoration data, ensures the authenticity and immutability of information, and enhances the trust between users and decoration companies.
Smart Images

Figure CN111311211B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of electronic technology, and in particular to a data processing method and device based on blockchain. Background Art
[0002] In the field of decoration, users and decoration companies maintain the execution of decoration business through decoration agreements. However, due to the one-to-one relationship between users and companies and the lack of third-party supervision, the authenticity of the information cannot be ensured, which can easily lead to tampering of decoration data and the accuracy of the data in the decoration agreement cannot be guaranteed. Summary of the invention
[0003] The embodiments of the present application provide a blockchain-based data processing method and device, which can improve the accuracy of data.
[0004] On the one hand, an embodiment of the present application provides a data processing method based on blockchain, which may include:
[0005] Obtaining decoration demand information published by user nodes, and publishing the decoration demand information in the blockchain network;
[0006] Acquire response information of at least one decoration enterprise node to the decoration demand information, and send the response information of the at least one decoration enterprise node to the user node;
[0007] Acquire the decoration enterprise node selected by the user node, determine the decoration enterprise node selected by the user node as the target decoration enterprise node, and generate a decoration electronic contract associated with the user node and the target decoration enterprise node through a smart contract; the decoration electronic contract is maintained by the smart contract;
[0008] Determine the pre-transferred asset amount of the decoration electronic contract according to the smart contract, and send the first digital asset corresponding to the pre-transferred asset amount from the user account of the user node to the escrow account;
[0009] When the decoration electronic contract is in a business completion state, the remaining asset amount of the decoration electronic contract is obtained according to the smart contract, the second digital asset corresponding to the remaining asset amount is sent from the user account to the escrow account, and the first digital asset and the second digital asset in the escrow account are sent to the enterprise account of the target decoration enterprise node.
[0010] The step of obtaining response information of at least one decoration enterprise node to the decoration demand information and sending the response information of at least one decoration enterprise node to the user node includes:
[0011] Acquire response information of at least one decoration enterprise node to the decoration demand information, and set a classification label for the at least one decoration enterprise node according to the screening condition in the decoration demand information;
[0012] The classification label and response information of the at least one decoration enterprise node are sent to the user node.
[0013] The acquiring of the decoration enterprise node selected by the user node, determining the decoration enterprise node selected by the user node as the target decoration enterprise node, and generating a decoration electronic contract associated with the user node and the target decoration enterprise node through a smart contract include:
[0014] Acquire the decoration enterprise node selected by the user node, and determine the decoration enterprise node selected by the user node as the target decoration enterprise node;
[0015] Obtain the initial decoration electronic contract corresponding to the user node through the smart contract;
[0016] Generate 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;
[0017] The decoration electronic contract is encrypted, and the encrypted decoration electronic contract is synchronized to the blockchain network.
[0018] The step of determining the pre-transferred asset amount of the decoration electronic contract according to the smart contract, and sending the first digital asset corresponding to the pre-transferred asset amount from the user account of the user node to the escrow account includes:
[0019] Determine the total asset amount and pre-transfer ratio of the decoration electronic contract according to the smart contract, and determine the pre-transfer asset amount according to the total asset amount and pre-transfer ratio;
[0020] Generate transaction data based on the user account, the escrow account of the blockchain network, the pre-transferred asset amount, and the source account of the pre-transferred asset amount;
[0021] Obtain the target user's private key, use the private key to sign the transaction data, and obtain transfer signature information;
[0022] Performing consensus processing on the transaction data and the transfer signature information;
[0023] After consensus is reached, the transaction data and the transfer signature information are stored in the blockchain network; the escrow account has the authority to transfer assets of the transaction data stored in the blockchain network.
[0024] Wherein, when the decoration electronic contract is in a business completion state, the remaining asset amount of the decoration electronic contract is obtained according to the smart contract, the second digital asset corresponding to the remaining asset amount is sent from the user account to the escrow account, and the first digital asset and the second digital asset in the escrow account are sent to the enterprise account of the target decoration enterprise node, including:
[0025] Obtaining a business completion instruction of a user node, and setting the state of the decoration electronic contract to a business completion state according to the business completion instruction;
[0026] Determine the total asset amount and pre-transfer ratio of the decoration electronic contract according to the smart contract, and determine the remaining asset amount according to the total asset amount and pre-transfer ratio;
[0027] The second digital asset corresponding to the remaining asset amount is sent from the user account to the escrow account, and the first digital asset and the second digital asset in the escrow account are sent to the enterprise account of the target decoration enterprise node.
[0028] Among them, it also includes:
[0029] The evaluation information of the user node based on the decoration electronic contract is obtained, the evaluation information is bound to the decoration electronic contract, and the bound evaluation information is published to the blockchain network.
[0030] Among them, it also includes:
[0031] The enterprise qualification information of the decoration enterprise node is generated according to the evaluation information of the decoration enterprise node. When the enterprise qualification information of the decoration enterprise node is greater than the threshold information, the decoration enterprise node is added to a blacklist; the decoration enterprise nodes in the blacklist do not have the business function of responding to the decoration demand information released by the user node.
[0032] On the one hand, an embodiment of the present application provides a data processing device based on blockchain, which may include:
[0033] A demand information acquisition unit, used to acquire the decoration demand information published by the user node, and publish the decoration demand information in the blockchain network;
[0034] A response information acquisition unit, used to acquire response information of at least one decoration enterprise node to the decoration demand information, and send the response information of the at least one decoration enterprise node to the user node;
[0035] An electronic contract generating unit, 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 associated with the user node and the target decoration enterprise node through a smart contract; the decoration electronic contract is maintained by the smart contract;
[0036] A first asset transfer unit, configured to determine the pre-transferred asset amount of the decoration electronic contract according to the smart contract, and send the first digital asset corresponding to the pre-transferred asset amount from the user account of the user node to the escrow account;
[0037] The second asset transfer unit is used to obtain the remaining asset amount of the decoration electronic contract according to the smart contract when the decoration electronic contract is in a business completion state, send the second digital asset corresponding to the remaining asset amount from the user account to the escrow account, and send the first digital asset and the second digital asset in the escrow account to the enterprise account of the target decoration enterprise node.
[0038] The response information acquisition unit is specifically used for:
[0039] Acquire response information of at least one decoration enterprise node to the decoration demand information, and set a classification label for the at least one decoration enterprise node according to the screening condition in the decoration demand information;
[0040] The classification label and response information of the at least one decoration enterprise node are sent to the user node.
[0041] Wherein, the electronic contract generation unit is specifically used for:
[0042] Acquire the decoration enterprise node selected by the user node, and determine the decoration enterprise node selected by the user node as the target decoration enterprise node;
[0043] Obtain the initial decoration electronic contract corresponding to the user node through the smart contract;
[0044] Generate 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;
[0045] The decoration electronic contract is encrypted, and the encrypted decoration electronic contract is synchronized to the blockchain network.
[0046] Wherein, the first asset transfer unit is specifically used for:
[0047] Determine the total asset amount and pre-transfer ratio of the decoration electronic contract according to the smart contract, and determine the pre-transfer asset amount according to the total asset amount and pre-transfer ratio;
[0048] Generate transaction data based on the user account, the escrow account of the blockchain network, the pre-transferred asset amount, and the source account of the pre-transferred asset amount;
[0049] Obtain the target user's private key, use the private key to sign the transaction data, and obtain transfer signature information;
[0050] Performing consensus processing on the transaction data and the transfer signature information;
[0051] After consensus is reached, the transaction data and the transfer signature information are stored in the blockchain network; the escrow account has the authority to transfer assets of the transaction data stored in the blockchain network.
[0052] Wherein, the second asset transfer unit is specifically used for:
[0053] Obtaining a business completion instruction of a user node, and setting the state of the decoration electronic contract to a business completion state according to the business completion instruction;
[0054] Determine the total asset amount and pre-transfer ratio of the decoration electronic contract according to the smart contract, and determine the remaining asset amount according to the total asset amount and pre-transfer ratio;
[0055] The second digital asset corresponding to the remaining asset amount is sent from the user account to the escrow account, and the first digital asset and the second digital asset in the escrow account are sent to the enterprise account of the target decoration enterprise node.
[0056] Among them, it also includes:
[0057] An evaluation information acquisition unit is used to obtain the evaluation information of the user node based on the decoration electronic contract, bind the evaluation information with the decoration electronic contract, and publish the bound evaluation information to the blockchain network.
[0058] Among them, it also includes:
[0059] A qualification information generating unit is used to generate enterprise qualification information of the decoration enterprise node according to the evaluation information of the decoration enterprise node. When the enterprise qualification information of the decoration enterprise node is greater than the threshold information, the decoration enterprise node is added to a blacklist; the decoration enterprise nodes in the blacklist do not have the business function of responding to the decoration demand information released by the user node.
[0060] On one hand, an embodiment of the present application provides a computer-readable storage medium, wherein the computer storage medium stores a plurality of instructions, wherein the instructions are suitable for being loaded by a processor and executing the above-mentioned method steps.
[0061] On the one hand, an embodiment of the present application provides a computer device, including 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 above-mentioned method steps.
[0062] In an embodiment of the present application, by obtaining the decoration demand information published by the user node, the decoration demand information is published in the blockchain network, the response information of at least one decoration enterprise node to the decoration demand information is obtained, the response information of at least one decoration enterprise node is sent to the user node, the decoration enterprise node selected by the user node is obtained, the decoration enterprise node selected by the user node is determined as the target decoration enterprise node, and a decoration electronic contract associated with the user node and the target decoration enterprise node is generated through a smart contract, the pre-transferred asset amount of the decoration electronic contract is determined according to the smart contract, and the first digital asset corresponding to the pre-transferred asset amount is sent from the user account of the user node to the escrow account. When the decoration electronic contract is in a business completion state, the remaining asset amount of the decoration electronic contract is obtained according to the smart contract, and the second digital asset corresponding to the remaining asset amount is sent from the user account to the escrow account, and the first digital asset and the second digital asset in the escrow account are sent to the enterprise account of the target decoration enterprise node. By publishing the decoration electronic contract to the blockchain and adding the escrow account to transfer assets, the security of the assets is guaranteed and the accuracy of the data is improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0063] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0064] Figure 1a It is a system architecture diagram of data processing provided by an embodiment of the present application;
[0065] Figure 1b This is a scenario diagram of a data sharing system provided in an embodiment of the present application;
[0066] Figure 1c This is a result schematic diagram of a blockchain provided by an embodiment of the present application;
[0067] Figure 1d It is a schematic diagram of a flow chart of generating a block provided in an embodiment of the present application;
[0068] Figure 2 It is a flowchart of a data processing method provided in an embodiment of the present application;
[0069] Figure 3 It is a flowchart of a data processing method provided in an embodiment of the present application;
[0070] Figure 4 This is a schematic diagram of a scene of a decoration business provided by an embodiment of the present application;
[0071] Figure 5 is a structural schematic diagram of a data processing device provided in an embodiment of the present application;
[0072] Figure 6 It is a structural diagram of a computer device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0073] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0074] See also Figure 1a , is a system architecture diagram of data processing provided by an embodiment of the present invention. The blockchain network 10d establishes a connection with the user node 10a and the enterprise node cluster, and the enterprise node cluster includes enterprise nodes 10b, ..., and enterprise node 10c. The blockchain network 10d includes blockchain nodes 10e, ..., blockchain node 10f, and the user node 10a and the enterprise node also belong to the nodes in the blockchain network 10d. The blockchain network 10d obtains the decoration demand information published by the user node, publishes the decoration demand information in the blockchain network, obtains the response information of at least one decoration enterprise node to the decoration demand information, and sends the response information of the at least one decoration enterprise node to the user node. The blockchain network 10d obtains the decoration enterprise node selected by the user node, determines the decoration enterprise node selected by the user node as the target decoration enterprise node, generates a decoration electronic contract associated with the user node and the target decoration enterprise node through a smart contract, determines the pre-transferred asset amount of the decoration electronic contract according to the smart contract, and sends the first digital asset corresponding to the pre-transferred asset amount from the user account of the user node to the escrow account. When the decoration electronic contract is in a business completion state, the blockchain network 10d obtains the remaining asset amount of the decoration electronic contract according to the smart contract, sends the second digital asset corresponding to the remaining asset amount from the user account to the escrow account, and sends the first digital asset and the second digital asset in the escrow account to the enterprise account of the target decoration enterprise node.
[0075] The enterprise nodes involved in the embodiments of the present application may include a server with data processing capabilities, and the user nodes include: tablet computers, smart phones, personal computers (PCs), laptop computers, PDAs and other terminal devices.
[0076] The blockchain involved in the embodiments of the present application is a new application mode of computer technologies such as distributed data storage, peer-to-peer transmission, consensus mechanism, encryption algorithm, etc. Blockchain is essentially a decentralized database, a string of data blocks generated by cryptographic methods, each of which contains a batch of network transaction information, which is used to verify the validity of its information (anti-counterfeiting) and generate the next block. Blockchain can include the underlying blockchain platform, the platform product service layer, and the application service layer.
[0077] The underlying blockchain platform can include processing modules such as user management, basic services, smart contracts, and operation monitoring. Among them, the user management module is responsible for the identity information management of all blockchain participants, including maintaining public and private key generation (account management), key management, and the maintenance of the correspondence between the user's real identity and the blockchain address (authority management), etc., and, under authorization, supervises and audits the transactions of certain real identities and provides risk control rule configuration (risk control audit); the basic service module is deployed on all blockchain node devices to verify the validity of business requests, and records valid requests to storage after consensus is reached. For a new business request, the basic service first adapts the interface for parsing and authentication (interface adaptation), and then encrypts the business information through the consensus algorithm (consensus management). The smart contract module is responsible for the registration and issuance of contracts, as well as contract triggering and contract execution. Developers can define the contract logic in a programming language and publish it to the blockchain (contract registration). According to the logic of the contract terms, the key or other events are called to trigger the execution and complete the contract logic. It also provides the function of contract upgrade and cancellation. The operation monitoring module is mainly responsible for the deployment, configuration modification, contract setting, cloud adaptation and real-time status visualization output of the product during the product release process, such as alarm, network monitoring, node equipment health monitoring, etc.
[0078] The platform product service layer provides the basic capabilities and implementation framework of typical applications. Developers can build on these basic capabilities and superimpose business features to complete the blockchain implementation of business logic. The application service layer provides application services based on blockchain solutions for business participants to use.
[0079] The following will be combined Figure 1b , Figure 1c and Figure 1d , to illustrate the specific implementation scenario provided by the embodiment of the present application, Figure 1bWhat is shown is a data sharing system, and the data sharing system 100 refers to a system for sharing data between nodes. The data sharing system may include multiple nodes 101, and the multiple nodes 101 may refer to each client in the data sharing system. Each node 101 can receive input information when performing normal work, and maintain the shared data in the data sharing system based on the received input information. In order to ensure the information intercommunication within the data sharing system, there may be an information connection between each node in the data sharing system, and information can be transmitted between nodes through the above information connection. For example, when any node in the data sharing system receives input information, other nodes in the data sharing system obtain the input information according to the 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.
[0080] Each node in the data sharing system has a corresponding 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 blocks can be broadcast to other nodes in the data sharing system according to the node identifiers of other nodes. A node identifier list as shown in the following table can be maintained in each node, and the node name and node identifier are stored in the node identifier list accordingly. Among them, the node identifier can be an IP (Internet Protocol, a protocol for interconnecting networks) address and any other information that can be used to identify the node. Table 1 only takes the IP address as an example for illustration.
[0081] Table 1 Correspondence between node names and node identifiers
[0082] Node Name Node ID Node 1 117.114.151.174 Node 2 117.116.189.145 … … Node N 119.123.789.258
[0083] Each node in the data sharing system stores the same blockchain. The blockchain consists of multiple blocks, see Figure 1c The blockchain consists of multiple blocks. The genesis block includes a block header and a block body. The block header stores the input information characteristic value, version number, timestamp and difficulty value, and the block body stores the input information; the next block of the genesis block takes the genesis block as the parent block, and the next block also includes a block header and a block body. The block header stores the input information characteristic value of the current block, the block header characteristic value, version number, timestamp and difficulty value of the parent block, and so on, so that the block data stored in each block in the blockchain is associated with the block data stored in the parent block, ensuring the security of the input information in the block.
[0084] When generating each block in the blockchain, see Figure 1dWhen the node where the blockchain is located receives the input information, it verifies the input information. After the verification is completed, the input information is stored in the memory pool and the hash tree used to record the input information is updated. After that, the update timestamp is updated to the time when the input information is received, and different random numbers are tried to calculate the eigenvalue multiple times so that the calculated eigenvalue can satisfy the following formula:
[0085] SHA256(SHA256(version+prev_hash+merkle_root+ntime+nbits+x)) <TARGET
[0086] Among them, SHA-256 is the eigenvalue algorithm used to calculate the eigenvalue; version (version number) is the version information of the relevant block protocol in the blockchain; prev_hash is the block header eigenvalue of the parent block of the current block; merkle_root is the eigenvalue of the input information; ntime is the update time of the update timestamp; nbits is the current difficulty, which is a fixed value within a period of time and is determined again after exceeding the fixed time period; x is a random number; TARGET is the eigenvalue threshold, which can be determined based on nbits.
[0087] In this way, when the random number that satisfies the above formula is calculated, the information can be stored accordingly, the block header and block body can be generated, and the current block can be obtained. Subsequently, the node where the blockchain is located sends the newly generated block to other nodes in the data sharing system according to the node identification of other nodes in the data sharing system. Other nodes verify the newly generated block and add the newly generated block to the blockchain stored in them after the verification is completed.
[0088] See also Figure 2 , provides a flow chart of a data processing method according to an embodiment of the present application. Figure 2 As shown, the method in the embodiment of the present application may include the following steps S101-S105.
[0089] S101, obtaining decoration demand information published by the user node, and publishing the decoration demand information in the blockchain network;
[0090] Specifically, the data processing device obtains the decoration demand information published by the user node, and publishes the decoration demand information in the blockchain network. It can be understood that the user node is the node device corresponding to the user on the blockchain, and the blockchain may include multiple user nodes. The decoration demand information is the demand instruction issued by the user for a specific decoration object. The decoration demand information includes information about the decoration object. Specifically, the decoration object may be a commercial house or an office building, as well as the decoration style, decoration materials, etc. The decoration demand information also includes conditions for the decoration company, including the scale of the decoration company, the company's qualification information, etc. The data processing device obtains the decoration demand information published by the user node, and publishes the decoration demand information in the blockchain network. After the decoration demand information is published in the blockchain network, the decoration company node in the blockchain network can obtain the above-mentioned decoration demand information and respond to the decoration demand information.
[0091] S102, obtaining response information of at least one decoration enterprise node to the decoration demand information, and sending the response information of the at least one decoration enterprise node to the user node;
[0092] Specifically, the data processing device obtains the response information of at least one decoration enterprise node to the decoration demand information, and sends the response information of the at least one decoration enterprise node to the user node. It can be understood that the decoration enterprise node is the corresponding node device of the decoration enterprise on the blockchain. The blockchain may include multiple decoration enterprise nodes, and each decoration enterprise node can respond to the above-mentioned decoration demand information. For example, for the user's decoration demand information, two decoration enterprises have accepted the decoration demand information used, that is, they respond to the decoration demand information and generate response information. The data processing device obtains the response information of at least one decoration enterprise node to the decoration demand information. The response information includes information about the decoration enterprise, including enterprise qualification information and whether the conditions of the decoration demand information published by the user are met. The data processing device sends the response information of the at least one decoration enterprise node to the user node.
[0093] S103, obtaining the decoration enterprise node selected by the user node, determining the decoration enterprise node selected by the user node as the target decoration enterprise node, and generating a decoration electronic contract associated with the user node and the target decoration enterprise node through a smart contract; the decoration electronic contract is maintained by the smart contract;
[0094] 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 the target decoration enterprise node, and generates a decoration electronic contract associated with the user node and the target decoration enterprise node through a smart contract. It can be understood that for the decoration enterprise node that responds to the decoration demand information, the user can select a decoration enterprise node to perform the decoration business. 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 the target decoration enterprise node, and the target decoration enterprise node can be any decoration enterprise node that responds to the decoration demand information. The decoration electronic contract associated with the user node and the target decoration enterprise node is generated through a smart contract. The decoration electronic contract is a clause signed by the user and the enterprise to constrain the contract signing parties. The smart contract is a program code that runs various instructions in the blockchain. Specifically, the initial decoration electronic contract can be obtained from the blockchain network. The initial decoration electronic contract includes various contract terms, which can include requirements for the contract signing parties, as well as the contract term, etc. According to the signatures of the contract signing parties and the initial decoration electronic contract, the decoration electronic contract is generated and stored in the blockchain. The decoration electronic contract is maintained by the smart contract, that is, the execution terms in the above-mentioned decoration electronic contract are executed by the smart contract.
[0095] S104, determining the pre-transferred asset amount of the decoration electronic contract according to the smart contract, and sending the first digital asset corresponding to the pre-transferred asset amount from the user account of the user node to the escrow account;
[0096] Specifically, the data processing device determines the pre-transferred asset amount of the decoration electronic contract according to the smart contract, and sends the first digital asset corresponding to the pre-transferred asset amount from the user account of the user node to the escrow account. It can be understood that when the decoration electronic contract is signed, the digital asset transfer service between nodes operates normally through the smart contract maintenance. The digital asset transfer service is a payment service between enterprises and users. The pre-transferred asset amount is part of the total transferred asset amount of this decoration business, which is the pre-paid amount. It can be specifically determined according to the decoration electronic contract. For example, the total amount of the decoration business is 100, that is, the total transferred asset amount of the decoration business is 100. The terms in the decoration electronic contract stipulate that the pre-transferred asset amount is 10% of the total transferred asset amount. Then the pre-transferred asset amount is 10, that is, the pre-paid amount is 10. The data processing device sends the first digital asset corresponding to the pre-transferred asset amount from the user account of the user node to the escrow account. The escrow account is a public account maintained by the blockchain network, and the user account is a private account of the user in the blockchain network. The escrow account serves as an intermediate account between the user account and the enterprise account.
[0097] S105, when the decoration electronic contract is in a business completion state, the remaining asset amount of the decoration electronic contract is obtained according to the smart contract, the second digital asset corresponding to the remaining asset amount is sent from the user account to the escrow account, and the first digital asset and the second digital asset in the escrow account are sent to the enterprise account of the target decoration enterprise node.
[0098] Specifically, when the decoration electronic contract is in a business completion state, the data processing device obtains the remaining asset amount of the decoration electronic contract according to the smart contract, sends the second digital asset corresponding to the remaining asset amount from the user account to the escrow account, and sends the first digital asset and the second digital asset in the escrow account to the enterprise account of the target decoration enterprise node. It can be understood that when the decoration business is completed, the user can accept the decoration results. After the user acceptance is completed, the 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, the remaining asset amount of the decoration electronic contract is obtained according to the smart contract. , the remaining asset amount is the amount of assets in the total transferred assets that have not been transferred to the escrow account. For example, the total amount of the decoration business is 100, that is, the total transferred assets of the decoration business is 100. The terms in the decoration electronic contract stipulate that the pre-transferred asset amount is 10% of the total transferred assets. Then the pre-transferred asset amount is 10 and the remaining asset amount is 90. The data processing device sends the second digital asset corresponding to the remaining asset amount from the user account to the escrow account, and sends the first digital asset and the second digital asset in the escrow account to the enterprise account of the target decoration enterprise node. The enterprise account is the enterprise's private account in the blockchain network. The sum of the first digital asset and the second digital asset in the escrow account is the digital asset corresponding to the total transferred assets.
[0099] In an embodiment of the present application, by obtaining the decoration demand information published by the user node, the decoration demand information is published in the blockchain network, the response information of at least one decoration enterprise node to the decoration demand information is obtained, the response information of at least one decoration enterprise node is sent to the user node, the decoration enterprise node selected by the user node is obtained, the decoration enterprise node selected by the user node is determined as the target decoration enterprise node, and a decoration electronic contract associated with the user node and the target decoration enterprise node is generated through a smart contract, the pre-transferred asset amount of the decoration electronic contract is determined according to the smart contract, and the first digital asset corresponding to the pre-transferred asset amount is sent from the user account of the user node to the escrow account. When the decoration electronic contract is in a business completion state, the remaining asset amount of the decoration electronic contract is obtained according to the smart contract, and the second digital asset corresponding to the remaining asset amount is sent from the user account to the escrow account, and the first digital asset and the second digital asset in the escrow account are sent to the enterprise account of the target decoration enterprise node. By publishing the decoration electronic contract to the blockchain and adding the escrow account to transfer assets, the security of the assets is guaranteed and the accuracy of the data is improved.
[0100] See also Figure 3 , which is a flow chart of a data processing method provided in an embodiment of the present application. Figure 3 As shown, the method in the embodiment of the present application may include the following steps S201-S207.
[0101] S201, obtaining decoration demand information published by the user node, and publishing the decoration demand information in the blockchain network;
[0102] Specifically, the data processing device obtains the decoration demand information published by the user node, and publishes the decoration demand information in the blockchain network. It can be understood that the user node is the node device corresponding to the user on the blockchain, and the blockchain may include multiple user nodes. The decoration demand information is the demand instruction issued by the user for a specific decoration object. The decoration demand information includes information about the decoration object. Specifically, the decoration object may be a commercial house or an office building, as well as the decoration style, decoration materials, etc. The decoration demand information also includes conditions for the decoration company, including the scale of the decoration company, the company's qualification information, etc. The data processing device obtains the decoration demand information published by the user node, and publishes the decoration demand information in the blockchain network. After the decoration demand information is published in the blockchain network, the decoration company node in the blockchain network can obtain the above-mentioned decoration demand information and respond to the decoration demand information.
[0103] S202, obtaining response information of at least one decoration enterprise node to the decoration demand information, setting a classification label for the at least one decoration enterprise node according to the screening conditions in the decoration demand information; and sending the classification label and response information of the at least one decoration enterprise node to the user node.
[0104] Specifically, the data processing device obtains response information of at least one decoration enterprise node to the decoration demand information, and sets a classification label for the at least one decoration enterprise node according to the screening conditions in the decoration demand information; the classification label and response information of the at least one decoration enterprise node are sent to the user node. It can be understood that the decoration enterprise node is the corresponding node device of the decoration enterprise on the blockchain. The blockchain may include multiple decoration enterprise nodes, and each decoration enterprise node can respond to the above-mentioned decoration demand information. The data processing device obtains response information of at least one decoration enterprise node to the decoration demand information. The response information includes information of the decoration enterprise, including enterprise qualification information, etc. The screening conditions in the decoration demand information include user requirements for the qualification information of the decoration enterprise, the budget for decoration, etc. The data processing device sets a classification label for the at least one decoration enterprise node according to the screening conditions in the decoration demand information. The classification label can be the degree of matching of the decoration enterprise to the screening conditions. For example, the label of a decoration enterprise that meets one screening condition is 1, and the label of a decoration enterprise that meets two screening conditions is 2. The classification label and response information of the decoration enterprise node are sent to the user node.
[0105] S203, obtaining the decoration enterprise node selected by the user node, and determining the decoration enterprise node selected by the user node as the target decoration enterprise node; obtaining the initial decoration electronic contract corresponding to the user node through the smart contract; generating a decoration electronic contract according to the corporate 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 the blockchain network.
[0106] Specifically, for the decoration enterprise node that responds to the decoration demand information, the user can select a decoration enterprise node to perform the decoration business. The data processing device obtains the decoration enterprise node selected by the user node, and determines the decoration enterprise node selected by the user node as the target decoration enterprise node. The target decoration enterprise node can be any decoration enterprise node that responds to the decoration demand information. The initial decoration electronic contract is obtained from the blockchain network. The decoration enterprise and the user who sign the contract sign the initial decoration electronic contract respectively. According to the signatures of the two parties to the contract and the initial decoration electronic contract, the decoration electronic contract is generated. The initial decoration electronic contract includes various contract terms, which may include requirements for the two parties to the contract, as well as the term of the contract, etc. The decoration electronic contract is maintained by the smart contract, that is, the execution terms in the above decoration electronic contract are executed through the smart contract. It includes paying the decoration amount to the enterprise according to the agreed period of the contract, and finally encrypting the decoration electronic contract, and synchronizing the encrypted decoration electronic contract to the blockchain network.
[0107] S204, determining the pre-transferred asset amount of the decoration electronic contract according to the smart contract, and sending the first digital asset corresponding to the pre-transferred asset amount from the user account of the user node to the escrow account;
[0108] The step S204 in the embodiment of the present application may include the following steps S2041-S2044.
[0109] S2041, determining the total asset amount and the pre-transfer ratio of the decoration electronic contract according to the smart contract, and determining the pre-transfer asset amount according to the total asset amount and the pre-transfer ratio;
[0110] Specifically, the data processing device determines the total asset amount and the pre-transfer ratio of the decoration electronic contract according to the smart contract, and determines the pre-transfer asset amount according to the total asset amount and the pre-transfer ratio. It can be understood that the total asset amount is the total amount of the decoration business, and the pre-transfer ratio is the contract terms in the decoration electronic contract. The pre-transfer asset amount is determined according to the total asset amount and the pre-transfer ratio. For example, the total amount of the decoration business is 100, that is, the total transferred assets of the decoration business are 100, and the terms in the decoration electronic contract stipulate that the pre-transfer ratio is 10%, then the pre-transfer asset amount is 10.
[0111] S2042, generating transaction data according to the user account, the escrow account of the blockchain network, the pre-transferred asset amount, and the source account of the pre-transferred asset amount;
[0112] Specifically, the data processing device generates transaction data based on the user account, the custodial account of the blockchain network, the pre-transferred asset amount and the source account of the pre-transferred asset amount. It can be understood that the custodial account is a public account in the blockchain network, the user account is a private account of the user in the blockchain network, and the source account of the transferred asset amount is the account corresponding to the source of the digital assets in the user account, which can be used as a label for the digital assets. The data processing device packages the user account, the custodial account, the pre-transferred asset amount and the source account of the pre-transferred asset amount to generate transaction data.
[0113] S2043, obtaining a user private key of the target user, and using the user private key to sign the transaction data to obtain transfer signature information;
[0114] Specifically, the data processing device obtains the user private key of the target user, uses the user private key to sign the transaction data, and obtains the transfer signature information. It can be understood that the data processing device has the right to use the user private key after being authorized by the user, and uses the user private key to sign the transaction data to obtain the transfer signature information.
[0115] S2044, consensus processing is performed on the transaction data and the transfer signature information. After the consensus is passed, the transaction data and the transfer signature information are stored in the blockchain network; the escrow account has the authority to transfer the assets of the transaction data stored in the blockchain network.
[0116] Specifically, the data processing device performs consensus processing on the transaction data and the transfer signature information. After the consensus is passed, the transaction data and the transfer signature information are stored in the blockchain network. It can be understood that the consensus processing is the verification of the transaction data and the transfer signature information by the blockchain network. When the consensus is passed, the custodial account has the asset transfer authority for the transaction data stored in the blockchain network, that is, after the consensus is passed, the digital assets in the transaction data can be transferred.
[0117] S205, obtaining the business completion instruction of the user node, and setting the status of the decoration electronic contract to the business completion status according to the business completion instruction; determining the total asset amount and the pre-transfer ratio of the decoration electronic contract according to the smart contract, and determining the remaining asset amount according to the total asset amount and the pre-transfer ratio; sending the second digital asset corresponding to the remaining asset amount from the user account to the escrow account, and sending the first digital asset and the second digital asset in the escrow account to the enterprise account of the target decoration enterprise node.
[0118] Specifically, when the decoration business is completed, the user can accept the decoration results. After the user accepts the results, the business completion instruction is issued. The data processing device sets the contract to the business completion state according to the business completion instruction. When the decoration electronic contract is in the business completion state, the total asset amount and the pre-transfer ratio of the decoration electronic contract are determined according to the smart contract. The remaining asset amount is determined according to the total asset amount and the pre-transfer ratio. The remaining asset amount is the amount of assets in the total transferred asset amount that have not been transferred to the escrow account. For example, the total amount of the decoration business is 100, that is, the total transferred asset amount of the decoration business is 100. The terms in the decoration electronic contract stipulate that the pre-transfer asset amount is 10% of the total transferred asset amount. Then the pre-transfer asset amount is 10 and the remaining asset amount is 90. The data processing device sends the second digital asset corresponding to the remaining asset amount from the user account to the escrow account, and sends the first digital asset and the second digital asset in the escrow account to the enterprise account of the target decoration enterprise node. The enterprise account is the private account of the enterprise in the blockchain network. The sum of the first digital asset and the second digital asset in the escrow account is the digital asset corresponding to the total transferred assets. Please refer to Figure 4 , which is a schematic diagram of a decoration business scenario provided by the present application embodiment. Figure 4 As shown, the decoration company obtains the decoration demand information released by the user and responds to the decoration demand information. The user obtains the response information of the decoration company to the decoration demand information. The user selects the above-mentioned decoration company to undertake the decoration business. On the basis of the above-mentioned demand information, a decoration electronic contract associated with the user and the decoration company is generated through a smart contract. The pre-transferred asset amount of the decoration electronic contract is determined according to the smart contract, and the first digital asset corresponding to the pre-transferred asset amount is sent from the user account of the user to the escrow account. When the decoration business is completed, that is, when the decoration electronic contract is in a business completion state, the second digital asset corresponding to the remaining asset amount is sent from the user account to the escrow account according to the smart contract. Finally, the first digital asset and the second digital asset in the escrow account are sent to the corporate account of the decoration company.
[0119] 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 publishing the bound evaluation information to the blockchain network.
[0120] Specifically, the data processing device obtains the evaluation information of the user node based on the decoration electronic contract, binds the evaluation information with the decoration electronic contract, and publishes the bound evaluation information to the blockchain network. It can be understood that the evaluation information is for the decoration electronic contract, and the evaluation information can only be published when the decoration electronic contract is in a business completion state. After the user evaluates the decoration business, the data processing device obtains the evaluation information of the user node based on the decoration electronic contract, binds the evaluation information with the corresponding decoration electronic contract, and publishes it to the blockchain network. Other users on the blockchain network can view the above evaluation information.
[0121] S207, generating enterprise qualification information of the decoration enterprise node according to the evaluation information of the decoration enterprise node, and when the enterprise qualification information of the decoration enterprise node is greater than the threshold information, adding the decoration enterprise node to a blacklist; the decoration enterprise nodes in the blacklist do not have the business function of responding to the decoration demand information released by the user node.
[0122] Specifically, the data processing device obtains all evaluation information of the decoration enterprise node, and generates enterprise qualification information of the decoration enterprise node according to all the evaluation information. Specifically, the user scores in all the evaluation information can be averaged according to the user scores in the evaluation information, and the enterprise qualification information of the decoration enterprise node can be determined according to the average user score. When the enterprise qualification information of the decoration enterprise node is greater than the threshold information, the decoration enterprise node is added to the blacklist. The decoration enterprise nodes in the blacklist do not have the business function of responding to the decoration demand information released by the user node, that is, the decoration enterprises added to the blacklist cannot undertake the decoration business.
[0123] In an embodiment of the present application, by obtaining the decoration demand information published by the user node, the decoration demand information is published in the blockchain network, the response information of at least one decoration enterprise node to the decoration demand information is obtained, the response information of at least one decoration enterprise node is sent to the user node, the decoration enterprise node selected by the user node is obtained, the decoration enterprise node selected by the user node is determined as the target decoration enterprise node, and a decoration electronic contract associated with the user node and the target decoration enterprise node is generated through a smart contract, the pre-transferred asset amount of the decoration electronic contract is determined according to the smart contract, and the first digital asset corresponding to the pre-transferred asset amount is sent from the user account of the user node to the escrow account. When the decoration electronic contract is in a business completion state, the remaining asset amount of the decoration electronic contract is obtained according to the smart contract, and the second digital asset corresponding to the remaining asset amount is sent from the user account to the escrow account, and the first digital asset and the second digital asset in the escrow account are sent to the enterprise account of the target decoration enterprise node. By publishing the decoration electronic contract to the blockchain and adding the escrow account to transfer assets, the security of the assets is guaranteed and the accuracy of the data is improved.
[0124] See also Figure 5 , which is a schematic diagram of the structure of a data processing device provided in an embodiment of the present application. The data processing device may be a computer program (including program code) running in a computer device, for example, the data processing device is an application software; the device may be used to execute the corresponding steps in the method provided in an embodiment of the present application. Figure 5 As shown, the data processing device 1 of the embodiment of the present application may include: 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.
[0125] The demand information acquisition unit 11 is used to acquire the decoration demand information published by the user node and publish the decoration demand information in the blockchain network;
[0126] A response information acquisition unit 12, configured to acquire response information of at least one decoration enterprise node to the decoration demand information, and send the response information of the at least one decoration enterprise node to the user node;
[0127] The electronic contract generating unit 13 is used to obtain the decoration enterprise node selected by the user node, determine the decoration enterprise node selected by the user node as the target decoration enterprise node, and generate a decoration electronic contract associated with the user node and the target decoration enterprise node through a smart contract; the decoration electronic contract is maintained by the smart contract;
[0128] The first asset transfer unit 14 is used to determine the pre-transferred asset amount of the decoration electronic contract according to the smart contract, and send the first digital asset corresponding to the pre-transferred asset amount from the user account of the user node to the escrow account;
[0129] The second asset transfer unit 15 is used to obtain the remaining asset amount of the decoration electronic contract according to the smart contract when the decoration electronic contract is in a business completion state, send the second digital asset corresponding to the remaining asset amount from the user account to the escrow account, and send the first digital asset and the second digital asset in the escrow account to the enterprise account of the target decoration enterprise node.
[0130] The response information acquisition unit 12 is specifically used for:
[0131] Acquire response information of at least one decoration enterprise node to the decoration demand information, and set a classification label for the at least one decoration enterprise node according to the screening condition in the decoration demand information;
[0132] The classification label and response information of the at least one decoration enterprise node are sent to the user node.
[0133] The electronic contract generating unit 13 is specifically used for:
[0134] Acquire the decoration enterprise node selected by the user node, and determine the decoration enterprise node selected by the user node as the target decoration enterprise node;
[0135] Obtain the initial decoration electronic contract corresponding to the user node through the smart contract;
[0136] Generate 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;
[0137] The decoration electronic contract is encrypted, and the encrypted decoration electronic contract is synchronized to the blockchain network.
[0138] The first asset transfer unit 14 is specifically used for:
[0139] Determine the total asset amount and pre-transfer ratio of the decoration electronic contract according to the smart contract, and determine the pre-transfer asset amount according to the total asset amount and pre-transfer ratio;
[0140] Generate transaction data based on the user account, the escrow account of the blockchain network, the pre-transferred asset amount, and the source account of the pre-transferred asset amount;
[0141] Obtain the target user's private key, use the private key to sign the transaction data, and obtain transfer signature information;
[0142] Performing consensus processing on the transaction data and the transfer signature information;
[0143] After consensus is reached, the transaction data and the transfer signature information are stored in the blockchain network; the escrow account has the authority to transfer assets of the transaction data stored in the blockchain network.
[0144] The second asset transfer unit 15 is specifically used for:
[0145] Obtaining a business completion instruction of a user node, and setting the state of the decoration electronic contract to a business completion state according to the business completion instruction;
[0146] Determine the total asset amount and pre-transfer ratio of the decoration electronic contract according to the smart contract, and determine the remaining asset amount according to the total asset amount and pre-transfer ratio;
[0147] The second digital asset corresponding to the remaining asset amount is sent from the user account to the escrow account, and the first digital asset and the second digital asset in the escrow account are sent to the enterprise account of the target decoration enterprise node.
[0148] like Figure 5 As shown, the data processing device 1 of the embodiment of the present application may include: an evaluation information acquisition unit 16;
[0149] The evaluation information acquisition unit 16 is used to obtain the evaluation information of the user node based on the decoration electronic contract, bind the evaluation information with the decoration electronic contract, and publish the bound evaluation information to the blockchain network.
[0150] like Figure 5 As shown, the data processing device 1 of the embodiment of the present application may include: a qualification information generating unit 17;
[0151] The qualification information generating unit 17 is used to generate enterprise qualification information of the decoration enterprise node according to the evaluation information of the decoration enterprise node. When the enterprise qualification information of the decoration enterprise node is greater than the threshold information, the decoration enterprise node is added to the blacklist; the decoration enterprise nodes in the blacklist do not have the business function of responding to the decoration demand information released by the user node.
[0152] In an embodiment of the present application, by obtaining the decoration demand information published by the user node, the decoration demand information is published in the blockchain network, the response information of at least one decoration enterprise node to the decoration demand information is obtained, the response information of at least one decoration enterprise node is sent to the user node, the decoration enterprise node selected by the user node is obtained, the decoration enterprise node selected by the user node is determined as the target decoration enterprise node, and a decoration electronic contract associated with the user node and the target decoration enterprise node is generated through a smart contract, the pre-transferred asset amount of the decoration electronic contract is determined according to the smart contract, and the first digital asset corresponding to the pre-transferred asset amount is sent from the user account of the user node to the escrow account. When the decoration electronic contract is in a business completion state, the remaining asset amount of the decoration electronic contract is obtained according to the smart contract, and the second digital asset corresponding to the remaining asset amount is sent from the user account to the escrow account, and the first digital asset and the second digital asset in the escrow account are sent to the enterprise account of the target decoration enterprise node. By publishing the decoration electronic contract to the blockchain and adding the escrow account to transfer assets, the security of the assets is guaranteed and the accuracy of the data is improved.
[0153] See also Figure 6 , which is a schematic diagram of the structure of a computer device according to an embodiment of the present application. Figure 6 As shown, the computer device 1000 may include: at least one processor 1001, such as a CPU, at least one network interface 1004, a user interface 1003, a memory 1005, and at least one communication bus 1002. The communication bus 1002 is used to realize the connection and communication between these components. The user interface 1003 may include a display screen (Display), and the user interface 1003 may optionally include a standard wired interface and a wireless interface. The network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a 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 storage. The memory 1005 may optionally also be at least one storage device located away from the aforementioned processor 1001. As Figure 6 As shown, the memory 1005 as a computer storage medium may include an operating system, a network communication module, a user interface module, and a data processing application program.
[0154] exist Figure 6 In the computer device 1000 shown in the figure, the network interface 1004 can provide a network communication function, the user interface 1003 is mainly used to provide an input interface for the user; and the processor 1001 can be used to call the data processing application stored in the memory 1005 to implement the above Figure 2-Figure 4The description of the data processing method in any corresponding embodiment will not be repeated here.
[0155] It should be understood that the computer device 1000 described in the embodiment of the present application can execute the above Figure 2-Figure 4 The description of the data processing method in any corresponding embodiment can also be performed as described above. Figure 5 The description of the data processing device in the corresponding embodiment will not be repeated here. In addition, the description of the beneficial effects of the same method will not be repeated here.
[0156] In addition, it should be pointed out here that: the embodiment of the present application also provides a computer-readable storage medium, and the computer-readable storage medium stores a computer program executed by the data processing device mentioned above, and the computer program includes program instructions. When the processor executes the program instructions, it can execute the above-mentioned Figure 2-Figure 4 The description of the data processing method in any corresponding embodiment will not be repeated here. In addition, the description of the beneficial effects of the same method will not be repeated. For technical details not disclosed in the computer-readable storage medium embodiment involved in this application, please refer to the description of the method embodiment of this application. As an example, program instructions may be deployed to be executed on one computing device, or on multiple computing devices located at one location, or on multiple computing devices distributed at multiple locations and interconnected by a communication network. Multiple computing devices distributed at multiple locations and interconnected by a communication network can constitute a blockchain system.
[0157] A person skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a computer program, and the program can be stored in a computer-readable storage medium, and when the program is executed, it can include the processes of the embodiments of the above-mentioned methods. The storage medium can be a disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM), etc.
[0158] The above disclosure is only the preferred embodiment of the present application, which certainly cannot be used to limit the scope of rights of the present application. Therefore, equivalent changes made according to the claims of the present application are still within the scope covered by the present application.
Claims
1. A data processing method based on blockchain, It is characterized in that include: Acquire decoration demand information published by a user node, and publish the decoration demand information in a blockchain network; the blockchain includes a plurality of decoration enterprise nodes, and the plurality of decoration enterprise nodes respond to the decoration demand information; Acquire response information of at least one decoration enterprise node to the decoration demand information, and send the response information of the at least one decoration enterprise node to the user node; Obtaining the decoration enterprise node selected by the user node, determining the decoration enterprise node selected by the user node as the target decoration enterprise node, and obtaining the initial decoration electronic contract corresponding to the user node through the smart contract; Generate a decoration electronic contract associated with the user node and the target decoration enterprise node through the smart contract according to the enterprise signature of the target enterprise corresponding to the target decoration enterprise node, the user signature of the target user corresponding to the user node, and the initial decoration electronic contract; The decoration electronic contract is maintained by the smart contract; Determine the pre-transferred asset amount of the decoration electronic contract according to the smart contract, and send the first digital asset corresponding to the pre-transferred asset amount from the user account of the user node to the escrow account, where the escrow account is a public account in the blockchain network; When the decoration electronic contract is in a business completion state, the remaining asset amount of the decoration electronic contract is obtained according to the smart contract, the second digital asset corresponding to the remaining asset amount is sent from the user account to the escrow account, and the first digital asset and the second digital asset in the escrow account are sent to the enterprise account of the target decoration enterprise node.
2. The method according to claim 1, It is characterized in that The obtaining response information of at least one decoration enterprise node to the decoration demand information, and sending the response information of the at least one decoration enterprise node to the user node includes: Acquire response information of at least one decoration enterprise node to the decoration demand information, and set a classification label for the at least one decoration enterprise node according to the screening condition in the decoration demand information; The classification label and response information of the at least one decoration enterprise node are sent to the user node.
3. The method according to claim 1, It is characterized in that Also includes: The decoration electronic contract is encrypted, and the encrypted decoration electronic contract is synchronized to the blockchain network.
4. The method according to claim 1, It is characterized in that The step of determining the pre-transferred asset amount of the decoration electronic contract according to the smart contract, and sending the first digital asset corresponding to the pre-transferred asset amount from the user account of the user node to the escrow account includes: Determine the total asset amount and pre-transfer ratio of the decoration electronic contract according to the smart contract, and determine the pre-transfer asset amount according to the total asset amount and pre-transfer ratio; Generate transaction data based on the user account, the escrow account of the blockchain network, the pre-transferred asset amount, and the source account of the pre-transferred asset amount; Obtain the target user's private key, use the private key to sign the transaction data, and obtain transfer signature information; Performing consensus processing on the transaction data and the transfer signature information; After consensus is reached, the transaction data and the transfer signature information are stored in the blockchain network; the escrow account has the authority to transfer assets of the transaction data stored in the blockchain network.
5. The method according to claim 1, It is characterized in that When the decoration electronic contract is in a business completion state, the remaining asset amount of the decoration electronic contract is obtained according to the smart contract, the second digital asset corresponding to the remaining asset amount is sent from the user account to the escrow account, and the first digital asset and the second digital asset in the escrow account are sent to the enterprise account of the target decoration enterprise node, including: Obtaining a business completion instruction of a user node, and setting the state of the decoration electronic contract to a business completion state according to the business completion instruction; Determine the total asset amount and pre-transfer ratio of the decoration electronic contract according to the smart contract, and determine the remaining asset amount according to the total asset amount and pre-transfer ratio; The second digital asset corresponding to the remaining asset amount is sent from the user account to the escrow account, and the first digital asset and the second digital asset in the escrow account are sent to the enterprise account of the target decoration enterprise node.
6. The method according to claim 1, It is characterized in that Also includes: The evaluation information of the user node based on the decoration electronic contract is obtained, the evaluation information is bound to the decoration electronic contract, and the bound evaluation information is published to the blockchain network.
7. The method according to claim 1, It is characterized in that Also includes: The enterprise qualification information of the decoration enterprise node is generated according to the evaluation information of the decoration enterprise node. When the enterprise qualification information of the decoration enterprise node is greater than the threshold information, the decoration enterprise node is added to a blacklist; the decoration enterprise nodes in the blacklist do not have the business function of responding to the decoration demand information released by the user node.
8. A data processing device based on blockchain, It is characterized in that include: A demand information acquisition unit is used to acquire decoration demand information published by a user node, and publish the decoration demand information in a blockchain network; the blockchain includes a plurality of decoration enterprise nodes, and the plurality of decoration enterprise nodes respond to the decoration demand information; A response information acquisition unit, used to acquire response information of at least one decoration enterprise node to the decoration demand information, and send the response information of the at least one decoration enterprise node to the user node; An electronic contract generating unit, used to obtain the decoration enterprise node selected by the user node, determine the decoration enterprise node selected by the user node as the target decoration enterprise node, and generate a decoration electronic contract associated with the user node and the target decoration enterprise node through a smart contract; The decoration electronic contract is maintained by the smart contract; The electronic contract generation unit, when generating the decoration electronic contract associated with the user node and the target decoration enterprise node through the smart contract, is specifically used to obtain the initial decoration electronic contract corresponding to the user node through the smart contract, and generate the decoration electronic contract according to the enterprise signature of the target enterprise corresponding to the target decoration enterprise node, the user signature of the target user corresponding to the user node and the initial decoration electronic contract; A first asset transfer unit, configured to determine the pre-transferred asset amount of the decoration electronic contract according to the smart contract, and send the first digital asset corresponding to the pre-transferred asset amount from the user account of the user node to the escrow account, where the escrow account is a public account in the blockchain network; The second asset transfer unit is used to obtain the remaining asset amount of the decoration electronic contract according to the smart contract when the decoration electronic contract is in a business completion state, send the second digital asset corresponding to the remaining asset amount from the user account to the escrow account, and send the first digital asset and the second digital asset in the escrow account to the enterprise account of the target decoration enterprise node.
9. A computer-readable storage medium, It is characterized in that The computer storage medium stores a computer program, wherein the computer program includes program instructions, and when the program instructions are executed by a processor, the method according to any one of claims 1 to 7 is executed.
10. A computer device, It is characterized in that It is characterized in that it 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 method steps as claimed in any one of claims 1 to 7.
Citation Information
Patent Citations
Advertising scheme competitive presentation method, server and computer readable medium
CN108876485A
Decoration service transaction method, system, equipment and medium based on block chain technology
CN109146401A
An electricity selling company credit evaluation method suitable for an electric power transaction center
CN109727157A
Contract generation method and device based on block chain
CN110473108A