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

Data processing method and device based on block chain Download PDF

Info

Publication number
CN115632854A
CN115632854A CN202211284845.9A CN202211284845A CN115632854A CN 115632854 A CN115632854 A CN 115632854A CN 202211284845 A CN202211284845 A CN 202211284845A CN 115632854 A CN115632854 A CN 115632854A
Authority
CN
China
Prior art keywords
blockchain
service platform
block chain
encrypted data
data source
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
CN202211284845.9A
Other languages
Chinese (zh)
Inventor
徐惠
李敏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Advanced New Technologies Co Ltd
Original Assignee
Advanced New Technologies 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 Advanced New Technologies Co Ltd filed Critical Advanced New Technologies Co Ltd
Priority to CN202211284845.9A priority Critical patent/CN115632854A/en
Publication of CN115632854A publication Critical patent/CN115632854A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/04Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks
    • H04L63/0428Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/104Peer-to-peer [P2P] networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L2209/00Additional information or applications relating to cryptographic mechanisms or cryptographic arrangements for secret or secure communication H04L9/00
    • H04L2209/46Secure multiparty computation, e.g. millionaire problem

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Hardware Design (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

One or more embodiments of the present specification provide a data processing method and apparatus based on a blockchain, which are applied to a blockchain network including a service platform node device and a plurality of data source clients; the method comprises the following steps: the business service platform node equipment acquires a plurality of encrypted data sent by the plurality of data source clients; calculating the plurality of encrypted data based on preset safe multi-party calculation logic to obtain a target calculation result; and sending the first evidence storing information of the target calculation result to the block chain so as to enable the first evidence storing information to be recorded in a distributed database of the block chain after being identified and verified by the block chain.

Description

Data processing method and device based on block chain
Technical Field
The present disclosure relates to the field of data processing technologies, and in particular, to a data processing method and apparatus based on a block chain.
Background
The block chain technology, also called distributed ledger technology, is an emerging technology in which several computing devices participate in "accounting" together, and a complete distributed database is maintained together. The blockchain technology has been widely used in many fields due to its characteristics of decentralization, transparency, participation of each computing device in database records, and rapid data synchronization between computing devices.
Disclosure of Invention
In view of this, one or more embodiments of the present specification provide a data processing method, apparatus, computer device and computer-readable storage medium based on a block chain.
In order to achieve the above object, one or more embodiments of the present specification provide a data processing method based on a blockchain, which is applied in a blockchain network that includes a service platform node device and multiple data source clients; the method comprises the following steps:
the service platform node equipment acquires a plurality of encrypted data sent by the plurality of data source clients;
calculating the plurality of encrypted data based on preset safe multiparty calculation logic to obtain a target calculation result;
and sending the first evidence storing information of the target calculation result to the block chain so as to enable the first evidence storing information to be recorded in a distributed database of the block chain after being identified and verified by the block chain.
In another illustrated embodiment, the acquiring, by the service platform node device, a plurality of encrypted data sent by the plurality of data source clients includes:
and the service platform node equipment acquires a plurality of encrypted data sent by the plurality of data source clients based on an out-of-link channel.
In yet another illustrated embodiment, code associated with the pre-set secure multi-party computing logic or second evidence information for the code is maintained in a distributed database of the blockchain.
In another illustrated embodiment, the acquiring, by the service platform node device, a plurality of encrypted data sent by the plurality of data source clients includes:
and the service platform node equipment acquires a plurality of encrypted data sent by the plurality of data source clients from the distributed database of the block chain.
In another illustrated embodiment, the calculating, based on preset secure multi-party calculation logic, the plurality of encrypted data to obtain a target calculation result, and sending first credential information of the target calculation result to the blockchain, so that the first credential information is included in a distributed database of the blockchain after being verified by the blockchain consensus, includes:
calling an intelligent contract deployed on the blockchain, executing the intelligent contract statement security multiparty computation logic and a evidence storage logic, computing the encrypted data to obtain a target computation result, and generating first evidence storage information based on the target computation result, so that the first evidence storage information is recorded in a distributed database of the blockchain after being verified by the blockchain consensus.
In yet another illustrated embodiment, the blockchain is a federation chain, the service platform node device is a federation member node, and the plurality of data source clients are clients whose access to the blockchain is controlled by the service platform node device.
Correspondingly, the present specification also provides a data processing apparatus based on a block chain, which is applied to a block chain network including a service platform node device and a plurality of data source clients; the device is applied to the service platform node equipment end and comprises the following components:
the acquiring unit is used for acquiring a plurality of encrypted data sent by the plurality of data source clients;
the computing unit is used for computing the encrypted data to obtain a target computing result based on preset safe multiparty computing logic;
and the sending unit is used for sending the first evidence storing information of the target calculation result to the block chain so as to enable the first evidence storing information to be recorded in a distributed database of the block chain after being identified and verified by the block chain.
In yet another illustrated embodiment, the obtaining unit is further configured to:
and acquiring a plurality of encrypted data sent by the plurality of data source clients based on the off-link channel.
In yet another illustrated embodiment, code associated with the pre-set secure multi-party computing logic or second evidence information for the code is maintained in a distributed database of the blockchain.
In yet another illustrated embodiment, the obtaining unit is further configured to:
and acquiring a plurality of encrypted data sent by the plurality of data source clients from a distributed database of the block chain.
In yet another illustrated embodiment, the computing unit and the sending unit are further configured to:
calling an intelligent contract deployed on the blockchain, executing the intelligent contract statement security multiparty computation logic and a evidence storage logic, computing the encrypted data to obtain a target computation result, and generating first evidence storage information based on the target computation result, so that the first evidence storage information is recorded in a distributed database of the blockchain after being verified by the blockchain consensus.
In yet another illustrated embodiment, the blockchain is a federation chain, the service platform node device is a federation member node, and the plurality of data source clients are clients whose access to the blockchain is controlled by the service platform node device.
Accordingly, this specification also proposes a computer device comprising: a memory and a processor; the memory having stored thereon a computer program executable by the processor; and when the processor runs the computer program, the processor executes the data processing method executed by the service platform node equipment.
Accordingly, the present specification also proposes a computer-readable storage medium, on which a computer program is stored, which, when executed by a processor, performs the data processing method performed by the service platform node device.
As can be seen from the above technical solutions, the block chain-based data processing method and apparatus, the computer device, and the computer-readable storage medium provided in this specification verify the result of the secure multiparty computation based on the tamper-resistant mechanism of the block chain.
Drawings
Fig. 1 is a flowchart illustrating a data processing method based on a blockchain according to an embodiment of the present disclosure;
fig. 2 is a schematic diagram of a data processing apparatus based on a blockchain and applied to a node device side of a service platform according to an embodiment provided in the present specification;
FIG. 3 is a hardware block diagram for implementing an embodiment of a data processing apparatus provided in the present specification.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with one or more embodiments of the specification. Rather, they are merely examples of apparatus and methods consistent with certain aspects of one or more embodiments of the specification, as detailed in the claims which follow.
It should be noted that: in other embodiments, the steps of the corresponding methods are not necessarily performed in the order shown and described in this specification. In some other embodiments, the method may include more or fewer steps than those described herein. Moreover, a single step described in this specification may be broken down into multiple steps for description in other embodiments; multiple steps described in this specification may be combined into a single step in other embodiments.
When a business service platform provides corresponding business services for a user, the user is generally required to provide various information related to the business services, in many cases, the various information may include privacy information of the user, and especially when the business service platform is a consultation type service platform and some sensitive business information of the user is generally required for making a consultation or marketing plan, the user may choose not to select the services of the business service platform based on privacy and privacy considerations, thereby limiting business development of the business service platform. Or, since the user may not wish to directly provide comprehensive and accurate information to the service platform, the service platform may provide inaccurate or inaccurate user services based on inaccurate or comprehensive data information, and the user experience is poor.
To solve the above-mentioned problems, one or more embodiments of the present specification provide a method for processing data based on a blockchain, which is applied in a blockchain network including a service platform node device and a plurality of data source clients.
The block chain network according to one or more embodiments of the present disclosure may specifically refer to a P2P network system having a distributed data storage structure, where each node device is implemented by a consensus mechanism, data in the block chain is distributed in temporally consecutive "blocks", and a subsequent block includes a data summary of a previous block, and full backup of data of all or part of nodes is implemented according to a difference of the particular consensus mechanism (e.g., POW, POS, DPOS, PBFT, or the like). As is well known to those skilled in the art, since the blockchain network system operates under a corresponding consensus mechanism, data that has been recorded in the blockchain database is difficult to be tampered with by any node, for example, a blockchain with Pow consensus is adopted, and it is possible to tamper with existing data only by an attack that requires at least 51% of effort over the entire network, so the blockchain system has characteristics of ensuring data security and preventing tampering against attacks, which are incomparable with other centralized database systems. Therefore, the data recorded in the distributed database of the blockchain cannot be attacked or tampered, and the authenticity and reliability of the data information of the distributed database of the blockchain are guaranteed.
Example types of blockchain networks may include public blockchain networks, private blockchain networks, and federation blockchain networks. Although the term blockchain is typically associated with bitcoin cryptocurrency networks, blockchains are used herein to generically refer to DLS (distributed ledger system) without reference to any particular use case.
In a public blockchain network, the consensus process is controlled by nodes of the consensus network. For example, hundreds, thousands, or even millions of entities may cooperate in a public blockchain network, each entity operating at least one node in the public blockchain network. Thus, a public blockchain network may be considered a public network with respect to participating entities. Example public blockchain networks include bitcoin networks, which are peer-to-peer payment networks. Bitcoin networks utilize a distributed ledger, called blockchains. However, as noted above, the term blockchain is generally used to refer to distributed ledgers without specific reference to bitcoin networks.
Typically, public blockchain networks support public transactions. The public transaction is shared with all nodes within the public blockchain network and stored in the global blockchain. A global blockchain is a chain of blocks that is replicated across all nodes. That is, for a global blockchain, all nodes are in a completely consistent state. To achieve consensus (e.g., agree to add blocks to a blockchain), a consensus protocol is implemented within a public blockchain network. Example consensus protocols include, but are not limited to, proof of work (POW) implemented in bitcoin networks.
Typically, a network of private blockchains is provided for specific entities that collectively control read and write permissions. The entity controls which nodes can participate in the blockchain network. Thus, private blockchain networks are often referred to as licensed networks, which impose restrictions on who is allowed to participate in the network and its level of participation (e.g., only in certain transactions). Various types of access control mechanisms may be used (e.g., existing participants vote to add a new entity, and regulatory authorities may control admission).
Typically, a federated blockchain network is private among the participating entities. In a federated blockchain network, the consensus process is controlled by an authorized set of nodes, one or more of which are operated by respective entities (e.g., enterprises). For example, a federation of ten (10) entities (e.g., enterprises) may operate a federated blockchain network in which each entity operates at least one node. Thus, a federated blockchain network may be considered a private network in terms of participating entities. In some examples, each entity (node) must sign each block to validate the block and add the validated block to the blockchain. In some examples, at least a subset of the entities (nodes) (e.g., at least 7 entities) must sign each block to validate the block and add the validated block to the blockchain.
It is contemplated that the embodiments provided herein can be implemented in any suitable type of blockchain network.
A node (or node device) according to one or more embodiments of the present specification refers to a node that can join the blockchain as the blockchain by executing installation of a node protocol program following a corresponding node protocol. Those skilled in the art generally refer to a node device having a full backup of data of the blockchain distributed database as a full node, a node device having partial backup data (e.g., data with only a blockhead) of the blockchain distributed database as a light node, and the like. In one or more embodiments of the present specification, the node type of the service platform node device is not limited.
In one or more embodiments provided in this specification, an entity that provides a data source for a service platform is added to the blockchain network by running a client installer at a terminal, where the client installer may be an installer of a blockchain node device, and accordingly, the data source client also serves as a node device of the blockchain; the client installation program may also be a blockchain user client program connected to one alliance member node device (such as the above-mentioned service platform node device) in the alliance blockchain and controlled to be accessed, and accordingly, the client does not have the authority to directly access the distributed database of the blockchain, and is not generally used as a node of the blockchain, and needs to make a data request with authority knowledge to one or more alliance member nodes connected to the client installation program. The present specification does not limit whether the data source client is a node device of the block chain. It should be noted that the entity corresponding to the data source client may be a user of the business service platform, and obtains the business service provided by the business service platform by providing data to the business service platform, which is not limited in this specification.
As shown in fig. 1, a method for processing data based on a blockchain according to one or more embodiments of the present specification includes:
and 102, the service platform node equipment acquires a plurality of encrypted data sent by the plurality of data source clients.
The plurality of data source clients can directly send the plurality of encrypted data to the service platform node equipment through an out-of-link channel; the target purchase data may also be sent to the service platform node device through a blockchain, that is, the data source clients send encrypted data to the blockchain, so that the encrypted data are recorded by the distributed database of the blockchain, and then the service platform node device may obtain the encrypted data from the distributed database of the blockchain. The block chain-based tamper-proof mechanism is an implementation mode for acquiring a plurality of encrypted data based on the distributed database of the block chain, so that the plurality of encrypted data can be better ensured to be sent by corresponding data source clients, and the encrypted data is prevented from being tampered.
And 104, calculating the plurality of encrypted data based on preset safe multiparty calculation logic to obtain a target calculation result.
The secure multi-party computation described in this specification may be understood as that, each of the multi-party data sources possesses respective private data, and under the condition that the respective private data is not leaked, for example, in each of the embodiments provided in this specification, the data is encrypted by the corresponding data source client to generate encrypted data, and the service platform node device can compute a result regarding a public function related to the plurality of private data, that is, the target computation result. In the whole calculation process, all parties including the service platform and all data sources do not know the data of other parties. Based on the secure multi-party calculation, the business service platform and the data source entity do not need to provide the respectively stored private data for any party, but can calculate and obtain the corresponding target calculation result based on the respectively stored private data and the appointed public function.
Therefore, by carrying out safe multi-party calculation on the encrypted data, the data privacy is ensured in the safe multi-party calculation process, the data trust between a data source client side providing the data and a service platform using the data is solved, and the calculated target calculation result is based on a wider data source; therefore, the accurate matching degree of the service provided by the service platform is improved due to the fact that the data are based on wider and accurate data; the utilization rate of the data stored by the data source clients is improved, and even corresponding economic benefits can be brought to the data source entities.
The target calculation result may include a common function result obtained based on secure multi-party calculation, a calculation result further obtained based on the common function result, a target business scheme (such as a business marketing scheme and a market consulting scheme) formulated based on the common function result, and the like, which is not limited in this specification.
After the service platform node device obtains the target calculation result through calculation, the service platform node device may send the target calculation result to a user client having a service requirement for the target calculation result, for example, one or more of the data source clients, or other user clients that submit service applications.
In this specification, in order to further verify the target calculation result and prevent the business service platform from modifying the target calculation result data without authorization, the data processing method based on the blockchain further includes:
and 106, sending the first certificate information of the target calculation result to the block chain, so that the first certificate information is recorded in a distributed database of the block chain after being identified and verified by the block chain.
The first authentication information of the target calculation result may include the target calculation result, or the target calculation result that is further encrypted, or a "digital fingerprint" of the target calculation result, that is, a hash digest of the target calculation result, and so on, and this specification does not limit the concrete expression of the first authentication information.
The specific process of the first certificate information being recorded in the distributed database of the blockchain after being verified by the blockchain consensus can be specifically set according to the consensus mechanism and the transaction verification rule of the blockchain. In an illustrated embodiment, the issuing, by the service platform node device, the first credential information to the distributed database of the blockchain includes:
the node with the accounting authority in the block chain adds the transaction comprising the first evidence storing information into a candidate block;
determining consensus accounting nodes satisfying the block chain consensus mechanism from the nodes with accounting authority;
the consensus accounting node broadcasts the candidate blocks to nodes of the block chain;
and after the candidate block passes verification approval of the nodes with the preset number of the block chains, the candidate block is regarded as the latest block and added into a distributed database of the block chains.
It is noted that the transaction (transaction) described in one or more embodiments of the present specification refers to a piece of data that is created by a node device of a blockchain and needs to be finally published to a distributed database of the blockchain. The transactions in the block chain have a narrow transaction and a broad transaction score. A narrowly defined transaction is a transfer of value to a blockchain issued by a user; for example, in a conventional bitcoin blockchain network, a transaction may be a transfer initiated by a user in a blockchain. And the broad transaction refers to a piece of business data with business intention, which is issued to the blockchain by the user entity through the node. The transaction of the first certificate information including the target calculation result according to this embodiment may include the first certificate information for the target calculation result, and thus may serve as a certificate for the content of the target calculation result.
In the above embodiments, the node having the accounting authority refers to a node having an authority to generate a candidate block. According to the consensus mechanism of the block chain, a consensus accounting node can be determined from the nodes having accounting authority for the candidate block, and the consensus mechanism can include a workload attestation mechanism (PoW), a rights attestation mechanism (PoS), a stock authorization attestation mechanism (DPoS), and the like.
The PoS or DPoS consensus mechanism is similar to PoW, and both belong to consensus algorithms commonly selected by confirmed consensus accounting nodes in a public block chain. To reduce transaction or data validation time, improve transaction throughput, and meet security and performance requirements, embodiments provided herein may also choose a federation chain architecture to construct the blockchain. The service platform node, the service-related supervision agency node and other organizations with higher credit can be used as preselected nodes of the alliance chain to participate in block accounting. The consensus process of the federation chain is also controlled by the preselected node, and when more than a predetermined percentage (e.g., 2/3) of nodes on the network identify a block, the transaction or data recorded in the block will be identified over the network.
The federation chain usually adopts rights and interests certification or consensus algorithms such as PBFT and RAFT. The PBFT algorithm is a preferred implementation mode of the consensus algorithm of the alliance chain provided by the specification, and the consensus efficiency of the algorithm is high, so that the requirement of high-frequency transaction amount can be met; the consensus time delay is very low, the requirement of real-time processing is basically met, and the transaction containing the first deposit evidence information can be rapidly recorded in a new block of the block chain in real time; moreover, the credible nodes in the alliance chain network are used as preselected accounting nodes, so that safety and stability are considered; in addition, the PBFT algorithm does not consume excessive computer power resources, does not need token circulation, and has good usability.
In another embodiment shown in this specification, in addition to storing the first evidence storing information of the target calculation result in the distributed database of the blockchain, in order to further ensure the fairness of the process of obtaining the target calculation result and prevent the business service platform from privately modifying the calculation process of the target calculation result, the code related to the preset secure multiparty calculation logic or the second evidence storing information of the code is stored in the distributed database of the blockchain.
Those skilled in the art should appreciate that the code related to the above-mentioned preset secure multi-party computation logic generally includes related computer executable program code of common functions, computation processes of common function results, etc. agreed in secure multi-party computation; the second authentication information for the code may include the original text of the computer executable program code, the encrypted computer executable program code, or a hash digest of the computer executable program code, and the block chain authentication is performed for the code based on a tamper-resistant mechanism of the block chain. The specific process of the code related to the preset secure multiparty computation logic or the second evidence storing information of the code being recorded into the distributed database of the block chain may be similar to the specific process of the first evidence storing information being recorded, and will not be described herein again.
It should be noted that the present specification does not limit the identity of the sender sending the code related to the preset secure multiparty computation logic or the second deposit information of the code to the block chain, and the sender may generally be a business service platform for compiling the preset secure multiparty computation logic, or a regulatory organization for making an industry specification for an industry where the business service platform is located, and making the preset secure multiparty computation logic for an industry member to comply with, and the like.
In another embodiment shown in this specification, when the encrypted data is sent from the data source clients to the distributed database of the blockchain, the process of calculating the encrypted data to obtain the target calculation result based on the preset secure multi-party calculation logic in steps 104 and 106, sending the first certification information of the target calculation result to the blockchain, so that the first certification information is included in the distributed database of the blockchain after being verified by the blockchain consensus, may be implemented by calling an intelligent contract deployed on the blockchain, executing the intelligent contract certification secure multi-party calculation logic and certification logic, calculating the encrypted data to obtain the target calculation result, and generating the first certification information based on the target calculation result, so that the first certification information is included in the distributed database of the blockchain after being verified by the blockchain consensus.
To further provide context for embodiments of the present description, in a blockchain network, applications may be developed, tested, and deployed to execute within the blockchain network. Example applications may include, but are not limited to, smart contracts. An intelligent contract may be described as a digital representation of a real-world legal contract having contract terms that affect parties. The intelligent contracts are implemented, stored, updated (as needed), and executed within the blockchain network. Contractual parties (e.g., buyers and sellers) associated with the intelligent contract are represented as nodes in a blockchain network.
In some examples, intelligent contracts may store data that may be used to record information, facts, associations, balances, and any other information needed to implement contract execution logic. An intelligent contract may be described as a computer-executable program consisting of functions, where an instance (instance) of the intelligent contract may be created, and the functions are called to execute the logic of the intelligent contract.
In technical aspects, smart contracts may be implemented based on objects and object-oriented classes. For example, the terms and components of a smart contract may be represented as objects that are processed by an application that implements the smart contract. An intelligent contract (or an object in an intelligent contract) may invoke another intelligent contract (or an object in the same intelligent contract) like other object-oriented objects. For example, the call made by an object may be a call to create, update, delete, propagate, or communicate with an object of another class. Calls between objects may be implemented by functions, methods, application Programming Interfaces (APIs), or other call mechanisms. For example, a first object may call a function to create a second object.
Therefore, based on the above description about the intelligent contract, in the present embodiment, the secure multi-party computation logic and the computation logic for validating the target computation result may be written as the intelligent contract code, and deployed on the block chain after being verified by the consensus of the block chain. In the above embodiment of executing secure multi-party computation and verification by an intelligent contract, the invoking transactions of a plurality of intelligent contracts containing encrypted data sent by a plurality of data source clients may also include other parameters such as an address or a function name of the invoked intelligent contract, which are not described herein again. Those skilled in the art should know that the execution logic of the intelligent contract is verified through the consensus of the block chain node devices, and the tamper-proof mechanism and the consensus mechanism based on the block chain have the advantages of high execution efficiency (which can be executed by triggering the call transaction including the encrypted data at any time), accurate execution (the execution result is verified through the block chain consensus), low human intervention risk (the code executed by the intelligent contract is tampered through the block chain consensus verification), low operation cost (such as human cost), and the like, so that the verification is automatically performed on both the secure multi-party computation logic and the secure multi-party computation logic.
Corresponding to the above flow implementation, the embodiment of the present specification further provides a data processing apparatus 20 based on a block chain. The apparatus 20 may be implemented by software, or by hardware, or by a combination of hardware and software. Taking a software implementation as an example, the logical device is formed by reading a corresponding computer program instruction into a memory for running through a Central Processing Unit (CPU) of the device. In terms of hardware, the device in which the data processing apparatus is located generally includes other hardware such as a chip for transmitting and receiving wireless signals and/or other hardware such as a board for realizing a network communication function, in addition to the CPU, the memory, and the storage shown in fig. 3.
As shown in fig. 2, the present specification further provides a data processing apparatus 20 based on a blockchain, which is applied in a blockchain network including a service platform node device and a plurality of data source clients; the apparatus 20 is applied to the node device side of the service platform, and includes:
an obtaining unit 202, configured to obtain multiple pieces of encrypted data sent by the multiple data source clients;
a computing unit 204, configured to compute the plurality of encrypted data based on a preset secure multiparty computing logic to obtain a target computing result;
a sending unit 206, configured to send the first credential information of the target calculation result to the blockchain, so that the first credential information is recorded in the distributed database of the blockchain after being verified by the blockchain consensus.
In yet another illustrated embodiment, the obtaining unit 202 is further configured to:
and acquiring a plurality of encrypted data sent by the plurality of data source clients based on the off-link channel.
In yet another illustrated embodiment, code associated with the pre-set secure multi-party computing logic or second evidence information for the code is maintained in a distributed database of the blockchain.
In yet another illustrated embodiment, the obtaining unit 202 is further configured to:
and acquiring a plurality of encrypted data sent by the plurality of data source clients from a distributed database of the block chain.
In yet another illustrated embodiment, the calculating unit 204 and the sending unit 206 are further configured to:
the method comprises the steps of calling an intelligent contract deployed on a block chain, executing the intelligent contract to declare safe multi-party computing logic and evidence storage logic, computing the encrypted data to obtain a target computing result, and generating first evidence storage information based on the target computing result, so that the first evidence storage information is recorded in a distributed database of the block chain after being subjected to consensus verification of the block chain.
In another illustrated embodiment, the blockchain is a federation chain, the service platform node devices are federation member nodes, and the plurality of data source clients are clients whose access to the blockchain is controlled by the service platform node devices.
The implementation process of the functions and actions of each unit in the apparatus 20 is specifically described in the implementation process of the corresponding step in the data processing method executed by the service platform node device, and relevant points may refer to part of the description of the method embodiment, which is not described herein again.
The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical modules, may be located in one place, or may be distributed on a plurality of network modules. Some or all of the units or modules can be selected according to actual needs to achieve the purpose of the solution in the specification. One of ordinary skill in the art can understand and implement it without inventive effort.
The apparatuses, units and modules illustrated in the above embodiments may be specifically implemented by a computer chip or an entity, or implemented by a product with certain functions. A typical implementation device is a computer, which may be in the form of a personal computer, laptop, cellular telephone, camera phone, smart phone, personal digital assistant, media player, navigation device, email messaging device, game console, tablet computer, wearable device, or a combination of any of these devices.
Corresponding to the above method embodiment, the embodiment of the present specification further provides a computer device, as shown in fig. 3, including a memory and a processor. Wherein the memory has stored thereon a computer program executable by the processor; when running the stored computer program, the processor performs each step of the data processing method performed by the service platform node device in the embodiments of the present specification. For a detailed description of each step of the data processing method executed by the node device of the service platform, please refer to the previous contents, which is not repeated.
Corresponding to the above method embodiments, embodiments of the present specification further provide a computer-readable storage medium, where computer programs are stored on the storage medium, and when being executed by a processor, the computer programs perform the steps of the data processing method performed by the service platform node device in the embodiments of the present specification. For detailed descriptions of the steps of the data processing method executed by the node device of the service platform, please refer to the previous contents, which are not repeated.
The above description is only a preferred embodiment of the present disclosure, and should not be taken as limiting the present disclosure, and any modifications, equivalents, improvements, etc. made within the spirit and principle of the present disclosure should be included in the scope of the present disclosure.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data.
Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static Random Access Memory (SRAM), dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrases "comprising a," "8230," "8230," or "comprising" does not exclude the presence of other like elements in a process, method, article, or apparatus comprising the element.
As will be appreciated by one skilled in the art, embodiments of the present description may be provided as a method, system, or computer program product. Accordingly, embodiments of the present description may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, embodiments of the present description may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and so forth) having computer-usable program code embodied therein.

Claims (12)

1. A data processing method based on a block chain is applied to the block chain comprising a business service platform node device and a plurality of data source clients; the method comprises the following steps:
the business service platform node equipment acquires a plurality of encrypted data sent by the plurality of data source clients;
performing secure multi-party computation on the plurality of encrypted data to obtain a target computation result;
and storing the first certificate storing information of the target calculation result into the block chain.
2. The method of claim 1, wherein the service platform node device obtains a plurality of encrypted data sent by the plurality of data source clients, and comprises:
and the service platform node equipment acquires a plurality of encrypted data sent by the plurality of data source clients based on an out-of-link channel.
3. The method of claim 1, wherein the service platform node device obtains a plurality of encrypted data sent by the plurality of data source clients, and comprises:
and the service platform node equipment acquires a plurality of encrypted data sent by the plurality of data source clients from the distributed database of the block chain.
4. The method of claim 3, the performing secure multiparty computation on the plurality of encrypted data to obtain a target computation result, sending first credential information of the target computation result to the blockchain, comprising:
calling an intelligent contract deployed on the blockchain, executing the intelligent contract statement security multiparty computation logic and a evidence storage logic, performing security multiparty computation on the plurality of encrypted data to obtain a target computation result, and generating first evidence storage information based on the target computation result, so that the first evidence storage information is recorded in a distributed database of the blockchain after being identified and verified by the blockchain.
5. The method of claim 1 or 2, wherein the blockchain is a federation chain, the service platform node devices are federation member nodes, and the plurality of data source clients are clients whose access to blockchain permissions are controlled by the service platform node devices.
6. A data processing device based on a block chain is applied to the block chain comprising service platform node equipment and a plurality of data source clients; the device is applied to the service platform node equipment terminal and comprises:
the acquiring unit is used for acquiring a plurality of encrypted data sent by the plurality of data source clients;
a calculation unit configured to perform secure multi-component calculation on the plurality of encrypted data to obtain a target calculation result;
and the sending unit is used for storing the first certificate storing information of the target calculation result into the block chain.
7. The apparatus of claim 6, the obtaining unit further to:
and acquiring a plurality of encrypted data sent by the plurality of data source clients based on the off-link channel.
8. The apparatus of claim 6, the obtaining unit further to:
and acquiring a plurality of encrypted data sent by the plurality of data source clients from a distributed database of the block chain.
9. The apparatus of claim 8, the computing unit and the sending unit further configured to:
calling an intelligent contract deployed on the blockchain, executing the intelligent contract to declare a secure multi-party computing logic and a evidence storing logic, performing secure multi-party computing on the plurality of encrypted data to obtain a target computing result, and generating first evidence storing information based on the target computing result, so that the first evidence storing information is recorded in a distributed database of the blockchain after being identified and verified by the blockchain.
10. The apparatus according to claim 6 or 7, wherein the blockchain is a federation chain, the service platform node devices are federation member nodes, and the plurality of data source clients are clients whose access to the blockchain is controlled by the service platform node devices.
11. A computer device, comprising: a memory and a processor; the memory having stored thereon a computer program executable by the processor; the processor, when executing the computer program, performs the method of any of claims 1 to 5.
12. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1 to 5.
CN202211284845.9A 2019-04-30 2019-04-30 Data processing method and device based on block chain Pending CN115632854A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211284845.9A CN115632854A (en) 2019-04-30 2019-04-30 Data processing method and device based on block chain

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202211284845.9A CN115632854A (en) 2019-04-30 2019-04-30 Data processing method and device based on block chain
CN201910362551.5A CN110166442B (en) 2019-04-30 2019-04-30 Data processing method and device based on block chain

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
CN201910362551.5A Division CN110166442B (en) 2019-04-30 2019-04-30 Data processing method and device based on block chain

Publications (1)

Publication Number Publication Date
CN115632854A true CN115632854A (en) 2023-01-20

Family

ID=67633147

Family Applications (2)

Application Number Title Priority Date Filing Date
CN202211284845.9A Pending CN115632854A (en) 2019-04-30 2019-04-30 Data processing method and device based on block chain
CN201910362551.5A Active CN110166442B (en) 2019-04-30 2019-04-30 Data processing method and device based on block chain

Family Applications After (1)

Application Number Title Priority Date Filing Date
CN201910362551.5A Active CN110166442B (en) 2019-04-30 2019-04-30 Data processing method and device based on block chain

Country Status (1)

Country Link
CN (2) CN115632854A (en)

Families Citing this family (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112583572B (en) * 2019-09-30 2023-01-31 北京京东尚科信息技术有限公司 Block chain network, service processing method, device and equipment
CN110929293B (en) * 2019-12-11 2022-11-15 佛山科学技术学院 Beautifying data storage system based on block chain
CN111506584B (en) * 2020-03-26 2023-07-25 金蝶软件(中国)有限公司 Block chain-based service data processing method and device and computer equipment
CN112272208B (en) * 2020-09-22 2023-03-31 国网上海市电力公司 Secure multiparty computing method, electronic device and storage medium
CN112685767B (en) * 2020-12-25 2024-03-26 联想(北京)有限公司 Data processing method and system based on block chain
CN112632014A (en) * 2020-12-30 2021-04-09 杭州亿房达科技有限公司 Private data sharing method based on block chain and private security calculation
CN113409045B (en) * 2021-01-27 2023-03-21 支付宝(杭州)信息技术有限公司 Data processing method and device based on block chain and electronic equipment
CN112884574B (en) * 2021-01-29 2023-01-10 上海分布信息科技有限公司 Safety processing method and system for block chain service
CN113159944A (en) * 2021-03-10 2021-07-23 华控清交信息科技(北京)有限公司 Data processing method and device and data processing device
CN113255001B (en) * 2021-06-09 2023-05-23 湖北央中巨石信息技术有限公司 Block chain-based calculation accounting method, system and device and medium
CN113612766B (en) * 2021-07-30 2023-04-28 北京锐安科技有限公司 Data management device, method, computer equipment and storage medium
CN114826667A (en) * 2022-03-22 2022-07-29 浪潮卓数大数据产业发展有限公司 Data sharing method, device, equipment and medium based on block chain
CN115292419B (en) * 2022-10-09 2023-03-31 深圳市明源云科技有限公司 Data processing method, device and equipment based on poH consensus and storage medium

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10467624B2 (en) * 2016-06-29 2019-11-05 Paypal, Inc. Mobile devices enabling customer identity validation via central depository
CN109241778A (en) * 2018-08-13 2019-01-18 阿里巴巴集团控股有限公司 A kind of public transport data processing method and device based on block chain
CN109359973A (en) * 2018-08-24 2019-02-19 阿里巴巴集团控股有限公司 Data based on block chain deposit card method and apparatus
CN113283905A (en) * 2018-10-26 2021-08-20 创新先进技术有限公司 Data storage and acquisition method and device based on block chain
CN109660350A (en) * 2018-10-31 2019-04-19 阿里巴巴集团控股有限公司 Data based on block chain deposit card method and device, electronic equipment
CN109615378B (en) * 2019-01-24 2021-06-15 上海点融信息科技有限责任公司 Block chain-based secure multi-party computing method and device and readable storage medium

Also Published As

Publication number Publication date
CN110166442B (en) 2022-09-06
CN110166442A (en) 2019-08-23

Similar Documents

Publication Publication Date Title
CN110166442B (en) Data processing method and device based on block chain
TWI694350B (en) Information supervision method and device based on blockchain
CN110046996B (en) Data processing method and device
Bhutta et al. A survey on blockchain technology: Evolution, architecture and security
JP6873270B2 (en) Handling of transaction activities based on smart contracts in the blockchain Caution Methods and devices for protecting data
CN110363527B (en) Block chain-based evidence storage and supervision method and device
WO2020155789A1 (en) Blockchain-based certificate storage method and apparatus
CN110009337B (en) Data processing method and device based on block chain
CN109360091B (en) Random object selection method and device based on block chain
WO2020082894A1 (en) Blockchain-based data deposit and acquisition methods and devices
WO2020147568A1 (en) Block chain-based evidence storage method and device
TW202036328A (en) Blockchain-based resource allocation method and apparatus
CN110310203B (en) Block chain transaction method and device
TW202036430A (en) Work copyright distribution method and device based on block chain
CN110020543B (en) Data processing method and device based on block chain
CN111931238A (en) Block chain-based data asset transfer method, device and equipment
Ali et al. Blockchain and the future of the internet: A comprehensive review
ul Hassan et al. Blockchain and the future of the internet: a comprehensive review
TW202016819A (en) Block-chain transaction method and device and electronic device
WO2020134631A1 (en) Block chain-based data processing method and apparatus
US20210329009A1 (en) Information sharing methods, apparatuses, and devices
Li et al. A decentralized and secure blockchain platform for open fair data trading
CN113704775A (en) Service processing method based on distributed digital identity and related device
JP2022055352A (en) Method, system and computer program (compliance mechanisms in blockchain networks)
Garcia Bringas et al. BlockChain platforms in financial services: current perspective

Legal Events

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