CN110910091A - Data processing method, device and medium - Google Patents

Data processing method, device and medium Download PDF

Info

Publication number
CN110910091A
CN110910091A CN201911144935.6A CN201911144935A CN110910091A CN 110910091 A CN110910091 A CN 110910091A CN 201911144935 A CN201911144935 A CN 201911144935A CN 110910091 A CN110910091 A CN 110910091A
Authority
CN
China
Prior art keywords
transaction data
information
client
target
item
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201911144935.6A
Other languages
Chinese (zh)
Inventor
刘攀
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201911144935.6A priority Critical patent/CN110910091A/en
Publication of CN110910091A publication Critical patent/CN110910091A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/10Office automation; Time management
    • G06Q10/103Workflow collaboration or project management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • 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/382Payment protocols; Details thereof insuring higher security of transaction
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q50/00Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
    • G06Q50/10Services
    • G06Q50/26Government or public services

Landscapes

  • Business, Economics & Management (AREA)
  • Engineering & Computer Science (AREA)
  • Strategic Management (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • Human Resources & Organizations (AREA)
  • General Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Marketing (AREA)
  • Economics (AREA)
  • Finance (AREA)
  • Tourism & Hospitality (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Development Economics (AREA)
  • Databases & Information Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Educational Administration (AREA)
  • General Engineering & Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Computing Systems (AREA)
  • Primary Health Care (AREA)
  • Computer Security & Cryptography (AREA)
  • Technology Law (AREA)
  • Operations Research (AREA)
  • Quality & Reliability (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The embodiment of the invention provides a data processing method, equipment and a medium, wherein the method comprises the steps of receiving first transaction data sent by at least one first client, wherein the first transaction data comprise an item voting result of the first client, and the item voting result is used for indicating that the first client votes for item information or does not vote; respectively carrying out consensus processing on each first transaction data to obtain first target transaction data which pass the consensus, wherein the first target transaction data comprises at least one first transaction data; obtaining item result information of the item information according to the item voting result contained in the first target transaction data; and performing uplink processing on the project result information, and sending the project result information to each first client and each property platform. The embodiment of the invention provides a data processing method which can improve the transparency and traceability of paper or electronic data of property management.

Description

Data processing method, device and medium
Technical Field
The present invention relates to the field of internet technologies, and in particular, to a data processing method, device, and medium.
Background
The property management is an activity in which property service enterprises are commonly managed by property owners or are entrusted to manage management items such as buildings and environments shared by property owners. In practice, it is found that paper or electronic data of property management are concentrated in a property center at present, and the mode has a lot of problems. For example: the owner cannot know the property expense flow direction and whether the behavior of fund appropriation abuse exists. Therefore, how to ensure that the paper or electronic data of property management is transparent and traceable is a problem which needs to be solved at present.
Disclosure of Invention
The embodiment of the invention provides a data processing method, equipment and a medium, which are beneficial to improving the transparency and traceability of paper or electronic data of property management.
In a first aspect, an embodiment of the present invention provides a data processing method, including:
receiving first transaction data sent by at least one first client, wherein the first transaction data comprises an item voting result of the first client, and the item voting result is used for indicating that the first client votes for item information or does not vote;
respectively carrying out consensus processing on each first transaction data to obtain first target transaction data passing consensus, wherein the first target transaction data comprises at least one first transaction data;
obtaining item result information of the item information according to an item voting result contained in the first target transaction data;
and performing uplink processing on the project result information, and sending the project result information to each first client and each property platform.
In the technical scheme, at least one client sends the item voting results to a block chain network, the block chain network generates final item result information according to the item voting results, and the item result information is linked and sent to the client and a property platform, so that the voting process can be supervised, and the voting is public, transparent and traceable.
In a second aspect, an embodiment of the present invention provides a data processing apparatus, including:
the system comprises a transceiving unit, a processing unit and a processing unit, wherein the transceiving unit is used for receiving first transaction data sent by at least one first client, the first transaction data comprises an item voting result of the first client, and the item voting result is used for indicating that the first client votes for item information or does not vote;
the processing unit is used for respectively carrying out consensus processing on the first transaction data to obtain first target transaction data which passes the consensus, and the first target transaction data comprises at least one first transaction data; obtaining item result information of the item information according to an item voting result contained in the first target transaction data; performing uplink processing on the project result information;
and the transceiver unit is further configured to send the project result information to each of the first client and the property platform.
In a third aspect, an embodiment of the present invention provides a data processing apparatus, including a processor and a memory, where the processor and the memory are connected to each other, where the memory is used to store a computer program, the computer program includes program instructions, and the processor is configured to call the program instructions to execute the method described in the first aspect. For the embodiments and the advantages of the processing device to solve the problems, reference may be made to the method and the advantages described in the first aspect, and repeated details are not repeated.
In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, where one or more first instructions are stored, and the one or more first instructions are adapted to be loaded by a processor and execute the method described in the first aspect.
In the embodiment of the application, after receiving first transaction data which are sent by a first client and contain project voting results, the blockchain network performs consensus processing on the first transaction data, obtains final project result information according to the consensus project voting results, and sends the project result information to the first client and the property platform, so that the data of property management are transparent and traceable.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is an architecture diagram of a data processing system provided by an embodiment of the present invention;
fig. 2 is a schematic flow chart of a data processing method according to an embodiment of the present invention;
fig. 3 is a schematic flow chart illustrating a process of generating a new block in a blockchain network according to an embodiment of the present invention;
FIG. 4 is a flow chart illustrating a further data processing method according to an embodiment of the present invention;
FIG. 5 is a flow chart illustrating a further data processing method according to an embodiment of the present invention;
FIG. 6 is a flow chart illustrating a further data processing method according to an embodiment of the present invention;
FIG. 7 is a block diagram of a data processing apparatus according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of a data processing apparatus according to an embodiment of the present invention.
Detailed Description
The technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention.
The terms "first," "second," "third," and the like in the description and in the claims, and in the above-described drawings, are used for distinguishing between different objects and not necessarily for describing a particular sequential or chronological order. Furthermore, the terms "comprises" and any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or modules is not limited to the listed steps or modules but may alternatively include other steps or modules not listed or inherent to such process, method, article, or apparatus.
In order to better understand a data processing method disclosed in the embodiment of the present invention, a system architecture to which the embodiment of the present invention is applicable is first described below.
Referring to fig. 1, as shown in fig. 1, the system framework includes a first client, a second client, a property platform, a certificate authority, and a blockchain network. The first client may be a client corresponding to the owner. The second client may be a client corresponding to the previous owner's committee, the property platform may be a platform corresponding to the property, the processing device corresponding to the platform may be a server or a client of the property, and the Certificate Authority (CA) may be a mechanism that issues a digital Certificate for the client and the property platform, and the processing device corresponding to the mechanism may be the server or the client. Wherein, the client can be any one of the following: a terminal, a standalone Application, an Application Programming Interface (API), or a Software Development Kit (SDK). Among others, the terminal may include but is not limited to: smart phones (such as Android phones and iOS phones), tablet computers, portable personal computers, Mobile Internet Devices (MID), and the like, which are not limited in the embodiments of the present invention.
The Block Chain (Block Chain) is a Chain data structure which combines data blocks in a sequential connection mode according to a time sequence and is a distributed book which is cryptographically used for ensuring that the data cannot be tampered and forged. Multiple independent distributed nodes (i.e., blockchain nodes) maintain the same record. The blockchain technology realizes decentralization and becomes a foundation for credible digital asset storage, transfer and transaction. Wherein the blockchain network comprises a plurality of blockchain nodes. Fig. 1 illustrates a blockchain network comprising 3 blockchain nodes. Of course, the blockchain network may also include more than 3 nodes. The block link point may be a full node. A full node refers to a node that stores a complete blockchain. A full node is typically a high performance computing device.
The data processing method provided by the embodiment of the application can be applied to any one of the following scenes: the method comprises the following scenes of voting of a cell engineering construction project based on an intelligent contract, circulation of property expenses based on the intelligent contract, election of an owner committee based on the intelligent contract and the like.
Taking a community engineering construction project voting scene based on an intelligent contract as an example, based on the data processing method provided by the embodiment, a block chain network can construct a platform for information disclosure decision between a property platform and a property owner, the property provides engineering construction plan information, and the property owner performs voting approval on the engineering construction plan information to decide whether to implement. Because the block chain has the characteristics of decentralized multi-node backup data and tamper-proof traceability, the data can be publicly and transparently traced, each owner has the right to participate in the engineering construction of a decision cell, and the service quality of the property is fully improved.
By taking a property expense flow scene based on an intelligent contract as an example, the data processing method provided by the scheme can disclose property expense payment and use conditions to a blockchain network, so that the flow condition of capital is jointly supervised by owners, the problem of capital appropriation and abuse is effectively avoided, and the open transparency of capital flow direction is realized.
By taking an owner committee election scene based on an intelligent contract as an example, based on the data processing method provided by the scheme, an owner carries out committee member voting through a block chain network, so that an owner committee with public credibility is generated, the problem of voting cost is effectively avoided, and the transparent openness and traceability of voting are fully improved.
It is to be understood that the data processing system described in the embodiment of the present invention is for more clearly illustrating the technical solution of the embodiment of the present invention, and does not constitute a limitation to the technical solution provided in the embodiment of the present invention, and as a person having ordinary skill in the art knows that along with the evolution of the system framework and the appearance of a new service scenario, the technical solution provided in the embodiment of the present invention is also applicable to similar technical problems.
Fig. 2 is a schematic flow chart of a data processing method according to an embodiment of the present invention. As shown in FIG. 2, the data processing method may include steps 201 to 205. Wherein:
201. at least one first client sends first transaction data to the blockchain network.
Specifically, after at least one first client sends the first transaction data to the blockchain network, the blockchain receives the first transaction data. The first client is a client corresponding to the owner. Wherein the first transaction data comprises a project voting result of the first client, the project voting result being used for indicating that the first client votes for project information or fails to vote, such as: if the project is approved to be constructed, the project is passed, and if the project is not approved to be constructed, the project is not passed. Optionally, the first transaction data may further include an identification of the owner, such as: may be the owner's ID, number or name, etc.
As an optional implementation manner, before sending the first transaction data, the first client may compare whether the uplink project information is the same as the project information content issued by the property platform, where the uplink project information is the project information that the property uploads to the blockchain network in advance, the property links the project information and uploads the digest hash of the project information to the property owner platform, and the property owner may query the project information on the blockchain network through the digest hash of the project information. By executing the embodiment, the owner can verify the project information and avoid the project information from being tampered.
202. And the block chain network performs consensus processing on each first transaction data to obtain first target transaction data which are passed by consensus.
Specifically, the first target transaction data includes at least one first transaction data, wherein the first target transaction data is a first transaction data passing consensus. After the consensus passes, the project voting result and the abstract hash of the project information can be used as a Key word (Key), and the project voting result can be written into an intelligent contract as a Value (Value).
As an optional implementation manner, the first transaction data may include a digest hash of the item information, and when performing consensus processing on the first transaction data, it may be determined whether the first preset database includes the digest hash of the item information and whether target item information matching the digest hash of the item information exists, and compare the digest hash of the target item information with the digest hash of the item information. And if the first preset database contains the summary hash of the item information, target item information matched with the summary hash of the item information exists, and the summary hash of the target item information is the same as the summary hash of the item information, determining that the first transaction data passes consensus. The first preset database is a database where the abstract hash of the project information published by the property platform is located. And performing keyword search on the summary hash of the item information to obtain matched target item information. Specifically, if the abstract hash of the item information exists in the first preset database, it is indicated that the item information is issued by the property platform; and if the digest hash of the target item information is the same as the digest hash of the item information, determining that the item information is accurate. By executing the embodiment, the accuracy of the item information of the current voting can be ensured, and the item information is prevented from being unreleased or tampered.
As an optional implementation manner, it may be further determined whether the digest hash of the item information and the item voting result of the first client exist in the third preset database, if not, the item voting result passes the consensus, and if so, an execution failure result is returned. By executing the embodiment, whether the owner votes can be checked, the accuracy of the voting result is ensured, and the risk of repeated voting is reduced.
As an optional implementation manner, the first transaction data may include a digest hash of the first digital certificate and a first public key, and when performing consensus processing on the first transaction data, it may be determined whether the second preset database includes the digest hash of the first digital certificate, a target digital certificate matching the digest hash of the first digital certificate is determined, where the target digital certificate carries the target public key, and it is determined whether the first public key is the same as the target public key. And if the second preset database contains the digest hash of the first digital certificate and the first public key is the same as the target public key carried by the target digital certificate, determining that the first transaction data passes the consensus. The first digital certificate is generated by a certificate authority according to a first public key and user information sent by the first client.
A detailed description of how the first digital certificate is generated follows. The method comprises the following steps that an owner creates a key pair by adopting an asymmetric encryption algorithm, wherein the key pair comprises a public key and a private key; asymmetric encryption algorithms herein may include, but are not limited to: the Elgamal algorithm (an asymmetric encryption algorithm), the Rabin algorithm (an asymmetric encryption algorithm), the Diffie-Hellman algorithm (an asymmetric encryption algorithm), the ECC algorithm (elliptic curve encryption algorithm). The method comprises the steps that a proprietor signs a signature through a private key through a client, then the signature, a public key and proprietor identity information are submitted to a Certificate Authority (CA), the Certificate Authority (CA) issues a Certificate for the proprietor after receiving an application, and the proprietor Certificate is packaged into a transaction and sent to a blockchain network. And the blockchain network calls the virtual machine to execute the transaction after receiving the transaction request. Specifically, the digest hash of the owner Certificate is queried, if the digest hash of the owner Certificate does not exist, consensus is achieved, after the consensus passes, the digest hash of the owner Certificate is used as a Key (Key), the owner Certificate is written into the smart contract as a Value (Value), and the consensus result and the digest hash of the owner Certificate are returned to a Certificate Authority (CA), so that the Certificate Authority (CA) sends the digest hashes of the owner Certificate and the owner Certificate to the owner.
By executing the embodiment, the identity information of the owner can be verified, and the first transaction data is determined to be sent by the owner corresponding to the first client, so that the traceability of the voting information is realized.
203. And the block chain network obtains item result information of the item information according to the item voting result contained in the first target transaction data.
Specifically, the blockchain network may add a hash of the voting result indicating agreement or disagreement of the item in the agreed first target transaction data and the first transaction data triggered by each owner to the blockchain network. Meanwhile, based on the voting result agreed or disagreeed by each owner, the vote count is counted to obtain final project result information, and the project result information is used for indicating whether the project can be implemented or not finally.
As an alternative, the statistics of the number of votes may be that the voting result of the project is determined as the agreed amount and the total voting amount of the project, and the voting result is calculated as the ratio between the agreed amount and the total voting amount. If the ratio is larger than the preset ratio threshold, the state of the item is determined to be passed, and the implementation is carried out, and if the ratio is smaller than the preset ratio threshold, the state of the item is determined to be failed, and the implementation is not carried out. For example: the predetermined ratio threshold may be 2/3, and if the number of voting grants is 90, the total number of votes is 120, the ratio is 3/4, and is greater than the predetermined ratio threshold 2/3, then the status of the project is determined to be passed and implemented. By executing the embodiment, effective statistics can be carried out on votes of owners, and the wishes of the owners can be fully respected.
204. And the block chain network carries out uplink processing on the project result information.
Specifically, a first chunk including item result information may be generated and added to the chain of chunks.
For example, as shown in fig. 3, the blockchain network includes blockchain nodes 1 to blockchain nodes 3. After receiving the item result information, the blockchain node 1 forwards the item result information to the blockchain node 2 and the blockchain link node 3. After each blockchain node receives the project result information, a blockchain network node (e.g., the blockchain node with the largest proven workload) may generate a new block including the project result information, and broadcast the new block to other blockchain nodes. After the blockchain network node sends the new block, the new block is added to the blockchain. After each other blockchain node receives the new block, the new block is also added to the blockchain.
205. And the block chain network sends the project result information to each first client and the property platform.
Specifically, the block chain sends project result information to each first client and the property platform, and the project result information is used for indicating whether the project is finally implemented or not after voting statistics. The message sent to the first client can be a mobile phone terminal, a mailbox and the like.
It can be seen that by implementing the method described in fig. 2, the owners can vote on the project to determine whether the project passes, the block chain network can verify the project information and the vote of each owner, and perform vote count statistics and uplink on the voting result after the verification passes, thereby realizing the public transparency and traceability of the vote, enabling each owner to have the right to participate in the project construction of the decision-making cell, and fully improving the service quality of the property.
Referring to fig. 4, which is a flow chart of a data processing method according to another embodiment of the present invention, referring to fig. 4, the data processing method may include the following steps 401 to 409. Wherein:
401. the property platform sends the second transaction data to the blockchain network.
Specifically, after the property platform sends the second transaction data to the blockchain network, the blockchain network receives the second transaction data sent by the property platform. Wherein the second transaction data includes item information. Optionally, the property platform may further store backup data of the item information, so that the property owner compares and verifies the item information published on the property platform and the item information published on the chain.
402. And the blockchain network performs consensus processing on the second transaction data.
Specifically, the blockchain network performs consensus processing on the second transaction data to obtain fourth target transaction data, where the fourth target transaction data is the second transaction data passing consensus.
As an optional implementation, the blockchain network may further perform verification on a third digital signature of the second transaction data before performing consensus processing on the second transaction data, where the third digital signature is a signature of the property platform on the second transaction data. The property platform may specifically send the second transaction data and the third digital signature to the blockchain network. Correspondingly, after the blockchain network receives the second transaction data and the third digital signature, the blockchain network verifies the third digital signature, and if the third digital signature passes the verification, the second transaction data is determined to be legal.
The following describes how the third digital signature is verified. For example, taking a hash algorithm as an example, the property platform performs a hash operation on the second transaction data to obtain a hash value 1. And the property platform signs the hash value 1 by adopting a private key of the property platform to obtain a third digital signature, and then sends the second transaction data and the third digital signature to the block chain node. Correspondingly, the block link point can decrypt the third digital signature through the public key of the property platform to obtain a hash value 1, and then hash operation is performed on the second transaction data to obtain a hash value 2. If hash value 2 is the same as hash value 1, the block link node pair verifies the third digital signature successfully.
Based on the optional mode, the property platform can sign the second transaction data, and the safety of the second transaction data is improved. Meanwhile, if the information carried by the second transaction data is tampered, the blockchain network can detect that the information is tampered by checking the second transaction data, so that the risk of information tampering is reduced.
As an optional implementation manner, the second transaction data may include a digest hash of the item information, and when performing consensus processing on the first transaction data, it may be determined whether the first preset database includes the digest hash of the item information, and if the first preset database does not include the digest hash of the item information, it is determined that the first transaction data passes consensus. By executing this embodiment, it can be determined that the item information has not been distributed, and repeated distribution of the item information can be avoided.
As an optional implementation manner, the second transaction data may include a digest hash of the second digital certificate and a second public key, and when performing consensus processing on the second transaction data, it may be determined whether the second preset database includes the digest hash of the second digital certificate, determine a target digital certificate matching the digest hash of the second digital certificate, where the target digital certificate carries the target public key, and determine whether the target public key of the target digital certificate matching the digest hash of the second digital certificate is the same as the second public key. And if the second preset database contains the digest hash of the second digital certificate and the second public key is the same as the target public key of the target digital certificate matched with the digest hash of the second digital certificate, determining that the second transaction data passes the consensus. And the second digital certificate is generated by the certificate authority according to the second public key, the property identity information and the property qualification information sent by the property platform. The detailed generation process thereof can be seen in the generation method of the first digital certificate in step 202. By executing the embodiment, the identity information of the property can be verified, and the second transaction data is determined to be sent by the property platform, so that the authenticity of the project information is verified.
403. And the block chain network carries out uplink processing on the project information.
Specifically, after the second transaction data passes the consensus, the blockchain network performs uplink processing on the item information in the second transaction data. The item information may also be written into the intelligent contract as a Value (Value), and at the same time, the digest hash of the item information is written into the intelligent contract as a Key (Key) and the first transaction hash is written into the intelligent contract as a Value (Value).
Optionally, a second chunk including the item information may be generated and added to the chunk chain. The detailed uplink procedure for the second block can be seen in the uplink method for the first block in step 204.
As an alternative embodiment, the blockchain network may send the digest hash of the project information and the second transaction data hash to the property platform after the uplink processing is performed on the project information. The property platform can issue the summary hash of the project information to the owner platform after receiving the summary hash of the project information and the second transaction data hash sent by the blockchain network, so that the owner can check the project information in the blockchain network according to the summary hash of the project information.
By executing the steps 401 to 403 in the embodiment, the property platform uploads project information needing voting approval so that the owners vote for the project, thereby realizing the transparency of the information, ensuring that each owner has the right to participate in the engineering construction of the decision-making cell, and fully improving the service quality of the property.
404. At least one first client sends first transaction data to the blockchain network.
For a specific implementation of step 404, reference may be made to the description of step 201, which is not described herein again. Wherein the first transaction request further includes a first digital signature.
405. The blockchain network verifies the first digital signature according to the public key of the first client.
Specifically, the first digital signature is a signature of the first client to the first transaction request. If the first digital signature passes the verification, the step of performing consensus processing on each first transaction data is executed, that is, step 406, and if the first digital signature fails the verification, a verification failure result is returned.
In particular, the first client may send the first transaction data and the first digital signature to the blockchain network. Correspondingly, after the blockchain network receives the first transaction data and the first digital signature, the blockchain network verifies the first digital signature, and if the first transaction data passes the verification, the first transaction data is determined to be legal. The detailed verification process can be seen in the verification method of the third digital signature in step 402.
By executing steps 404 and 405 in this embodiment, the property platform can sign the first transaction data, thereby preventing the first transaction data from being tampered, and improving the security of the first transaction data.
406. And the block chain network performs consensus processing on each first transaction data to obtain first target transaction data which are passed by consensus.
407. And the block chain network obtains item result information of the item information according to the item voting result contained in the first target transaction data.
408. The blockchain network performs uplink processing on the project result information,
409. and the block chain network sends the project result information to each first client and the property platform.
The specific implementation of steps 406 to 409 can be referred to the description of steps 202 to 205, which is not described herein.
It can be seen that by implementing the method described in fig. 4, the property can upload project information first, the block chain network can check the project information, and link up the chain after the check is passed for the owners to check and vote to determine whether the project passes, the block chain network can check the project information and the vote of each owner, and perform vote counting and link up on the voting result after the check is passed, thereby implementing transparent and traceable information transmission between the property and the owners, enabling each owner to have the right to participate in the construction of decision-making cell projects, and fully improving the service quality of the property.
In order to better understand the embodiment of the present invention, a voting scenario of a cell engineering construction project is taken as an example, and a voting process for the project is described in detail below.
The property of the community A determines to add the fitness equipment in the community square, the property issues a project plan book of the added fitness equipment to the property platform, meanwhile, the project plan book is uploaded to the block chain network through the property platform, and the block chain network verifies that the project plan book is really sent by the property platform. Meanwhile, if the project plan is not published after being inquired, sending the abstract hash of the project plan to the property, publishing the abstract hash of the project plan on a property owner platform by the property owner, checking the project plan on a block chain network through the abstract hash of the project plan by the property owner, submitting a voting result which passes the examination and approval on the block chain network if the property owner a agrees to add a new fitness device, and submitting a voting result which does not pass the examination and approval on the block chain network if the property owner b disagrees with the new fitness device. The method comprises the steps that the identity of an owner a and an owner b is verified through a blockchain network, meanwhile, the owner a and the owner b are judged not to vote for a project plan book before, the voting of the owner a and the owner b is judged to be effective voting, after the voting is finished, the blockchain network counts voting results, statistics shows that when the project plan book is voted, all the generated effective votes have 120 votes, 90 votes are cast, 30 votes are cast, the ratio of the number of the votes cast to the total number of the votes is 3/4 and is larger than 2/3, a cell A passes through the project plan book of a newly added fitness apparatus, and the cell A can be newly added with the fitness apparatus.
Fig. 5 is a schematic flow chart of a data processing method according to an embodiment of the present invention. As shown in FIG. 5, the data processing method may include steps 501-508. Wherein:
501. and the property platform sends third transaction data to the blockchain network.
Specifically, after the property platform sends the third transaction data to the blockchain network, the blockchain network receives the third transaction data. The third transaction data includes resource information of each first client and a sum of resource amounts, where the sum of resource amounts is obtained by adding resource amounts included in the resource information of each first client. Optionally, the resource information may be a resource payment credential obtained by the owner on a third party payment platform, where the third party payment platform may be a bank, a property platform, a QQ wallet, and the like. The resource amount may be an actual monetary amount, for example: 10 yuan renowned folk coins and 100 yuan renowned folk coins. The sum of the resource amounts is the sum of the amount of money paid by each owner, for example: two owners are in total, wherein, the owner a pays 10 yuan, and the owner b pays 20 yuan, so the total amount of resources is 30 yuan.
502. And the blockchain network performs consensus processing on the third transaction data.
Specifically, the blockchain network performs consensus processing on the third transaction data. A fifth target transaction data passing the consensus may be obtained, wherein the fifth target transaction data is a third transaction data passing the consensus.
As an optional implementation, before performing the consensus process on the third transaction data, the blockchain network may further perform verification on a fourth digital signature of the third transaction data, where the fourth digital signature is a signature of the property platform on the third transaction data. The property platform may specifically send the third transaction data and the fourth digital signature to the blockchain network. Correspondingly, after receiving the third transaction data and the fourth digital signature, the blockchain network verifies the fourth digital signature, and if the fourth digital signature passes the verification, the third transaction data is determined to be legal. The detailed verification process can be seen in the verification method of the third digital signature in step 402.
503. And the block chain network carries out uplink processing on the sum of the resource information and the resource quantity of each first client.
Specifically, a third chunk including the sum of the resource information and the resource amount of each first client may be generated, and the third chunk is added to the chunk chain. The detailed uplink procedure of the third block can be seen in the uplink method of the first block in step 204.
As an alternative embodiment, after performing uplink processing on the resource information and the sum of the resource amount of each first ue, the blockchain network may return an uplink result to the property platform, where the result may include the currently existing resource amount, for example: the amount of money is 50000 yuan.
504. And the property platform sends fourth transaction data to the blockchain network.
Specifically, after the property platform sends the fourth transaction data to the blockchain network, the blockchain network receives the fourth transaction data sent by the property platform. Wherein the fourth transaction data includes pipelined resource information for indicating resource consumption of the item. For example: 10000 yuan for purchasing equipment, 5000 yuan for site construction, and the like.
505. And the block chain network performs consensus processing on the fourth transaction data to obtain second target transaction data which passes the consensus.
As an optional implementation manner, before performing the consensus processing on the fourth transaction data, the blockchain network may further verify a fifth digital signature of the fourth transaction data, where the fifth digital signature is a signature of the property platform on the fourth transaction data. The property platform may specifically send the fourth transaction data and the fifth digital signature to a blockchain network. Correspondingly, after receiving the fourth transaction data and the fifth digital signature, the blockchain network verifies the fifth digital signature, and if the verification is passed, the fourth transaction data is determined to be legal. The detailed verification process can be seen in the verification method of the third digital signature in step 402.
506. And the block chain network obtains the residual resource information of the fourth transaction data according to the sum of the resource amount and the resource consumption amount contained in the second target transaction data.
Specifically, the remaining resource information is obtained according to a difference between a sum of the resource amounts and the resource consumption amount. Wherein the resource amount may be an actual monetary amount. For example: at present, the sum of the existing money amount is 50000 yuan, the consumption of purchasing equipment is 10000 yuan, the consumption of site construction is 5000 yuan, and the residual resource amount contained in the residual resource information is 35000 yuan.
507. The blockchain network performs uplink processing on the flow resource information and the remaining resource information,
specifically, a fourth block including the pipeline resource information and the remaining resource information may be generated, and the fourth block may be added to the block chain. The detailed uplink procedure for the fourth block can be seen in the uplink method for the first block in step 204. The remaining resource information includes a remaining resource amount, which is obtained by deducting the running water resource amount from the total resource amount, and the resource amount may be an actual monetary amount. For example: at present, the sum of the existing money amount is 50000 yuan, the purchased equipment is 10000 yuan, the site construction is 5000 yuan, and the residual resource amount is 35000 yuan.
508. The blockchain network sends the remaining resource information to the first client and the property platform.
Specifically, the blockchain network sends the remaining resource information to the first client and the property platform, where the remaining resource information is sent to the first client, and the remaining resource information may be a mobile phone terminal, a mailbox, or the like.
As an optional implementation manner, the digest hash of the pipeline resource information may also be sent to the first client, so that the owner views the pipeline resource information through the blockchain network. The running water resource information may also include invoice information, and the invoice is an invoice corresponding to each running water expense for implementing the project.
It can be seen that by implementing the method described in fig. 5, the property can link the collected project funds and the assembly sales on the project for the owner to view through the blockchain network, so that the fund transfer condition is jointly supervised by the owner, the abuse problem of fund transfer is effectively avoided, the property fee payment and the public transparent traceability of the use condition are realized,
in order to better understand the embodiment of the present invention, a detailed description is given below to a voting process for a project by taking a cell engineering construction project expense circulation scenario as an example.
The property of district A decides to increase the fitness equipment newly in the district square, through raising the fund to the owner, the total amount 50000 yuan that the property will be raised is raised to 50000 yuan altogether, and the expense condition that every owner paid, for example: and the owner a pays 100 yuan, the owner b pays 80 yuan, and the like, and the information is sent to the block chain network for the common identification uplink. Meanwhile, when a project of newly adding fitness equipment to a residential square is implemented, 10000 Yuan for purchasing the equipment and 5000 Yuan for site construction, and 15000 Yuan in total, the property sends 10000 Yuan for purchasing the equipment, 5000 Yuan for site construction and two items of invoice information to a block chain network, the block chain network deducts 15000 Yuan for spending on the basis of 50000 Yuan, and the rest fund is 35000 Yuan. The blockchain network links the amount spent, the invoices and the remaining funds for the owner to view detailed fund flow in the blockchain network.
Fig. 6 is a schematic flow chart of a data processing method according to an embodiment of the present invention. As shown in FIG. 6, the data processing method may include 601 to 607 steps. Wherein:
601. the at least one first client sends the fifth transaction data to the blockchain network.
Specifically, after the at least one first client sends the fifth transaction data to the blockchain network, the blockchain network receives the fifth transaction data. Wherein the fifth transaction data includes a committee voting result of the first client, the committee voting result including a first client identification selected by the first client in committee candidate information, the committee candidate information including at least one first client identification. For example: and the owner a selects the owner b as a new committee member, and then the owner a sends the client identifier of the owner b to the block chain network. Optionally, the fifth transaction data may further include a committee contract ID, which may be used to trigger a proprietary committee election vote.
602. And the block chain network performs consensus processing on the fifth transaction data to obtain third target transaction data which passes the consensus.
Specifically, the third target transaction data includes at least one fifth transaction data, where the third target transaction data is a fifth transaction data passing consensus.
As an optional implementation manner, before performing the consensus process on the fifth transaction data, the blockchain network may further perform verification on a sixth digital signature of the fifth transaction data, where the sixth digital signature is a signature of the first client on the fifth transaction data. The first client may specifically send the fifth transaction data and the sixth digital signature to the blockchain network. Correspondingly, after receiving the fifth transaction data and the sixth digital signature, the blockchain network verifies the sixth digital signature, and if the verification is passed, the fifth transaction data is determined to be legal. The detailed verification process can be seen in the verification method of the third digital signature in step 402.
As an optional implementation manner, it may be further determined whether a committee voting result of the first client exists in the fourth preset database, if not, the committee voting result passes consensus, and if so, an execution failure result is returned. By executing the embodiment, whether the owner votes can be checked, the accuracy of the voting result is ensured, and the risk of repeated voting is reduced.
As an optional implementation manner, the fifth transaction data may include a digest hash of the first digital certificate and the first public key, and when performing consensus processing on the fifth transaction data, it may be determined whether the second preset database includes the digest hash of the first digital certificate, determine a target digital certificate matching the digest hash of the first digital certificate, where the target digital certificate carries the target public key, and determine whether the target public key of the target digital certificate matching the digest hash of the first digital certificate is the same as the first public key. And if the second preset database contains the digest hash of the first digital certificate and the first public key is the same as the target public key of the target digital certificate matched with the digest hash of the first digital certificate, determining that the fifth transaction data passes the consensus. The first digital certificate is generated by a certificate authority according to a first public key and user information sent by the first client. The detailed generation process thereof can be seen in the generation method of the first digital certificate in step 202. By executing the embodiment, the identity information of the owner can be verified, and the fifth transaction data is determined to be sent by the owner corresponding to the first client, so that the traceability of the voting information is realized.
As an optional implementation manner, the blockchain network may further determine whether the receiving time of the fifth transaction data exceeds a preset time point, if so, return a result of execution failure, and if not, determine that the fifth transaction data passes consensus.
603. The second client sends the sixth transaction data to the blockchain network.
Specifically, the second client may send the sixth transaction data to the blockchain network through the owner platform, and the blockchain network receives the sixth transaction data. The sixth transaction data includes a second digital signature, the second digital signature is obtained by a second client signing the sixth transaction data by using a private key of the second client, the second client is a client corresponding to the last committee, and the second digital signature is used for triggering generation of committee result information.
604. And the blockchain network verifies the second digital signature according to the public key of the second client.
Specifically, if the second digital signature is verified, the step of obtaining committee result information of the committee information based on the committee voting result included in the third target transaction data, that is, step 605, is executed, and if the verification fails, a result of the verification failure is returned. The detailed verification process can be seen in the verification method of the third digital signature in step 402.
605. The blockchain network obtains committee result information of the committee information according to the committee voting result included in the third target transaction data.
In particular, the blockchain network may add to the blockchain network voting results indicating the committee votes in the consensus third target transaction data. Meanwhile, based on the committee voting result, the vote count is counted to obtain final committee result information, and the committee result information is used for indicating final people selection of the committee. The statistical method of the votes may be that the first few votes with the largest votes are selected as a new committee of the same owner. For example: and if each owner can cast one candidate, each owner sends the identifier of the candidate to the block chain network, and the votes of the owners voting each are counted, and the result of the ranking of the votes from high to low is that 20 owners cast owner a, 15 owners cast owner b, 10 owners cast owner c and the like. If the number of the owners' committees is 3, the owner a, the owner b, and the owner c become a new owner committee.
606. The blockchain network performs uplink processing on the committee result information.
Specifically, a fifth block including committee result information may be generated and added to the block chain. The detailed uplink procedure of the fifth block can be seen in the uplink method of the first block in step 204.
607. The blockchain network sends committee result information to each of the first client and the second client.
Specifically, the blockchain sends committee result information to each of the first client and the second client, wherein the committee result information is used for indicating the people selection of a new committee member after voting statistics. The message sent to the first client can be a mobile phone terminal, a mailbox and the like. Alternatively, the property platform may detect and view the committee result information by connecting the blockchain platform.
It can be seen that by implementing the method described in fig. 6, the owners can vote on the personal elections of the committee members to determine new committee members, the block chain network can verify the votes of each owner, and meanwhile, the previous owner committee needs to sign the election to trigger the ticket counting and uplink process, so that the voting is publicly transparent and traceable, the condition of ticket number counterfeiting is avoided, each owner has the right to participate in the election of the owner committee, and the will of the owners is fully respected.
In order to better understand the embodiment of the present invention, the voting process of the proprietary committee is described in detail below by taking the proprietary committee voting scenario as an example.
Cell a is prepared to conduct an owner's committee change activity, requiring each owner to vote on the new owner's committee's election, owner a votes owner b through the blockchain network, owner b votes owner c through the blockchain network, owner c votes owner d through the blockchain network, and so on. The block chain network verifies the identities of the owners, such as the owner a, the owner b, the owner c, and the like, and judges that the votes of the owners, such as the owner a, the owner b, the owner c, and the like, are valid votes, and then statistics is performed on the voting results, and the result of ranking the votes from high to low is found by statistics, that 20 owners cast the owner a, 15 owners cast the owner b, 10 owners cast the owner c, and the like. If the number of the owners' committees is 3, the owner a, the owner b, and the owner c become a new owner committee.
Based on the description of the above method embodiment, the embodiment of the present invention further provides a data processing apparatus. The data processing apparatus may be a computer program (comprising program code) running in a processing device; referring to fig. 7, the data processing apparatus may operate as follows:
a transceiving unit 701, configured to receive first transaction data sent by at least one first client, where the first transaction data includes an item voting result of the first client, and the item voting result is used to indicate that the first client votes for an item information or fails to vote;
a processing unit 702, configured to perform consensus processing on each first transaction data to obtain first target transaction data that passes consensus, where the first target transaction data includes at least one first transaction data; obtaining item result information of the item information according to an item voting result contained in the first target transaction data; performing uplink processing on the project result information;
the transceiver 701 is further configured to send the project result information to each of the first client and the property platform.
In an embodiment, before receiving the first transaction data sent by the at least one first client, the transceiver 701 may be further configured to receive second transaction data sent by the property platform, where the second transaction data includes the item information;
the processing unit 702 is further configured to perform consensus processing on the second transaction data;
and when the common identification passes, performing uplink processing on the project information.
In yet another embodiment, the first transaction data includes a digest hash of the item information;
the processing unit 702 performs consensus processing on each of the first transaction data, respectively, including:
judging whether a first preset database contains the abstract hash of the item information or not, judging whether target item information matched with the abstract hash of the item information exists or not, and comparing the abstract hash of the target item information with the abstract hash of the item information;
and if the first preset database contains the summary hash of the item information, target item information matched with the summary hash of the item information exists, and the summary hash of the target item information is the same as the summary hash of the item information, determining that the first transaction data passes consensus.
In yet another embodiment, the first transaction data further includes a digest hash of the first digital certificate and a first public key;
the processing unit 702 performs consensus processing on each of the first transaction data, respectively, including:
judging whether a second preset database contains the digest hash of the first digital certificate, wherein the first digital certificate is generated by a certificate authority according to the first public key and user information sent by the first client;
determining a target digital certificate matched with the digest hash of the first digital certificate, wherein the target digital certificate carries a target public key;
judging whether the first public key is the same as the target public key or not;
and if the second preset database contains the digest hash of the first digital certificate and the first public key is the same as a target public key carried by the target digital certificate, determining that the first transaction data passes the consensus.
In another embodiment, the processing unit 702 may be further configured to determine an item voting result included in each first target transaction data, where the item voting result is obtained according to an item voting result included in the first target transaction data that is passed through by consensus;
calculating a ratio between the amount of first target transaction data for which the item voting result indicates a vote pass and the sum of the amounts of the first target transaction data;
if the ratio is larger than a preset ratio threshold, generating project result information of the project information, wherein the project result information is used for indicating that the project information is voted for passing;
and if the ratio is smaller than or equal to the preset ratio threshold, generating project result information of the project information, wherein the project result information is used for indicating that the voting on the project information fails.
In another embodiment, the first transaction data includes a first digital signature, and the first digital signature is obtained by the first client signing the first transaction data by using a private key of the first client;
before the respective consensus processing is performed on each of the first transaction data, the processing unit 702 may be configured to verify the first digital signature according to the public key of the first client;
and if the first digital signature passes the verification, executing the step of respectively carrying out consensus processing on the first transaction data.
In another embodiment, the transceiver 701 is further configured to receive third transaction data sent by the property platform, where the third transaction data includes resource information of each first client and a sum of resource amounts, and the sum of resource amounts is obtained by adding resource amounts included in the resource information of each first client;
a processing unit 702, further operable to perform consensus processing on the third transaction data;
and when the common identification passes, performing uplink processing on the sum of the resource information and the resource amount of each first client.
In another embodiment, the transceiver 701 may be further configured to receive fourth transaction data sent by the property platform, where the fourth transaction data includes pipelined resource information, and the pipelined resource information is used to indicate resource consumption of an item;
the processing unit 702 is further configured to perform consensus processing on the fourth transaction data to obtain second target transaction data that is agreed; obtaining the residual resource information of the fourth transaction data according to the resource amount sum and the resource consumption included in the second target transaction data, wherein the residual resource information is obtained according to the resource amount sum and the difference value of the resource consumption; performing uplink processing on the flow resource information and the residual resource information;
the transceiver 701 is further configured to send the remaining resource information to each of the first client and the property platform.
In yet another embodiment, the transceiver unit 701 is further configured to receive fifth transaction data sent by at least one first client, where the fifth transaction data includes a committee voting result of the first client, the committee voting result includes a first client identifier selected by the first client in committee candidate information, and the committee candidate information includes at least one first client identifier;
the processing unit 702 is further configured to perform consensus processing on each fifth transaction data to obtain third target transaction data that passes consensus, where the third target transaction data includes at least one fifth transaction data; obtaining committee result information of the committee information according to a committee voting result included in the third target transaction data; performing uplink processing on the committee result information;
the transceiver 701 may be further configured to send the committee result information to each of the first client and the second client.
In yet another embodiment, before obtaining committee result information of the committee information according to the committee voting result included in the second target transaction data, the transceiver 701 may be further configured to receive sixth transaction data sent by the second client, where the sixth transaction data includes a second digital signature, the second digital signature is obtained by the second client by signing the sixth transaction data with a private key of the second client, and the second digital signature is used to trigger generation of the committee result information;
the processing unit 702 is further configured to verify the second digital signature according to the public key of the second client;
and if the second digital signature is verified, performing a step of obtaining committee result information of the committee information according to a committee voting result included in the third target transaction data.
According to an embodiment of the present invention, some steps involved in the data processing methods shown in fig. 2, 4, 5 and 6 may be executed by a processing unit in the data processing apparatus. For example, steps 201 and 205 shown in fig. 2 may be performed by the transceiving unit 701; as another example, step 202 shown in fig. 2 may be performed by processing unit 702. According to another embodiment of the present invention, the units in the data processing apparatus may be respectively or entirely combined into one or several other units to form one or several other units, or some unit(s) therein may be further split into multiple units with smaller functions to form the same operation, without affecting the achievement of the technical effects of the embodiments of the present invention.
Fig. 8 is a schematic structural diagram of a data processing apparatus according to an embodiment of the present invention, where the data processing apparatus includes a processor 801, a memory 802, and a communication interface 803, the processor 801, the memory 802, and the communication interface 803 are connected by at least one communication bus, and the processor 801 is configured to support the processing apparatus to execute functions corresponding to the processing apparatus in the methods shown in fig. 2, fig. 4, fig. 5, and fig. 6.
The memory 802 is used to store at least one instruction, which may be one or more computer programs (including program code), suitable for being loaded and executed by the processor.
The communication interface 803 is used for receiving data and for transmitting data. For example, the communication interface 803 is used to transmit first transaction data and the like.
In an embodiment of the present invention, the processor 801 may call the program code stored in the memory 802 to perform the following operations:
receiving first transaction data sent by at least one first client through the communication interface 803, wherein the first transaction data comprises an item voting result of the first client, and the item voting result is used for indicating that the first client votes for item information or fails to vote;
respectively carrying out consensus processing on each first transaction data to obtain first target transaction data passing consensus, wherein the first target transaction data comprises at least one first transaction data;
obtaining item result information of the item information according to an item voting result contained in the first target transaction data;
and performing uplink processing on the project result information, and sending the project result information to each of the first client and the property platform through the communication interface 803.
As an alternative embodiment, before receiving the first transaction data sent by the at least one first client, the processor 801 may call the program code stored in the memory 802 to perform the following operations:
receiving second transaction data sent by the property platform through a communication interface 803, wherein the second transaction data comprises the item information;
performing consensus processing on the second transaction data;
and when the common identification passes, performing uplink processing on the project information.
As an optional implementation, the first transaction data includes a digest hash of the item information;
the consensus process is performed on each of the first transaction data, and the processor 801 may call the program code stored in the memory 802 to perform the following operations:
judging whether a first preset database contains the abstract hash of the item information or not, judging whether target item information matched with the abstract hash of the item information exists or not, and comparing the abstract hash of the target item information with the abstract hash of the item information;
and if the first preset database contains the summary hash of the item information, target item information matched with the summary hash of the item information exists, and the summary hash of the target item information is the same as the summary hash of the item information, determining that the first transaction data passes consensus.
As an optional implementation, the first transaction data further includes a digest hash of the first digital certificate and the first public key;
the consensus process is performed on each of the first transaction data, and the processor 801 may call the program code stored in the memory 802 to perform the following operations:
judging whether a second preset database contains the digest hash of the first digital certificate, wherein the first digital certificate is generated by a certificate authority according to the first public key and user information sent by the first client;
determining a target digital certificate matched with the digest hash of the first digital certificate, wherein the target digital certificate carries a target public key;
judging whether the first public key is the same as the target public key or not;
and if the second preset database contains the digest hash of the first digital certificate and the first public key is the same as a target public key carried by the target digital certificate, determining that the first transaction data passes the consensus.
As an alternative embodiment, the processor 801 may call the program code stored in the memory 802 to perform the following operations according to the item voting result included in the first target transaction data that is agreed to pass and the item result information of the item information:
determining item voting results contained in each of the first target transaction data;
calculating a ratio between the amount of first target transaction data for which the item voting result indicates a vote pass and the sum of the amounts of the first target transaction data;
if the ratio is larger than a preset ratio threshold, generating project result information of the project information, wherein the project result information is used for indicating that the project information is voted for passing;
and if the ratio is smaller than or equal to the preset ratio threshold, generating project result information of the project information, wherein the project result information is used for indicating that the voting on the project information fails.
As an optional implementation manner, the first transaction data includes a first digital signature, and the first digital signature is obtained by the first client through signing the first transaction data by using a private key of the first client;
before performing consensus processing on each of the first transaction data, the processor 801 may call the program code stored in the memory 802 to perform the following operations:
verifying the first digital signature according to the public key of the first client;
and if the first digital signature passes the verification, executing the step of respectively carrying out consensus processing on the first transaction data.
As an alternative embodiment, the processor 801 may call the program code stored in the memory 802 to perform the following operations:
receiving third transaction data sent by the property platform through a communication interface 803, where the third transaction data includes resource information of each first client and a sum of resource amounts, and the sum of resource amounts is obtained by adding resource amounts included in the resource information of each first client;
performing consensus processing on the third transaction data;
and when the common identification passes, performing uplink processing on the sum of the resource information and the resource amount of each first client.
As an alternative embodiment, the processor 801 may call the program code stored in the memory 802 to perform the following operations:
receiving fourth transaction data sent by the property platform through a communication interface 803, wherein the fourth transaction data comprises pipeline resource information, and the pipeline resource information is used for indicating resource consumption of items;
performing consensus processing on the fourth transaction data to obtain second target transaction data passing consensus;
obtaining the residual resource information of the fourth transaction data according to the resource amount sum and the resource consumption included in the second target transaction data, wherein the residual resource information is obtained according to the resource amount sum and the difference value of the resource consumption;
and performing uplink processing on the flow resource information and the residual resource information, and sending the residual resource information to each of the first client and the property platform through a communication interface 803.
As an alternative embodiment, the processor 801 may call the program code stored in the memory 802 to perform the following operations:
receiving, via the communication interface 803, fifth transaction data sent by at least one first client, the fifth transaction data including a committee voting result of the first client, the committee voting result including a first client identification selected by the first client in committee candidate information, the committee candidate information including at least one first client identification;
respectively carrying out consensus processing on each fifth transaction data to obtain third target transaction data which passes consensus, wherein the third target transaction data comprises at least one fifth transaction data;
obtaining committee result information of the committee information according to a committee voting result included in the third target transaction data;
the committee result information is uplink processed and sent to each of the first and second ues via the communication interface 803.
As an alternative embodiment, before committee result information of the committee information is obtained according to the committee voting result included in the second target transaction data, the processor 801 may call the program code stored in the memory 802 to perform the following operations:
receiving, by the communication interface 803, sixth transaction data sent by the second client, where the sixth transaction data includes a second digital signature, and the second digital signature is obtained by the second client by signing the sixth transaction data with a private key of the second client, and the second digital signature is used to trigger generation of committee result information;
verifying the second digital signature according to the public key of the second client;
and if the second digital signature is verified, performing a step of obtaining committee result information of the committee information according to a committee voting result included in the third target transaction data.
Embodiments of the present invention also provide a computer-readable storage medium (Memory) that can be used to store computer software instructions for the processing device in the embodiments shown in fig. 2, 4, 5 and 6, and store at least one instruction suitable for being loaded and executed by a processor, where the instruction may be one or more computer programs (including program code).
The computer readable storage medium includes, but is not limited to, flash memory, hard disk, solid state disk.
Those of ordinary skill in the art would appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. The procedures or functions according to the embodiments of the invention are brought about in whole or in part when the computer program instructions are loaded and executed on a computer. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored on or transmitted over a computer-readable storage medium. The computer instructions may be transmitted from one website site, computer, server, or data center to another website site, computer, server, or data center by wire (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wirelessly (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that incorporates one or more of the available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., Solid State Disk (SSD)), among others.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (10)

1. A data processing method is applied to a blockchain node device, and comprises the following steps:
receiving first transaction data sent by at least one first client, wherein the first transaction data comprises an item voting result of the first client, and the item voting result is used for indicating that the first client votes for item information or does not vote;
respectively carrying out consensus processing on each first transaction data to obtain first target transaction data passing consensus, wherein the first target transaction data comprises at least one first transaction data;
obtaining item result information of the item information according to an item voting result contained in the first target transaction data;
and performing uplink processing on the project result information, and sending the project result information to each first client and each property platform.
2. The method of claim 1, wherein before receiving the first transaction data sent by the at least one first client, the method further comprises:
receiving second transaction data sent by the property platform, wherein the second transaction data comprises the item information;
performing consensus processing on the second transaction data;
and when the common identification passes, performing uplink processing on the project information.
3. The method of claim 1, wherein the first transaction data comprises a digest hash of the item information;
the respectively consensus processing of each first transaction data includes:
judging whether a first preset database contains the abstract hash of the item information or not, judging whether target item information matched with the abstract hash of the item information exists or not, and comparing the abstract hash of the target item information with the abstract hash of the item information;
and if the first preset database contains the summary hash of the item information, target item information matched with the summary hash of the item information exists, and the summary hash of the target item information is the same as the summary hash of the item information, determining that the first transaction data passes consensus.
4. The method of claim 1, wherein the first transaction data further comprises a digest hash of the first digital certificate and a first public key;
the respectively consensus processing of each first transaction data includes:
judging whether a second preset database contains the digest hash of the first digital certificate, wherein the first digital certificate is generated by a certificate authority according to the first public key and user information sent by the first client;
determining a target digital certificate matched with the digest hash of the first digital certificate, wherein the target digital certificate carries a target public key;
judging whether the first public key is the same as the target public key or not;
and if the second preset database contains the digest hash of the first digital certificate and the first public key is the same as a target public key carried by the target digital certificate, determining that the first transaction data passes the consensus.
5. The method of claim 1, wherein obtaining item result information of the item information according to an item voting result included in the consensus-passed first target transaction data comprises:
determining item voting results contained in each of the first target transaction data;
calculating a ratio between the amount of first target transaction data for which the item voting result indicates a vote pass and the sum of the amounts of the first target transaction data;
if the ratio is larger than a preset ratio threshold, generating project result information of the project information, wherein the project result information is used for indicating that the project information is voted for passing;
and if the ratio is smaller than or equal to the preset ratio threshold, generating project result information of the project information, wherein the project result information is used for indicating that the voting on the project information fails.
6. The method of claim 1, wherein the first transaction data comprises a first digital signature, wherein the first digital signature is signed by the first client using a private key of the first client;
before the performing consensus processing on each of the first transaction data, the method further includes:
verifying the first digital signature according to the public key of the first client;
and if the first digital signature passes the verification, executing the step of respectively carrying out consensus processing on the first transaction data.
7. The method of claim 1, further comprising:
receiving third transaction data sent by the property platform, wherein the third transaction data comprises resource information and a resource amount sum of each first client, and the resource amount sum is obtained by adding resource amounts contained in the resource information of each first client;
performing consensus processing on the third transaction data;
and when the common identification passes, performing uplink processing on the sum of the resource information and the resource amount of each first client.
8. The method of claim 7, further comprising:
receiving fourth transaction data sent by the property platform, wherein the fourth transaction data comprises pipelining resource information, and the pipelining resource information is used for indicating resource consumption of items;
performing consensus processing on the fourth transaction data to obtain second target transaction data passing consensus;
obtaining the residual resource information of the fourth transaction data according to the resource amount sum and the resource consumption included in the second target transaction data, wherein the residual resource information is obtained according to the resource amount sum and the difference value of the resource consumption;
and performing uplink processing on the flow resource information and the residual resource information, and sending the residual resource information to each first client and each property platform.
9. The method of claim 1, further comprising:
receiving fifth transaction data sent by at least one first client, the fifth transaction data comprising committee voting results of the first client, the committee voting results comprising first client identifications selected by the first client in committee candidate information, the committee candidate information comprising at least one first client identification;
respectively carrying out consensus processing on each fifth transaction data to obtain third target transaction data which passes consensus, wherein the third target transaction data comprises at least one fifth transaction data;
obtaining committee result information of the committee information according to a committee voting result included in the third target transaction data;
and performing uplink processing on the committee result information, and sending the committee result information to each of the first client and the second client.
10. The method of claim 9, wherein before obtaining committee result information of the committee information based on the committee voting result included in the second target transaction data, the method further comprises:
receiving sixth transaction data sent by the second client, wherein the sixth transaction data comprise a second digital signature, the second digital signature is obtained by the second client by using a private key of the second client to sign the sixth transaction data, and the second digital signature is used for triggering generation of committee result information;
verifying the second digital signature according to the public key of the second client;
and if the second digital signature is verified, performing a step of obtaining committee result information of the committee information according to a committee voting result included in the third target transaction data.
CN201911144935.6A 2019-11-19 2019-11-19 Data processing method, device and medium Pending CN110910091A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911144935.6A CN110910091A (en) 2019-11-19 2019-11-19 Data processing method, device and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911144935.6A CN110910091A (en) 2019-11-19 2019-11-19 Data processing method, device and medium

Publications (1)

Publication Number Publication Date
CN110910091A true CN110910091A (en) 2020-03-24

Family

ID=69818335

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911144935.6A Pending CN110910091A (en) 2019-11-19 2019-11-19 Data processing method, device and medium

Country Status (1)

Country Link
CN (1) CN110910091A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115394005A (en) * 2022-08-23 2022-11-25 中电信数智科技有限公司 Method for anonymously voting in video conference

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109086622A (en) * 2018-07-25 2018-12-25 深圳慧安康科技有限公司 A kind of implementation method and node device of intelligence community
CN110300172A (en) * 2019-06-28 2019-10-01 深圳市网心科技有限公司 A kind of the common recognition method and relevant device of block chain data
CN110458543A (en) * 2019-07-31 2019-11-15 腾讯科技(深圳)有限公司 Data processing method, relevant device and medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109086622A (en) * 2018-07-25 2018-12-25 深圳慧安康科技有限公司 A kind of implementation method and node device of intelligence community
CN110300172A (en) * 2019-06-28 2019-10-01 深圳市网心科技有限公司 A kind of the common recognition method and relevant device of block chain data
CN110458543A (en) * 2019-07-31 2019-11-15 腾讯科技(深圳)有限公司 Data processing method, relevant device and medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115394005A (en) * 2022-08-23 2022-11-25 中电信数智科技有限公司 Method for anonymously voting in video conference
CN115394005B (en) * 2022-08-23 2023-08-18 中电信数智科技有限公司 Anonymous voting method in video conference

Similar Documents

Publication Publication Date Title
CN111464518B (en) Method and device for sending and verifying cross-link communication data
CN110245186B (en) Service processing method based on block chain and related equipment
CN109102269B (en) Transfer method and device based on block chain, block chain node and storage medium
CN110189128B (en) Distributed consensus method and device for block rapid generation
EP3779760B1 (en) Blockchain-based data processing method and apparatus, and electronic device
CN112632629B (en) Voting management method, device, medium and electronic equipment based on block chain
CN110602217B (en) Block chain-based alliance management method, device, equipment and storage medium
CN112132198A (en) Data processing method, device and system and server
CN111738725B (en) Cross-border resource transfer authenticity auditing method and device and electronic equipment
CN113256297B (en) Data processing method, device and equipment based on block chain and readable storage medium
CN110222529A (en) Assets management method, electronic equipment and computer storage medium based on alliance's chain
CN111416709B (en) Voting method, device, equipment and storage medium based on block chain system
CN112035350B (en) Test method and device for block chain system and computer equipment
CN111325585A (en) Asset transfer method, device and computer readable storage medium
CN111723159A (en) Data verification method and device based on block chain
Dash et al. Artificial intelligence models for blockchain-based intelligent networks systems: Concepts, methodologies, tools, and applications
CN111343212B (en) Message processing method, device, equipment and storage medium
CN110910091A (en) Data processing method, device and medium
CN111680282A (en) Node management method, device, equipment and medium based on block chain network
CN116821952A (en) Privacy data calculation traceability system and method based on block chain consensus mechanism
CN112039893B (en) Private transaction processing method and device, electronic equipment and readable storage medium
CN112132588A (en) Data processing method and device based on block chain, routing equipment and storage medium
Antal et al. Distributed Ledger Technology Review and Decentralized Applications Development Guidelines. Future Internet 2021, 13, 62
CN110766407A (en) Transaction verification method, accounting node and medium based on block chain
CN112541764B (en) Asset management method, device and system based on intelligent contract

Legal Events

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

Ref country code: HK

Ref legal event code: DE

Ref document number: 40021491

Country of ref document: HK

SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination