WO2020134631A1 - 基于区块链的数据处理方法和装置 - Google Patents
基于区块链的数据处理方法和装置 Download PDFInfo
- Publication number
- WO2020134631A1 WO2020134631A1 PCT/CN2019/116226 CN2019116226W WO2020134631A1 WO 2020134631 A1 WO2020134631 A1 WO 2020134631A1 CN 2019116226 W CN2019116226 W CN 2019116226W WO 2020134631 A1 WO2020134631 A1 WO 2020134631A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- service
- service provider
- terminal
- blockchain
- information
- 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.)
- Ceased
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/27—Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
- G06F16/275—Synchronous replication
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06Q—INFORMATION 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/00—Payment architectures, schemes or protocols
- G06Q20/38—Payment protocols; Details thereof
- G06Q20/389—Keeping log of transactions for guaranteeing non-repudiation of a transaction
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06Q—INFORMATION 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/00—Payment architectures, schemes or protocols
- G06Q20/38—Payment protocols; Details thereof
- G06Q20/40—Authorisation, e.g. identification of payer or payee, verification of customer or shop credentials; Review and approval of payers, e.g. check credit lines or negative lists
- G06Q20/401—Transaction verification
- G06Q20/4014—Identity check for transactions
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06Q—INFORMATION 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/00—Finance; Insurance; Tax strategies; Processing of corporate or income taxes
- G06Q40/04—Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange
Definitions
- This specification relates to the technical field of data processing, and in particular to a data processing method and device based on blockchain.
- Blockchain technology also known as distributed ledger technology, is an emerging technology in which several computing devices jointly participate in "bookkeeping" and jointly maintain a complete distributed database.
- Blockchain technology has the characteristics of decentralization, openness and transparency, each computing device can participate in database records, and data synchronization can be quickly performed between computing devices, making blockchain technology widely used in many fields. To apply.
- one or more embodiments of this specification provide a blockchain-based data processing method, the blockchain includes a service platform node device; the method includes:
- the service platform node device obtains order information sent by a service demanding terminal, wherein the order information includes required service content;
- order allocation information is sent to the service provider terminal to allocate a service provider to the service demanding terminal, wherein the distributed database of the blockchain holds the identity of the above service provider Information for the service provider to perform identity verification and comparison when providing services;
- the identification information is biological identification information of the service provider.
- the method further includes:
- the identity verification information including the existing identity information of the service provider;
- the result of the comparison is sent to the service provider terminal or the service demander terminal.
- the method further includes:
- the service content actually provided by the service provider includes the location information of the node device of the service provider, the comparison result of the identity verification of the service provider, and the service start time of the service provider One or more of the service provider's end service time, service process memo information content, or mathematical summary of the content.
- the block chain is a consortium chain
- the service platform node device is a consortium member node device.
- this specification also provides a blockchain-based data processing device, the blockchain includes a service platform node device; the device includes:
- An obtaining unit configured to obtain order information sent by a service demanding terminal, wherein the order information includes required service content
- a sending unit configured to send order allocation information to a service provider terminal based on the order information to allocate a service provider to the service demanding terminal, wherein the distributed service is stored in the distributed database of the blockchain
- the identification information of the provider is used for the identity verification comparison of the service provider when providing the service
- the receiving unit receives the service content actually provided by the service provider sent by the service demanding terminal or the service provider terminal;
- a transaction sending unit configured to send a service deposit transaction to the blockchain, so that the service deposit transaction is included in the distributed database of the blockchain after being verified by the blockchain consensus; the service The certificate deposit transaction is used to deposit certificates for the service content actually provided by the service provider.
- the identification information is biological identification information of the service provider.
- the receiving unit is further configured to receive identity verification information sent by the service provider terminal or the service demanding terminal, the identity verification information including the service provision Party's existing identity information;
- the device further includes a comparison unit for comparing the identity identification information with the existing identity information;
- the sending unit is further configured to send the comparison result to the service provider terminal or the service demander terminal.
- the acquiring unit is further configured to acquire the identity identification information of the service provider stored in the distributed database of the blockchain;
- the sending unit is further configured to send the identity identification information to the service provider terminal or the service demand side terminal, so that the service provider terminal or the service demand side terminal is based on the identity identification information , Compare and verify the identity of the service provider;
- the receiving unit is further configured to receive the identity verification comparison result sent by the service provider terminal or the service demander terminal.
- the service content actually provided by the service provider includes the location information of the node device of the service provider, the comparison result of the identity verification of the service provider, and the service start time of the service provider One or more of the service provider's end service time, service process memo information content, or mathematical summary of the content.
- the block chain is a consortium chain
- the service platform node device is a consortium member node device.
- this specification also proposes a computer device, including: a memory and a processor; a computer program executable by the processor is stored on the memory; when the processor runs the computer program, the above-mentioned service platform node is executed Blockchain-based data processing method performed by the device.
- This specification also provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, executes the blockchain-based data processing method performed by the service platform node device.
- the blockchain-based data processing method and device provided in this specification set the service platform terminal as a blockchain node device, a distributed database storage mechanism based on blockchain technology, and the actual completed service
- the content is decentralized recorded in multiple blockchain nodes, maintained by the blockchain nodes, synchronized in real time, all records can be traced back; and, based on the consensus mechanism of the blockchain, the service platform node equipment has provided
- the completed service content information will not be tampered after it is provided, thereby ensuring the authenticity and security of the completed service content, and providing an effective data foundation for forensics or other applications based on the completed service content.
- FIG. 1 is a schematic flowchart of a blockchain-based data processing method according to an embodiment provided by this specification
- FIG. 2 is a schematic diagram of a blockchain-based data processing device according to an embodiment provided by this specification
- FIG. 3 is a hardware structure diagram of an embodiment of a blockchain-based data processing device provided in this specification.
- the steps of the corresponding method are not necessarily performed in the order shown and described in this specification.
- the method may include more or fewer steps than described in this specification.
- the single step described in this specification may be decomposed into multiple steps for description in other embodiments; and the multiple steps described in this specification may also be combined into a single step in other embodiments. description.
- FIG. 1 is a data processing method based on a blockchain shown in an embodiment provided in this specification, and the blockchain includes a service platform node device.
- the service platform described in this embodiment may include a platform-type service organization that accepts a certain type of service demand or service provision from a user, and performs services such as service matching or service allocation, such as on-site services (such as housekeeping services, maintenance services, and tutoring) Service) business matching platform, remote service (such as distance learning) business matching platform, etc., not limited in this manual.
- service matching or service allocation such as on-site services (such as housekeeping services, maintenance services, and tutoring) Service) business matching platform, remote service (such as distance learning) business matching platform, etc., not limited in this manual.
- the blockchain described in this embodiment may specifically refer to a P2P network system with distributed data storage structure reached by each node through a consensus mechanism.
- the data in the blockchain is distributed in time-connected "areas" Within the “block", the latter block contains the data summary of the previous block, and according to the specific consensus mechanism (such as POW, POS, DPOS, or PBFT, etc.), complete data backup of all or some nodes is achieved .
- the specific consensus mechanism such as POW, POS, DPOS, or PBFT, etc.
- the blockchain using Pow consensus requires at least the entire network Only an attack of 51% computing power can tamper with the existing data, so the blockchain system has the characteristics of ensuring data security and preventing attack and tampering that other centralized database systems cannot match. It can be seen that, in the embodiment provided in this specification, the data included in the distributed database of the blockchain will not be attacked or tampered, thereby ensuring that the service platform node device deposits the certificate to the blockchain The authenticity of data information.
- the service platform node device described in this embodiment may join the blockchain as a node of the blockchain by following the installation of the corresponding node protocol and running the node protocol program.
- a person skilled in the art usually refers to a node device with full backup of data in a blockchain distributed database as a full node, and a node device with partial backup data of a blockchain distributed database (such as data with only a block header) It is called a light node or client, etc.; the service platform node device described in this embodiment may include the above-mentioned full node, light node or client, as long as it is directly or indirectly connected to the above-mentioned blockchain and can be sent or obtained Any device of the data of the distributed database of the blockchain can be referred to as the node device described in this embodiment.
- the above blockchain-based data processing methods include:
- Step 102 The service platform node device obtains order information sent by a service demanding terminal, where the order information includes required service content.
- the service demanding terminal described in this embodiment sends order information to the service platform node device during communication with the service platform node device.
- the above-mentioned order information may include the service content required by the service demanding party, and the required service content includes: service type content, or the condition that the service provider should satisfy, etc., so that the service platform can perform services for both parties based on the above order information Matching, matching or distribution.
- Step 104 Based on the order information, send order allocation information to the service provider terminal to allocate the service provider to the service demanding terminal, wherein the distributed service database of the blockchain has the above service provision
- the identity identification information of the party is used for the identity verification comparison of the service provider when providing the service.
- the distributed database of the blockchain holds the identification information of the service provider, which is used to compare and verify the identity of the service provider who actually provides the service, to prevent the service provider registered with the above service platform from receiving orders.
- the service providers who actually provide services afterwards do not belong to the same user, which may cause hidden security risks.
- the above identification information may include identity document information (such as ID card pictures, ID numbers, etc.), biological identification information (such as fingerprints, features, voiceprints, irises, and other identification information) to determine the identity of the service provider.
- identity document information such as ID card pictures, ID numbers, etc.
- biological identification information such as fingerprints, features, voiceprints, irises, and other identification information
- the service provider may enter the above identification information into the service platform node device when registering as the service provider of the above service platform, and the above service platform node device will deposit the above identification information to the distributed blockchain Database. It is worth noting that there are many specific ways to deposit the above identification information in the distributed database of the blockchain. In addition to backing up the original text of the above identification information to the distributed database of the blockchain, each The node equipment is backed up and maintained together; because the identification information of the above service provider is usually very sensitive personal privacy information of the user, the above identification information can also be encrypted and published in the distributed database of the blockchain to prevent the blockchain The other node devices in are illegally applied after acquiring the above identification information.
- the specific way of storing the identification information in the distributed database of the blockchain can also be expressed as: the service platform node device collects the identification information of the service provider, and the service The digest of the provider's identification information (such as the hash digest value) is sent to the distributed database of the blockchain to deposit the identification information of the above service provider.
- the identity identification information of the service provider stored in the distributed database of the blockchain is used for the identity verification comparison of the service provider when providing the service.
- the above-mentioned identity verification comparison may include various specific implementation processes.
- the identity verification comparison is performed by the service platform node device, and the specific process may include:
- the service provider When the service provider receives the order allocation information sent by the service platform, it will provide services according to the needs of the service demand side; when providing the corresponding service, in order to ensure that the actual service provider is indeed the service provider specified for the above order allocation information, The terminal of the service provider or service demander will collect the actual identification information of the actual service provider, such as face recognition or inspection of the actual service provider to collect their identity documents, etc., and will collect the existing identities collected above
- the identification information is sent to the service platform node device for the service platform node device to perform identity verification comparison;
- the service platform node device After receiving the identity verification information sent by the service provider terminal or the service requester terminal, the service platform node device based on the identity identification information of the corresponding service provider in the order allocation information stored in the blockchain The identity identification information stored is compared with the above existing identity information; and the result of the comparison is sent to the service demanding terminal or the service provider terminal, so that the service demanding side confirms the actual service provider at this time Is it the same person as the service provider specified in the order allocation information?
- the above identity verification comparison may be performed by the service provider terminal or the service demander terminal.
- the specific process may include: the above service platform node device obtains the identity identification information of the service provider stored in the distributed database of the blockchain; and sends the service provider terminal or the service demander terminal The identity identification information, so that the service provider terminal or the service demand side terminal performs identity verification comparison with the service provider based on the identity identification information; receiving the service provider terminal or the service The identity verification comparison result sent by the demanding terminal.
- the above two embodiments are only two specific implementation methods for verifying and comparing the identity information of the service provider.
- This specification does not limit the identity identification information pair of the service provider in the distributed database based on the blockchain
- the implementation process and execution subject of the actual service provider's identity verification comparison all the identity identification information of the service provider based on the distributed database of the blockchain is compared with the actual service provider's identity verification to obtain The comparison results of identity verification belong to the scope of protection of this manual.
- Step 106 Receive the service content actually provided by the service provider sent by the service demander terminal or the service provider terminal.
- the service content actually provided by the above service provider may include: positioning information of the service provider node device (to indicate that the service provider has reached the service location), and the comparison result of the identity verification of the service provider (use To indicate that the service provider is one or more of the service provider specified in the order allocation information), service provider start service time, service provider end service time, service process memo information, etc.
- the content of the service actually provided by the above service provider may be sent by the service requester terminal or may be sent by the service provider terminal, depending on actual business needs or processes, and is not limited in this specification.
- Step 108 Send a service deposit transaction to the blockchain, so that the service deposit transaction is included in the distributed database of the blockchain after being verified by the blockchain consensus; the service deposit transaction It is used to deposit certificates for the service content actually provided by the service provider.
- the transfer described in this specification refers to a piece of data created by the node device of the blockchain and needs to be finally released to the distributed database of the blockchain.
- a narrowly defined transaction refers to a value transfer issued by the user to the blockchain; for example, in the traditional Bitcoin blockchain network, the transaction can be a transfer initiated by the user in the blockchain.
- the generalized transaction refers to a piece of business data released by the user to the blockchain with business intent; for example, the data posted to the blockchain described in the above embodiments of this specification for the actual provision of service providers
- the data of the service content of the certificate can be a transaction; or the above completed service content can be organized according to the preset transaction data format, so as to be converted into a transaction.
- the service certificate deposit transaction described in this embodiment is used to deposit a certificate for the service content actually provided by the service provider or completed.
- a service provider terminal or a service demander terminal may upload a series of related service contents provided by the service provider or a series of related service actions performed to the above service platform node device from the time the service provider reaches the service location.
- the service platform node device can supervise the service content provided by the service provider, and the service platform node device can enable the service content actually provided by the provider to deposit certificates in the distributed database of the blockchain.
- the service content actually provided by the above service provider may include: positioning information of the service provider node device (to indicate that the service provider has reached the service location), and the comparison result of the identity verification of the service provider (use To indicate that the service provider is one or more of the service provider specified in the order allocation information), service provider start service time, service provider end service time, service process memo information, etc.
- the above service deposit transaction may include the original text or encrypted ciphertext of the service content actually provided by the above service provider, or a mathematical summary (such as a hash summary) of the service content actually provided by the above service provider to provide the above service
- the actual content of the service provided by the party shall be certified.
- uploading the service deposit transaction to the distributed database of the blockchain includes:
- the node device with the accounting authority in the blockchain adds the service deposit transaction to the candidate block
- the consensus accounting node broadcasts the candidate block to the node device of the blockchain
- the candidate block After the candidate block passes the verification and approval of the node device that the blockchain meets a preset number, the candidate block is regarded as the latest block and is added to the distributed database of the blockchain.
- the node device with accounting authority refers to the node device with authority to generate candidate blocks.
- a consensus billing node device can be determined from the node devices with accounting authority of the candidate block, and the above consensus mechanism may include a proof of work mechanism (PoW) or a proof of rights mechanism ( PoS), or share authorization mechanism (DPoS), etc.
- PoW proof of work mechanism
- PoS proof of rights mechanism
- DoS share authorization mechanism
- the PoS or DPoS consensus mechanism is similar to PoW, and both belong to the consensus algorithm commonly used in the public blockchain to confirm the consensus accounting node equipment.
- the embodiments provided in this specification can also use the alliance chain architecture to construct the block chain.
- the above-mentioned service platform node equipment, or an institution that supervises related service business can be used as the pre-selected node equipment of the alliance chain to participate in the block accounting.
- the consensus process of the alliance chain is also controlled by the pre-selected node device. When there is a node device on the network that exceeds a set ratio (such as 2/3) to confirm a block, the transactions or data recorded in the block will be confirmed by the entire network.
- the alliance chain usually adopts proof-of-stake or consensus algorithms such as PBFT and RAFT.
- a master node device can be elected from each node device in the blockchain, that is, the consensus accounting node (for example, each A round of consensus re-elects a master node device, and other node devices are used as slave node devices).
- the master node device further verifies and initiates the transaction and consensus, and is responsible for the transaction data (or target data) based on the consensus as the block
- the chain creates the latest block.
- the PBFT algorithm is due to the high efficiency of consensus using this algorithm, which can meet the needs of high-frequency transaction volume.
- the service platform is based on Generate service registration transactions with frequently occurring order information; and the consensus delay is very low, basically meeting the requirements of real-time processing, and the above service registration transactions can be included in the new block of the blockchain quickly and in real time;
- the trusted node in the alliance chain network takes into account the security and stability; in addition, the use of the PBFT algorithm will not consume too much computing power resources, nor does it necessarily require token circulation, so it has a good Usability.
- the distributed database storage mechanism based on blockchain technology, the actual completed service content is decentralized and recorded in multiple blockchain nodes, jointly maintained by the blockchain nodes, real-time Synchronization, all records can be traced back; and, based on the consensus mechanism of the blockchain, the completed service content information provided by the service platform node device will not be tampered after being provided, thus ensuring the authenticity and completeness of the completed service content Security provides an effective data foundation for forensics or other applications based on the completed service content.
- the embodiments of the present specification also provide a blockchain-based data processing device 20.
- the device 20 may be implemented by software, or by hardware or a combination of software and hardware. Taking software implementation as an example, as a logical device, it is formed by reading the corresponding computer program instructions into the memory through the CPU (Central Processing Unit) of the device where it is located. From a hardware perspective, in addition to the CPU, memory, and storage shown in FIG. 3, the device where the network risk service implementation device is located usually also includes other hardware such as chips for wireless signal transmission and reception, and/or for implementation Network communication board and other hardware.
- CPU Central Processing Unit
- this specification further provides a data processing device 20 based on a blockchain
- the blockchain includes a service platform node device
- the device 20 includes:
- the obtaining unit 202 is used to obtain order information sent by a service demanding terminal, wherein the order information includes required service content;
- the sending unit 204 is configured to send order allocation information to the service provider terminal based on the order information to allocate a service provider to the service demanding terminal, wherein the distributed database of the blockchain has the above certificate
- the service provider's identification information for the service provider to perform identity verification and comparison when providing the service
- the receiving unit 206 is configured to receive the service content actually provided by the service provider sent by the service demanding terminal or the service provider terminal;
- a transaction sending unit 208 configured to send a service deposit transaction to the blockchain, so that the service deposit transaction is included in the distributed database of the blockchain after being verified by the blockchain consensus;
- the service deposit transaction is used for depositing the service content actually provided by the service provider.
- the identification information is biological identification information of the service provider.
- the receiving unit 206 is further configured to receive identity verification information sent by the service provider terminal or the service demanding terminal, and the identity verification information includes the service The existing identity information of the provider;
- the device 20 further includes a comparison unit 210 for comparing the identity identification information with the existing identity information;
- the sending unit 204 is further configured to send the comparison result to the service provider terminal or the service demander terminal.
- the obtaining unit 202 is further configured to obtain the identification information of the service provider's certificate stored in the distributed database of the blockchain;
- the sending unit 204 is further configured to send the identity identification information to the service provider terminal or the service demand side terminal, so that the service provider terminal or the service demand side terminal is identified based on the identity Information, compare and verify the identity of the service provider;
- the receiving unit 206 is further configured to receive the identity verification comparison result sent by the service provider terminal or the service demander terminal.
- the service content actually provided by the service provider includes the location information of the node device of the service provider, the comparison result of the identity verification of the service provider, and the service start time of the service provider One or more of the service provider's end service time, service process memo information content, or mathematical summary of the content.
- the block chain is a consortium chain
- the service platform node device is a consortium member node device.
- the device embodiments described above are only schematic, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical modules, that is, may be located in One place, or can be distributed to multiple network modules. Some or all of the units or modules may be selected according to actual needs to achieve the objectives of the solutions in this specification. Those of ordinary skill in the art can understand and implement without paying creative labor.
- a typical implementation device is a computer, and the specific form of the computer may be a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email sending and receiving device, and a game control Desk, tablet computer, wearable device, or any combination of these devices.
- the embodiments of the present specification also provide a computer device.
- the computer device includes a memory and a processor.
- the memory stores a computer program that can be executed by the processor; when the processor runs the stored computer program, it executes the steps of the blockchain-based data processing method executed by the service platform node device in the embodiments of the present specification.
- the various steps of the blockchain-based data processing method performed by the service platform node device please refer to the previous content and will not be repeated.
- the embodiments of the present specification also provide a computer-readable storage medium that stores computer programs on the storage medium, and these computer programs, when executed by the processor, execute the services in the embodiments of the present specification
- the various steps of the blockchain-based data processing method performed by the platform node device For a detailed description of the various steps of the blockchain-based data processing method performed by the service platform node device, please refer to the previous content and will not be repeated.
- the computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
- processors CPUs
- input/output interfaces network interfaces
- memory volatile and non-volatile memory
- the memory may include non-permanent memory, random access memory (RAM) and/or non-volatile memory in a computer-readable medium, such as read only memory (ROM) or flash memory (flash RAM). Memory is an example of computer-readable media.
- RAM random access memory
- ROM read only memory
- flash RAM flash memory
- Computer readable media including permanent and non-permanent, removable and non-removable media, can store information by any method or technology.
- the information may be computer readable instructions, data structures, modules of programs, 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 technologies, read-only compact disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, Magnetic tape cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media can be used to store information that can be accessed by computing devices. As defined in this article, computer-readable media does not include temporary computer-readable media (transitory media), such as modulated data signals and carrier waves.
- PRAM phase change memory
- SRAM static random access memory
- DRAM dynamic random access memory
- RAM random access memory
- ROM read-only memory
- EEPROM electrically erasable programmable read-only memory
- flash memory or other memory technologies
- CD-ROM compact disc read-only memory
- DVD digital versatile disc
- the embodiments of the present specification may be provided as methods, systems, or computer program products. Therefore, the embodiments of the present specification may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware. Moreover, the embodiments of this specification may take the form of computer program products implemented on one or more computer usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer usable program code .
- computer usable storage media including but not limited to disk storage, CD-ROM, optical storage, etc.
Landscapes
- Business, Economics & Management (AREA)
- Engineering & Computer Science (AREA)
- Accounting & Taxation (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Finance (AREA)
- General Business, Economics & Management (AREA)
- Strategic Management (AREA)
- Databases & Information Systems (AREA)
- Economics (AREA)
- Development Economics (AREA)
- Marketing (AREA)
- Technology Law (AREA)
- Computing Systems (AREA)
- Computer Security & Cryptography (AREA)
- Data Mining & Analysis (AREA)
- General Engineering & Computer Science (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
一种基于区块链的数据处理方法和装置,所述区块链包括服务平台节点设备;所述方法包括:所述服务平台节点设备获取服务需求方终端发送的订单信息,其中,所述订单信息包括需求的服务内容(步骤102);基于所述订单信息,向服务提供方终端发送订单分配信息,以为所述服务需求方终端分配服务提供方,其中,所述区块链的分布式数据库中存证有所述服务提供方的身份识别信息,用以供所述服务提供方在提供服务时作身份校验对比(步骤104);接收所述服务需求方终端或所述服务提供方终端发送的服务提供方实际提供的服务内容(步骤106);向所述区块链发送服务存证交易,以使所述服务存证交易被所述区块链共识验证后收录于所述区块链的分布式数据库;所述服务存证交易用于为服务提供方实际提供的服务内容进行存证(步骤108)。
Description
本说明书涉及数据处理技术领域,尤其涉及一种基于区块链的数据处理方法和装置。
区块链技术,也被称之为分布式账本技术,是一种由若干台计算设备共同参与“记账”,共同维护一份完整的分布式数据库的新兴技术。由于区块链技术具有去中心化、公开透明、每台计算设备可以参与数据库记录、并且各计算设备之间可以快速的进行数据同步的特性,使得区块链技术已在众多的领域中广泛的进行应用。
发明内容
有鉴于此,本说明书一个或多个实施例提供了一种基于区块链的数据处理方法,所述区块链包括服务平台节点设备;所述方法包括:
所述服务平台节点设备获取服务需求方终端发送的订单信息,其中,所述订单信息包括需求的服务内容;
基于所述订单信息,向服务提供方终端发送订单分配信息,以为所述服务需求方终端分配服务提供方,其中,所述区块链的分布式数据库中存证有上述服务提供方的身份识别信息,用以供所述服务提供方在提供服务时作身份校验对比;
接收所述服务需求方终端或所述服务提供方终端发送的服务提供方实际提供的服务内容;
向所述区块链发送服务存证交易,以使所述服务存证交易被所述区块链共识验证后收录于所述区块链的分布式数据库;所述服务存证交易用于为服务提供方实际提供的服务内容进行存证。
在又一示出的实施方式中,所述身份识别信息为所述服务提供方的生物学身份识别信息。
在又一示出的实施方式中,所述的方法,还包括:
接收所述服务提供方终端或所述服务需求方终端发送的身份校验信息,所述身份校 验信息包括所述服务提供方的现有身份信息;
对比所述身份识别信息与所述现有身份信息;
将对比的结果发送至所述服务提供方终端或所述服务需求方终端。
在又一示出的实施方式中,所述的方法,还包括:
获取所述服务提供方在所述区块链的分布式数据库中存证的身份识别信息;
向所述服务提供方终端或所述服务需求方终端发送所述身份识别信息,以使所述服务提供方终端或所述服务需求方终端基于所述身份识别信息,对所述服务提供方作身份校验对比;
接收所述服务提供方终端或所述服务需求方终端发送的身份校验对比结果。
在又一示出的实施方式中,所述服务提供方实际提供的服务内容包括所述服务提供方节点设备的定位信息、所述服务提供方的身份校验对比结果、服务提供方开始服务时间、服务提供方结束服务时间、服务过程备忘信息内容或内容的数学摘要中的一种或多种。
在又一示出的实施方式中,所述区块链的为联盟链,所述服务平台节点设备为联盟成员节点设备。
相应地,本说明书还提供了一种基于区块链的数据处理装置,所述区块链包括服务平台节点设备;所述装置包括:
获取单元,用于获取服务需求方终端发送的订单信息,其中,所述订单信息包括需求的服务内容;
发送单元,用于基于所述订单信息,向服务提供方终端发送订单分配信息,以为所述服务需求方终端分配服务提供方,其中,所述区块链的分布式数据库中存证有上述服务提供方的身份识别信息,用以供所述服务提供方在提供服务时作身份校验对比;
接收单元,接收所述服务需求方终端或所述服务提供方终端发送的服务提供方实际提供的服务内容;
交易发送单元,用于向所述区块链发送服务存证交易,以使所述服务存证交易被所述区块链共识验证后收录于所述区块链的分布式数据库;所述服务存证交易用于为服务提供方实际提供的服务内容进行存证。
在又一示出的实施方式中,所述身份识别信息为所述服务提供方的生物学身份识别信息。
在又一示出的实施方式中,所述接收单元,进一步用于接收所述服务提供方终端或所述服务需求方终端发送的身份校验信息,所述身份校验信息包括所述服务提供方的现有身份信息;
所述装置还包括对比单元,用于对比所述身份识别信息与所述现有身份信息;
所述发送单元,进一步用于将对比的结果发送至所述服务提供方终端或所述服务需求方终端。
在又一示出的实施方式中,所述获取单元,进一步用于获取所述服务提供方在所述区块链的分布式数据库中存证的身份识别信息;
所述发送单元,进一步用于向所述服务提供方终端或所述服务需求方终端发送所述身份识别信息,以使所述服务提供方终端或所述服务需求方终端基于所述身份识别信息,对所述服务提供方作身份校验对比;
所述接收单元,进一步用于接收所述服务提供方终端或所述服务需求方终端发送的身份校验对比结果。
在又一示出的实施方式中,所述服务提供方实际提供的服务内容包括所述服务提供方节点设备的定位信息、所述服务提供方的身份校验对比结果、服务提供方开始服务时间、服务提供方结束服务时间、服务过程备忘信息内容或内容的数学摘要中的一种或多种。
在又一示出的实施方式中,所述区块链的为联盟链,所述服务平台节点设备为联盟成员节点设备。
相应地,本说明书还提出了一种计算机设备,包括:存储器和处理器;所述存储器上存储有可由处理器运行的计算机程序;所述处理器运行所述计算机程序时,执行上述服务平台节点设备所执行的基于区块链的数据处理方法。
本说明书还提供了一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器运行时,执行上述服务平台节点设备所执行的基于区块链的数据处理方法。
由以上技术方案可见,本说明书提供的基于区块链的数据处理方法及装置,将服务平台终端设置为区块链的节点设备,基于区块链技术的分布式数据库存储机制,实际完 成的服务内容被去中心化地记录在多个区块链节点中,由区块链节点共同维护,实时进行同步,所有记录可回溯;而且,基于区块链的共识机制,服务平台节点设备提供的已完成的服务内容信息不会在提供后被篡改,从而保证了已完成的服务内容的真实性和安全性,为基于该已完成的服务内容进行的取证或其他应用提供了有效的数据基础。
图1为本说明书所提供的一实施例所示的基于区块链的数据处理方法的流程示意图;
图2为本说明书所提供的一实施例提供的基于区块链的数据处理装置的示意图;
图3为运行本说明书所提供的基于区块链的数据处理装置实施例的一种硬件结构图。
这里将详细地对示例性实施例进行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施方式并不代表与本说明书一个或多个实施例相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本说明书一个或多个实施例的一些方面相一致的装置和方法的例子。
需要说明的是:在其他实施例中并不一定按照本说明书示出和描述的顺序来执行相应方法的步骤。在一些其他实施例中,其方法所包括的步骤可以比本说明书所描述的更多或更少。此外,本说明书中所描述的单个步骤,在其他实施例中可能被分解为多个步骤进行描述;而本说明书中所描述的多个步骤,在其他实施例中也可能被合并为单个步骤进行描述。
随着互联网科技的发展,基于网络的服务模式不断地推陈出新。对于彼此不熟识的服务者和被服务者,由于彼此间的陌生可能带来很多安全隐患,这种安全隐患尤其是在远程服务或上门服务等服务模式中尤为凸显。
基于以上提出的技术现状和问题,图1是本说明书所提供的一实施例所示的基于区块链的数据处理方法,所述区块链包括服务平台节点设备。
本实施例所述的服务平台可包括受理用户某类型的服务需求或服务提供,而进行服务撮合或服务分配等业务的平台性质服务机构,例如上门服务(如家政类服务、维修类服务、家教类服务)业务撮合平台、远程服务(如远程教学)业务撮合平台等等,在本 说明书中不作限定。
本实施例所述的区块链,具体可指一个各节点通过共识机制达成的、具有分布式数据存储结构的P2P网络系统,该区块链内的数据分布在时间上相连的一个个“区块(block)”之内,后一区块包含前一区块的数据摘要,且根据具体的共识机制(如POW、POS、DPOS或PBFT等)的不同,达成全部或部分节点的数据全备份。本领域的技术人员熟知,由于区块链系统在相应共识机制下运行,已收录至区块链数据库内的数据很难被任意的节点篡改,例如采用Pow共识的区块链,至少需要全网51%算力的攻击才有可能篡改已有数据,因此区块链系统有着其他中心化数据库系统所无法比拟的保证数据安全、防攻击篡改的特性。由此可知,在本说明书所提供的实施例中,被收录至区块链的分布式数据库中的数据不会被攻击或篡改,从而保证了上述服务平台节点设备向上述区块链存证的数据信息的真实可靠性。
本实施例所述的服务平台节点设备,可通过遵循相应节点协议、运行节点协议程序的安装来加入该区块链,作为该区块链的节点。本领域的技术人员通常将具有区块链分布式数据库的数据全备份的节点设备称为全节点,将具有区块链分布式数据库的部分备份数据(如仅有区块头的数据)的节点设备称为轻节点或客户端等;在本实施例中所述的服务平台节点设备可包括上述的全节点、轻节点或客户端,只要直接或间接连入上述区块链、且可发送或获取区块链的分布式数据库的数据的任何设备均可称为本实施例所述的节点设备。
如图1所示,上述基于区块链的数据处理方法包括:
步骤102,所述服务平台节点设备获取服务需求方终端发送的订单信息,其中,所述订单信息包括需求的服务内容。
本实施例所述的服务需求方终端,在与上述服务平台节点设备通信的过程中,向上述服务平台节点设备发送订单信息。上述订单信息可包括服务需求方所需求的服务内容,所述需求的服务内容包括:服务类型内容,或服务提供方所应满足的条件等内容,以方便服务平台可基于上述订单信息进行服务双方的匹配、撮合或分配。
步骤104,基于所述订单信息,向服务提供方终端发送订单分配信息,用以为所述服务需求方终端分配服务提供方,其中,所述区块链的分布式数据库中存证有上述服务提供方的身份识别信息,用以供所述服务提供方在提供服务时作身份校验对比。
区块链的分布式数据库中存证有服务提供方的身份识别信息,用以为实际提供服务 的服务提供方做身份校验对比,防止在上述服务平台登记入册的服务提供方、与接单后实际提供服务的服务提供方不属于同一用户,带来可能发生的安全隐患。
上述身份识别信息可包括身份证件信息(如身份证图片、身份证号码等)、生物学身份识别信息(如指纹、面貌、声纹、虹膜等识别信息),以确定服务提供方的身份。
服务提供方可在注册成为上述服务平台的服务提供人员时,将上述身份识别信息录入到服务平台节点设备中,并由上述服务平台节点设备将上述身份识别信息存证到区块链的分布式数据库中。值得注意的是,将上述身份识别信息存证于区块链的分布式数据库中的具体方式可以有多种,除了将上述身份识别信息的原文备份到区块链的分布式数据库中,由各节点设备共同备份维护;由于上述服务提供方的身份识别信息通常为用户非常敏感的个人隐私信息,还可将上述身份识别信息加密后发布于区块链的分布式数据库中,以防止区块链中的其他节点设备在获取上述身份识别信息后进行非法应用。
在又一示出的实施方式中,上述将身份识别信息存证于区块链的分布式数据库中的具体方式还可以表现为,服务平台节点设备收集服务提供方的身份识别信息,并将服务提供方的身份识别信息的摘要(如哈希摘要值)发送到区块链的分布式数据库中,以为上述服务提供方的身份识别信息进行存证。
在本实施例中,区块链的分布式数据库中存证的服务提供方的身份识别信息,用以供该服务提供方在提供服务时作身份校验对比。关于上述身份校验对比可以包括多种具体实现流程。
在一示出的实施方式中,上述身份校验对比由上述服务平台节点设备执行,具体过程可包括:
当服务提供方接收到服务平台发送的订单分配信息后,会依据服务需求方的需求提供服务;在提供相应服务时,为了确保实际的服务提供方确实为上述订单分配信息指定的服务提供者,服务提供方或服务需求方终端会采集实际的服务提供方的现有身份识别信息,如对实际的服务提供方进行人脸识别或查验采集其身份证件等,并将上述采集到的现有身份识别信息发送到服务平台节点设备,以供服务平台节点设备进行身份校验对比;
上述服务平台节点设备接收上述服务提供方终端或上述服务需求方终端发送的身份校验信息后,基于区块链中存证的、订单分配信息中对应的服务提供方的身份识别信息,对上述存证的身份识别信息与上述现有身份信息进行对比;并将对比的结果发送至所述 服务需求方终端或所述服务提供方终端,以使上述服务需求方确认此时实际的服务提供方和订单分配信息中指定的服务提供方是否为同一人。
在又一示出的实施方式中,上述身份校验对比可由服务提供方终端或服务需求方终端执行。具体流程可包括:上述服务平台节点设备获取所述服务提供方在所述区块链的分布式数据库中存证的身份识别信息;向所述服务提供方终端或所述服务需求方终端发送所述身份识别信息,以使所述服务提供方终端或所述服务需求方终端基于所述身份识别信息,对所述服务提供方作身份校验对比;接收所述服务提供方终端或所述服务需求方终端发送的身份校验对比结果。
以上两实施例仅是对服务提供方的身份信息进行校验对比的两种具体实现方式,本说明书中并不限定基于区块链的分布式数据库中存证的服务提供方的身份识别信息对实际的服务提供方进行身份校验对比的实现过程及执行主体,凡是基于区块链的分布式数据库中存证的服务提供方的身份识别信息对实际的服务提供方进行身份校验对比以获得身份校验对比结果,均属于本说明书保护的范围。
步骤106,接收所述服务需求方终端或所述服务提供方终端发送的服务提供方实际提供的服务内容。
具体来说,上述服务提供方实际提供的服务内容可包括:服务提供方节点设备的定位信息(用以表明服务提供方已达到服务位置)、所述服务提供方的身份校验对比结果(用以表明服务提供方为订单分配信息中指定的服务提供方)、服务提供方开始服务时间、服务提供方结束服务时间、服务过程备忘信息等内容中的一种或多种。
关于上述服务提供方实际提供的服务内容可以由所述服务需求方终端发送,也可由所述服务提供方终端发送,视实际业务需求或流程而定,在本说明书中不作限定。
步骤108,向所述区块链发送服务存证交易,以使所述服务存证交易被所述区块链共识验证后收录于所述区块链的分布式数据库;所述服务存证交易用于为服务提供方实际提供的服务内容进行存证。
在本说明书中所描述的交易(transfer),是指通过区块链的节点设备创建,并需要最终发布至区块链的分布式数据库中的一笔数据。其中,区块链中的交易,存在狭义的交易以及广义的交易之分。狭义的交易是指用户向区块链发布的一笔价值转移;例如,在传统的比特币区块链网络中,交易可以是用户在区块链中发起的一笔转账。而广义的交易是指用户向区块链发布的一笔具有业务意图的业务数据;例如,本说明书的上述实 施例所述的发布至上述区块链中的、用于为服务提供方实际提供的服务内容进行存证的数据即可以为一笔交易;或者将上述已完成的服务内容按照预设的交易数据格式整理,从而转化为一笔交易。
本实施例所述的服务存证交易,用于为服务提供方实际提供的、或已完成的服务内容进行存证。例如,服务提供方终端或服务需求方终端可以从服务提供方达到服务位置开始,将服务提供方提供的一系列相关服务内容、或执行的一系列相关服务动作上传到上述服务平台节点设备,既可使上述服务平台节点设备监管服务提供方提供的服务内容,又可使上述服务平台节点设备将上述提供方实际提供的服务内容在区块链的分布式数据库中进行存证。
具体来说,上述服务提供方实际提供的服务内容可包括:服务提供方节点设备的定位信息(用以表明服务提供方已达到服务位置)、所述服务提供方的身份校验对比结果(用以表明服务提供方为订单分配信息中指定的服务提供方)、服务提供方开始服务时间、服务提供方结束服务时间、服务过程备忘信息等内容中的一种或多种。相应地,上述服务存证交易可包括上述服务提供方实际提供的服务内容的原文或加密密文,或上述服务提供方实际提供的服务内容的数学摘要(如哈希摘要),以为上述服务提供方实际提供的服务内容进行存证。
上述实施例所述的将所述服务存证交易上传到所述区块链的分布式数据库中的详细过程,可依据所述区块链的共识机制及交易规则而具体设定。在一示出的实施例中,将所述服务存证交易上传到所述区块链的分布式数据库中,包括:
所述区块链中具有记账权限的节点设备将所述服务存证交易加入到候选区块;
从所述具有记账权限的节点设备中确定满足所述区块链共识机制的共识记账节点设备;
所述共识记账节点向所述区块链的节点设备广播所述候选区块;
在所述候选区块通过所述区块链符合预设数量的节点设备的验证认可后,所述候选区块被视为最新区块,加入到所述区块链的分布式数据库中。
在上述的实施例中,具有记账权限的节点设备是指具有生成候选区块权限的节点设备。根据所述区块链的共识机制,可从所述候选区块具有记账权限的节点设备中确定共识记账节点设备,上述共识机制可以包括工作量证明机制(PoW)、或权利证明机制(PoS)、或股份授权证明机制(DPoS)等。
PoS或DPoS共识机制与PoW类似,均属于公有区块链中确认共识记账节点设备所常选用的共识算法。在又一示出的实施例中,为降低交易或数据的确认时间、提高交易吞吐量、满足对安全和性能的需求,本说明书所提供的实施例还可选用联盟链架构来构建该区块链。上述服务平台节点设备、或对相关服务业务实行监管的机构可作为该联盟链的预选的节点设备,参与区块的记账。联盟链的共识过程也由该预选的节点设备控制,当网络上有超过设定比例(如2/3)的节点设备确认一个区块,该区块记录的交易或数据将得到全网确认。
联盟链通常多采用权益证明或PBFT、RAFT等共识算法。在实现时,在区块链的每一轮共识开始之前,可以在区块链中的各节点设备中选举出一台主节点设备,即上述实施例所述的共识记账节点(比如,每一轮共识都重新选举出一主节点设备,其它节点设备作为从节点设备),由主节点设备进一步向发起交易的验证和共识,并负责基于共识通过的交易数据(或目标数据)为区块链创建最新的区块。
PBFT算法作为本说明书所提供的联盟链的共识算法的一种优选的实施方式,是由于采用该种算法共识的效率高,可满足高频交易量的需求,例如在本实施例中服务平台基于频繁发生的订单信息而生成服务存证交易;且共识的时延很低,基本达到实时处理的要求,能快速实时地在区块链的新生区块中收录上述服务存证交易;而且,将联盟链网络中可信节点作为预选的记账节点,兼顾了安全性与稳定性;另外,采用PBFT算法不会消耗过多的计算机算力资源,也不一定需要代币流通,因此具有良好的可使用性。
基于本实施例提供的服务方法,基于区块链技术的分布式数据库存储机制,实际完成的服务内容被去中心化地记录在多个区块链节点中,由区块链节点共同维护,实时进行同步,所有记录可回溯;而且,基于区块链的共识机制,服务平台节点设备提供的已完成的服务内容信息不会在提供后被篡改,从而保证了已完成的服务内容的真实性和安全性,为基于该已完成的服务内容进行的取证或其他应用提供了有效的数据基础。
与上述流程实现对应,本说明书的实施例还提供了基于区块链的数据处理装置20。该装置20可以通过软件实现,也可以通过硬件或者软硬件结合的方式实现。以软件实现为例,作为逻辑意义上的装置,是通过所在设备的CPU(Central Process Unit,中央处理器)将对应的计算机程序指令读取到内存中运行形成的。从硬件层面而言,除了图3所示的CPU、内存以及存储器之外,网络风险业务的实现装置所在的设备通常还包括用于进行无线信号收发的芯片等其他硬件,和/或用于实现网络通信功能的板卡等其他硬件。
图2所示为本说明书还提供了一种基于区块链的数据处理装置20,所述区块链包括 服务平台节点设备;所述装置20包括:
获取单元202,用于获取服务需求方终端发送的订单信息,其中,所述订单信息包括需求的服务内容;
发送单元204,用于基于所述订单信息,向服务提供方终端发送订单分配信息,以为所述服务需求方终端分配服务提供方,其中,所述区块链的分布式数据库中存证有上述服务提供方的身份识别信息,用以供所述服务提供方在提供服务时作身份校验对比;
接收单元206,用于接收所述服务需求方终端或所述服务提供方终端发送的服务提供方实际提供的服务内容;
交易发送单元208,用于向所述区块链发送服务存证交易,以使所述服务存证交易被所述区块链共识验证后收录于所述区块链的分布式数据库;所述服务存证交易用于为服务提供方实际提供的服务内容进行存证。
在又一示出的实施方式中,所述身份识别信息为所述服务提供方的生物学身份识别信息。
在又一示出的实施方式中,所述接收单元206,进一步用于接收所述服务提供方终端或所述服务需求方终端发送的身份校验信息,所述身份校验信息包括所述服务提供方的现有身份信息;
所述装置20还包括对比单元210,用于对比所述身份识别信息与所述现有身份信息;
所述发送单元204,进一步用于将对比的结果发送至所述服务提供方终端或所述服务需求方终端。
在又一示出的实施方式中,所述获取单元202,进一步用于获取所述服务提供方在所述区块链的分布式数据库中存证的身份识别信息;
所述发送单元204,进一步用于向所述服务提供方终端或所述服务需求方终端发送所述身份识别信息,以使所述服务提供方终端或所述服务需求方终端基于所述身份识别信息,对所述服务提供方作身份校验对比;
所述接收单元206,进一步用于接收所述服务提供方终端或所述服务需求方终端发送的身份校验对比结果。
在又一示出的实施方式中,所述服务提供方实际提供的服务内容包括所述服务提供方节点设备的定位信息、所述服务提供方的身份校验对比结果、服务提供方开始服务时 间、服务提供方结束服务时间、服务过程备忘信息内容或内容的数学摘要中的一种或多种。
在又一示出的实施方式中,所述区块链的为联盟链,所述服务平台节点设备为联盟成员节点设备。
上述装置20中各个单元的功能和作用的实现过程具体详见上述方法中对应步骤的实现过程,相关之处参见方法实施例的部分说明即可,在此不再赘述。
以上所描述的装置实施例仅仅是示意性的,其中所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理模块,即可以位于一个地方,或者也可以分布到多个网络模块上。可以根据实际的需要选择其中的部分或者全部单元或模块来实现本说明书方案的目的。本领域普通技术人员在不付出创造性劳动的情况下,即可以理解并实施。
上述实施例阐明的装置、单元、模块,具体可以由计算机芯片或实体实现,或者由具有某种功能的产品来实现。一种典型的实现设备为计算机,计算机的具体形式可以是个人计算机、膝上型计算机、蜂窝电话、相机电话、智能电话、个人数字助理、媒体播放器、导航设备、电子邮件收发设备、游戏控制台、平板计算机、可穿戴设备或者这些设备中的任意几种设备的组合。
与上述方法实施例相对应,本说明书的实施例还提供了一种计算机设备,如图3所示,该计算机设备包括存储器和处理器。其中,存储器上存储有能够由处理器运行的计算机程序;处理器在运行存储的计算机程序时,执行本说明书实施例中服务平台节点设备执行的基于区块链的数据处理方法的各个步骤。对服务平台节点设备执行的基于区块链的数据处理方法的各个步骤的详细描述请参见之前的内容,不再重复。
与上述方法实施例相对应,本说明书的实施例还提供了一种计算机可读存储介质,该存储介质上存储有计算机程序,这些计算机程序在被处理器运行时,执行本说明书实施例中服务平台节点设备执行的基于区块链的数据处理方法的各个步骤。对服务平台节点设备执行的基于区块链的数据处理方法的各个步骤的详细描述请参见之前的内容,不再重复。
以上所述仅为本说明书的较佳实施例而已,并不用以限制本说明书,凡在本说明书的精神和原则之内,所做的任何修改、等同替换、改进等,均应包含在本说明书保护的范围之内。
在一个典型的配置中,计算设备包括一个或多个处理器(CPU)、输入/输出接口、网络接口和内存。
内存可能包括计算机可读介质中的非永久性存储器,随机存取存储器(RAM)和/或非易失性内存等形式,如只读存储器(ROM)或闪存(flash RAM)。内存是计算机可读介质的示例。
计算机可读介质包括永久性和非永久性、可移动和非可移动媒体可以由任何方法或技术来实现信息存储。信息可以是计算机可读指令、数据结构、程序的模块或其他数据。
计算机的存储介质的例子包括,但不限于相变内存(PRAM)、静态随机存取存储器(SRAM)、动态随机存取存储器(DRAM)、其他类型的随机存取存储器(RAM)、只读存储器(ROM)、电可擦除可编程只读存储器(EEPROM)、快闪记忆体或其他内存技术、只读光盘只读存储器(CD-ROM)、数字多功能光盘(DVD)或其他光学存储、磁盒式磁带,磁带磁磁盘存储或其他磁性存储设备或任何其他非传输介质,可用于存储可以被计算设备访问的信息。按照本文中的界定,计算机可读介质不包括暂存电脑可读媒体(transitory media),如调制的数据信号和载波。
还需要说明的是,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、商品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、商品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、商品或者设备中还存在另外的相同要素。
本领域技术人员应明白,本说明书的实施例可提供为方法、系统或计算机程序产品。因此,本说明书的实施例可采用完全硬件实施例、完全软件实施例或结合软件和硬件方面的实施例的形式。而且,本说明书的实施例可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。
Claims (14)
- 一种基于区块链的数据处理方法,所述区块链包括服务平台节点设备;所述方法包括:所述服务平台节点设备获取服务需求方终端发送的订单信息,其中,所述订单信息包括需求的服务内容;基于所述订单信息,向服务提供方终端发送订单分配信息,用以为所述服务需求方终端分配服务提供方,其中,所述区块链的分布式数据库中存证有所述服务提供方的身份识别信息,用以供所述服务提供方在提供服务时作身份校验对比;接收所述服务需求方终端或所述服务提供方终端发送的服务提供方实际提供的服务内容;向所述区块链发送服务存证交易,以使所述服务存证交易被所述区块链共识验证后收录于所述区块链的分布式数据库;所述服务存证交易用于为服务提供方实际提供的服务内容进行存证。
- 根据权利要求1所述的方法,所述身份识别信息为所述服务提供方的生物学身份识别信息。
- 根据权利要求1或2所述的方法,还包括:接收所述服务提供方终端或所述服务需求方终端发送的身份校验信息,所述身份校验信息包括所述服务提供方的现有身份信息;对比所述身份识别信息与所述现有身份信息;将对比的结果发送至所述服务提供方终端或所述服务需求方终端。
- 根据权利要求1或2所述的方法,还包括:获取所述服务提供方在所述区块链的分布式数据库中存证的身份识别信息;向所述服务提供方终端或所述服务需求方终端发送所述身份识别信息,以使所述服务提供方终端或所述服务需求方终端基于所述身份识别信息,对所述服务提供方作身份校验对比;接收所述服务提供方终端或所述服务需求方终端发送的身份校验对比结果。
- 根据权利要求1所述的方法,所述服务提供方实际提供的服务内容包括所述服务提供方节点设备的定位信息、所述服务提供方的身份校验对比结果、服务提供方开始服务时间、服务提供方结束服务时间、服务过程备忘信息内容或内容的数学摘要中的一种或多种。
- 根据权利要求1所述的方法,所述区块链的为联盟链,所述服务平台节点设备 为联盟成员节点设备。
- 一种基于区块链的数据处理装置,所述区块链包括服务平台节点设备;所述装置包括:获取单元,用于获取服务需求方终端发送的订单信息,其中,所述订单信息包括需求的服务内容;发送单元,用于基于所述订单信息,向服务提供方终端发送订单分配信息,以为所述服务需求方终端分配服务提供方,其中,所述区块链的分布式数据库中存证有所述服务提供方的身份识别信息,用以供所述服务提供方在提供服务时作身份校验对比;接收单元,用于接收所述服务需求方终端或所述服务提供方终端发送的服务提供方实际提供的服务内容;交易发送单元,用于向所述区块链发送服务存证交易,以使所述服务存证交易被所述区块链共识验证后收录于所述区块链的分布式数据库;所述服务存证交易用于为服务提供方实际提供的服务内容进行存证。
- 根据权利要求7所述的装置,所述身份识别信息为所述服务提供方的生物学身份识别信息。
- 根据权利要求7或8所述的装置,所述接收单元,进一步用于接收所述服务提供方终端或所述服务需求方终端发送的身份校验信息,所述身份校验信息包括所述服务提供方的现有身份信息;所述装置还包括对比单元,用于对比所述身份识别信息与所述现有身份信息;所述发送单元,进一步用于将对比的结果发送至所述服务提供方终端或所述服务需求方终端。
- 根据权利要求7或8所述的装置:所述获取单元,进一步用于获取所述服务提供方在所述区块链的分布式数据库中存证的身份识别信息;所述发送单元,进一步用于向所述服务提供方终端或所述服务需求方终端发送所述身份识别信息,以使所述服务提供方终端或所述服务需求方终端基于所述身份识别信息,对所述服务提供方作身份校验对比;所述接收单元,进一步用于接收所述服务提供方终端或所述服务需求方终端发送的身份校验对比结果。
- 根据权利要求7所述的装置,所述服务提供方实际提供的服务内容包括所述服务提供方节点设备的定位信息、所述服务提供方的身份校验对比结果、服务提供方开始 服务时间、服务提供方结束服务时间、服务过程备忘信息内容或内容的数学摘要中的一种或多种。
- 根据权利要求7所述的装置,所述区块链的为联盟链,所述服务平台节点设备为联盟成员节点设备。
- 一种计算机设备,包括:存储器和处理器;所述存储器上存储有可由所述处理器运行的计算机程序;所述处理器运行所述计算机程序时,执行如权利要求1到6任意一项所述的方法。
- 一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器运行时,执行如权利要求1到6任意一项所述的方法。
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201811636710.8 | 2018-12-29 | ||
| CN201811636710.8A CN110009339A (zh) | 2018-12-29 | 2018-12-29 | 基于区块链的数据处理方法和装置 |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2020134631A1 true WO2020134631A1 (zh) | 2020-07-02 |
Family
ID=67165311
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2019/116226 Ceased WO2020134631A1 (zh) | 2018-12-29 | 2019-11-07 | 基于区块链的数据处理方法和装置 |
Country Status (3)
| Country | Link |
|---|---|
| CN (1) | CN110009339A (zh) |
| TW (1) | TW202027457A (zh) |
| WO (1) | WO2020134631A1 (zh) |
Families Citing this family (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN110009339A (zh) * | 2018-12-29 | 2019-07-12 | 阿里巴巴集团控股有限公司 | 基于区块链的数据处理方法和装置 |
| CN110609869B (zh) * | 2019-09-10 | 2023-04-07 | 连连银通电子支付有限公司 | 一种基于区块链的数据存储方法、相关设备及存储介质 |
| CN111553691A (zh) * | 2020-05-21 | 2020-08-18 | 陈议尊 | 一种纯去中心化区块链方法及系统 |
| CN111797165B (zh) * | 2020-06-24 | 2023-11-28 | 泰康保险集团股份有限公司 | 基于区块链的数据处理方法及装置 |
| CN111783144A (zh) * | 2020-08-20 | 2020-10-16 | 支付宝(杭州)信息技术有限公司 | 基于区块链的数据处理方法以及装置 |
| CN113255005B (zh) * | 2020-09-15 | 2024-05-28 | 支付宝(杭州)信息技术有限公司 | 一种基于区块链的数据资产流转方法、装置及设备 |
| CN115842866B (zh) * | 2021-09-17 | 2025-04-11 | 广州腾讯科技有限公司 | 数据处理方法、装置、计算机可读介质及电子设备 |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN106897902A (zh) * | 2017-02-21 | 2017-06-27 | 中链科技有限公司 | 基于区块链技术的服务交易方法、系统和交易服务器 |
| CN108717629A (zh) * | 2018-05-14 | 2018-10-30 | 现在(北京)支付股份有限公司 | 一种智能支付方法、系统及电子设备 |
| CN108805650A (zh) * | 2018-04-27 | 2018-11-13 | 深圳市元征科技股份有限公司 | 一种订单匹配方法及服务器 |
| CN109034437A (zh) * | 2018-08-16 | 2018-12-18 | 刘仕博 | 一种基于云终端的图书馆系统 |
| CN110009339A (zh) * | 2018-12-29 | 2019-07-12 | 阿里巴巴集团控股有限公司 | 基于区块链的数据处理方法和装置 |
Family Cites Families (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN108389129B (zh) * | 2018-02-27 | 2020-12-04 | 创新先进技术有限公司 | 基于区块链的交易执行方法及装置、电子设备 |
| CN108765070A (zh) * | 2018-05-22 | 2018-11-06 | 深圳市元征科技股份有限公司 | 一种服务提供方法、系统、设备及计算机可读存储介质 |
| CN109064330A (zh) * | 2018-07-19 | 2018-12-21 | 中链科技有限公司 | 基于联盟区块链的服务交易处理方法、系统及装置 |
-
2018
- 2018-12-29 CN CN201811636710.8A patent/CN110009339A/zh active Pending
-
2019
- 2019-10-21 TW TW108137831A patent/TW202027457A/zh unknown
- 2019-11-07 WO PCT/CN2019/116226 patent/WO2020134631A1/zh not_active Ceased
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN106897902A (zh) * | 2017-02-21 | 2017-06-27 | 中链科技有限公司 | 基于区块链技术的服务交易方法、系统和交易服务器 |
| CN108805650A (zh) * | 2018-04-27 | 2018-11-13 | 深圳市元征科技股份有限公司 | 一种订单匹配方法及服务器 |
| CN108717629A (zh) * | 2018-05-14 | 2018-10-30 | 现在(北京)支付股份有限公司 | 一种智能支付方法、系统及电子设备 |
| CN109034437A (zh) * | 2018-08-16 | 2018-12-18 | 刘仕博 | 一种基于云终端的图书馆系统 |
| CN110009339A (zh) * | 2018-12-29 | 2019-07-12 | 阿里巴巴集团控股有限公司 | 基于区块链的数据处理方法和装置 |
Also Published As
| Publication number | Publication date |
|---|---|
| TW202027457A (zh) | 2020-07-16 |
| CN110009339A (zh) | 2019-07-12 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| TWI779231B (zh) | 基於區塊鏈的存證方法和裝置 | |
| TWI716140B (zh) | 基於區塊鏈的資料處理方法和裝置 | |
| CN109584066B (zh) | 基于区块链的隐私交易及其应用方法和装置 | |
| TWI724391B (zh) | 基於區塊鏈的節點管理方法和裝置 | |
| CN110363527B (zh) | 基于区块链的存证、监管方法和装置 | |
| CN110166442B (zh) | 一种基于区块链的数据处理方法和装置 | |
| WO2020134631A1 (zh) | 基于区块链的数据处理方法和装置 | |
| WO2020248603A1 (zh) | 基于区块链的虚拟资源分配方法和装置 | |
| TW202029106A (zh) | 基於區塊鏈的存證方法和裝置 | |
| CN109614813B (zh) | 基于区块链的隐私交易方法、装置及其应用方法、装置 | |
| CN113111387A (zh) | 基于区块链的金融资产多方共享交易元数据信息的方法、装置及系统 | |
| WO2020220759A1 (zh) | 一种基于区块链的支付方法和装置 | |
| TW202026926A (zh) | 基於區塊鏈的存證方法和裝置 | |
| CN110263092A (zh) | 基于区块链的租赁方法和装置 | |
| WO2020038105A1 (zh) | 基于区块链的数据存证方法和装置 | |
| WO2020125234A1 (zh) | 一种基于区块链的数据处理方法和装置 | |
| CN110502927A (zh) | 一种信息处理方法及相关装置 | |
| CN110471982B (zh) | 基于区块链的数据处理方法和装置 | |
| CN110246005A (zh) | 基于区块链的租赁方法和装置 | |
| CN111414434A (zh) | 基于区块链的数据交易管理网络、交易设备和存储介质 | |
| CN110347750B (zh) | 基于区块链的数据处理方法和装置 | |
| HK40015000A (zh) | 基於区块链的虚拟资源分配方法和装置 | |
| HK40015733B (zh) | 基於区块链的数据处理方法和装置 | |
| HK40014394A (zh) | 基於区块链的租赁方法和装置 | |
| HK40014385A (zh) | 基於区块链的租赁方法和装置 |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| 121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 19904618 Country of ref document: EP Kind code of ref document: A1 |
|
| NENP | Non-entry into the national phase |
Ref country code: DE |
|
| 122 | Ep: pct application non-entry in european phase |
Ref document number: 19904618 Country of ref document: EP Kind code of ref document: A1 |