[go: up one dir, main page]

CN111311211B - A data processing method and device based on blockchain - Google Patents

A data processing method and device based on blockchain Download PDF

Info

Publication number
CN111311211B
CN111311211B CN202010076892.9A CN202010076892A CN111311211B CN 111311211 B CN111311211 B CN 111311211B CN 202010076892 A CN202010076892 A CN 202010076892A CN 111311211 B CN111311211 B CN 111311211B
Authority
CN
China
Prior art keywords
decoration
node
enterprise
user
account
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010076892.9A
Other languages
Chinese (zh)
Other versions
CN111311211A (en
Inventor
刘攀
李茂材
王宗友
蓝虎
周开班
杨常青
朱耿良
刘区城
黄焕坤
孔利
张劲松
时一防
崔嘉辉
廖志勇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN202010076892.9A priority Critical patent/CN111311211B/en
Publication of CN111311211A publication Critical patent/CN111311211A/en
Application granted granted Critical
Publication of CN111311211B publication Critical patent/CN111311211B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/08Payment architectures
    • G06Q20/085Payment architectures involving remote charge determination or related payment systems
    • G06Q20/0855Payment architectures involving remote charge determination or related payment systems involving a third party
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/64Protecting data integrity, e.g. using checksums, certificates or signatures
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/22Payment schemes or models
    • G06Q20/28Pre-payment schemes, e.g. "pay before"
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/40Authorisation, e.g. identification of payer or payee, verification of customer or shop credentials; Review and approval of payers, e.g. check credit lines or negative lists
    • G06Q20/401Transaction verification
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q50/00Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
    • G06Q50/08Construction
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/30Computing systems specially adapted for manufacturing

Landscapes

  • Business, Economics & Management (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Accounting & Taxation (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • Strategic Management (AREA)
  • Finance (AREA)
  • Computer Security & Cryptography (AREA)
  • Economics (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Marketing (AREA)
  • Human Resources & Organizations (AREA)
  • Primary Health Care (AREA)
  • Computer Hardware Design (AREA)
  • Tourism & Hospitality (AREA)
  • Software Systems (AREA)
  • Bioethics (AREA)
  • General Engineering & Computer Science (AREA)
  • Development Economics (AREA)
  • Technology Law (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

本申请实施例公开一种基于区块链的数据处理方法以及设备,其中方法包括如下步骤:获取用户节点发布的装修需求信息;获取装修企业节点对装修需求信息的响应信息,将响应信息发送至用户节点;获取用户节点选择的装修企业节点,确定为目标装修企业节点,通过智能合约生成用户节点和目标装修企业节点相关联的装修电子合约;将预转移资产量对应的第一数字资产从用户账户发送至托管账户;当装修电子合约处于业务完成状态时,获取装修电子合约的剩余资产量,将剩余资产量对应的第二数字资产从用户账户发送至托管账户,将托管账户中的第一数字资产和第二数字资产发送至企业账户。采用本申请,可以提高数据的准确性。

The embodiment of the present application discloses a data processing method and device based on blockchain, wherein the method includes the following steps: obtaining decoration demand information published by a user node; obtaining response information of a decoration enterprise node to the decoration demand information, and sending the response information to the user node; obtaining a decoration enterprise node selected by the user node, determining it 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; sending the first digital asset corresponding to the pre-transferred asset amount from the user account to the escrow account; when the decoration electronic contract is in a business completion state, obtaining the remaining asset amount of the decoration electronic contract, 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. The use of this application can improve the accuracy of data.

Description

Data processing method and device based on block chain
Technical Field
The present application relates to the field of electronic technologies, and in particular, to a data processing method and apparatus based on a blockchain.
Background
In the decoration field, the user and the decoration enterprise maintain the execution of decoration business through decoration agreement, but because the user and the enterprise are in one-to-one relation, the supervision of a third party is lacked, the authenticity of information cannot be ensured, decoration data is easy to tamper, and the data accuracy of the decoration agreement cannot be ensured.
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.
Drawings
In order to more clearly illustrate the embodiments of the application or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described, it being obvious that the drawings in the following description are only some embodiments of the application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1a is a system architecture diagram for data processing according to an embodiment of the present application;
FIG. 1b is a schematic diagram of a scenario of a data sharing system according to an embodiment of the present application;
FIG. 1c is a block chain result diagram according to an embodiment of the present application;
FIG. 1d is a flowchart of a block generation method according to an embodiment of the present application;
FIG. 2 is a schematic flow chart of a data processing method according to an embodiment of the present application;
FIG. 3 is a schematic flow chart of a data processing method according to an embodiment of the present application;
Fig. 4 is a schematic view of a decoration service provided in an embodiment of the present application;
FIG. 5 is a schematic diagram of a data processing apparatus according to an embodiment of the present application;
Fig. 6 is a schematic structural diagram of a computer device according to an embodiment of the present application.
Detailed Description
The 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.

Claims (10)

1. A blockchain-based data processing method, comprising:
Acquiring decoration demand information issued by user nodes, and issuing the decoration demand information in a blockchain network, wherein the blockchain comprises a plurality of decoration enterprise nodes which respond to the decoration demand information;
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 acquiring an initial decoration electronic contract corresponding to the user node through an intelligent contract;
generating decoration electronic contracts related to the user node and the target decoration enterprise node 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 by the intelligent contract;
Determining the pre-transfer resource yield of the decoration electronic contract according to an intelligent contract, and transmitting a first digital asset corresponding to the pre-transfer resource yield from a user account of the user node to a managed account, wherein the managed account is a public account in a blockchain network;
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.
2. The method of claim 1, wherein the obtaining response information of at least one repair enterprise node to the repair demand information, and transmitting the response information of the at least one repair enterprise node to the user node, comprises:
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.
3. The method as recited in claim 1, further comprising:
encrypting the decoration electronic contract, and synchronizing the encrypted decoration electronic contract to a blockchain network.
4. The method of claim 1, wherein determining a pre-transfer asset yield of the decorated electronic contract according to an intelligent contract, and sending a first digital asset corresponding to the pre-transfer asset yield from a user account of the user node to a 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.
5. The method of claim 1, wherein when the decorated electronic contract is in a business-completed state, obtaining a remaining asset yield of the decorated electronic contract according to an intelligent contract, sending a second digital asset corresponding to the remaining asset yield from the user account to the escrow account, and sending the first digital asset and the second digital asset in the escrow account to an enterprise account of a target decorated enterprise node, comprising:
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.
6. The method as recited in claim 1, further comprising:
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.
7. The method as recited in claim 1, further comprising:
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.
8. A blockchain-based data processing device, comprising:
the system comprises a demand information acquisition unit, a decoration demand information processing unit and a decoration request information processing unit, wherein the demand information acquisition unit is used for acquiring decoration demand information issued by user nodes and issuing the decoration demand information in a blockchain 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;
The electronic contract generating unit is specifically configured to, when generating a decoration electronic contract associated with the user node and the target decoration enterprise node through an intelligent contract, obtain an initial decoration electronic contract corresponding to the user node through the intelligent contract, and generate the decoration electronic contract according to an enterprise signature of a target enterprise corresponding to the target decoration enterprise node, a user signature of a target user corresponding to the user node, and the initial decoration electronic contract;
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 hosted account, where the hosted account is a public account in a blockchain network;
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.
9. A computer readable storage medium, characterized in that the computer storage medium stores a computer program comprising program instructions which, when executed by a processor, perform the method of any of claims 1-7.
10. A computer device, characterized by comprising a processor and a memory, wherein the memory stores a computer program adapted to be loaded by the processor and to perform the method steps of any of claims 1-7.
CN202010076892.9A 2020-01-23 2020-01-23 A data processing method and device based on blockchain Active CN111311211B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010076892.9A CN111311211B (en) 2020-01-23 2020-01-23 A data processing method and device based on blockchain

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010076892.9A CN111311211B (en) 2020-01-23 2020-01-23 A data processing method and device based on blockchain

Publications (2)

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

Family

ID=71161568

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010076892.9A Active CN111311211B (en) 2020-01-23 2020-01-23 A data processing method and device based on blockchain

Country Status (1)

Country Link
CN (1) CN111311211B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111598735A (en) * 2020-06-23 2020-08-28 烟台大学 A blockchain-based housing decoration supervision system
CN111598736A (en) * 2020-06-23 2020-08-28 烟台大学 House decoration supervision method based on block chain technology
CN111858835B (en) * 2020-07-31 2024-04-02 深圳赛安特技术服务有限公司 Enterprise relation display method and related equipment
CN112950371B (en) * 2021-02-26 2023-11-21 iCALC控股有限公司 Data processing method, device, equipment and readable storage medium
CN114723449B (en) * 2022-05-17 2022-10-14 北京连琪科技有限公司 Block chain piece payment method and electronic equipment
CN115358894A (en) * 2022-08-26 2022-11-18 维正知识产权科技有限公司 Intellectual property life cycle trusteeship management method, device, equipment and medium
CN117474534B (en) * 2023-12-26 2024-03-19 成都天府通数字科技有限公司 Management system for conditional payment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108876485A (en) * 2018-08-15 2018-11-23 深圳市元征科技股份有限公司 A kind of advertisement scheme is than original text method, server and computer-readable medium
CN109146401A (en) * 2018-07-06 2019-01-04 厦门快商通信息技术有限公司 Finishing service transacting method, system, equipment and medium based on block chain technology
CN109727157A (en) * 2019-01-21 2019-05-07 国网冀北电力有限公司 A kind of sale of electricity company credit evaluation method suitable for power exchange
CN110473108A (en) * 2019-09-16 2019-11-19 北京京东振世信息技术有限公司 Contract generation method and device based on block chain

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10068228B1 (en) * 2013-06-28 2018-09-04 Winklevoss Ip, Llc Systems and methods for storing digital math-based assets using a secure portal
US10706395B2 (en) * 2017-07-11 2020-07-07 American Express Travel Related Services Company, Inc. Fund transfer service for multiple linked transaction accounts
US10740808B2 (en) * 2017-11-28 2020-08-11 Microsoft Technology Licensing, Llc Beacon network with enterprise smart contracts having a centralized ledger
CN110706113A (en) * 2019-12-13 2020-01-17 腾讯科技(深圳)有限公司 Cross-block-chain data processing method, device, equipment and medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109146401A (en) * 2018-07-06 2019-01-04 厦门快商通信息技术有限公司 Finishing service transacting method, system, equipment and medium based on block chain technology
CN108876485A (en) * 2018-08-15 2018-11-23 深圳市元征科技股份有限公司 A kind of advertisement scheme is than original text method, server and computer-readable medium
CN109727157A (en) * 2019-01-21 2019-05-07 国网冀北电力有限公司 A kind of sale of electricity company credit evaluation method suitable for power exchange
CN110473108A (en) * 2019-09-16 2019-11-19 北京京东振世信息技术有限公司 Contract generation method and device based on block chain

Also Published As

Publication number Publication date
CN111311211A (en) 2020-06-19

Similar Documents

Publication Publication Date Title
CN111311211B (en) A data processing method and device based on blockchain
CN110490305B (en) Machine learning model processing method based on block chain network and node
CN110599173B (en) Block chain consensus node determination method, device, equipment and storage medium
CN113691597B (en) Block chain contract deployment method, device, equipment and storage medium
CN111427957B (en) Block chain voting information verification method, device, equipment and storage medium
CN111445333B (en) Block generation method, device, computer equipment and storage medium
CN109544160B (en) Transaction authenticity verification method and system based on block chain and intelligent contract
WO2022042301A1 (en) Data processing method and apparatus, smart device and storage medium
CN110717832B (en) Clean energy trading method, system, device and storage medium based on block chain
CN115701078B (en) Cross-chain transaction processing method, device, electronic equipment and storage medium
CN112907244B (en) Data processing methods, devices, equipment and readable storage media based on blockchain
CN111292057A (en) A blockchain-based business processing method
CN110968644A (en) Data processing method and equipment
CN113014540B (en) Data processing method, device, equipment and storage medium
CN111291420B (en) Distributed off-link data storage method based on block chain
CN110941840B (en) Data processing method, system and terminal
CN110990790B (en) Data processing method and equipment
CN116894727A (en) A data processing method, device and related equipment based on blockchain
CN114499872A (en) Industrial internet-based star fire chain cross-linking method and equipment
CN117474676A (en) Block chain-based data processing method, device, equipment and medium
HK40024691A (en) Blockchain-based business processing method
HK40022612A (en) Data processing method and device
CN120746570A (en) Blockchain-based transaction methods, apparatus, computer devices, readable storage media, and program products
CN120219079A (en) Asset protection method, device, computer, medium and program product
CN119579249A (en) Resource exchange method, device, equipment, medium and product based on blockchain

Legal Events

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