WO2020093818A1 - 基于区块链的数据处理方法、装置和服务器 - Google Patents

基于区块链的数据处理方法、装置和服务器 Download PDF

Info

Publication number
WO2020093818A1
WO2020093818A1 PCT/CN2019/108730 CN2019108730W WO2020093818A1 WO 2020093818 A1 WO2020093818 A1 WO 2020093818A1 CN 2019108730 W CN2019108730 W CN 2019108730W WO 2020093818 A1 WO2020093818 A1 WO 2020093818A1
Authority
WO
WIPO (PCT)
Prior art keywords
transaction information
blockchain
false
real
transaction
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
Application number
PCT/CN2019/108730
Other languages
English (en)
French (fr)
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.)
Alibaba Group Holding Ltd
Original Assignee
Alibaba Group Holding 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 Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to SG11202100845PA priority Critical patent/SG11202100845PA/en
Priority to EP19883275.0A priority patent/EP3812997B1/en
Publication of WO2020093818A1 publication Critical patent/WO2020093818A1/zh
Priority to US17/163,330 priority patent/US11270004B2/en
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/64Protecting data integrity, e.g. using checksums, certificates or signatures
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/62Protecting access to data via a platform, e.g. using keys or access control rules
    • G06F21/6218Protecting access to data via a platform, e.g. using keys or access control rules to a system of files or objects, e.g. local or distributed file system or database
    • G06F21/6245Protecting personal data, e.g. for financial or medical purposes
    • G06F21/6254Protecting personal data, e.g. for financial or medical purposes by anonymising data, e.g. decorrelating personal data from the owner's identification
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/06Buying, selling or leasing transactions
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/06Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols the encryption apparatus using shift registers or memories for block-wise or stream coding, e.g. DES systems or RC4; Hash functions; Pseudorandom sequence generators
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/32Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials
    • H04L9/3236Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials using cryptographic hash functions
    • H04L9/3239Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials using cryptographic hash functions involving non-keyed hash functions, e.g. modification detection codes [MDCs], MD5, SHA or RIPEMD
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/50Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols using hash chains, e.g. blockchains or hash trees
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/389Keeping log of transactions for guaranteeing non-repudiation of a transaction
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q2220/00Business processing using cryptography
    • 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/16Obfuscation or hiding, e.g. involving white box
    • 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/34Encoding or coding, e.g. Huffman coding or error correction
    • 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/42Anonymization, e.g. involving pseudonyms
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L2463/00Additional details relating to network architectures or network communication protocols for network security covered by H04L63/00
    • H04L2463/102Additional details relating to network architectures or network communication protocols for network security covered by H04L63/00 applying security measure for e-commerce
    • 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

Definitions

  • the embodiments of the present specification relate to the field of computer technology, and in particular, to a blockchain-based data processing method, device, and server.
  • Blockchain technology is a distributed database technology that uses cryptography and consensus mechanisms to ensure that data cannot be tampered with or forged.
  • blockchain technology is highly favored for its advantages of decentralization, openness and transparency, non-tampering, and trust. File storage, proof of existence, identity verification, equity crowdfunding and many other scenarios are widely used.
  • the purpose of the embodiments of this specification is to provide a blockchain-based data processing method, device, and server to hide the number of transaction transactions on the blockchain.
  • the embodiments of this specification provide a blockchain-based data processing method, including:
  • a blockchain-based data processing device including:
  • the calculation unit is used to calculate the submission time according to the reference time and the submission time interval
  • a generating unit configured to generate false transaction information after the submission time arrives
  • the submission unit is used to submit the false transaction information to the blockchain.
  • an embodiment of this specification provides a server, including:
  • Memory used to store computer instructions
  • the processor is configured to execute the computer instructions to realize the following steps: calculate the submission time according to the reference time and the submission time interval; after the submission time arrives, generate false transaction information; perform transaction content in the false transaction information Privacy protection processing; submit the fake transaction information to the blockchain.
  • the embodiments of this specification provide a blockchain-based data processing method, including:
  • a blockchain-based data processing device including:
  • the calculation unit is used to calculate the submission time according to the reference time and the submission time interval
  • the first submission unit is used to generate false transaction information when there is no real transaction information to be submitted after the submission time arrives; perform privacy protection processing on the transaction content in the false transaction information;
  • the blockchain submits the false transaction information;
  • the second submission unit is used to perform privacy protection processing on the transaction content in the real transaction information when there is real transaction information to be submitted; and submit the real transaction information to the blockchain.
  • an embodiment of this specification provides a server, including:
  • Memory used to store computer instructions
  • the processor is configured to execute the computer instructions to realize the following steps: calculate the submission time according to the reference time and the submission time interval; after the submission time arrives, when there is no real transaction information to be submitted, generate false transaction information Privacy protection for the transaction content in the false transaction information; submit the false transaction information to the blockchain; when there is real transaction information to be submitted, the transaction content in the real transaction information Perform privacy protection processing; submit the real transaction information to the blockchain.
  • the initiator server submits the transaction content to the blockchain from time to time with false transaction information that has undergone privacy protection processing, so that third parties cannot distinguish
  • the real transaction information and false transaction information submitted by the chain can hide the number of real transaction information submitted to the blockchain, and then hide the number of transactions of the initiator account on the blockchain.
  • FIG. 1 is a flowchart of a data processing method according to an embodiment of this specification
  • FIG. 3 is a schematic diagram of the functional structure of a data processing device according to an embodiment of the present specification.
  • FIG. 4 is a schematic diagram of a functional structure of a data processing device according to an embodiment of the present specification
  • FIG. 5 is a schematic diagram of a functional structure of a server according to an embodiment of the present specification.
  • an embodiment of this specification provides a blockchain-based data processing method.
  • the block chain may be a chronological order, which organizes multiple block data in a chain structure, and uses a cryptographic algorithm to ensure security, traceability, and An immutable distributed ledger.
  • the blockchain may include a public blockchain, a joint blockchain (also called an alliance blockchain), and a private blockchain.
  • the blockchain can be implemented based on a blockchain network.
  • the blockchain network may include a peer-to-peer network and the like.
  • the blockchain network may include multiple blockchain nodes. All blockchain nodes jointly maintain a unified blockchain ledger.
  • the data processing method uses an initiator server as an execution subject.
  • the initiator server may join the blockchain network as a blockchain node.
  • An initiator account may be logged in the initiator server.
  • the initiator account may be an account of the initiator in the blockchain.
  • the initiator server can communicate with the client.
  • the client may be, for example, a smart phone, a tablet electronic device, a portable computer, a personal digital assistant (PDA), or a smart wearable device.
  • PDA personal digital assistant
  • the type of the initiator may be the same or different, and the type of the account of the initiator may be the same or different according to different business scenarios applied by the data processing method.
  • the data processing method can be applied to a transfer business scenario.
  • the initiator may be the remittance party; the initiator account may be the remittance account.
  • the data processing method can be applied to a certificate storage business scenario.
  • the initiator may be a depositor of certificate storage information; the initiator account may be a depositor account.
  • the data processing method may include the following steps.
  • Step S10 Calculate the submission time according to the reference time and the submission time interval.
  • the reference time may include at least one of the following: the last time the fake transaction information was submitted to the blockchain, and the last time the real transaction information was submitted to the blockchain.
  • the real transaction information may be sent by the client. Specifically, the client may send transaction information to the initiator server.
  • the initiator server may receive transaction information as real transaction information.
  • the real transaction information may also be input by the user. Specifically, the user may input transaction information on the initiator server.
  • the initiator server may receive the transaction information input by the user as real transaction information.
  • the real transaction information may also be obtained in other ways, which is not specifically limited in this embodiment.
  • the real transaction information may include transaction content and an initiator account identifier of the initiator account.
  • the transaction content in the real transaction information may be the same or different.
  • the data processing method can be applied to a transfer business scenario.
  • the transaction content in the real transaction information may include the transaction amount.
  • the data processing method can be applied to a certificate storage business scenario.
  • the transaction content in the real transaction information may include certificate storage information.
  • the initiator account identifier may be used to identify the initiator account, for example, may be the name or address of the initiator account.
  • the real transaction information may not include the recipient account identifier.
  • the real transaction information may include a receiver account identifier. For example, in some transfer business scenarios, the initiator needs to have a counterparty.
  • the real transaction information may include the recipient's account identification.
  • the receiver account identifier may be used to identify the receiver account, for example, it may be the name or address of the receiver account.
  • the type of the recipient may be the same or different, and the type of the account of the recipient may be the same or different.
  • the data processing method can be applied to a transfer business scenario. Then, the recipient may be the importer; the recipient account may be the importer account.
  • the fake transaction information may be fictitious transaction information of the initiator server.
  • the false transaction information may include transaction content and the initiator account identifier.
  • the transaction content in the fake transaction information may be the same or different.
  • the data processing method can be applied to a transfer business scenario.
  • the transaction content in the false transaction information may include a transaction amount with a value of zero. In this way, after the false transaction information is submitted to the blockchain in the subsequent process, the balance of the initiator account and the balance of the receiver account may remain unchanged.
  • the data processing method can be applied to a certificate storage business scenario. Then, the transaction content in the false transaction information may include blank certificate storage information.
  • the false transaction information may not include the receiver account identifier, or may also include the receiver account identifier.
  • the value of the submission time interval can be flexibly set according to business needs.
  • the value of the submission time interval may be a fixed value; or, it may be divided into time periods according to the actual needs of the business, and each time period is set to a fixed value; or, it may also be a random value .
  • the value of the submission interval during the peak period of the transaction can be set to 0.1 seconds (it can also be set to be shorter or longer according to business needs); the value of the submission interval during the low period of the transaction can be set to 1 minute ( It can also be set shorter or longer according to business requirements).
  • the value of the submission time interval may also be set according to a distribution function, so that the value of the submission time interval satisfies the distribution function.
  • the distribution function may include, for example, an exponential distribution function and an Erlang distribution function.
  • the expression of the exponential distribution function may be The expression of the Erlang distribution function may be
  • x represents the value of the submission interval
  • represents the arrival rate
  • k represents the order of the Erlang distribution function.
  • the arrival rate may represent the number of events that occur in a unit of time. In some scenario examples, the arrival rate may specifically represent the number of transactions per unit time.
  • the expected arrival rate D of the transaction (including real transaction and false transaction) at the submission time interval can be set; the actual arrival rate E of the real transaction can be counted.
  • DE.
  • the initiator server may add the reference time and the submission time interval to obtain the submission time. Specifically, the initiator server may add the last time to submit transaction information to the blockchain and the submission time interval to obtain the submission time.
  • the last time to submit transaction information to the blockchain may be the time to submit false transaction information, or it may be the time to submit real transaction information. Alternatively, the last time for submitting transaction information to the blockchain here may be only the time for submitting false transaction information.
  • the initiator server may obtain the initiator account identifier of the initiator account as the initiator account identifier in the false transaction information; may obtain transaction content as a transaction in the false transaction information content.
  • the transaction content may be generated by the initiator server. In this way, the initiator server may generate transaction content as the transaction content in the false transaction information.
  • the generated transaction content may include, for example, a transaction amount with a value of zero.
  • the transaction content may also be input by the user. In this way, the initiator server may receive the transaction content input by the user as the transaction content in the false transaction information.
  • the transaction content may also be sent from other devices. In this way, the initiator server may receive the transaction content sent from other devices as the transaction content in the false transaction information.
  • the transaction content may be stored locally in advance.
  • the initiator server can read the transaction content locally as the transaction content in the false transaction information.
  • the read transaction content may include blank certificate information, for example.
  • the transaction content in the false transaction information may also be obtained in other ways, which is not specifically limited in this embodiment.
  • the initiator server may directly generate false transaction information. Or, within the submission time interval, the initiator server may obtain real transaction information. For the manner in which the initiator server obtains real transaction information, reference may be made to step S10, and details are not described herein again.
  • the originating server may use the acquired real transaction information as the real transaction information to be submitted. In this way, after the submission time arrives, the initiator server can determine whether there is real transaction information to be submitted; when there is no real transaction information to be submitted, it can generate false transaction information. In this way, the initiator server can delay the real transaction information obtained within the submission time interval until submission at the submission time.
  • the initiator server may obtain an account identifier as the receiver account identifier in the false transaction information.
  • the initiator server may obtain the account identification in any way.
  • the initiator server may randomly select an account identifier in the blockchain as the receiver account identifier in the false transaction information.
  • the initiator server may be provided with a set of account identifiers.
  • the set of account identifiers may be preset, and may specifically include at least one receiver account identifier.
  • Each receiver's account identifier can correspond to a benchmark transaction ratio. The reference ratio can be flexibly set according to actual needs.
  • the initiator server can obtain the actual transaction ratio between each receiver account identifier in the account identifier set; the receiver account that has an actual transaction ratio less than or equal to the reference transaction ratio can be selected from the account identifier set
  • the identifier serves as the receiver account identifier in the false transaction information.
  • Step S14 Perform privacy protection processing on the transaction content in the false transaction information.
  • the initiator server may use any algorithm to perform privacy protection processing on the transaction content in the false transaction information.
  • the arbitrary algorithm may include, for example, a commitment algorithm, a homomorphic encryption algorithm, a hash algorithm, and so on.
  • the commitment algorithm may include, for example, the Pedersen commitment algorithm
  • the homomorphic encryption algorithm may include, for example, the Paillier algorithm, Okamoto-Uchiyama algorithm, Boneh-Goh-Nissim algorithm, and the like.
  • the transaction content in the false transaction information may include a transaction amount with a value of zero.
  • the initiator server may use a homomorphic encryption algorithm to perform privacy protection on the transaction amount with a value of zero.
  • the transaction content in the false transaction information may include blank certificate storage information. Then, the initiator server may use a hash algorithm to calculate the hash value of the blank certification information.
  • Step S16 Submit the false transaction information to the blockchain.
  • the initiator server may submit the fake transaction information to the blockchain; so that the consensus blockchain nodes in the blockchain can be updated according to the transaction content in the fake transaction information
  • the transaction content in the false transaction information may include a transaction amount with a value of zero.
  • the consensus blockchain node in the blockchain can update the balance of the initiator account and the balance of the receiver account according to the transaction amount of zero.
  • the balance of the initiator account and the balance of the receiver account can remain unchanged.
  • the initiator server may also generate verification information based on the false transaction information; it may be added to the false transaction information
  • the verification information may include signature information of the false transaction information.
  • the initiator server may obtain real transaction information.
  • the initiator server may perform privacy protection on the transaction content in the real transaction information; may submit the real transaction information to the blockchain; so that the blockchain The consensus blockchain node can update the status of the initiator account and / or the status of the receiver account according to the transaction content in the real transaction information. In this way, the initiator server can immediately submit the real transaction information after acquiring the real transaction information.
  • the initiator server submits false transaction information with privacy protection processing to the blockchain from time to time, so that the third party cannot distinguish the real transaction information and the false transaction information submitted to the blockchain, thereby It can hide the number of times to submit real transaction information to the blockchain, and then can hide the number of transactions of the initiator account on the blockchain.
  • this embodiment can also realize the time of hiding the real transaction and the account of the real transaction.
  • the embodiment of this specification also provides another blockchain-based data processing method.
  • the data processing method uses an initiator server as an execution subject, and the initiator server can be added as a blockchain node to the zone
  • an initiator account may be registered in the initiator server, the initiator account may be an account of the initiator in the blockchain, and the initiator server can communicate with the client.
  • the data processing method may include the following steps:
  • Step S20 Calculate the submission time according to the reference time and the submission time interval.
  • step S20 can be explained in comparison with step S10 in the foregoing embodiment.
  • Step S22 After the submission time arrives, when there is no real transaction information to be submitted, generate fake transaction information; perform privacy protection processing on the transaction content in the fake transaction information; submit to the blockchain The false transaction information.
  • step S22 can be compared with step S12 in the foregoing embodiment.
  • Step S24 When there is real transaction information to be submitted, perform privacy protection processing on the transaction content in the real transaction information; submit the real transaction information to the blockchain.
  • the number of real transaction information to be submitted may be one or more. Specifically, when the number of real transaction information to be submitted is one, the initiator server may perform privacy protection processing on the transaction content in the real transaction information; When the number of real transaction information to be submitted is multiple, the initiator server can select one of the real transaction information; the transaction content in the real transaction information can be privacy protected; Submit the real transaction information.
  • the initiator server may select real transaction information in any way. For example, the initiator server may randomly select real transaction information. As another example, the originator server may select to obtain the real transaction information at the earliest time.
  • the initiator server submits false transaction information with privacy protection processing to the blockchain from time to time, so that the third party cannot distinguish the real transaction information and the false transaction information submitted to the blockchain, thereby It can hide the number of times to submit real transaction information to the blockchain, and then can hide the number of transactions of the initiator account on the blockchain.
  • this embodiment can also realize the time of hiding the real transaction and the account of the real transaction.
  • the initiator server can add the last time to submit transaction information to the blockchain and the submission time interval to obtain the submission time.
  • the last time to submit transaction information to the blockchain may be the time to submit false transaction information or the time to submit real transaction information.
  • the originator server can determine whether there is real transaction information to be submitted after the submission time arrives; when there is no real transaction information to be submitted, false transaction information can be generated, and the false transaction information can be The transaction content in the privacy protection process can submit the false transaction information to the blockchain; when there is real transaction information to be submitted, the transaction content in the real transaction information can be privacy protected.
  • the real transaction information may be submitted to the blockchain.
  • the initiator server can add the last time to submit transaction information to the blockchain and the submission time interval to obtain the submission time.
  • the last time to submit transaction information to the blockchain may be the time to submit false transaction information or the time to submit real transaction information.
  • the initiator server may generate false transaction information after the submission time arrives, may perform privacy protection processing on the transaction content in the false transaction information, and may submit the false transaction information to the blockchain.
  • the initiator server may perform privacy protection processing on the transaction content in the real transaction information, and may submit the real transaction information to the blockchain, so that instant The blockchain submits real transaction information.
  • the initiator server can add the last time to submit transaction information to the blockchain and the submission time interval to obtain the submission time.
  • the last time to submit transaction information to the blockchain may be only the time to submit false transaction information.
  • the initiator server may generate false transaction information after the submission time arrives, may perform privacy protection processing on the transaction content in the false transaction information, and may submit the false transaction information to the blockchain.
  • the initiator server may perform privacy protection processing on the transaction content in the real transaction information, and may submit the real transaction information to the blockchain, so that instant The blockchain submits real transaction information.
  • an embodiment of the present specification provides a blockchain-based data processing device, which may include the following units:
  • the calculation unit 30 is used to calculate the submission time according to the reference time and the submission time interval;
  • the generating unit 32 is configured to generate false transaction information after the submission time arrives;
  • the encryption unit 34 is used for privacy protection processing of the transaction content in the false transaction information
  • the submission unit 36 is used to submit the fake transaction information to the blockchain.
  • an embodiment of the present specification provides a blockchain-based data processing device, which may include the following units:
  • the calculation unit 40 is used to calculate the submission time according to the reference time and the submission time interval;
  • the first submission unit 42 is used to generate false transaction information when there is no real transaction information to be submitted after the submission time arrives; perform privacy protection processing on the transaction content in the false transaction information;
  • the blockchain submits the false transaction information;
  • the second submission unit 44 is configured to perform privacy protection processing on the transaction content in the real transaction information when there is real transaction information to be submitted; and submit the real transaction information to the blockchain.
  • an embodiment of this specification further provides a server, and the server may include a memory and a processor.
  • the memory can be implemented in any suitable manner.
  • the memory may be a read-only memory, a mechanical hard disk, a solid-state hard disk, or a U disk.
  • the memory may be used to store computer instructions.
  • the processor may be implemented in any suitable manner.
  • the processor may employ, for example, a microprocessor or processor and a computer-readable medium storing computer-readable program code (such as software or firmware) executable by the (micro) processor, logic gates, switches, application specific integrated circuits ( Application Specific (Integrated Circuit, ASIC), programmable logic controller and embedded microcontroller, etc.
  • computer-readable program code such as software or firmware
  • the processor may execute the computer instructions to implement the following steps: calculate the submission time according to the reference time and the submission time interval; after the submission time arrives, generate false transaction information when there is no real transaction information to be submitted Privacy protection for the transaction content in the false transaction information; submit the false transaction information to the blockchain; when there is real transaction information to be submitted, the transaction content in the real transaction information Perform privacy protection processing; submit the real transaction information to the blockchain.
  • the server may include a memory and a processor.
  • the memory can be implemented in any suitable manner.
  • the memory may be a read-only memory, a mechanical hard disk, a solid-state hard disk, or a U disk.
  • the memory may be used to store computer instructions.
  • the processor may be implemented in any suitable manner.
  • the processor may employ, for example, a microprocessor or processor and a computer-readable medium storing computer-readable program code (e.g., software or firmware) executable by the (micro) processor, a logic gate, a switch, an application specific integrated circuit ( Application Specific (Integrated Circuit, ASIC), programmable logic controller and embedded microcontroller, etc.
  • computer-readable program code e.g., software or firmware
  • the processor may execute the computer instructions to realize the following steps: calculate the submission time according to the reference time and the submission time interval; after the submission time arrives, when there is no real transaction information to be submitted, generate false transaction information Privacy protection for the transaction content in the false transaction information; submit the false transaction information to the blockchain; when there is real transaction information to be submitted, the transaction content in the real transaction information Perform privacy protection processing; submit the real transaction information to the blockchain.
  • the improvement of a technology can be clearly distinguished from the improvement in hardware (for example, the improvement of circuit structures such as diodes, transistors, and switches) or the improvement in software (the improvement of the process flow).
  • the improvement of many methods and processes can be regarded as a direct improvement of the hardware circuit structure.
  • Designers almost get the corresponding hardware circuit structure by programming the improved method flow into the hardware circuit. Therefore, it cannot be said that the improvement of a method flow cannot be realized by hardware physical modules.
  • a programmable logic device Programmable Logic Device, PLD
  • PLD Programmable Logic Device
  • FPGA Field Programmable Gate Array
  • HDL Hardware Description Language
  • the system, device, module or unit explained in the above embodiments may be specifically implemented by a computer chip or entity, or implemented by a product with a certain function.
  • a typical implementation device is a computer.
  • the computer may be, for example, 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 device, a game console, a tablet computer, a wearable device, or A combination of any of these devices.
  • This manual can be used in many general or special computer system environments or configurations.
  • program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types.
  • This specification can also be practiced in distributed computing environments in which tasks are performed by remote processing devices connected through a communication network.
  • program modules may be located in local and remote computer storage media including storage devices.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Theoretical Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • General Health & Medical Sciences (AREA)
  • Bioethics (AREA)
  • Health & Medical Sciences (AREA)
  • Finance (AREA)
  • Accounting & Taxation (AREA)
  • General Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Computer Hardware Design (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Development Economics (AREA)
  • Strategic Management (AREA)
  • Economics (AREA)
  • General Business, Economics & Management (AREA)
  • Marketing (AREA)
  • Technology Law (AREA)
  • Medical Informatics (AREA)
  • Databases & Information Systems (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

一种基于区块链的数据处理方法、装置和服务器。所述方法包括:根据基准时刻和提交时间间隔,计算提交时刻(S10);在所述提交时刻到达以后,生成虚假交易信息(S12);对所述虚假交易信息中的交易内容进行隐私保护处理(S14);向所述区块链提交所述虚假交易信息(S16)。

Description

基于区块链的数据处理方法、装置和服务器 技术领域
本说明书实施例涉及计算机技术领域,特别涉及一种基于区块链的数据处理方法、装置和服务器。
背景技术
区块链技术是一种分布式数据库技术,利用密码学和共识机制保证了数据的不可篡改和不可伪造。随着计算机和互联网技术的发展,区块链技术以其去中心化、公开透明、不可篡改、可信任等优点,备受青睐,在智能合约、证券交易、电子商务、物联网、社交通讯、文件存储、存在性证明、身份验证、股权众筹等众多场景得到广泛应用。
目前,当将区块链技术应用于上述场景时,由于每笔交易的交易信息均需要发送到区块链进行验证、实施和上链,因而账户的交易笔数面临泄露给第三方的风险。
出于保护隐私的考虑,业务亟需一种能够隐藏交易笔数的技术方案。
发明内容
本说明书实施例的目的是提供一种基于区块链的数据处理方法、装置和服务器,以隐藏账户在区块链上的交易笔数。
为实现上述目的,本说明书实施例提供一种基于区块链的数据处理方法,包括:
根据基准时刻和提交时间间隔,计算提交时刻;
在所述提交时刻到达以后,生成虚假交易信息;
对所述虚假交易信息中的交易内容进行隐私保护处理;
向所述区块链提交所述虚假交易信息。
为实现上述目的,本说明书实施例提供一种基于区块链的数据处理装置,包括:
计算单元,用于根据基准时刻和提交时间间隔,计算提交时刻;
生成单元,用于在所述提交时刻到达以后,生成虚假交易信息;
加密单元,用于对所述虚假交易信息中的交易内容进行隐私保护处理;
提交单元,用于向所述区块链提交所述虚假交易信息。
为实现上述目的,本说明书实施例提供一种服务器,包括:
存储器,用于存储计算机指令;
处理器,用于执行所述计算机指令实现以下步骤:根据基准时刻和提交时间间隔,计算提交时刻;在所述提交时刻到达以后,生成虚假交易信息;对所述虚假交易信息中的交易内容进行隐私保护处理;向所述区块链提交所述虚假交易信息。
为实现上述目的,本说明书实施例提供一种基于区块链的数据处理方法,包括:
根据基准时刻和提交时间间隔,计算提交时刻;
在所述提交时刻到达以后,在不存在待被提交的真实交易信息时,生成虚假交易信息;对所述虚假交易信息中的交易内容进行隐私保护处理;向所述区块链提交所述虚假交易信息;
在存在待被提交的真实交易信息时,对所述真实交易信息中的交易内容进行隐私保护处理;向所述区块链提交所述真实交易信息。
为实现上述目的,本说明书实施例提供一种基于区块链的数据处理装置,包括:
计算单元,用于根据基准时刻和提交时间间隔,计算提交时刻;
第一提交单元,用于在所述提交时刻到达以后,在不存在待被提交的真实交易信息时,生成虚假交易信息;对所述虚假交易信息中的交易内容进行隐私保护处理;向所述区块链提交所述虚假交易信息;
第二提交单元,用于在存在待被提交的真实交易信息时,对所述真实交易信息中的交易内容进行隐私保护处理;向所述区块链提交所述真实交易信息。
为实现上述目的,本说明书实施例提供一种服务器,包括:
存储器,用于存储计算机指令;
处理器,用于执行所述计算机指令实现以下步骤:根据基准时刻和提交时间间隔,计算提交时刻;在所述提交时刻到达以后,在不存在待被提交的真实交易信息时,生成虚假交易信息;对所述虚假交易信息中的交易内容进行隐私保护处理;向所述区块链提交所述虚假交易信息;在存在待被提交的真实交易信息时,对所述真实交易信息中的交易内容进行隐私保护处理;向所述区块链提交所述真实交易信息。
由以上本说明书实施例提供的技术方案可见,本说明书实施例中,所述发起方服务器通过不时的向区块链提交交易内容经过隐私保护处理的虚假交易信息,使得第三方无法分辨向区块链提交的真实交易信息和虚假交易信息,从而能够实现隐藏向区块链提交真实交易信息的次数,进而能够实现隐藏发起方账户在区块链上的交易笔数。
附图说明
为了更清楚地说明本说明书实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本说明书中记载的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1为本说明书实施例一种数据处理方法的流程图;
图2为本说明书实施例一种数据处理方法的流程图;
图3为本说明书实施例一种数据处理装置的功能结构示意图;
图4为本说明书实施例一种数据处理装置的功能结构示意图;
图5为本说明书实施例一种服务器的功能结构示意图。
具体实施方式
下面将结合本说明书实施例中的附图,对本说明书实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本说明书一部分实施例,而不是全部的实施例。基于本说明书中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都应当属于本说明书保护的范围。
请参阅图1,本说明书实施例提供一种基于区块链的数据处理方法。
在本实施例中,所述区块链(Block Chain),可以是一种按照时间先后顺序,将多个区块数据以链式结构进行组织,并以密码学算法保证安全、可追溯、且不可篡改的分布式账本。所述区块链可以包括公有区块链、联合区块链(也称为联盟区块链)、和私有区块链等。所述区块链可以基于区块链网络来实现。所述区块链网络可以包括P2P网络(peer-to-peer network)等。所述区块链网络可以包括多个区块链节点。各个区块链节点之间共同维护统一的区块链账本。
在本实施例中,所述数据处理方法以发起方服务器为执行主体。所述发起方服务器可以作为一个区块链节点加入区块链网络。在所述发起方服务器中可以登录有发起方账户。所述发起方账户可以为发起方在所述区块链中的账户。所述发起方服务器能够与客户端进行通信。所述客户端例如可以为智能手机、平板电子设备、便携式计算机、个人数字助理(PDA)、或智能穿戴设备等。此外,需要说明的是,根据所述数据处理方法应用的业务场景的不同,所述发起方的类型可以相同或不同,所述发起方账户的类型可以相同或不同。例如,所述数据处理方法可以应用于转账业务场景。那么,所述发起方可以为汇出方;所述发起方账户可以为汇出方账户。另举一例,所述数据处理方法可以应用于存证业务场景。那么,所述发起方可以为存证信息的存放方;所述发起方账户可以为存放方账户。
所述数据处理方法可以包括以下步骤。
步骤S10:根据基准时刻和提交时间间隔,计算提交时刻。
在本实施例中,所述基准时刻可以包括以下至少一种:最近一次向区块链提交虚假交易信息的时刻、最近一次向区块链提交真实交易信息的时刻。
所述真实交易信息可以是所述客户端发来的。具体地,所述客户端可以向所述发起方服务器发送交易信息。所述发起方服务器可以接收交易信息作为真实交易信息。或者,所述真实交易信息还可以是用户输入的。具体地,用户可以在所述发起方服务器输入交易信息。所述发起方服务器可以接收用户输入的交易信息作为真实交易信息。当然,所述真实交易信息还可以是采用其它方式获得的,本实施例对此并不做具体限定。其中,所述真实交易信息可以包括交易内容和所述发起方账户的发起方账户标识。根据所述数据处理方法应用的业务场景的不同,所述真实交易信息中的交易内容可以相同或不同。例如,所述数据处理方法可以应用于转账业务场景。那么,所述真实交易信息中的交易内容可以包括交易金额。另举一例,所述数据处理方法可以应用于存证业务场景。那么,所述真实交易信息中的交易内容可以包括存证信息。所述发起方账户标识可以用于标识所述发起方账户,例如可以为所述发起方账户的名称或地址等。在本实施例的一个实施方式中,所述真实交易信息可以不包括接收方账户标识。例如,在一些存证业务场景中,发起方可以没有交易对手。因而所述真实交易信息可以不包括接收方账户标识。在本实施例的另一个实施方式中,所述真实交易信息可以包括接收方账户标识。例如,在一些转账业务场景中,发起方需要有交易对手。因而所述真实交易信息可以包括接收方账户标识。其中,所述接收方账户标识可以用于标识接收方账户,例如可以为接收方账户的 名称或地址等。此外,需要说明的是,根据所述数据处理方法应用的业务场景的不同,所述接收方的类型可以相同或不同,所述接收方账户的类型可以相同或不同。例如,所述数据处理方法可以应用于转账业务场景。那么,所述接收方可以为汇入方;所述接收方账户可以为汇入方账户。
所述虚假交易信息可以是所述发起方服务器虚构的交易信息。所述虚假交易信息可以包括交易内容和发起方账户标识。根据所述数据处理方法应用的业务场景的不同,所述虚假交易信息中的交易内容可以相同或不同。例如,所述数据处理方法可以应用于转账业务场景。那么,所述虚假交易信息中的交易内容可以包括数值为零的交易金额。这样在后续过程中将所述虚假交易信息提交到区块链以后,发起方账户的余额和接收方账户的余额可以保持不变。另举一例,所述数据处理方法可以应用于存证业务场景。那么,所述虚假交易信息中的交易内容可以包括空白存证信息。与所述真实交易信息相对应,所述虚假交易信息可以不包括接收方账户标识,或者,也可以包括接收方账户标识。
在本实施例中,所述提交时间间隔的取值可以根据业务需要灵活设定。具体地,所述提交时间间隔的取值可以为一固定值;或者,也可以依据业务实际需求分时间段,每一时间段内设定为一固定值;又或者,还可以为一随机值。例如,在交易高峰期提交时间间隔的取值可以设定为0.1秒钟(还可以依据业务需求设置更短或更长);在交易低谷期提交时间间隔的取值可以设定为1分钟(还可以依据业务需求设置更短或更长)。当然,还可以根据分布函数设定所述提交时间间隔的取值,使得所述提交时间间隔的取值满足所述分布函数。所述分布函数例如可以包括指数分布函数和爱尔朗分布(Erlang Distribution)函数。其中,所述指数分布函数的表达式可以为
Figure PCTCN2019108730-appb-000001
所述爱尔朗分布函数的表达式可以为
Figure PCTCN2019108730-appb-000002
这里x表示提交时间间隔的取值;λ表示到达率;k表示爱尔朗分布函数的阶数。其中,所述到达率可以表示单位时间内事件发生的数量。在一些场景示例中,所述到达率具体可以表示单位时间内的交易数量。在实际业务中,例如,可以设定提交时间间隔的期望交易(包括真实交易和虚假交易)到达率D;可以统计真实交易的实际到达率E。那么,在指数分布函数和爱尔朗分布函数中λ=D-E。当然,本领域技术人员应当能够理解,上述根据分布函数和爱尔朗分布函数设定提交时间间隔的取值的方式仅为示例,实际上根据分布函数和爱尔朗分布函数还可以采用任意其它适当方式来设定提交时间间隔的取值。
在本实施例中,所述发起方服务器可以将基准时刻和提交时间间隔相加,得到提交时刻。具体地,所述发起方服务器可以将最近一次向所述区块链提交交易信息的时刻和提交时间间隔相加,得到提交时刻。这里最近一次向所述区块链提交交易信息的时刻可以为提交虚假交易信息的时刻,或者,也可以为提交真实交易信息的时刻。或者,这里最近一次向所述区块链提交交易信息的时刻也可以仅为提交虚假交易信息的时刻。
步骤S12:在所述提交时刻到达以后,生成虚假交易信息。
在本实施例中,所述发起方服务器可以获取所述发起方账户的发起方账户标识,作为所述虚假交易信息中的发起方账户标识;可以获取交易内容作为所述虚假交易信息中的交易内容。其中,所述交易内容可以是所述发起方服务器生成的。如此所述发起方服务器可以生成交易内容作为所述虚假交易信息中的交易内容。生成的交易内容例如可以包括数值为零的交易金额等。或者,所述交易内容也可以是用户输入的。如此所述发起方服务器可以接收用户输入的交易内容作为所述虚假交易信息中的交易内容。又或者,所述交易内容还可以是其它设备发来的。如此所述发起方服务器可以接收其它设备发来的交易内容作为所述虚假交易信息中的交易内容。又或者,所述交易内容还可以是预先存储在本地的。如此所述发起方服务器可以从本地读取交易内容作为所述虚假交易信息中的交易内容。读取的交易内容例如可以包括空白存证信息等。当然,所述虚假交易信息中的交易内容还可以是采用其它方式获得的,本实施例对此并不做具体限定。
在本实施例中,在所述提交时刻到达以后,所述发起方服务器可以直接生成虚假交易信息。或者,在所述提交时间间隔内,所述发起方服务器有可能获取到真实交易信息。所述发起方服务器获取真实交易信息的方式,可以参见步骤S10,在此不再赘述。在获取到真实交易信息以后,所述发起方服务器可以将获取的真实交易信息作为待被提交的真实交易信息。如此在所述提交时刻到达以后,所述发起方服务器可以判断是否存在待被提交的真实交易信息;在不存在待被提交的真实交易信息时,可以生成虚假交易信息。这样所述发起方服务器能够将在所述提交时间间隔内获得的真实交易信息延迟至在所述提交时刻进行提交。
在本实施例的一个实施方式中,所述发起方服务器可以获取账户标识作为所述虚假交易信息中的接收方账户标识。所述发起方服务器可以采用任意方式获取账户标识。例如,所述发起方服务器可以随机选取区块链中的账户标识,作为所述虚假交易信息中的接收方账户标识。另举一例,所述发起方服务器可以提供有账户标识集合。所述账户标识集合可以是预先设定的,具体可以包括至少一个接收方账户标识。每个接收方账 户标识可以对应有基准交易比例。所述基准比例可以根据实际需要灵活设定。那么,所述发起方服务器可以获取与所述账户标识集合中各个接收方账户标识之间的实际交易比例;可以从所述账户标识集合中选取实际交易比例小于或等于基准交易比例的接收方账户标识,作为所述虚假交易信息中的接收方账户标识。
步骤S14:对所述虚假交易信息中的交易内容进行隐私保护处理。
在本实施例中,所述发起方服务器可以采用任意算法对所述虚假交易信息中的交易内容进行隐私保护处理。所述任意算法例如可以包括承诺算法、同态加密算法、哈希算法等。所述承诺算法例如可以包括Pedersen承诺算法等,所述同态加密算法例如可以包括Paillier算法、Okamoto-Uchiyama算法、Boneh-Goh-Nissim算法等。例如,所述虚假交易信息中的交易内容可以包括数值为零的交易金额。那么,所述发起方服务器可以使用同态加密算法对数值为零的交易金额进行隐私保护处理。另举一例,所述虚假交易信息中的交易内容可以包括空白存证信息。那么,所述发起方服务器可以使用哈希算法计算空白存证信息的哈希值。
步骤S16:向所述区块链提交所述虚假交易信息。
在本实施例中,所述发起方服务器可以向所述区块链提交所述虚假交易信息;以便所述区块链中的共识区块链节点能够根据所述虚假交易信息中的交易内容更新发起方账户的状态和/或接收方账户的状态。例如,所述虚假交易信息中的交易内容可以包括数值为零的交易金额。那么,所述区块链中的共识区块链节点能够根据数值为零的交易金额更新发起方账户的余额和接收方账户的余额。从而,发起方账户的余额和接收方账户的余额可以保持不变。
在本实施例的一个实施方式中,在向所述区块链提交虚假交易信息之前,所述发起方服务器还可以根据所述虚假交易信息生成校验信息;可以在所述虚假交易信息中添加该校验信息。例如,所述校验信息可以包括所述虚假交易信息的签名信息。
在本实施例的一个实施方式中,在所述提交时间间隔内,所述发起方服务器有可能获取到真实交易信息。所述发起方服务器获取真实交易信息的方式,可以参见步骤S10,在此不再赘述。在获取到真实交易信息以后,所述发起方服务器可以对所述真实交易信息中的交易内容进行隐私保护处理;可以向所述区块链提交所述真实交易信息;以便所述区块链中的共识区块链节点能够根据所述真实交易信息中的交易内容更新发起方账户的状态和/或接收方账户的状态。这样所述发起方服务器能够在获取到真实交易 信息以后即时提交所述真实交易信息。
在本实施例中,所述发起方服务器通过不时的向区块链提交交易内容经过隐私保护处理的虚假交易信息,使得第三方无法分辨向区块链提交的真实交易信息和虚假交易信息,从而能够实现隐藏向区块链提交真实交易信息的次数,进而能够实现隐藏发起方账户在区块链上的交易笔数。此外,鉴于第三方无法分辨向区块链提交的真实交易信息和虚假交易信息,本实施例也能够实现隐藏真实交易的时刻、真实交易的账户等。
请参阅图2,本说明书实施例还提供另一种基于区块链的数据处理方法,所述数据处理方法以发起方服务器为执行主体,所述发起方服务器可以作为一个区块链节点加入区块链网络,在所述发起方服务器中可以登录有发起方账户,所述发起方账户可以为发起方在所述区块链中的账户,所述发起方服务器能够与客户端进行通信,所述数据处理方法可以包括以下步骤:
步骤S20:根据基准时刻和提交时间间隔,计算提交时刻。
在本实施例中,步骤S20可以与前述实施例中的步骤S10对照解释。
步骤S22:在所述提交时刻到达以后,在不存在待被提交的真实交易信息时,生成虚假交易信息;对所述虚假交易信息中的交易内容进行隐私保护处理;向所述区块链提交所述虚假交易信息。
在本实施例中,步骤S22可以与前述实施例中的步骤S12对照解释。
步骤S24:在存在待被提交的真实交易信息时,对所述真实交易信息中的交易内容进行隐私保护处理;向所述区块链提交所述真实交易信息。
在本实施例中,待被提交的真实交易信息的数量可以为一个或多个。具体地,在待被提交的真实交易信息的数量为一个时,所述发起方服务器可以对该真实交易信息中的交易内容进行隐私保护处理;可以向所述区块链提交该真实交易信息。在待被提交的真实交易信息的数量为多个时,所述发起方服务器可以从中选取一个真实交易信息;可以对该真实交易信息中的交易内容进行隐私保护处理;可以向所述区块链提交该真实交易信息。其中,所述发起方服务器可以采用任意方式选取真实交易信息。例如,所述发起方服务器可以随机选取真实交易信息。另举一例,所述发起方服务器可以选取获得时刻最早的真实交易信息。
在本实施例中,所述发起方服务器通过不时的向区块链提交交易内容经过隐私保护处理的虚假交易信息,使得第三方无法分辨向区块链提交的真实交易信息和虚假交易 信息,从而能够实现隐藏向区块链提交真实交易信息的次数,进而能够实现隐藏发起方账户在区块链上的交易笔数。此外,鉴于第三方无法分辨向区块链提交的真实交易信息和虚假交易信息,本实施例也能够实现隐藏真实交易的时刻、真实交易的账户等。
以下介绍本说明书实施例的一个场景示例。
发起方服务器可以将最近一次向区块链提交交易信息的时刻和提交时间间隔相加,得到提交时刻。这里最近一次向区块链提交交易信息的时刻可以为提交虚假交易信息的时刻,也可以为提交真实交易信息的时刻。所述发起方服务器可以在所述提交时刻到达以后,判断是否存在待被提交的真实交易信息;在不存在待被提交的真实交易信息时,可以生成虚假交易信息,可以对所述虚假交易信息中的交易内容进行隐私保护处理,可以向所述区块链提交所述虚假交易信息;在存在待被提交的真实交易信息时,可以对所述真实交易信息中的交易内容进行隐私保护处理,可以向所述区块链提交所述真实交易信息。
以下介绍本说明书实施例的另一个场景示例。
发起方服务器可以将最近一次向区块链提交交易信息的时刻和提交时间间隔相加,得到提交时刻。这里最近一次向区块链提交交易信息的时刻可以为提交虚假交易信息的时刻,也可以为提交真实交易信息的时刻。所述发起方服务器可以在所述提交时刻到达以后,生成虚假交易信息,可以对所述虚假交易信息中的交易内容进行隐私保护处理,可以向所述区块链提交所述虚假交易信息。此外,在获取到真实交易信息以后,所述发起方服务器可以对所述真实交易信息中的交易内容进行隐私保护处理,可以向所述区块链提交所述真实交易信息,从而能够实现即时向区块链提交真实交易信息。
以下介绍本说明书实施例的另一个场景示例。
发起方服务器可以将最近一次向区块链提交交易信息的时刻和提交时间间隔相加,得到提交时刻。这里最近一次向区块链提交交易信息的时刻可以仅为提交虚假交易信息的时刻。所述发起方服务器可以在所述提交时刻到达以后,生成虚假交易信息,可以对所述虚假交易信息中的交易内容进行隐私保护处理,可以向所述区块链提交所述虚假交易信息。此外,在获取到真实交易信息以后,所述发起方服务器可以对所述真实交易信息中的交易内容进行隐私保护处理,可以向所述区块链提交所述真实交易信息,从而能够实现即时向区块链提交真实交易信息。
请参阅图3,本说明书实施例提供一种基于区块链的数据处理装置,所述装置可以 包括以下单元:
计算单元30,用于根据基准时刻和提交时间间隔,计算提交时刻;
生成单元32,用于在所述提交时刻到达以后,生成虚假交易信息;
加密单元34,用于对所述虚假交易信息中的交易内容进行隐私保护处理;
提交单元36,用于向所述区块链提交所述虚假交易信息。
请参阅图4,本说明书实施例提供一种基于区块链的数据处理装置,所述装置可以包括以下单元:
计算单元40,用于根据基准时刻和提交时间间隔,计算提交时刻;
第一提交单元42,用于在所述提交时刻到达以后,在不存在待被提交的真实交易信息时,生成虚假交易信息;对所述虚假交易信息中的交易内容进行隐私保护处理;向所述区块链提交所述虚假交易信息;
第二提交单元44,用于在存在待被提交的真实交易信息时,对所述真实交易信息中的交易内容进行隐私保护处理;向所述区块链提交所述真实交易信息。
请参阅图5,本说明书实施例还提供一种服务器,所述服务器可以包括存储器和处理器。
在本实施例中,所述存储器可以按任何适当的方式实现。例如,所述存储器可以为只读存储器、机械硬盘、固态硬盘、或U盘等。所述存储器可以用于存储计算机指令。
在本实施例中,所述处理器可以按任何适当的方式实现。例如,处理器可以采取例如微处理器或处理器以及存储可由该(微)处理器执行的计算机可读程序代码(例如软件或固件)的计算机可读介质、逻辑门、开关、专用集成电路(Application Specific Integrated Circuit,ASIC)、可编程逻辑控制器和嵌入微控制器的形式等等。所述处理器可以执行所述计算机指令实现以下步骤:根据基准时刻和提交时间间隔,计算提交时刻;在所述提交时刻到达以后,在不存在待被提交的真实交易信息时,生成虚假交易信息;对所述虚假交易信息中的交易内容进行隐私保护处理;向所述区块链提交所述虚假交易信息;在存在待被提交的真实交易信息时,对所述真实交易信息中的交易内容进行隐私保护处理;向所述区块链提交所述真实交易信息。
请参阅图5。本说明书实施例还提供一种服务器。所述服务器可以包括存储器和处理器。
在本实施例中,所述存储器可以按任何适当的方式实现。例如,所述存储器可以为只读存储器、机械硬盘、固态硬盘、或U盘等。所述存储器可以用于存储计算机指令。
在本实施例中,所述处理器可以按任何适当的方式实现。例如,处理器可以采取例如微处理器或处理器以及存储可由该(微)处理器执行的计算机可读程序代码(例如软件或固件)的计算机可读介质、逻辑门、开关、专用集成电路(Application Specific Integrated Circuit,ASIC)、可编程逻辑控制器和嵌入微控制器的形式等等。所述处理器可以执行所述计算机指令实现以下步骤:根据基准时刻和提交时间间隔,计算提交时刻;在所述提交时刻到达以后,在不存在待被提交的真实交易信息时,生成虚假交易信息;对所述虚假交易信息中的交易内容进行隐私保护处理;向所述区块链提交所述虚假交易信息;在存在待被提交的真实交易信息时,对所述真实交易信息中的交易内容进行隐私保护处理;向所述区块链提交所述真实交易信息。
需要说明的是,本说明书中的各个实施例均采用递进的方式描述,各个实施例之间相同或相似的部分互相参见即可,每个实施例重点说明的都是与其它实施例的不同之处。尤其,对于装置实施例和服务器实施例而言,由于其基本相似于方法实施例,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。
本领域技术人员在阅读本说明书文件之后,可以无需创造性劳动想到将本说明书列举的部分或全部实施例进行任意组合,这些组合也在本说明书公开和保护的范围内。
在20世纪90年代,对于一个技术的改进可以很明显地区分是硬件上的改进(例如,对二极管、晶体管、开关等电路结构的改进)还是软件上的改进(对于方法流程的改进)。然而,随着技术的发展,当今的很多方法流程的改进已经可以视为硬件电路结构的直接改进。设计人员几乎都通过将改进的方法流程编程到硬件电路中来得到相应的硬件电路结构。因此,不能说一个方法流程的改进就不能用硬件实体模块来实现。例如,可编程逻辑器件(Programmable Logic Device,PLD)(例如现场可编程门阵列(Field Programmable Gate Array,FPGA))就是这样一种集成电路,其逻辑功能由用户对器件编程来确定。由设计人员自行编程来把一个数字系统“集成”在一片PLD上,而不需要请芯片制造厂商来设计和制作专用的集成电路芯片2。而且,如今,取代手工地制作集成电路芯片,这种编程也多半改用“逻辑编译器(logic compiler)”软件来实现,它与程序开发撰写时所用的软件编译器相类似,而要编译之前的原始代码也得用特定的编程语言来撰写,此称之为硬件描述语言(Hardware Description Language,HDL),而HDL也并非仅有一种,而是有许多种,如ABEL(Advanced Boolean Expression  Language)、AHDL(Altera Hardware Description Language)、Confluence、CUPL(Cornell University Programming Language)、HDCal、JHDL(Java Hardware Description Language)、Lava、Lola、MyHDL、PALASM、RHDL(Ruby Hardware Description Language)等,目前最普遍使用的是VHDL(Very-High-Speed Integrated Circuit Hardware Description Language)与Verilog2。本领域技术人员也应该清楚,只需要将方法流程用上述几种硬件描述语言稍作逻辑编程并编程到集成电路中,就可以很容易得到实现该逻辑方法流程的硬件电路。
上述实施例阐明的系统、装置、模块或单元,具体可以由计算机芯片或实体实现,或者由具有某种功能的产品来实现。一种典型的实现设备为计算机。具体的,计算机例如可以为个人计算机、膝上型计算机、蜂窝电话、相机电话、智能电话、个人数字助理、媒体播放器、导航设备、电子邮件设备、游戏控制台、平板计算机、可穿戴设备或者这些设备中的任何设备的组合。
通过以上的实施方式的描述可知,本领域的技术人员可以清楚地了解到本说明书可借助软件加必需的通用硬件平台的方式来实现。基于这样的理解,本说明书的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品可以存储在存储介质中,如ROM/RAM、磁碟、光盘等,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本说明书各个实施例或者实施例的某些部分所述的方法。
本说明书可用于众多通用或专用的计算机系统环境或配置中。例如:个人计算机、服务器计算机、手持设备或便携式设备、平板型设备、多处理器系统、基于微处理器的系统、置顶盒、可编程的消费电子设备、网络PC、小型计算机、大型计算机、包括以上任何系统或设备的分布式计算环境等等。
本说明书可以在由计算机执行的计算机可执行指令的一般上下文中描述,例如程序模块。一般地,程序模块包括执行特定任务或实现特定抽象数据类型的例程、程序、对象、组件、数据结构等等。也可以在分布式计算环境中实践本说明书,在这些分布式计算环境中,由通过通信网络而被连接的远程处理设备来执行任务。在分布式计算环境中,程序模块可以位于包括存储设备在内的本地和远程计算机存储介质中。
虽然通过实施例描绘了本说明书,本领域普通技术人员知道,本说明书有许多变形和变化而不脱离本说明书的精神,希望所附的权利要求包括这些变形和变化而不脱离本说明书的精神。

Claims (13)

  1. 一种基于区块链的数据处理方法,包括:
    根据基准时刻和提交时间间隔,计算提交时刻;
    在所述提交时刻到达以后,生成虚假交易信息;
    对所述虚假交易信息中的交易内容进行隐私保护处理;
    向所述区块链提交所述虚假交易信息。
  2. 如权利要求1所述的方法,所述基准时刻包括以下至少一种:
    最近一次向所述区块链提交虚假交易信息的时刻;
    最近一次向所述区块链提交真实交易信息的时刻。
  3. 如权利要求1所述的方法,所述生成虚假交易信息,包括:
    在不存在待被提交的真实交易信息时,生成虚假交易信息。
  4. 如权利要求1所述的方法,所述方法还包括:
    获取真实交易信息;
    对所述真实交易信息中的交易内容进行隐私保护处理;
    向所述区块链提交所述真实交易信息。
  5. 如权利要求1所述的方法,所述提交时间间隔满足指数分布或爱尔郎分布。
  6. 如权利要求1所述的方法,所述虚假交易信息中的交易内容包括以下至少一种:
    数值为0的交易金额;
    空白存证信息。
  7. 如权利要求1所述的方法,在生成虚假交易信息的步骤中包括:
    获取账户标识作为所述虚假交易信息中的接收方账户标识。
  8. 如权利要求7所述的方法,还包括:
    提供账户标识集合;
    所述账户标识集合包括至少一个接收方账户标识;每个接收方账户标识对应有基准交易比例;相应地,在获取账户标识的步骤中包括:
    获取发起方账户标识与所述账户标识集合中各个接收方账户标识之间的实际交易比例;
    从所述账户标识集合中选取实际交易比例小于或等于基准交易比例的接收方账户标识,作为所述虚假交易信息中的接收方账户标识。
  9. 一种基于区块链的数据处理装置,包括:
    计算单元,用于根据基准时刻和提交时间间隔,计算提交时刻;
    生成单元,用于在所述提交时刻到达以后,生成虚假交易信息;
    加密单元,用于对所述虚假交易信息中的交易内容进行隐私保护处理;
    提交单元,用于向所述区块链提交所述虚假交易信息。
  10. 一种服务器,包括:
    存储器,用于存储计算机指令;
    处理器,用于执行所述计算机指令实现以下步骤:根据基准时刻和提交时间间隔,计算提交时刻;在所述提交时刻到达以后,生成虚假交易信息;对所述虚假交易信息中的交易内容进行隐私保护处理;向区块链提交所述虚假交易信息。
  11. 一种基于区块链的数据处理方法,包括:
    根据基准时刻和提交时间间隔,计算提交时刻;
    在所述提交时刻到达以后,在不存在待被提交的真实交易信息时,生成虚假交易信息;对所述虚假交易信息中的交易内容进行隐私保护处理;向所述区块链提交所述虚假交易信息;
    在存在待被提交的真实交易信息时,对所述真实交易信息中的交易内容进行隐私保护处理;向所述区块链提交所述真实交易信息。
  12. 一种基于区块链的数据处理装置,包括:
    计算单元,用于根据基准时刻和提交时间间隔,计算提交时刻;
    第一提交单元,用于在所述提交时刻到达以后,在不存在待被提交的真实交易信息时,生成虚假交易信息;对所述虚假交易信息中的交易内容进行隐私保护处理;向所述区块链提交所述虚假交易信息;
    第二提交单元,用于在存在待被提交的真实交易信息时,对所述真实交易信息中的交易内容进行隐私保护处理;向所述区块链提交所述真实交易信息。
  13. 一种服务器,包括:
    存储器,用于存储计算机指令;
    处理器,用于执行所述计算机指令实现以下步骤:根据基准时刻和提交时间间隔,计算提交时刻;在所述提交时刻到达以后,在不存在待被提交的真实交易信息时,生成虚假交易信息;对所述虚假交易信息中的交易内容进行隐私保护处理;向所述区块链提交所述虚假交易信息;在存在待被提交的真实交易信息时,对所述真实交易信息中的交易内容进行隐私保护处理;向区块链提交所述真实交易信息。
PCT/CN2019/108730 2018-11-05 2019-09-27 基于区块链的数据处理方法、装置和服务器 Ceased WO2020093818A1 (zh)

Priority Applications (3)

Application Number Priority Date Filing Date Title
SG11202100845PA SG11202100845PA (en) 2018-11-05 2019-09-27 Blockchain-based transaction privacy
EP19883275.0A EP3812997B1 (en) 2018-11-05 2019-09-27 Blockchain-based data processing method and apparatus, and server
US17/163,330 US11270004B2 (en) 2018-11-05 2021-01-29 Blockchain-based transaction privacy

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201811308520.3A CN109934709A (zh) 2018-11-05 2018-11-05 基于区块链的数据处理方法、装置和服务器
CN201811308520.3 2018-11-05

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US17/163,330 Continuation US11270004B2 (en) 2018-11-05 2021-01-29 Blockchain-based transaction privacy

Publications (1)

Publication Number Publication Date
WO2020093818A1 true WO2020093818A1 (zh) 2020-05-14

Family

ID=66984557

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/108730 Ceased WO2020093818A1 (zh) 2018-11-05 2019-09-27 基于区块链的数据处理方法、装置和服务器

Country Status (6)

Country Link
US (1) US11270004B2 (zh)
EP (1) EP3812997B1 (zh)
CN (1) CN109934709A (zh)
SG (1) SG11202100845PA (zh)
TW (1) TWI706362B (zh)
WO (1) WO2020093818A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114155099A (zh) * 2021-11-05 2022-03-08 联想(北京)有限公司 一种区块链的数据处理方法、装置、设备及存储介质

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109934709A (zh) * 2018-11-05 2019-06-25 阿里巴巴集团控股有限公司 基于区块链的数据处理方法、装置和服务器
US11222011B2 (en) 2019-06-28 2022-01-11 Advanced New Technologies Co., Ltd. Blockchain-based transaction processing
CN110415117A (zh) * 2019-06-28 2019-11-05 阿里巴巴集团控股有限公司 基于区块链的交易处理方法、装置和电子设备
US12519616B2 (en) * 2020-04-01 2026-01-06 International Business Machines Corporation Noisy transaction for protection of data
TWI810464B (zh) * 2020-06-05 2023-08-01 鴻海精密工業股份有限公司 基於區塊鏈的交易方法、裝置及電子設備

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106022173A (zh) * 2016-05-18 2016-10-12 北京京东尚科信息技术有限公司 敏感数据显示方法和装置
CN106452785A (zh) * 2016-09-29 2017-02-22 财付通支付科技有限公司 区块链网络、分支节点及区块链网络应用方法
US20170132622A1 (en) * 2015-11-10 2017-05-11 Ingenico Group Method for the encryption of payment means data, corresponding payment means, server and programs
CN107578336A (zh) * 2017-09-29 2018-01-12 左鹏 基于动态股权的区块链记账方法
CN108694668A (zh) * 2018-06-15 2018-10-23 腾讯科技(深圳)有限公司 数字资产交易方法、装置、介质以及设备
CN109934709A (zh) * 2018-11-05 2019-06-25 阿里巴巴集团控股有限公司 基于区块链的数据处理方法、装置和服务器

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106936587B (zh) * 2006-06-19 2020-05-12 维萨美国股份有限公司 消费者认证系统和方法
US20160307186A1 (en) * 2015-04-20 2016-10-20 Mastercard International Incorporated Verification of contactless payment card for provisioning of payment credentials to mobile device
EP3144840A1 (en) * 2015-09-16 2017-03-22 Mastercard International Incorporated Computer security system
CN107103171B (zh) * 2016-02-19 2020-09-25 阿里巴巴集团控股有限公司 机器学习模型的建模方法及装置
CN106549749B (zh) * 2016-12-06 2019-12-24 杭州趣链科技有限公司 一种基于加法同态加密的区块链隐私保护方法
CN111724150B (zh) * 2017-03-28 2023-11-24 创新先进技术有限公司 一种业务请求的处理方法及装置
US10818122B2 (en) * 2017-09-15 2020-10-27 Panasonic Intellectual Property Corporation Of America Electronic voting system and control method
CN108198018A (zh) * 2017-12-27 2018-06-22 邵美 一种用于区块链地址排名的交易网络系统及其实现方法
US11222011B2 (en) * 2019-06-28 2022-01-11 Advanced New Technologies Co., Ltd. Blockchain-based transaction processing

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170132622A1 (en) * 2015-11-10 2017-05-11 Ingenico Group Method for the encryption of payment means data, corresponding payment means, server and programs
CN106022173A (zh) * 2016-05-18 2016-10-12 北京京东尚科信息技术有限公司 敏感数据显示方法和装置
CN106452785A (zh) * 2016-09-29 2017-02-22 财付通支付科技有限公司 区块链网络、分支节点及区块链网络应用方法
CN107578336A (zh) * 2017-09-29 2018-01-12 左鹏 基于动态股权的区块链记账方法
CN108694668A (zh) * 2018-06-15 2018-10-23 腾讯科技(深圳)有限公司 数字资产交易方法、装置、介质以及设备
CN109934709A (zh) * 2018-11-05 2019-06-25 阿里巴巴集团控股有限公司 基于区块链的数据处理方法、装置和服务器

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP3812997A4 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114155099A (zh) * 2021-11-05 2022-03-08 联想(北京)有限公司 一种区块链的数据处理方法、装置、设备及存储介质

Also Published As

Publication number Publication date
TW202018645A (zh) 2020-05-16
US20210157930A1 (en) 2021-05-27
EP3812997A4 (en) 2021-08-18
EP3812997B1 (en) 2022-11-02
SG11202100845PA (en) 2021-02-25
CN109934709A (zh) 2019-06-25
TWI706362B (zh) 2020-10-01
US11270004B2 (en) 2022-03-08
EP3812997A1 (en) 2021-04-28

Similar Documents

Publication Publication Date Title
TWI706362B (zh) 基於區塊鏈的資料處理方法、裝置和伺服器
TWI698115B (zh) 基於區塊鏈的交易方法、裝置和匯出方設備
KR102281558B1 (ko) 합의 검증 방법 및 디바이스
TWI718614B (zh) 基於區塊鏈的資料處理方法、裝置和伺服器
CN109583886B (zh) 基于区块链的交易方法、装置和汇出方设备
JP7007398B2 (ja) トランザクション要求を処理するための方法及び装置
TWI745861B (zh) 資料處理方法、裝置和電子設備
US11201870B2 (en) Using commit tokens to coordinate permissions submissions to address transaction conflict in blockchain systems
WO2020034760A1 (zh) 一种身份信息的识别方法及装置
CN107578238A (zh) 一种风险控制方法及设备
TW201832100A (zh) 區塊鏈系統、資料儲存方法及裝置
US20200201846A1 (en) Blockchain-based transaction processing
CN114491430A (zh) 一种基于区块链的业务处理方法、装置及设备
EP3742304A1 (en) Validation of measurement datasets in a distributed database
WO2020258840A1 (zh) 基于区块链的交易处理方法、装置和电子设备
CN110263580B (zh) 基于区块链的数据处理方法、装置和区块链节点
US11036872B2 (en) Privacy-preserving sum-based consistency checks for blockchains
CN108632348B (zh) 一种业务校验方法和装置
CN113032837A (zh) 开放平台匿名鉴权方法及系统
US20180139232A1 (en) Velocity event identification system
CN114398622B (zh) 云应用的处理方法、装置、电子设备以及存储介质
HK40010920B (zh) 基於区块链的数据处理方法、装置和服务器
HK40010920A (zh) 基於区块链的数据处理方法、装置和服务器
CN111553671A (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: 19883275

Country of ref document: EP

Kind code of ref document: A1

ENP Entry into the national phase

Ref document number: 2019883275

Country of ref document: EP

Effective date: 20210120

NENP Non-entry into the national phase

Ref country code: DE