CN110033261B - Block chain data processing method, device and system - Google Patents

Block chain data processing method, device and system Download PDF

Info

Publication number
CN110033261B
CN110033261B CN201811605307.9A CN201811605307A CN110033261B CN 110033261 B CN110033261 B CN 110033261B CN 201811605307 A CN201811605307 A CN 201811605307A CN 110033261 B CN110033261 B CN 110033261B
Authority
CN
China
Prior art keywords
data
hash data
block chain
blockchain
target
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201811605307.9A
Other languages
Chinese (zh)
Other versions
CN110033261A (en
Inventor
栗志果
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Advanced New Technologies Co Ltd
Advantageous New Technologies Co Ltd
Original Assignee
Advanced New Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Advanced New Technologies Co Ltd filed Critical Advanced New Technologies Co Ltd
Priority to CN201811605307.9A priority Critical patent/CN110033261B/en
Priority to CN202110949513.7A priority patent/CN113689213A/en
Publication of CN110033261A publication Critical patent/CN110033261A/en
Priority to TW108137259A priority patent/TWI724579B/en
Priority to PCT/CN2019/119312 priority patent/WO2020134712A1/en
Application granted granted Critical
Publication of CN110033261B publication Critical patent/CN110033261B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/382Payment protocols; Details thereof insuring higher security of transaction
    • G06Q20/3827Use of message hashing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/602Providing cryptographic facilities or services

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Accounting & Taxation (AREA)
  • General Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Computing Systems (AREA)
  • General Business, Economics & Management (AREA)
  • Strategic Management (AREA)
  • Data Mining & Analysis (AREA)
  • Finance (AREA)
  • Health & Medical Sciences (AREA)
  • Bioethics (AREA)
  • General Health & Medical Sciences (AREA)
  • Computer Hardware Design (AREA)
  • Software Systems (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)
  • Storage Device Security (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

One or more embodiments of the present specification disclose a method, an apparatus, and a system for processing blockchain data, so as to achieve the purpose of ensuring data security while using a blockchain technique. The method comprises the following steps: acquiring a plurality of hash data corresponding to a plurality of service data recorded in a block in a first block chain; performing obfuscation encryption processing on the plurality of hash data according to a preset obfuscation encryption processing mode to obtain at least one obfuscated target hash data; carrying out fragmentation processing on the at least one target hash data; and respectively storing the fragmented target hash data into a second block chain.

Description

Block chain data processing method, device and system
Technical Field
The present disclosure relates to the field of data processing technologies, and in particular, to a method, an apparatus, and a system for processing block chain data.
Background
The data stored by the block chain has the characteristics of real transparency and indelibility, and even if plaintext is encrypted or a Hash chain linking mode is used, the public can still obtain the real data on the block chain by analyzing the block chain, for example, the real calling magnitude of the block chain is inferred by the magnitude of the Hash, so that the real data is obtained. As can be seen, the existing way of storing data in a blockchain is not highly secure for users, and especially in a scenario where transaction data is stored in a blockchain, the transparency of the transaction data may bring a certain degree of risk to users.
Disclosure of Invention
An object of one or more embodiments of the present disclosure is to provide a method, an apparatus, and a system for processing blockchain data, so as to achieve the purpose of ensuring data security while using a blockchain technique.
To solve the above technical problem, one or more embodiments of the present specification are implemented as follows:
in one aspect, one or more embodiments of the present specification provide a method for processing blockchain data, including:
acquiring a plurality of hash data corresponding to a plurality of service data recorded in a block in a first block chain;
performing obfuscation encryption processing on the plurality of hash data according to a preset obfuscation encryption processing mode to obtain at least one obfuscated target hash data;
carrying out fragmentation processing on the at least one target hash data;
and respectively storing the fragmented target hash data into a second block chain.
In an embodiment, the performing obfuscation encryption processing on the plurality of hash data according to a preset obfuscation encryption processing manner to obtain at least one obfuscated target hash data includes:
and performing hash calculation on each hash data at least once to obtain at least one target hash data.
In one embodiment, the target hash data included in each fragment corresponding to the fragmentation process is not more than a predetermined number.
In one embodiment, the storing the fragmented target hash data into the second blockchains respectively includes:
and respectively storing the target hash data contained in each fragment into the second block chain as a service record.
In an embodiment, before obtaining a plurality of hash data corresponding to a plurality of service data recorded in a block of the first blockchain, the method further includes:
determining that the data viewing permissions of the first blockchain are visible only to a first specified user group; and determining that the data viewing permission of the second blockchain is visible to all users.
In one embodiment, the method further comprises:
storing the obfuscated encryption processing mode into a third block chain; and determining that the data viewing permission of the third block chain is visible only to a second specified user group.
In another aspect, one or more embodiments of the present specification provide a block chain data processing apparatus, including:
the acquisition module is used for acquiring a plurality of hash data corresponding to a plurality of service data recorded in a block in a first block chain;
the obfuscation module is used for performing obfuscation encryption processing on the plurality of hash data according to a preset obfuscation encryption processing mode to obtain at least one obfuscated target hash data;
the fragmentation module is used for carrying out fragmentation processing on the at least one target hash data;
and the first storage module is used for respectively storing the fragmented target hash data into the second block chains.
In yet another aspect, one or more embodiments of the present specification provide a blockchain data processing system, including a first blockchain, a data processing node, and a second blockchain; wherein:
the first block chain is used for recording a plurality of hash data corresponding to a plurality of service data;
the data processing node is configured to obtain the plurality of hash data recorded in the block of the first blockchain;
the data processing node is further configured to perform obfuscation encryption processing on the plurality of hash data according to a preset obfuscation encryption processing mode to obtain at least one obfuscated target hash data; carrying out fragmentation processing on the at least one target hash data; respectively storing the fragmented target hash data into the second block chains;
and the second block chain is used for storing the fragmented target hash data.
In yet another aspect, one or more embodiments of the present specification provide a block chain data processing apparatus, including:
a processor; and
a memory arranged to store computer executable instructions that, when executed, cause the processor to:
acquiring a plurality of hash data corresponding to a plurality of service data recorded in a block in a first block chain;
performing obfuscation encryption processing on the plurality of hash data according to a preset obfuscation encryption processing mode to obtain at least one obfuscated target hash data;
carrying out fragmentation processing on the at least one target hash data;
and respectively storing the fragmented target hash data into a second block chain.
In yet another aspect, an embodiment of the present application provides a storage medium for storing computer-executable instructions, where the computer-executable instructions, when executed, implement the following processes:
acquiring a plurality of hash data corresponding to a plurality of service data recorded in a block in a first block chain;
performing obfuscation encryption processing on the plurality of hash data according to a preset obfuscation encryption processing mode to obtain at least one obfuscated target hash data;
carrying out fragmentation processing on the at least one target hash data;
and respectively storing the fragmented target hash data into a second block chain.
By adopting the technical scheme of one or more embodiments of the present specification, the obfuscated at least one target hash data is obtained by obtaining a plurality of hash data corresponding to a plurality of service data recorded in a block of the first block chain and performing obfuscation and encryption processing on the plurality of hash data according to a preset obfuscation and encryption processing mode, and the at least one target hash data is fragmented, so that the fragmented target hash data is respectively stored in the second block chain. Therefore, according to the technical scheme, the finally stored target hash data can be accessed by an external user by confusing the plurality of hash data corresponding to the plurality of service data, but the external user can hardly analyze the target hash data to acquire information such as the transaction scale and the transaction magnitude. Therefore, the data in the block chain can be guaranteed to be real and transparent, and meanwhile, the data safety can be guaranteed, so that a user can be facilitated to better protect own services when using the block chain.
Drawings
In order to more clearly illustrate one or more embodiments or technical solutions in the prior art in the present specification, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments described in one or more embodiments of the present specification, and other drawings can be obtained by those skilled in the art without inventive exercise.
Fig. 1 is a schematic flow chart diagram of a block chain data processing method according to an embodiment of the present specification;
FIG. 2 is a schematic block diagram of a blockchain data processing apparatus according to an embodiment of the present description;
FIG. 3 is a schematic block diagram of a blockchain data processing system in accordance with one embodiment of the present description;
fig. 4 is a schematic block diagram of a block chain data processing apparatus according to an embodiment of the present specification.
Detailed Description
One or more embodiments of the present disclosure provide a method, an apparatus, and a system for processing blockchain data, so as to achieve the purpose of ensuring data security while using a blockchain technique.
In order to make those skilled in the art better understand the technical solutions in one or more embodiments of the present disclosure, the technical solutions in one or more embodiments of the present disclosure will be clearly and completely described below with reference to the drawings in one or more embodiments of the present disclosure, and it is obvious that the described embodiments are only a part of the embodiments of the present disclosure, and not all embodiments. All other embodiments that can be derived by a person skilled in the art from one or more of the embodiments of the present disclosure without making any creative effort shall fall within the protection scope of one or more of the embodiments of the present disclosure.
Fig. 1 is a schematic flow chart of a block chain data processing method according to an embodiment of the present disclosure, as shown in fig. 1, the method includes:
s102, a plurality of hash data corresponding to a plurality of service data recorded in a block in the first block chain are obtained.
And S104, performing obfuscation encryption processing on the plurality of hash data according to a preset obfuscation encryption processing mode to obtain at least one obfuscated target hash data.
And S106, carrying out fragmentation processing on at least one target hash data.
And S108, respectively storing the fragmented target hash data into a second block chain.
In one embodiment, hash data corresponding to business data recorded in a block of the first blockchain is an account book of a transaction recorded in the first blockchain, and the account book may be accessible only to nodes in the first blockchain. The account is obfuscated and encrypted and then stored in a second blockchain, and the obfuscated and encrypted account stored in the second blockchain may be accessible to an external user. Therefore, on one hand, an external user such as the public can access the account book to ensure the data to be true and transparent, and on the other hand, the external user acquires the account book subjected to the obfuscated encryption processing, so that the account book subjected to the obfuscated encryption processing is difficult to analyze to obtain the relevant information of the true transaction amount, and the safety of the transaction information is also ensured.
Therefore, according to the technical scheme, the finally stored target hash data can be accessed by an external user by mixing the plurality of hash data corresponding to the plurality of service data, but the external user can hardly analyze the target hash data to acquire information such as transaction scale and transaction magnitude. Therefore, the data in the block chain can be guaranteed to be real and transparent, and meanwhile, the data safety can be guaranteed, so that a user can be facilitated to better protect own services when using the block chain.
It should be appreciated that in embodiments of the present application, obfuscating the encryption process of the hash data may include a variety of ways.
Optionally, in an implementation manner, the content composed of a plurality of hash data may be hashed to obtain one hash data.
For example, assuming that Hash data corresponding to 4 storage records in a block of the block chain are HashA, HashB, HashC, and HashD, respectively, the Hash data HashABCD after the encryption process is Hash (HashA + HashB + HashC + HashD), where the function Hash () represents a Hash calculation function, such as MD5, SHA-1, SHA-256, SHA-384, and SHA-512, and so on. In the bitcoin system, the hash algorithm used is SHA-256.
Optionally, in another implementation manner, any one of the hash data may be divided into a plurality of portions of content, and then hash calculation may be performed respectively to obtain a plurality of hash data corresponding to the plurality of portions of content.
For example, assuming that Hash data corresponding to one storage record in a certain block of the block chain is HashA, the HashA may be split into HashA1 and HashA2, and then Hash processing is performed on the HashA1 and the HashA2, respectively, so as to obtain HashA1 ═ Hash (HashA1) and HashA2 ═ Hash (HashA2), where the HashA1 'and the HashA 2' are Hash data obtained by performing obfuscation and encryption processing on the HashA. Of course, the HashA can be split into 3 parts, 4 parts or even more, and the specific split number of parts, how split, is configurable.
Optionally, in another implementation manner, the content composed of the plurality of hash data may be subdivided into a plurality of portions of content, and hash calculation may be performed on each portion of content, so as to obtain a plurality of hash data corresponding to the plurality of portions of content.
For example, suppose that hash data corresponding to 4 storage records in a certain block of the block chain are HashA, HashB, HashC, and HashD, respectively, and the content HashABCD of the hash data is (HashA + HashB + HashC + HashD); the HashABCD may be divided into HashABCD1 and HashABCD2, and Hash calculation is performed on HashABCD1 and HashABCD2 to obtain Hash (HashABCD1) and Hash (HashABCD2), where the Hash (HashABCD1) and the Hash (HashABCD2) are multiple Hash data corresponding to the multiple portions of content.
In addition, it should be understood that the obfuscation scheme according to the embodiment of the present application may further perform multiple layers of obfuscation encryption processing, that is, perform one or more layers of obfuscation encryption processing on hash data after one layer of obfuscation encryption processing. The algorithms for obfuscating the encryption process at different layers may be the same or different.
For example, assuming that Hash data corresponding to 4 storage records in a certain block of the block chain are HashA, HashB, HashC, and HashD, respectively, the Hash information HashABCD after the first layer obfuscation encryption is Hash (HashA + HashB + HashC + HashD); the second layer obfuscates the encrypted Hash data into Hash (HashABCD1) and Hash (HashABCD2), wherein HashABCD is HashABCD1+ HashABCD 2.
Optionally, in another implementation, the hash data may be subjected to one or more times of fragmentation processing and/or hash calculation. Specifically, the hash data may be subjected to only the fragmentation processing to obtain the target hash data, or the fragmentation processing and the hash calculation may be combined to perform the obfuscation encryption on the hash data to obtain the target hash data.
A detailed obfuscated encryption processing method is described below.
Firstly, the hash data is sliced according to a specified slicing rule to obtain a plurality of first data segments.
Wherein, the step of assigning the fragmentation rule comprises the following steps: carrying out a fragmentation rule according to the specified data length; for example, if the specified data length is 64KB, the hash data is fragmented according to the rule that each data fragment is 64KB in size; or, a rule for slicing according to a specified time length; for example, if the specified time is 1 second, fragmentation is performed according to the hash data stored in each second, and if the hash data stored in the current 1 second is one data fragment, the hash data stored in the next 1 second is the next data fragment.
And secondly, performing hash calculation on each first data segment to obtain a plurality of second data segments.
Finally, obfuscating the encrypted target hash data is determined from the plurality of second data segments. Specifically, the second data segment may be directly determined as the target hash data, and the second data segment may be further subjected to one or more times of fragmentation processing and/or hash calculation, so as to finally obtain the target hash data.
In this embodiment, an obfuscated encryption processing manner is described in which hash data is first sliced, and then hash calculation is performed on the sliced data fragments. Obviously, due to the diversity of the obfuscating encryption processing modes, the target hash data after the obfuscating encryption processing is difficult to be known by external users, and therefore the security of the target hash data can be ensured.
Of course, besides the above-mentioned obfuscated encryption processing manners, other various obfuscated encryption processing manners may also be adopted to perform obfuscated encryption processing on the hash data, including a manner of combining multiple fragmentation processing and multiple hash calculation, and the order of the multiple fragmentation processing and the multiple hash calculation is not limited. The more times of fragmentation processing and/or hash calculation, i.e. the more complicated the obfuscated encryption processing manner, the higher the security of the obtained target hash data.
In an embodiment, before hash data corresponding to service data recorded in a first block chain is acquired, it may be determined that a data viewing permission of the first block chain is visible only to a first specified user group, for example, only to each node in the first block chain; and determining that the data viewing permissions of the second blockchain are visible to all users, e.g., external users such as the public can access the data.
Wherein the first specified group of users may be one user or a plurality of users.
In this embodiment, since the first blockchain is only visible to the first designated user group and is invisible to other external users, the hash data corresponding to the service data stored in the block in the first blockchain are difficult to be known by the external users, so as to ensure the security of the hash data corresponding to the service data; in addition, the second block chain is visible to all users, that is, all users can know the obfuscated and encrypted target hash data stored in the second block chain, so that the transparent authenticity of data in the block chain is guaranteed, and even if external users know the obfuscated and encrypted target hash data stored in the second block chain, the external users cannot know the real data of the service data because the obfuscated and encrypted processing mode corresponding to the target hash data is unknown, so that the safety of the service data is ensured, and the users can better protect own services when using the block chain.
In an embodiment, when the obfuscated and encrypted at least one target hash data is stored in the second block chain, the obfuscated and encrypted at least one target hash data may be firstly subjected to fragmentation processing, and then the fragmented target hash data is respectively stored in the second block chain.
In this embodiment, the target hash data included in each segment corresponding to the segment processing is not more than the predetermined number, and a total length of the predetermined number of target hash data should not be more than a maximum length of the data recorded in the chunk in the second chunk chain. Therefore, when the obfuscated and encrypted at least one piece of target hash data is sliced, the target hash data can be sliced in a manner that each slice contains a fixed number of pieces of target hash data, wherein the fixed number should not be greater than a predetermined number.
In this embodiment, after the obfuscated and encrypted at least one piece of target hash data is subjected to fragmentation processing, a plurality of fragments are obtained. Therefore, when the fragmented target hash data is stored in the second block chain, the target hash data contained in each fragment can be stored in the second block chain as a service record.
In one embodiment, the obfuscated encryption processing manner may be stored into the third blockchain and the data viewing permissions of the third blockchain determined to be visible only to a second specified group of users.
Wherein the second designated group of users may be one user or a plurality of users. The second designated user group may be the same or different from the first designated user group (i.e., the user group visible for the first blockchain). The second specified user group may be a worker related to the data stored in the first/second blockchain, such as a maintainer of the blockchain, and the user(s) may manage, such as store, update, and the like, the hash data stored in the first/second blockchain; alternatively, the user(s) may also manage the obfuscated encryption processing manners stored in the third block chain, such as storing, modifying, and the like.
In this embodiment, the confusion encryption processing mode is separately stored in the third block chain, so that the second specified user group can conveniently know the confusion encryption processing mode, and the actual data of the service data is obtained by obtaining the confusion encryption processing mode. Moreover, since the third block chain is only visible to the second designated user group and other external users are invisible, the external user is difficult to know the confusion encryption processing mode stored in the third block chain, so that the real data of the service data is difficult to know, and the security of the service data is ensured.
In an embodiment, the obfuscated encryption processing manner may also be stored in the first block chain, and since the first block chain is only visible to the first designated user group and is invisible to other external users, the obfuscated encryption processing manner stored in the first block chain is difficult to be known by the external users, so that the external users are difficult to know the real data of the service data, and the security of the service data is ensured.
In this embodiment, the obfuscated encryption processing mode and the hash data corresponding to the service data are stored in the first area chain together, which not only can ensure the security of the service data, but also can save the occupation of the block chain by the obfuscated encryption processing mode.
In summary, particular embodiments of the present subject matter have been described. Other embodiments are within the scope of the following claims. In some cases, the actions recited in the claims can be performed in a different order and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing may be advantageous.
Based on the same idea, the block chain data processing method provided in one or more embodiments of the present specification further provides a block chain data processing apparatus.
Fig. 2 is a schematic block diagram of a block chain data processing apparatus according to an embodiment of the present specification, and as shown in fig. 2, the block chain data processing apparatus 200 includes:
an obtaining module 210, configured to obtain multiple hash data corresponding to multiple service data recorded in a block in a first block chain;
the obfuscating module 220 is configured to perform obfuscating encryption processing on the multiple hash data according to a preset obfuscating encryption processing manner to obtain at least one obfuscated target hash data;
a fragmentation module 230, configured to perform fragmentation processing on the at least one target hash data;
the first storage module 240 is configured to store the fragmented target hash data into the second blockchains respectively.
In one embodiment, the obfuscation module 220 includes:
and the computing unit is used for performing hash computation for each hash datum at least once to obtain at least one target hash datum.
In one embodiment, the fragmentation process includes no more than a predetermined number of target hash data per fragment.
In one embodiment, the first storage module 240 includes:
and the storage unit is used for storing the target hash data contained in each fragment into the second block chain as a service record.
In one embodiment, the apparatus 200 further comprises:
the first determining module is used for determining that the data viewing permission of the first block chain is only visible to a first specified user group before acquiring a plurality of hash data corresponding to a plurality of service data recorded in a block in the first block chain; and determining that the data viewing permission of the second blockchain is visible to all users.
In one embodiment, the apparatus 200 further comprises:
the storage and determination module is used for storing the confusion encryption processing mode into the third block chain; and determining that the data viewing permissions of the third blockchain are visible only to a second specified group of users.
By adopting the device in one or more embodiments of the present specification, the obfuscated at least one target hash data is obtained by obtaining a plurality of hash data corresponding to a plurality of service data recorded in a block in the first block chain and performing obfuscation and encryption processing on the plurality of hash data according to a preset obfuscation and encryption processing manner, and the at least one target hash data is subjected to fragmentation processing, so that the fragmented target hash data is respectively stored in the second block chain. Therefore, according to the technical scheme, the finally stored target hash data can be accessed by an external user by confusing the plurality of hash data corresponding to the plurality of service data, but the external user can hardly analyze the target hash data to acquire information such as the transaction scale and the transaction magnitude. Therefore, the data in the block chain can be guaranteed to be real and transparent, and meanwhile, the data safety can be guaranteed, so that a user can be facilitated to better protect own services when using the block chain.
It should be understood by those skilled in the art that the above-mentioned apparatus for processing blockchain data can be used to implement the method for processing blockchain data described above, and the detailed description thereof should be similar to that of the method described above, and therefore, for the sake of avoiding complexity, no further description is provided herein.
Based on the same idea, one or more embodiments of the present specification further provide a block chain data processing system.
Fig. 3 is a schematic block diagram of a blockchain data processing system according to an embodiment of the present disclosure, and as shown in fig. 3, a blockchain data processing system 300 includes a first blockchain 310, a data processing node 320, and a second blockchain 330; wherein:
a first block chain 310, configured to record multiple hash data corresponding to multiple service data;
a data processing node 320, configured to obtain multiple hash data of the chunk records in the first chunk chain 310;
the data processing node 320 is further configured to perform obfuscating encryption processing on the multiple hash data according to a preset obfuscating encryption processing manner to obtain at least one obfuscated target hash data; carrying out fragmentation processing on at least one target hash data; storing the fragmented target hash data into the second block chain 330 respectively;
and a second block chain 330, configured to store the fragmented target hash data.
In one embodiment, data processing node 320 is further configured to:
and performing hash calculation on each hash data at least once to obtain at least one target hash data.
In one embodiment, the fragmentation process includes no more than a predetermined number of target hash data per fragment.
In one embodiment, data processing node 320 is further configured to:
and respectively storing the target hash data contained in each fragment into the second block chain as a service record.
In one embodiment, data processing node 320 is further configured to:
determining that the data viewing permissions of the first blockchain are visible only to a first specified user group; and determining that the data viewing permission of the second blockchain is visible to all users.
In one embodiment, the system 300 further comprises:
the third block chain is used for storing an obfuscated encryption processing mode;
accordingly, the data processing node 320 is further configured to determine the third blockchain data viewing privilege as being visible only to a second specified group of users.
By adopting the system in one or more embodiments of the present specification, the obfuscated at least one target hash data is obtained by obtaining a plurality of hash data corresponding to a plurality of service data recorded in a block in the first block chain and performing obfuscation and encryption processing on the plurality of hash data according to a preset obfuscation and encryption processing manner, and the at least one target hash data is subjected to fragmentation processing, so that the fragmented target hash data is respectively stored in the second block chain. Therefore, according to the technical scheme, the finally stored target hash data can be accessed by an external user by confusing the plurality of hash data corresponding to the plurality of service data, but the external user can hardly analyze the target hash data to acquire information such as the transaction scale and the transaction magnitude. Therefore, the data in the block chain can be guaranteed to be real and transparent, and meanwhile, the data safety can be guaranteed, so that a user can be facilitated to better protect own services when using the block chain.
It should be understood by those skilled in the art that the above-mentioned system for processing blockchain data can be used to implement the method for processing blockchain data described above, and the detailed description thereof should be similar to that of the method described above, and therefore, for the sake of avoiding complexity, no further description is provided herein.
Based on the same idea, one or more embodiments of the present specification further provide a block chain data processing apparatus, as shown in fig. 4. The blockchain data processing apparatus, which may have relatively large differences in configuration or performance, may include one or more processors 401 and a memory 402, where the memory 402 may store one or more stored applications or data. Wherein memory 402 may be transient or persistent. The application program stored in memory 402 may include one or more modules (not shown), each of which may include a series of computer-executable instructions for a blockchain data processing device. Still further, the processor 401 may be arranged in communication with the memory 402 to execute a series of computer executable instructions in the memory 402 on a blockchain data processing device. The blockchain data processing apparatus may also include one or more power supplies 403, one or more wired or wireless network interfaces 404, one or more input-output interfaces 405, one or more keyboards 406.
In particular, in this embodiment, the blockchain data processing apparatus includes a memory, and one or more programs, wherein the one or more programs are stored in the memory, and the one or more programs may include one or more modules, and each module may include a series of computer-executable instructions for the blockchain data processing apparatus, and the one or more programs configured to be executed by the one or more processors include computer-executable instructions for:
acquiring a plurality of hash data corresponding to a plurality of service data recorded in a block in a first block chain;
performing obfuscation encryption processing on the plurality of hash data according to a preset obfuscation encryption processing mode to obtain at least one obfuscated target hash data;
carrying out fragmentation processing on the at least one target hash data;
and respectively storing the fragmented target hash data into a second block chain.
Optionally, the computer executable instructions, when executed, may further cause the processor to:
and performing hash calculation on each hash data at least once to obtain at least one target hash data.
Optionally, the target hash data included in each segment corresponding to the segment processing is not more than a predetermined number. Optionally, the computer executable instructions, when executed, may further cause the processor to:
and respectively storing the target hash data contained in each fragment into the second block chain as a service record.
Optionally, the computer executable instructions, when executed, may further cause the processor to:
before obtaining a plurality of hash data corresponding to a plurality of service data recorded in a block in a first block chain, determining that the data viewing permission of the first block chain is visible only to a first specified user group; and determining that the data viewing permission of the second blockchain is visible to all users.
Optionally, the computer executable instructions, when executed, may further cause the processor to:
storing the obfuscated encryption processing mode into a third block chain; and determining that the data viewing permission of the third block chain is visible only to a second specified user group.
One or more embodiments of the present specification also propose a computer-readable storage medium storing one or more programs, the one or more programs including instructions, which when executed by an electronic device including a plurality of application programs, enable the electronic device to perform the above-mentioned block chain data processing method, and in particular to perform:
acquiring a plurality of hash data corresponding to a plurality of service data recorded in a block in a first block chain;
performing obfuscation encryption processing on the plurality of hash data according to a preset obfuscation encryption processing mode to obtain at least one obfuscated target hash data;
the fragmentation module is used for carrying out fragmentation processing on the at least one target hash data;
and respectively storing the fragmented target hash data into a second block chain.
The systems, devices, modules or units illustrated in the above embodiments may be implemented by a computer chip or an entity, or by a product with certain functions. One typical implementation device is a computer. In particular, the computer may be, for example, a personal computer, a laptop computer, a cellular telephone, a camera phone, a smartphone, 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.
For convenience of description, the above devices are described as being divided into various units by function, and are described separately. Of course, the functionality of the various elements may be implemented in the same one or more software and/or hardware implementations in implementing one or more embodiments of the present description.
One skilled in the art will recognize that one or more embodiments of the present description may be provided as a method, system, or computer program product. Accordingly, one or more embodiments of the present description may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, one or more embodiments of the present description may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
One or more embodiments of the present specification are described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
One or more embodiments of the present description may be described in the general context of computer-executable instructions, such as program modules, being executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform particular tasks or implement particular abstract data types. The application may also be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules may be located in both local and remote computer storage media including memory storage devices.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the system embodiment, since it is substantially similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
The above description is only one or more embodiments of the present disclosure, and is not intended to limit the present disclosure. Various modifications and alterations to one or more embodiments described herein will be apparent to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of one or more embodiments of the present specification should be included in the scope of claims of one or more embodiments of the present specification.

Claims (8)

1. A method for processing block chain data comprises the following steps:
acquiring a plurality of hash data recorded in a block in a first block chain; wherein the plurality of hash data correspond to a plurality of business data, the plurality of hash data comprising an ledger of transactions recorded in the first blockchain; the data viewing permission of the first blockchain is only visible to a first specified user group;
carrying out fragmentation and confusion encryption processing on the plurality of hash data according to a preset confusion encryption processing mode to obtain a plurality of target hash data subjected to fragmentation and confusion;
carrying out fragmentation processing on the plurality of target hash data;
respectively storing the fragmented target hash data into a second block chain; the data viewing permission of the second blockchain is visible to all users;
storing the obfuscated encryption processing mode into a third block chain; the data viewing permission of the third blockchain is only visible to a second specified user group; and at least one target user which does not belong to the first specified user group exists in the second specified user group, and the target user has the authority of managing the preset obfuscated encryption processing mode.
2. The method according to claim 1, wherein the fragmenting and obfuscating the multiple pieces of hash data according to a preset obfuscated encryption processing manner to obtain fragmented and obfuscated multiple pieces of target hash data includes:
carrying out fragmentation processing on the plurality of hash data to obtain a plurality of first data fragments;
performing hash calculation on each first data segment at least once according to a preset obfuscated encryption processing mode to obtain a plurality of second data segments;
and determining a plurality of target hash data after fragmentation and confusion according to the plurality of second data fragments.
3. The method of claim 2, wherein no more than a predetermined number of target hash data is included in each segment resulting from the fragmentation of the plurality of target hash data.
4. The method according to claim 3, wherein storing the fragmented target hash data into the second blockchains respectively comprises:
and respectively storing the target hash data contained in each fragment into the second block chain as a service record.
5. A blockchain data processing apparatus comprising:
the acquisition module is used for acquiring a plurality of hash data recorded in a block in the first block chain; wherein the plurality of hash data correspond to a plurality of business data, the plurality of hash data comprising an ledger of transactions recorded in the first blockchain; the data viewing permission of the first blockchain is only visible to a first specified user group;
the obfuscation module is used for carrying out fragmentation and obfuscation encryption processing on the plurality of hash data according to a preset obfuscation encryption processing mode to obtain a plurality of target hash data after fragmentation and obfuscation;
the fragmentation module is used for carrying out fragmentation processing on the plurality of target hash data;
the first storage module is used for respectively storing the fragmented target hash data into the second block chains; the data viewing permission of the second blockchain is visible to all users;
the second storage module is used for storing the confusion encryption processing mode into a third block chain; the data viewing permission of the third blockchain is only visible to a second specified user group; and at least one target user which does not belong to the first specified user group exists in the second specified user group, and the target user has the authority of managing the preset obfuscated encryption processing mode.
6. A block chain data processing system comprises a first block chain, a data processing node, a second block chain and a third block chain; the data viewing permission of the first block chain is only visible to a first specified user group, the data viewing permission of the second block chain is visible to all users, and the data viewing permission of the third block chain is only visible to a second specified user group; at least one target user which does not belong to the first specified user group exists in the second specified user group, and the target user has the authority of managing a preset confusion encryption processing mode; wherein:
the first block chain is used for recording a plurality of hash data; the plurality of hash data comprises an ledger of transactions recorded in the first blockchain; wherein the plurality of hash data correspond to a plurality of service data;
the data processing node is configured to obtain the plurality of hash data recorded in the block of the first blockchain;
the data processing node is further configured to perform fragmentation and obfuscation encryption processing on the multiple pieces of hash data according to the preset obfuscation encryption processing mode to obtain multiple pieces of target hash data after fragmentation and obfuscation; carrying out fragmentation processing on the plurality of target hash data; respectively storing the fragmented target hash data into the second block chains;
the data processing node is further configured to store the obfuscated encryption processing manner into the third block chain;
the second block chain is used for storing the fragmented target hash data;
and the third block chain is used for storing the confusion encryption processing mode.
7. A blockchain data processing apparatus comprising:
a processor; and
a memory arranged to store computer executable instructions that, when executed, cause the processor to:
acquiring a plurality of hash data recorded in a block in a first block chain; wherein the plurality of hash data correspond to a plurality of business data, the plurality of hash data comprising an ledger of transactions recorded in the first blockchain; the data viewing permission of the first blockchain is only visible to a first specified user group;
carrying out fragmentation and confusion encryption processing on the plurality of hash data according to a preset confusion encryption processing mode to obtain a plurality of target hash data subjected to fragmentation and confusion;
carrying out fragmentation processing on the plurality of target hash data;
respectively storing the fragmented target hash data into a second block chain; the data viewing permission of the second blockchain is visible to all users;
storing the obfuscated encryption processing mode into a third block chain; the data viewing permission of the third blockchain is only visible to a second specified user group; and at least one target user which does not belong to the first specified user group exists in the second specified user group, and the target user has the authority of managing the preset obfuscated encryption processing mode.
8. A storage medium storing computer-executable instructions that, when executed, implement the following:
acquiring a plurality of hash data recorded in a block in a first block chain; wherein the plurality of hash data correspond to a plurality of business data, the plurality of hash data comprising an ledger of transactions recorded in the first blockchain; the data viewing permission of the first blockchain is only visible to a first specified user group;
carrying out fragmentation and confusion encryption processing on the plurality of hash data according to a preset confusion encryption processing mode to obtain a plurality of target hash data subjected to fragmentation and confusion;
carrying out fragmentation processing on the plurality of target hash data;
respectively storing the fragmented target hash data into a second block chain; the data viewing permission of the second blockchain is visible to all users;
storing the obfuscated encryption processing mode into a third block chain; the data viewing permission of the third blockchain is only visible to a second specified user group; and at least one target user which does not belong to the first specified user group exists in the second specified user group, and the target user has the authority of managing the preset obfuscated encryption processing mode.
CN201811605307.9A 2018-12-26 2018-12-26 Block chain data processing method, device and system Active CN110033261B (en)

Priority Applications (4)

Application Number Priority Date Filing Date Title
CN201811605307.9A CN110033261B (en) 2018-12-26 2018-12-26 Block chain data processing method, device and system
CN202110949513.7A CN113689213A (en) 2018-12-26 2018-12-26 Block chain data processing method, device and system
TW108137259A TWI724579B (en) 2018-12-26 2019-10-16 Block chain data processing method, device, system, processing equipment and storage medium
PCT/CN2019/119312 WO2020134712A1 (en) 2018-12-26 2019-11-19 Blockchain data processing method, device and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811605307.9A CN110033261B (en) 2018-12-26 2018-12-26 Block chain data processing method, device and system

Related Child Applications (1)

Application Number Title Priority Date Filing Date
CN202110949513.7A Division CN113689213A (en) 2018-12-26 2018-12-26 Block chain data processing method, device and system

Publications (2)

Publication Number Publication Date
CN110033261A CN110033261A (en) 2019-07-19
CN110033261B true CN110033261B (en) 2021-07-13

Family

ID=67235444

Family Applications (2)

Application Number Title Priority Date Filing Date
CN202110949513.7A Pending CN113689213A (en) 2018-12-26 2018-12-26 Block chain data processing method, device and system
CN201811605307.9A Active CN110033261B (en) 2018-12-26 2018-12-26 Block chain data processing method, device and system

Family Applications Before (1)

Application Number Title Priority Date Filing Date
CN202110949513.7A Pending CN113689213A (en) 2018-12-26 2018-12-26 Block chain data processing method, device and system

Country Status (3)

Country Link
CN (2) CN113689213A (en)
TW (1) TWI724579B (en)
WO (1) WO2020134712A1 (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113689213A (en) * 2018-12-26 2021-11-23 创新先进技术有限公司 Block chain data processing method, device and system
CN111064579A (en) * 2019-12-11 2020-04-24 北京金汤科技有限公司 Block chain-based secure multi-party computing method, system and storage medium
CN112468577B (en) * 2020-11-25 2021-11-02 上海欧冶金融信息服务股份有限公司 Data controllable sharing method and system based on data mapping relation
CN112685767B (en) * 2020-12-25 2024-03-26 联想(北京)有限公司 Data processing method and system based on block chain
CN112685775A (en) * 2020-12-29 2021-04-20 北京八分量信息科技有限公司 Method and device for monitoring data leakage prevention in block chain system and related products
CN114153836A (en) * 2021-07-15 2022-03-08 北京天德科技有限公司 Encryption fragment reorganization data storage method and system based on block chain
CN113570144B (en) * 2021-07-30 2024-01-23 华北电力科学研究院有限责任公司 Power consumption information processing method and device
CN116933331B (en) * 2023-07-28 2024-02-06 三峡高科信息技术有限责任公司 Multithreaded file hash method based on wasm and web worker
CN117216158A (en) * 2023-08-22 2023-12-12 天云融创数据科技(北京)有限公司 Data management method and device

Family Cites Families (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8014975B2 (en) * 2007-09-28 2011-09-06 Hitachi Global Storage Technologies, Netherlands B.V. FTIR and EDX spectrum library of contaminants found on a HDD and their potential sources
TW201317823A (en) * 2011-10-31 2013-05-01 Chunghwa Telecom Co Ltd Cloud secured storage system
US9483655B2 (en) * 2013-03-12 2016-11-01 Commvault Systems, Inc. File backup with selective encryption
US20160342989A1 (en) * 2015-05-21 2016-11-24 Mastercard International Incorporated Method and system for processing blockchain-based transactions on existing payment networks
US10157295B2 (en) * 2016-10-07 2018-12-18 Acronis International Gmbh System and method for file authenticity certification using blockchain network
CN106548091A (en) * 2016-10-14 2017-03-29 北京爱接力科技发展有限公司 A kind of data deposit card, the method and device of checking
CN106991334B (en) * 2016-11-24 2021-03-02 创新先进技术有限公司 Data access method, system and device
DE102016224533A1 (en) * 2016-12-08 2018-06-14 Bundesdruckerei Gmbh Bidirectionally linked blockchain structure
CN106941487B (en) * 2017-02-24 2021-01-05 创新先进技术有限公司 Data sending method and device
CN107332657A (en) * 2017-07-21 2017-11-07 广州智慧城市发展研究院 A kind of encryption method and system based on block chain digital signature
CN108737068B (en) * 2018-04-13 2020-08-07 中国地质大学(武汉) Cryptocurrency transaction privacy protection method and system based on block chain
CN108648084B (en) * 2018-05-18 2022-01-04 百度在线网络技术(北京)有限公司 Data processing method, device and equipment of block chain network and storage medium
CN108664223B (en) * 2018-05-18 2021-07-02 百度在线网络技术(北京)有限公司 Distributed storage method and device, computer equipment and storage medium
CN108681943B (en) * 2018-05-18 2022-07-12 百度在线网络技术(北京)有限公司 Data processing method, device and equipment of block chain network and storage medium
CN108768663B (en) * 2018-05-31 2020-05-01 中国地质大学(武汉) Block chain access control method and processing system thereof
CN109034800A (en) * 2018-07-31 2018-12-18 杭州复杂美科技有限公司 A kind of privacy method of commerce, system and equipment
CN109063169A (en) * 2018-08-17 2018-12-21 福建省农村信用社联合社 A kind of customer data management system based on block chain
CN113689213A (en) * 2018-12-26 2021-11-23 创新先进技术有限公司 Block chain data processing method, device and system

Also Published As

Publication number Publication date
WO2020134712A1 (en) 2020-07-02
TW202025032A (en) 2020-07-01
TWI724579B (en) 2021-04-11
CN110033261A (en) 2019-07-19
CN113689213A (en) 2021-11-23

Similar Documents

Publication Publication Date Title
CN110033261B (en) Block chain data processing method, device and system
CN110020544B (en) Hash information processing method and system for storage record in block of block chain
CN109062582B (en) Encryption method and device for application installation package
CN108628611B (en) Data calling method and data calling device
CN105993018B (en) Content item encryption in mobile device
CN110334153B (en) Authorization method, system, device and equipment in block chain type account book
CN113079200A (en) Data processing method, device and system
CN110474775B (en) User creating method, device and equipment in block chain type account book
US10536276B2 (en) Associating identical fields encrypted with different keys
CN113032357A (en) File storage method and device and server
CN111523098A (en) Data authority management method and device
CN110795747A (en) Data encryption storage method, device, equipment and readable storage medium
CN112100643A (en) Data processing method and device based on privacy protection and server
CN112287376A (en) Method and device for processing private data
US20220060316A1 (en) Variable data protection
CN112800467B (en) Online model training method, device and equipment based on data privacy protection
US11836269B2 (en) Protection of data of database clients from persistent adversaries
US11240243B2 (en) Preventing statistical inference attacks on data that is shared among multiple stakeholders with disjoint access privileges
CN113297611A (en) Data processing method, data encryption storage method, data reading method, data processing equipment, data encryption storage equipment, data reading equipment and storage medium
US20180035285A1 (en) Semantic Privacy Enforcement
CN112084536B (en) Key storage method and device based on blockchain
CN115766173A (en) Data processing method, system and device
CN113055159B (en) Data desensitization method and device
CN111563272B (en) Information statistical method and device
CN114995949A (en) Container mirror image construction method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right

Effective date of registration: 20200925

Address after: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman, British Islands

Applicant after: Innovative advanced technology Co.,Ltd.

Address before: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman, British Islands

Applicant before: Advanced innovation technology Co.,Ltd.

Effective date of registration: 20200925

Address after: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman, British Islands

Applicant after: Advanced innovation technology Co.,Ltd.

Address before: A four-storey 847 mailbox in Grand Cayman Capital Building, British Cayman Islands

Applicant before: Alibaba Group Holding Ltd.

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant