WO2020134898A1 - Hash information processing method and system for storage records in block of blockchain - Google Patents

Hash information processing method and system for storage records in block of blockchain Download PDF

Info

Publication number
WO2020134898A1
WO2020134898A1 PCT/CN2019/122552 CN2019122552W WO2020134898A1 WO 2020134898 A1 WO2020134898 A1 WO 2020134898A1 CN 2019122552 W CN2019122552 W CN 2019122552W WO 2020134898 A1 WO2020134898 A1 WO 2020134898A1
Authority
WO
WIPO (PCT)
Prior art keywords
hash information
blockchain ledger
blockchain
block
target
Prior art date
Application number
PCT/CN2019/122552
Other languages
French (fr)
Chinese (zh)
Inventor
栗志果
Original Assignee
阿里巴巴集团控股有限公司
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 阿里巴巴集团控股有限公司 filed Critical 阿里巴巴集团控股有限公司
Publication of WO2020134898A1 publication Critical patent/WO2020134898A1/en

Links

Images

Classifications

    • 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/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/6227Protecting 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 where protection concerns the structure of data, e.g. records, types, queries
    • 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/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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2221/00Indexing scheme relating to security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F2221/21Indexing scheme relating to G06F21/00 and subgroups addressing additional information or applications relating to security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F2221/2141Access rights, e.g. capability lists, access control lists, access tables, access matrices

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Bioethics (AREA)
  • General Health & Medical Sciences (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Hardware Design (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • Medical Informatics (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)
  • Storage Device Security (AREA)

Abstract

A hash information processing method and system for storage records in a block of a blockchain, and an electronic device. The method comprises: obtaining hash information of a plurality of storage records in a block of a first blockchain account book (S110); performing at least one confusion encryption processing on the plurality of pieces of hash information to obtain at least one piece of target hash information (S120); and storing the at least one piece of target hash information in a second blockchain account book, wherein the target user has an authority to access the second blockchain account book but does not have an authority to access the first blockchain account book (S130).

Description

区块链的区块中存储记录的哈希信息处理方法和系统Hash information processing method and system for storing records in blocks of blockchain 技术领域Technical field
本申请涉及计算机软件技术领域,尤其涉及一种区块链的区块中存储记录的哈希信息处理方法和系统。This application relates to the field of computer software technology, and in particular to a hash information processing method and system for storing records in blocks of a blockchain.
背景技术Background technique
区块链账本具备真实透明,不可删除的特性,应用范围越来越广泛,基本涉及到各个行业。The blockchain ledger has the characteristics of true transparency and irremovability, and its application range is getting wider and wider, basically involving various industries.
但是,由于区块链账本的架构原因,即使对明文进行加密,使用哈希(hash)上链的方式,公众仍然可以通过解析区块链账本获得区块链上的真实交易量。However, due to the architecture of the blockchain ledger, even if the plaintext is encrypted and hashed, the public can still obtain the real transaction volume on the blockchain by parsing the blockchain ledger.
在保障数据真实透明的同时,如何对业务的交易规模交易量级进行保护,是亟待解决的技术问题。While ensuring the authenticity and transparency of the data, how to protect the transaction scale and transaction level of the business is an urgent technical problem to be solved.
发明内容Summary of the invention
本申请实施例的目的是提供一种区块链的区块中存储记录的哈希信息处理方法和系统,以对区块链中业务的交易规模交易量级进行保护,使得更多的业务能够使用区块链技术的同时更好地保护业务数据。The purpose of the embodiments of the present application is to provide a method and system for processing hash information stored in a block of a blockchain to protect the transaction scale and transaction level of the business in the blockchain, so that more businesses can Use blockchain technology to better protect business data.
为解决上述技术问题,本申请实施例是这样实现的:To solve the above technical problems, the embodiments of the present application are implemented as follows:
第一方面,提出了一种区块链的区块中存储记录的哈希信息处理方法,该方法包括:In the first aspect, a hash information processing method for storing records in blocks of a blockchain is proposed. The method includes:
获取第一区块链账本的区块中多个存储记录的哈希信息;Obtain the hash information of multiple storage records in the block of the first blockchain ledger;
对所述多个哈希信息进行至少一层混淆加密处理,得到至少一个目标哈希信息;Performing at least one layer of obfuscation and encryption processing on the plurality of hash information to obtain at least one target hash information;
将所述至少一个目标哈希信息存储到第二区块链账本中,其中,目标用户具有访问第二区块链账本的权限且不具有访问第一区块链账本的权限。The at least one target hash information is stored in the second blockchain ledger, where the target user has permission to access the second blockchain ledger and does not have permission to access the first blockchain ledger.
第二方面,提出了一种区块链系统,该区块链系统包括:In the second aspect, a blockchain system is proposed. The blockchain system includes:
获取模块,获取第一区块链账本的区块中多个存储记录的哈希信息;The obtaining module obtains hash information of multiple storage records in the block of the first blockchain ledger;
混淆加密处理模块,对所述多个哈希信息进行至少一层混淆加密处理,得到至少 一个目标哈希信息;A confusion encryption processing module, performing at least one layer of confusion encryption processing on the plurality of hash information to obtain at least one target hash information;
存储模块,将所述至少一个目标哈希信息存储到第二区块链账本中,其中,目标用户具有访问第二区块链账本的权限且不具有访问第一区块链账本的权限。The storage module stores the at least one target hash information in the second blockchain ledger, where the target user has the authority to access the second blockchain ledger and does not have the authority to access the first blockchain ledger.
第三方面,提出了一种电子设备,该电子设备包括:In a third aspect, an electronic device is proposed. The electronic device includes:
处理器;以及Processor; and
被安排成存储计算机可执行指令的存储器,所述可执行指令在被执行时使所述处理器执行以下操作:A memory arranged to store computer-executable instructions, which when executed, causes the processor to perform the following operations:
获取第一区块链账本的区块中多个存储记录的哈希信息;对所述多个哈希信息进行至少一层混淆加密处理,得到至少一个目标哈希信息;将所述至少一个目标哈希信息存储到第二区块链账本中,其中,目标用户具有访问第二区块链账本的权限且不具有访问第一区块链账本的权限。Obtain hash information of multiple storage records in the block of the first blockchain ledger; perform at least one layer of obfuscation and encryption processing on the multiple hash information to obtain at least one target hash information; convert the at least one target The hash information is stored in the second blockchain ledger, where the target user has permission to access the second blockchain ledger and does not have permission to access the first blockchain ledger.
第四方面,提出了一种计算机可读存储介质,所述计算机可读存储介质存储一个或多个程序,所述一个或多个程序当被包括多个应用程序的电子设备执行时,使得所述电子设备执行以下操作:In a fourth aspect, a computer-readable storage medium is proposed, which stores one or more programs, which when executed by an electronic device including multiple application programs, causes all The electronic device performs the following operations:
获取第一区块链账本的区块中多个存储记录的哈希信息;对所述多个哈希信息进行至少一层混淆加密处理,得到至少一个目标哈希信息;将所述至少一个目标哈希信息存储到第二区块链账本中,其中,目标用户具有访问第二区块链账本的权限且不具有访问第一区块链账本的权限。Obtain hash information of multiple storage records in the block of the first blockchain ledger; perform at least one layer of obfuscation and encryption processing on the multiple hash information to obtain at least one target hash information; convert the at least one target The hash information is stored in the second blockchain ledger, where the target user has permission to access the second blockchain ledger and does not have permission to access the first blockchain ledger.
附图说明BRIEF DESCRIPTION
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请中记载的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly explain the technical solutions in the embodiments of the present application, the drawings required in the description of the embodiments will be briefly introduced below. Obviously, the drawings in the following description are only some implementations described in the present application For example, for those of ordinary skill in the art, without paying any creative work, other drawings can be obtained based on these drawings.
图1是本申请的一个实施例区块链的区块中存储记录的哈希信息处理方法流程图。FIG. 1 is a flowchart of a hash information processing method for storing records in a block of a blockchain according to an embodiment of the present application.
图2是本申请的一个实施例电子设备的结构示意图。2 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
图3是本申请的一个实施例区块链系统的结构示意图。FIG. 3 is a schematic structural diagram of a blockchain system according to an embodiment of the present application.
具体实施方式detailed description
本申请实施例提供一种区块链的区块中存储记录的哈希信息处理方法、系统和电子设备。Embodiments of the present application provide a hash information processing method, system, and electronic device for storing records in blocks of a blockchain.
为了使本技术领域的人员更好地理解本申请中的技术方案,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都应当属于本申请保护的范围。In order to enable those skilled in the art to better understand the technical solutions in the present application, the technical solutions in the embodiments of the present application will be described clearly and completely in conjunction with the drawings in the embodiments of the present application. Obviously, the described The embodiments are only a part of the embodiments of the present application, but not all the embodiments. Based on the embodiments in this application, all other embodiments obtained by those of ordinary skill in the art without creative work shall fall within the scope of protection of this application.
图1是本申请的一个实施例区块链的区块中存储记录的哈希信息处理方法流程图。图1的方法可包括:FIG. 1 is a flowchart of a hash information processing method for storing records in a block of a blockchain according to an embodiment of the present application. The method of FIG. 1 may include:
S110,获取第一区块链账本的区块中多个存储记录的哈希信息。S110: Obtain hash information of multiple storage records in a block of the first blockchain ledger.
应理解,在不同的区块链应用场景中,区块链中的存储记录可存储不同的内容。例如,在涉及区块链交易的系统中,一个存储记录即区块链的一个交易记录。It should be understood that in different blockchain application scenarios, the storage records in the blockchain can store different contents. For example, in a system involving blockchain transactions, a storage record is a transaction record of the blockchain.
应理解,在本申请实施例中,在获取第一区块链账本的区块中多个存储记录的哈希信息时,可通过该区块的交易树获取多个存储记录的哈希信息。It should be understood that, in the embodiment of the present application, when acquiring hash information of a plurality of stored records in a block of the first blockchain ledger, the hash information of the plurality of stored records may be obtained through the transaction tree of the block.
应理解,在比特币等区块链1.0的区块链系统中,只有一个默克尔(Merkle)树,某种程度上来说,这棵树也可以称为交易树;而在以太坊等区块链2.0的区块链系统中,则存在交易(Transactions)树、收据(Receipts)树和状态(State)树三棵Merkle树。It should be understood that in a blockchain system such as Bitcoin 1.0, there is only one Merkle tree. To a certain extent, this tree can also be called a transaction tree; and in areas such as Ethereum In the blockchain system of Blockchain 2.0, there are three Merkle trees: Transaction tree, Receipt tree, and State tree.
可选地,作为一个实施例,步骤S110可实现为:逐个区块获取第一区块链账本的区块中多个存储记录的哈希信息,以进行混淆加密处理,直至读取完区块链的最新区块。Optionally, as an embodiment, step S110 may be implemented as follows: block-by-block acquisition of hash information of multiple storage records in the block of the first blockchain ledger for obfuscation and encryption processing until the block is read The latest block of the chain.
对于本实施例来说,可以将区块链的历史区块的信息都按照本申请实施例的方案进行混淆加密处理。For this embodiment, the history block information of the blockchain can be obfuscated and encrypted according to the solution of the embodiment of the present application.
或者,可选的,作为另一个实施例,步骤S110可实现为:响应于第一区块链账本的最新区块的存储事件,获取所述最新区块中多个存储记录的哈希信息。Or, optionally, as another embodiment, step S110 may be implemented as: in response to a storage event of the latest block of the first blockchain ledger, acquire hash information of multiple storage records in the latest block.
对于本实施例来说,需要在第一区块链账本所属的区块链启动时就执行本申请实施例的方案,才能保证第一区块链账本的所有区块的存储记录混淆后的哈希信息在第二区块链账本可查询。当然,如果不需要查询第一区块链账本的所有区块的存储记录混淆后的哈希信息,也可不对本申请实施例的方法的执行时机进行限制。For this embodiment, the solution of the embodiment of the present application needs to be executed when the blockchain to which the first blockchain ledger belongs is started to ensure that the storage records of all blocks of the first blockchain ledger are confused. Hope information can be queried in the second blockchain ledger. Of course, if there is no need to query the hash information of the storage records of all the blocks in the first blockchain ledger, the execution time of the method of the embodiment of the present application may not be limited.
S120,对所述多个哈希信息进行至少一层混淆加密处理,得到至少一个目标哈希信息。S120: Perform at least one layer of obfuscation and encryption processing on the multiple hash information to obtain at least one target hash information.
在本申请实施例中,通过对区块的存储记录的哈希信息进行混淆加密处理,可以避免泄露区块链中区块的交易量信息。In the embodiment of the present application, by obfuscating and encrypting the hash information of the storage records of the blocks, it is possible to avoid leaking the transaction volume information of the blocks in the blockchain.
特别地,所述至少一个目标哈希信息的个数不等于所述多个哈希信息的个数。In particular, the number of the at least one target hash information is not equal to the number of the plurality of hash information.
S130,将所述至少一个目标哈希信息存储到第二区块链账本中,其中,目标用户具有访问第二区块链账本的权限且不具有访问第一区块链账本的权限。S130: Store the at least one target hash information in the second blockchain ledger, where the target user has permission to access the second blockchain ledger and does not have permission to access the first blockchain ledger.
本申请实施例中,通过将第一区块链账本中区块的存储记录的哈希信息进行混淆加密处理存储到目标用户能够访问的第二区块链账本中,从而能够避免目标用户直接访问第一区块链账本带来的交易规模及交易量级等信息的泄密,保障了第一区块链账本所属的区块链系统的信息安全。In the embodiment of the present application, the hash information of the storage records of the blocks in the first blockchain ledger is obfuscated and encrypted to be stored in the second blockchain ledger accessible by the target user, thereby avoiding direct access by the target user The disclosure of information such as transaction scale and transaction volume level brought by the first blockchain ledger ensures the information security of the blockchain system to which the first blockchain ledger belongs.
应理解,目标用户具有访问第二区块链账本的权限且不具有访问第一区块链账本的权限,有多种实现方式:It should be understood that the target user has the right to access the second blockchain ledger and does not have the right to access the first blockchain ledger, and there are multiple ways to implement it:
例如所述第一区块链账本所在的区块链为私有链;所述第二区块链账本所在的区块链。此时,所述第一区块链账本所在的区块链的账户节点以外的其它节点将不具备第一区块链账本的访问权限,但可以访问第二区块链账本。For example, the blockchain where the first blockchain ledger is located is a private chain; the blockchain where the second blockchain ledger is located. At this time, nodes other than the account node of the blockchain where the first blockchain ledger is located will not have access rights to the first blockchain ledger, but can access the second blockchain ledger.
又例如,所述第一区块链账本所在的区块链和所述第二区块链账本所在的区块链都为私有链,目标账户配置了第二区块链账本的访问权限,但没有配置第一区块链账本的访问权限。For another example, the blockchain where the first blockchain ledger is located and the blockchain where the second blockchain ledger is located are private chains, and the target account is configured with access rights for the second blockchain ledger, but No access rights are configured for the first blockchain ledger.
应理解,在本申请实施例中,对哈希信息的混淆加密处理可包括多种方式。It should be understood that, in the embodiments of the present application, the obfuscation and encryption processing of the hash information may include multiple manners.
可选地,在一种实现方式中,可将多个哈希信息组成的内容进行哈希计算得到一个哈希信息。Optionally, in an implementation manner, content composed of multiple hash information may be hashed to obtain one hash information.
例如,假设区块链的某个区块中的4个存储记录对应的哈希信息分别为HashA、HashB、HashC和HashD,则混淆加密处理后的哈希信息HashABCD=Hash(HashA+HashB+HashC+HashD),其中,函数Hash()表示哈希计算函数,例如MD5、SHA-1、SHA-256、SHA-384及SHA-512,等等。在比特币系统中,采用的哈希算法为SHA-256。For example, if the hash information corresponding to 4 storage records in a block of the blockchain is HashA, HashB, HashC and HashD, then the hash information after the encryption process is obfuscated HashABCD=Hash(HashA+HashB+HashC +HashD), where the function Hash() represents a hash calculation function, such as MD5, SHA-1, SHA-256, SHA-384, SHA-512, and so on. In the Bitcoin system, the hash algorithm used is SHA-256.
可选地,在另一种实现方式中,可将任一个哈希信息分成多个部分的内容再分别 进行哈希计算,得到所述多个部分的内容对应的多个哈希信息。Optionally, in another implementation manner, the content of any one of the hash information may be divided into multiple parts, and then the hash calculation may be separately performed to obtain multiple pieces of hash information corresponding to the content of the multiple parts.
例如,假设区块链的某个区块中的一个存储记录对应的哈希信息为HashA,可将HashA拆分成HashA1和HashA2,然后分别进行哈希处理,即得到HashA1’=Hash(HashA1),HashA2’=Hash(HashA2),此时的HashA1’和HashA2’即对HashA进行混淆加密处理后得到的哈希信息。当然,还可将HashA拆分成3个部分、4个部分乃至更多部分,具体拆分成多少个部分,怎么拆分,是可配置的。For example, assuming that the hash information corresponding to a storage record in a block of the blockchain is HashA, HashA can be split into HashA1 and HashA2, and then hashed separately, that is, HashA1'=Hash(HashA1) , HashA2'=Hash(HashA2), at this time, HashA1' and HashA2' are hash information obtained by obfuscating and encrypting HashA. Of course, you can also split HashA into 3 parts, 4 parts, or even more parts. How many parts you want to split and how to split them is configurable.
可选地,在另一种实现方式中,可将多个哈希信息组成的内容再分成多个部分的内容,并对每个部分的内容分别进行哈希计算,得到所述多个部分的内容对应的多个哈希信息。Optionally, in another implementation manner, the content composed of multiple hash information may be further divided into multiple parts of content, and the content of each part is separately hashed to obtain the multiple parts of the Multiple hash information corresponding to the content.
例如,假设区块链的某个区块中的4个存储记录对应的哈希信息分别为HashA、HashB、HashC和HashD,其组成的内容HashABCD=(HashA+HashB+HashC+HashD);可将HashABCD分成HashABCD1和HashABCD2,再对HashABCD1和HashABCD2分别进行哈希计算得到Hash(HashABCD1)和Hash(HashABCD2),Hash(HashABCD1)和Hash(HashABCD2)即为该多个部分的内容对应的多个哈希信息。For example, suppose that the hash information corresponding to the 4 storage records in a block of the blockchain are HashA, HashB, HashC, and HashD. The content of its composition HashABCD=(HashA+HashB+HashC+HashD); HashABCD is divided into HashABCD1 and HashABCD2, and then hash calculation of HashABCD1 and HashABCD2 respectively to obtain Hash(HashABCD1) and Hash(HashABCD2), Hash(HashABCD1) and Hash(HashABCD2) are multiple hash corresponding to the content of the multiple parts information.
当然,前面仅仅列举了几种,具体还可能存在其它处理的方式,不作限制。Of course, only a few are listed above, and there may be other processing methods, which are not limited.
此外,应理解,本申请实施例的混淆方案,还可进行多层混淆加密处理,即将一层混淆加密处理之后的哈希信息,再进行一层或多层的混淆加密处理。不同层混淆加密处理的算法,可以相同,也可以不同。In addition, it should be understood that the obfuscation scheme of the embodiment of the present application may also perform multi-layer obfuscation encryption processing, that is, to perform one or more layers of obfuscation encryption processing on the hash information after one layer of confusion encryption processing. The algorithms for obfuscation and encryption at different layers can be the same or different.
例如,例如,假设区块链的某个区块中的4个存储记录对应的哈希信息分别为HashA、HashB、HashC和HashD,则第一层混淆加密处理后的哈希信息HashABCD=Hash(HashA+HashB+HashC+HashD);第二层混淆加密处理后的哈希信息为Hash(HashABCD1)和Hash(HashABCD2),其中HashABCD=HashABCD1+HashABCD2。For example, for example, if the hash information corresponding to 4 storage records in a block of the blockchain is HashA, HashB, HashC and HashD, then the hash information HashABCD=Hash( HashA+HashB+HashC+HashD); the hash information after the second layer of obfuscation encryption processing is Hash(HashABCD1) and Hash(HashABCD2), where HashABCD=HashABCD1+HashABCD2.
可选地,作为一个实施例,所述至少一个目标哈希信息为所述区块的交易树的M根。即参照Merkle树的生成方式将区块中的存储记录哈希得到哈希信息,再将哈希信息两两哈希得到新的哈希信息,直至得到一个哈希值。Optionally, as an embodiment, the at least one target hash information is M roots of the transaction tree of the block. That is, referring to the generation method of the Merkle tree, hash the storage records in the block to obtain hash information, and then hash the hash information two by two to obtain new hash information until a hash value is obtained.
可选地,作为一个实施例,步骤S130具体可实现为:Optionally, as an embodiment, step S130 may be specifically implemented as:
将所述区块的唯一标识及所述至少一个目标哈希信息存储到所述第二区块链账本中。Store the unique identifier of the block and the at least one target hash information into the second blockchain ledger.
本申请实施例中,将区块的唯一标识和生成的至少一个目标哈希信息一起存储到所述第二区块链账本,以便目标用户能够基于区块的唯一标识确定所述至少一个目标哈希信息归属于哪个区块。In the embodiment of the present application, the unique identifier of the block is stored in the second blockchain ledger together with the generated at least one target hash information, so that the target user can determine the at least one target based on the unique identifier of the block Hope which block the information belongs to.
进一步的,在本申请实施例的一个具体实现方式中,可将所述区块的唯一标识及所述至少一个目标哈希信息作为一条存储记录存储到所述第二区块链账本中。Further, in a specific implementation manner of the embodiment of the present application, the unique identifier of the block and the at least one target hash information may be stored in the second blockchain ledger as a storage record.
在本申请实施例中,一个区块的所有混淆后的哈希信息作为一个存储记录进行存储。In the embodiment of the present application, all obfuscated hash information of a block is stored as a storage record.
或者,进一步的,在本申请实施例的另一个具体实现方式中,可将所述区块的唯一标识及一个目标哈希信息中作为存储记录存储到所述第二区块链账本中。Or, further, in another specific implementation manner of the embodiment of the present application, the unique identifier of the block and the target hash information may be stored in the second blockchain ledger as a storage record.
在本申请实施例中,一个区块的混淆后的一个哈希信息作为一个存储记录进行存储。In the embodiment of the present application, the hash information of one block after being obfuscated is stored as a storage record.
或者,进一步的,在本申请实施例的另一个具体实现方式中,可将所述区块的唯一标识及不多于预定个数的目标哈希信息作为存储记录存储到所述第二区块链账本中。Or, further, in another specific implementation manner of the embodiment of the present application, the unique identifier of the block and no more than a predetermined number of target hash information may be stored as a storage record in the second block In the chain account book.
当然,应理解,在本申请实施例的上述实现方式中,所述存储记录中还可携带所述区块的区块头中的至少一种信息,例如父区块的哈希信息、所述区块的时间戳信息,等等。Of course, it should be understood that in the above implementation of the embodiments of the present application, the storage record may also carry at least one piece of information in the block header of the block, such as the hash information of the parent block, the area Block timestamp information, etc.
可选地,作为一个实施例,所述方法还包括:Optionally, as an embodiment, the method further includes:
将混淆算法的代码存储在第三区块链账本中,所述混淆算法用于对所述多个哈希信息进行至少一层混淆加密处理以得到所述至少一个目标哈希信息。The code of the obfuscation algorithm is stored in the third blockchain ledger, and the obfuscation algorithm is used to perform at least one layer of obfuscation encryption processing on the plurality of hash information to obtain the at least one target hash information.
可选地,作为一个实施例,所述方法通过调用第一区块链账本所在的区块链的智能合约实现。Optionally, as an embodiment, the method is implemented by calling a smart contract of the blockchain where the first blockchain ledger is located.
当然,应理解,所述方法可以由第一区块链账本所在的区块链以外的第三方装置实现,本申请实施例对此不做限制。Of course, it should be understood that the method may be implemented by a third-party device other than the blockchain where the first blockchain ledger is located, which is not limited in the embodiments of the present application.
上述对本说明书特定实施例进行了描述。其它实施例在所附权利要求书的范围内。在一些情况下,在权利要求书中记载的动作或步骤可以按照不同于实施例中的顺序来执行并且仍然可以实现期望的结果。另外,在附图中描绘的过程不一定要求示出的特定顺序或者连续顺序才能实现期望的结果。在某些实施方式中,多任务处理和并行处理也是可以的或者可能是有利的。The foregoing describes specific embodiments of the present specification. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims can be performed in a different order than in the embodiments and still achieve the desired results. Additionally, the processes depicted in the drawings do not necessarily require the particular order shown or sequential order to achieve the desired results. In certain embodiments, multitasking and parallel processing are also possible or may be advantageous.
图2是本申请的一个实施例电子设备的结构示意图。请参考图2,在硬件层面,该电子设备包括处理器,可选地还包括内部总线、网络接口、存储器。其中,存储器可能包含内存,例如高速随机存取存储器(Random-Access Memory,RAM),也可能还包括非易失性存储器(non-volatile memory),例如至少1个磁盘存储器等。当然,该电子设备还可能包括其他业务所需要的硬件。2 is a schematic structural diagram of an electronic device according to an embodiment of the present application. Please refer to FIG. 2. At the hardware level, the electronic device includes a processor, and optionally also includes an internal bus, a network interface, and a memory. The memory may include a memory, such as a high-speed random access memory (Random-Access Memory, RAM), or may also include a non-volatile memory (non-volatile memory), such as at least one disk memory. Of course, the electronic device may also include hardware required for other services.
处理器、网络接口和存储器可以通过内部总线相互连接,该内部总线可以是ISA(Industry Standard Architecture,工业标准体系结构)总线、PCI(Peripheral Component Interconnect,外设部件互连标准)总线或EISA(Extended Industry Standard Architecture,扩展工业标准结构)总线等。所述总线可以分为地址总线、数据总线、控制总线等。为便于表示,图2中仅用一个双向箭头表示,但并不表示仅有一根总线或一种类型的总线。The processor, network interface and memory can be connected to each other through an internal bus, which can be an ISA (Industry Standard Architecture, Industry Standard Architecture) bus, a PCI (Peripheral Component Interconnect) bus, or an EISA (Extended Industry, Standard Architecture, extended industry standard structure) bus, etc. The bus can be divided into an address bus, a data bus, and a control bus. For ease of representation, only one bidirectional arrow is used in FIG. 2, but it does not mean that there is only one bus or one type of bus.
存储器,用于存放程序。具体地,程序可以包括程序代码,所述程序代码包括计算机操作指令。存储器可以包括内存和非易失性存储器,并向处理器提供指令和数据。Memory for storing programs. Specifically, the program may include program code, and the program code includes a computer operation instruction. The memory may include memory and non-volatile memory, and provide instructions and data to the processor.
处理器从非易失性存储器中读取对应的计算机程序到内存中然后运行,在逻辑层面上形成区块链系统。处理器,执行存储器所存放的程序,并具体用于执行以下操作:The processor reads the corresponding computer program from the non-volatile memory into the memory and then runs it, forming a blockchain system at a logical level. The processor executes the programs stored in the memory and is specifically used to perform the following operations:
获取第一区块链账本的区块中多个存储记录的哈希信息;Obtain the hash information of multiple storage records in the block of the first blockchain ledger;
对所述多个哈希信息进行至少一层混淆加密处理,得到至少一个目标哈希信息;Performing at least one layer of obfuscation and encryption processing on the plurality of hash information to obtain at least one target hash information;
将所述至少一个目标哈希信息存储到第二区块链账本中,其中,目标用户具有访问第二区块链账本的权限且不具有访问第一区块链账本的权限。The at least one target hash information is stored in the second blockchain ledger, where the target user has permission to access the second blockchain ledger and does not have permission to access the first blockchain ledger.
上述如本申请图1所示实施例揭示的区块链系统执行的方法可以应用于处理器中,或者由处理器实现。处理器可能是一种集成电路芯片,具有信号的处理能力。在实现过程中,上述方法的各步骤可以通过处理器中的硬件的集成逻辑电路或者软件形式的指令完成。上述的处理器可以是通用处理器,包括中央处理器(Central Processing Unit,CPU)、网络处理器(Network Processor,NP)等;还可以是数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。可以实现或者执行本申请实施例中的公开的各方法、步骤及逻辑框图。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。结合本申请实施例所公开的方法的步骤可以直接体现为硬件译码处理器执行完成,或者用译码处理器中的硬件及软件模块组合执行完成。软件模块可以位于随 机存储器,闪存、只读存储器,可编程只读存储器或者电可擦写可编程存储器、寄存器等本领域成熟的存储介质中。该存储介质位于存储器,处理器读取存储器中的信息,结合其硬件完成上述方法的步骤。The method executed by the blockchain system disclosed in the embodiment shown in FIG. 1 of the present application may be applied to a processor, or implemented by a processor. The processor may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method may be completed by an integrated logic circuit of hardware in the processor or instructions in the form of software. The aforementioned processor may be a general-purpose processor, including a central processor (Central Processing Unit, CPU), a network processor (Network Processor, NP), etc.; it may also be a digital signal processor (Digital Signal Processor, DSP), dedicated integration Circuit (Application Specific Integrated Circuit, ASIC), field programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps, and logical block diagrams disclosed in the embodiments of the present application may be implemented or executed. The general-purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in conjunction with the embodiments of the present application may be directly embodied and executed by a hardware decoding processor, or may be executed and completed by a combination of hardware and software modules in the decoding processor. The software module may be located in a random storage memory, a flash memory, a read-only memory, a programmable read-only memory, or an electrically erasable programmable memory, a register, and other mature storage media in the art. The storage medium is located in the memory, and the processor reads the information in the memory and completes the steps of the above method in combination with its hardware.
该电子设备还可执行图1的方法,并实现区块链系统在图1所示实施例的功能,本申请实施例在此不再赘述。The electronic device may also execute the method of FIG. 1 and implement the function of the block chain system in the embodiment shown in FIG. 1, which will not be described in detail in the embodiments of the present application.
当然,除了软件实现方式之外,本申请的电子设备并不排除其他实现方式,比如逻辑器件抑或软硬件结合的方式等等,也就是说以下处理流程的执行主体并不限定于各个逻辑单元,也可以是硬件或逻辑器件。Of course, in addition to the software implementation, the electronic device of the present application does not exclude other implementations, such as a logic device or a combination of software and hardware, etc., that is to say, the execution body of the following processing flow is not limited to each logical unit, It can also be a hardware or logic device.
本申请实施例还提出了一种计算机可读存储介质,该计算机可读存储介质存储一个或多个程序,该一个或多个程序包括指令,该指令当被包括多个应用程序的便携式电子设备执行时,能够使该便携式电子设备执行图1所示实施例的方法,并具体用于执行以下操作:Embodiments of the present application also provide a computer-readable storage medium that stores one or more programs, the one or more programs include instructions, and the instructions are included in a portable electronic device that includes multiple application programs When executed, the portable electronic device can execute the method of the embodiment shown in FIG. 1 and is specifically used to perform the following operations:
获取第一区块链账本的区块中多个存储记录的哈希信息;Obtain the hash information of multiple storage records in the block of the first blockchain ledger;
对所述多个哈希信息进行至少一层混淆加密处理,得到至少一个目标哈希信息;Performing at least one layer of obfuscation and encryption processing on the plurality of hash information to obtain at least one target hash information;
将所述至少一个目标哈希信息存储到第二区块链账本中,其中,目标用户具有访问第二区块链账本的权限且不具有访问第一区块链账本的权限。The at least one target hash information is stored in the second blockchain ledger, where the target user has permission to access the second blockchain ledger and does not have permission to access the first blockchain ledger.
图3是本申请的一个实施例区块链系统300的结构示意图。请参考图3,在一种软件实施方式中,区块链系统300可包括:FIG. 3 is a schematic structural diagram of a blockchain system 300 according to an embodiment of the present application. Referring to FIG. 3, in a software implementation, the blockchain system 300 may include:
获取模块310,获取第一区块链账本的区块中多个存储记录的哈希信息;The obtaining module 310 obtains hash information of multiple storage records in the block of the first blockchain ledger;
混淆加密处理模块320,对所述多个哈希信息进行至少一层混淆加密处理,得到至少一个目标哈希信息;The confusion encryption processing module 320 performs at least one layer of confusion encryption processing on the plurality of hash information to obtain at least one target hash information;
存储模块330,将所述至少一个目标哈希信息存储到第二区块链账本中,其中,目标用户具有访问第二区块链账本的权限且不具有访问第一区块链账本的权限。The storage module 330 stores the at least one target hash information in the second blockchain ledger, where the target user has permission to access the second blockchain ledger and does not have permission to access the first blockchain ledger.
本申请实施例中,通过将第一区块链账本中区块的存储记录的哈希信息进行混淆加密处理存储到目标用户能够访问的第二区块链账本中,从而能够避免目标用户直接访问第一区块链账本带来的交易规模及交易量级等信息的泄密,保障了第一区块链账本所属的区块链系统的信息安全。In the embodiment of the present application, the hash information of the storage records of the blocks in the first blockchain ledger is obfuscated and encrypted to be stored in the second blockchain ledger accessible by the target user, thereby avoiding direct access by the target user The disclosure of information such as transaction scale and transaction volume level brought by the first blockchain ledger ensures the information security of the blockchain system to which the first blockchain ledger belongs.
可选地,获取模块310具体可用于:Optionally, the obtaining module 310 may be specifically used for:
响应于第一区块链账本的最新区块的存储事件,获取所述最新区块中多个存储记录的哈希信息。In response to the storage event of the latest block of the first blockchain ledger, the hash information of multiple storage records in the latest block is obtained.
可选地,所述第一区块链账本所在的区块链为私有链,所述第二区块链账本所在的区块链为公有链。Optionally, the blockchain where the first blockchain ledger is located is a private chain, and the blockchain where the second blockchain ledger is located is a public chain.
或者,可选地,所述第一区块链账本所在的区块链为私有链,所述第二区块链账本所在的区块链为私有链。Or, optionally, the blockchain where the first blockchain ledger is located is a private chain, and the blockchain where the second blockchain ledger is located is a private chain.
可选地,一层所述混淆加密处理包括如下之一:Optionally, the layer of obfuscation encryption processing includes one of the following:
将多个哈希信息组成的内容进行哈希计算得到一个哈希信息;Hash the content composed of multiple hash information to obtain one hash information;
将任一个哈希信息分成多个部分的内容再分别进行哈希计算,得到所述多个部分的内容对应的多个哈希信息;Divide any one piece of hash information into multiple parts and then perform hash calculation to obtain multiple pieces of hash information corresponding to the contents of the multiple parts;
将多个哈希信息组成的内容再分成多个部分的内容,并对每个部分的内容分别进行哈希计算,得到所述多个部分的内容对应的多个哈希信息。The content composed of multiple pieces of hash information is further divided into multiple parts of content, and the content of each part is separately hashed to obtain multiple pieces of hash information corresponding to the contents of the multiple parts.
可选地,所述至少一个目标哈希信息为所述区块的交易树的M根。Optionally, the at least one target hash information is the M root of the transaction tree of the block.
可选地,作为一个实施例,存储模块330具体用于:Optionally, as an embodiment, the storage module 330 is specifically used to:
将所述至少一个目标哈希信息存储到第二区块链账本中,包括:Storing the at least one target hash information in the second blockchain ledger includes:
将所述区块的唯一标识及所述至少一个目标哈希信息存储到所述第二区块链账本中。Store the unique identifier of the block and the at least one target hash information into the second blockchain ledger.
进一步地,在本实施例的一种实现方式中,存储模块330具体用于:Further, in an implementation manner of this embodiment, the storage module 330 is specifically used for:
将所述区块的唯一标识及所述至少一个目标哈希信息作为一条存储记录存储到所述第二区块链账本中。The unique identifier of the block and the at least one target hash information are stored in the second blockchain ledger as a storage record.
或者,进一步地,在本实施例的另一种实现方式中,存储模块330具体用于:Or, further, in another implementation manner of this embodiment, the storage module 330 is specifically configured to:
将所述区块的唯一标识及一个目标哈希信息中作为存储记录存储到所述第二区块链账本中。The unique identifier of the block and one target hash information are stored in the second blockchain ledger as a storage record.
或者,进一步地,在本实施例的再一种实现方式中,存储模块330具体用于:Or, further, in yet another implementation manner of this embodiment, the storage module 330 is specifically used for:
将所述区块的唯一标识及不多于预定个数的目标哈希信息作为存储记录存储到所述第二区块链账本中。The unique identifier of the block and no more than a predetermined number of target hash information are stored as storage records in the second blockchain ledger.
更进一步地,在上述具体的实现方式中,所述存储记录中还可携带所述区块的区 块头中的至少一种信息。Furthermore, in the above specific implementation manner, the storage record may also carry at least one piece of information in the block header of the block.
可选地,所述存储模块330还可用于:Optionally, the storage module 330 may also be used for:
将混淆算法的代码存储在第三区块链账本中,所述混淆算法用于对所述多个哈希信息进行至少一层混淆加密处理以得到所述至少一个目标哈希信息。The code of the obfuscation algorithm is stored in the third blockchain ledger, and the obfuscation algorithm is used to perform at least one layer of obfuscation encryption processing on the plurality of hash information to obtain the at least one target hash information.
可选地,所述至少一个目标哈希信息的个数不等于所述多个哈希信息的个数。Optionally, the number of the at least one target hash information is not equal to the number of the plurality of hash information.
区块链系统300还可执行图1所示实施例的方法,具体实现可参考图1所示实施例,不再赘述。The blockchain system 300 can also execute the method of the embodiment shown in FIG. 1. For specific implementation, reference may be made to the embodiment shown in FIG.
总之,以上所述仅为本申请的较佳实施例而已,并非用于限定本申请的保护范围。凡在本申请的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本申请的保护范围之内。In short, the above are only the preferred embodiments of the present application, and are not intended to limit the protection scope of the present application. Any modification, equivalent replacement, improvement, etc. within the spirit and principle of this application shall be included in the scope of protection of this application.
上述实施例阐明的系统、装置、模块或单元,具体可以由计算机芯片或实体实现,或者由具有某种功能的产品来实现。一种典型的实现设备为计算机。具体的,计算机例如可以为个人计算机、膝上型计算机、蜂窝电话、相机电话、智能电话、个人数字助理、媒体播放器、导航设备、电子邮件设备、游戏控制台、平板计算机、可穿戴设备或者这些设备中的任何设备的组合。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 having a certain function. A typical implementation device is a computer. Specifically, 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.
计算机可读介质包括永久性和非永久性、可移动和非可移动媒体可以由任何方法或技术来实现信息存储。信息可以是计算机可读指令、数据结构、程序的模块或其他数据。计算机的存储介质的例子包括,但不限于相变内存(PRAM)、静态随机存取存储器(SRAM)、动态随机存取存储器(DRAM)、其他类型的随机存取存储器(RAM)、只读存储器(ROM)、电可擦除可编程只读存储器(EEPROM)、快闪记忆体或其他内存技术、只读光盘只读存储器(CD-ROM)、数字多功能光盘(DVD)或其他光学存储、磁盒式磁带,磁带磁磁盘存储或其他磁性存储设备或任何其他非传输介质,可用于存储可以被计算设备访问的信息。按照本文中的界定,计算机可读介质不包括暂存电脑可读媒体(transitory media),如调制的数据信号和载波。Computer readable media, including permanent and non-permanent, removable and non-removable media, can store information by any method or technology. The information may be computer readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, read-only compact disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, Magnetic tape cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media can be used to store information that can be accessed by computing devices. As defined in this article, computer-readable media does not include temporary computer-readable media (transitory media), such as modulated data signals and carrier waves.
还需要说明的是,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、商品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、商品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、商品或者设备中还存在另外的相同要素。It should also be noted that the terms "include", "include" or any other variant thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device that includes a series of elements not only includes those elements, but also includes Other elements not explicitly listed, or include elements inherent to such processes, methods, goods, or equipment. Without more restrictions, the element defined by the sentence "include one..." does not exclude that there are other identical elements in the process, method, commodity or equipment that includes the element.
本说明书中的各个实施例均采用递进的方式描述,各个实施例之间相同相似的部分互相参见即可,每个实施例重点说明的都是与其他实施例的不同之处。尤其,对于系统实施例而言,由于其基本相似于方法实施例,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。The embodiments in this specification are described in a progressive manner. The same or similar parts between the embodiments can be referred to each other. Each embodiment focuses on the differences from the other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant part can be referred to the description of the method embodiment.

Claims (16)

  1. 一种区块链的区块中存储记录的哈希信息处理方法,包括:A hash information processing method for storing records in blocks of a blockchain, including:
    获取第一区块链账本的区块中多个存储记录的哈希信息;Obtain the hash information of multiple storage records in the block of the first blockchain ledger;
    对所述多个哈希信息进行至少一层混淆加密处理,得到至少一个目标哈希信息;Performing at least one layer of obfuscation and encryption processing on the plurality of hash information to obtain at least one target hash information;
    将所述至少一个目标哈希信息存储到第二区块链账本中,其中,目标用户具有访问第二区块链账本的权限且不具有访问第一区块链账本的权限。The at least one target hash information is stored in the second blockchain ledger, where the target user has permission to access the second blockchain ledger and does not have permission to access the first blockchain ledger.
  2. 如权利要求1所述的方法,The method of claim 1,
    所述第一区块链账本所在的区块链为私有链,所述第二区块链账本所在的区块链为公有链;或者The blockchain where the first blockchain ledger is located is a private chain, and the blockchain where the second blockchain ledger is located is a public chain; or
    所述第一区块链账本所在的区块链和所述第二区块链账本所在的区块链都为私有链。The blockchain where the first blockchain ledger is located and the blockchain where the second blockchain ledger is located are both private chains.
  3. 如权利要求1所述的方法,一层所述混淆加密处理包括如下之一:The method of claim 1, one layer of the obfuscation encryption process includes one of the following:
    将多个哈希信息组成的内容进行哈希计算得到一个哈希信息;Hash the content composed of multiple hash information to obtain one hash information;
    将任一个哈希信息分成多个部分的内容再分别进行哈希计算,得到所述多个部分的内容对应的多个哈希信息;Divide any one piece of hash information into multiple parts and then perform hash calculation to obtain multiple pieces of hash information corresponding to the contents of the multiple parts;
    将多个哈希信息组成的内容再分成多个部分的内容,并对每个部分的内容分别进行哈希计算,得到所述多个部分的内容对应的多个哈希信息。The content composed of multiple pieces of hash information is further divided into multiple parts of content, and the content of each part is separately hashed to obtain multiple pieces of hash information corresponding to the contents of the multiple parts.
  4. 如权利要求1所述的方法,The method of claim 1,
    所述至少一个目标哈希信息为所述区块的交易树的M根。The at least one target hash information is the M root of the transaction tree of the block.
  5. 如权利要求1所述的方法,The method of claim 1,
    将所述至少一个目标哈希信息存储到第二区块链账本中,包括:Storing the at least one target hash information in the second blockchain ledger includes:
    将所述区块的唯一标识及所述至少一个目标哈希信息存储到所述第二区块链账本中。Store the unique identifier of the block and the at least one target hash information into the second blockchain ledger.
  6. 如权利要求5所述的方法,The method of claim 5,
    将所述区块的唯一标识及所述至少一个目标哈希信息存储到所述第二区块链账本中,包括:The unique identifier of the block and the at least one target hash information are stored in the second blockchain ledger, including:
    将所述区块的唯一标识及所述至少一个目标哈希信息作为一条存储记录存储到所述第二区块链账本中。The unique identifier of the block and the at least one target hash information are stored in the second blockchain ledger as a storage record.
  7. 如权利要求5所述的方法,The method of claim 5,
    将所述区块的唯一标识及所述至少一个目标哈希信息存储到所述第二区块链账本中,包括:The unique identifier of the block and the at least one target hash information are stored in the second blockchain ledger, including:
    将所述区块的唯一标识及一个目标哈希信息中作为存储记录存储到所述第二区块链账本中。The unique identifier of the block and one target hash information are stored in the second blockchain ledger as a storage record.
  8. 如权利要求5所述的方法,The method of claim 5,
    将所述区块的唯一标识及所述至少一个目标哈希信息存储到所述第二区块链账本中,包括:The unique identifier of the block and the at least one target hash information are stored in the second blockchain ledger, including:
    将所述区块的唯一标识及不多于预定个数的目标哈希信息作为存储记录存储到所述第二区块链账本中。The unique identifier of the block and no more than a predetermined number of target hash information are stored as storage records in the second blockchain ledger.
  9. 如权利要求6-8任一项所述的方法,所述存储记录中还携带所述区块的区块头中的至少一种信息。The method according to any one of claims 6-8, wherein the storage record further carries at least one piece of information in a block header of the block.
  10. 如权利要求1所述的方法,所述方法还包括:The method of claim 1, further comprising:
    将混淆算法的代码存储在第三区块链账本中,所述混淆算法用于对所述多个哈希信息进行至少一层混淆加密处理以得到所述至少一个目标哈希信息。The code of the obfuscation algorithm is stored in the third blockchain ledger, and the obfuscation algorithm is used to perform at least one layer of obfuscation encryption processing on the plurality of hash information to obtain the at least one target hash information.
  11. 如权利要求1所述的方法,所述方法通过调用第一区块链账本所在的区块链的智能合约实现。The method of claim 1, the method is implemented by calling a smart contract of the blockchain where the first blockchain ledger is located.
  12. 如权利要求1所述的方法,The method of claim 1,
    所述至少一个目标哈希信息的个数不等于所述多个哈希信息的个数。The number of the at least one target hash information is not equal to the number of the plurality of hash information.
  13. 如权利要求1所述的方法,The method of claim 1,
    获取第一区块链账本的区块中多个存储记录的哈希信息,包括:Obtain the hash information of multiple storage records in the block of the first blockchain ledger, including:
    响应于第一区块链账本的最新区块的存储事件,获取所述最新区块中多个存储记录的哈希信息。In response to the storage event of the latest block of the first blockchain ledger, the hash information of multiple storage records in the latest block is obtained.
  14. 一种区块链系统,包括:A blockchain system, including:
    获取模块,获取第一区块链账本的区块中多个存储记录的哈希信息;The obtaining module obtains hash information of multiple storage records in the block of the first blockchain ledger;
    混淆加密处理模块,对所述多个哈希信息进行至少一层混淆加密处理,得到至少一个目标哈希信息;A confusion encryption processing module, performing at least one layer of confusion encryption processing on the plurality of hash information to obtain at least one target hash information;
    存储模块,将所述至少一个目标哈希信息存储到第二区块链账本中,其中,目标用户具有访问第二区块链账本的权限且不具有访问第一区块链账本的权限。The storage module stores the at least one target hash information in the second blockchain ledger, where the target user has the authority to access the second blockchain ledger and does not have the authority to access the first blockchain ledger.
  15. 一种电子设备,包括:An electronic device, including:
    处理器;以及Processor; and
    被安排成存储计算机可执行指令的存储器,所述可执行指令在被执行时使所述处理器执行以下操作:A memory arranged to store computer-executable instructions, which when executed, causes the processor to perform the following operations:
    获取第一区块链账本的区块中多个存储记录的哈希信息;Obtain the hash information of multiple storage records in the block of the first blockchain ledger;
    对所述多个哈希信息进行至少一层混淆加密处理,得到至少一个目标哈希信息;Performing at least one layer of obfuscation and encryption processing on the plurality of hash information to obtain at least one target hash information;
    将所述至少一个目标哈希信息存储到第二区块链账本中,其中,目标用户具有访问第二区块链账本的权限且不具有访问第一区块链账本的权限。The at least one target hash information is stored in the second blockchain ledger, where the target user has permission to access the second blockchain ledger and does not have permission to access the first blockchain ledger.
  16. 一种计算机可读存储介质,所述计算机可读存储介质存储一个或多个程序,所述一个或多个程序当被包括多个应用程序的电子设备执行时,使得所述电子设备执行以下操作:A computer-readable storage medium storing one or more programs, which when executed by an electronic device including multiple application programs, causes the electronic device to perform the following operations :
    获取第一区块链账本的区块中多个存储记录的哈希信息;Obtain the hash information of multiple storage records in the block of the first blockchain ledger;
    对所述多个哈希信息进行至少一层混淆加密处理,得到至少一个目标哈希信息;Performing at least one layer of obfuscation and encryption processing on the plurality of hash information to obtain at least one target hash information;
    将所述至少一个目标哈希信息存储到第二区块链账本中,其中,目标用户具有访问第二区块链账本的权限且不具有访问第一区块链账本的权限。The at least one target hash information is stored in the second blockchain ledger, where the target user has permission to access the second blockchain ledger and does not have permission to access the first blockchain ledger.
PCT/CN2019/122552 2018-12-26 2019-12-03 Hash information processing method and system for storage records in block of blockchain WO2020134898A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201811605349.2A CN110020544B (en) 2018-12-26 2018-12-26 Hash information processing method and system for storage record in block of block chain
CN201811605349.2 2018-12-26

Publications (1)

Publication Number Publication Date
WO2020134898A1 true WO2020134898A1 (en) 2020-07-02

Family

ID=67188705

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/122552 WO2020134898A1 (en) 2018-12-26 2019-12-03 Hash information processing method and system for storage records in block of blockchain

Country Status (3)

Country Link
CN (1) CN110020544B (en)
TW (1) TW202024951A (en)
WO (1) WO2020134898A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023169865A1 (en) * 2022-03-08 2023-09-14 Nchain Licensing Ag Translucent blockchain database

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110020544B (en) * 2018-12-26 2021-08-24 创新先进技术有限公司 Hash information processing method and system for storage record in block of block chain
CN111125020A (en) * 2019-12-20 2020-05-08 西安翻译学院 Block chain-based information security management method, system and server
CN112131307B (en) * 2020-07-15 2021-05-25 北京天德科技有限公司 Novel multi-block chain and multi-intelligent contract interaction architecture
CN111984614B (en) * 2020-08-04 2023-05-26 中国人民银行数字货币研究所 Method, device and system for sharing files
TWI776203B (en) * 2020-08-11 2022-09-01 大陸商昆山吉崴微電子科技有限公司 Blockchain authorizing system for silicon intellectual property and method thereof
CN112468577B (en) * 2020-11-25 2021-11-02 上海欧冶金融信息服务股份有限公司 Data controllable sharing method and system based on data mapping relation

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106372533A (en) * 2016-09-14 2017-02-01 中国银联股份有限公司 Block chain technology-based content storage method
US20180285869A1 (en) * 2017-03-28 2018-10-04 Alibaba Group Holding Limited Method and apparatus for processing transaction requests
CN108710658A (en) * 2018-05-11 2018-10-26 阿里巴巴集团控股有限公司 A kind of storage method and device of data record
CN110020544A (en) * 2018-12-26 2019-07-16 阿里巴巴集团控股有限公司 The Hash information processing method and system of record are stored in the block of block chain

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107659531A (en) * 2016-07-25 2018-02-02 蓝树荣 A kind of method for facilitating block chain to carry out decentralization and high in the clouds encrypted authentication
CN106548091A (en) * 2016-10-14 2017-03-29 北京爱接力科技发展有限公司 A kind of data deposit card, the method and device of checking
CN107154850A (en) * 2017-05-17 2017-09-12 北京汇通金财信息科技有限公司 A kind of processing method and processing device of block chain data
CN108768663B (en) * 2018-05-31 2020-05-01 中国地质大学(武汉) Block chain access control method and processing system thereof
CN109063169A (en) * 2018-08-17 2018-12-21 福建省农村信用社联合社 A kind of customer data management system based on block chain
CN109493221B (en) * 2018-10-26 2021-01-12 全链通有限公司 Method, device, network and storage medium for keeping transaction records secret in block chain

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106372533A (en) * 2016-09-14 2017-02-01 中国银联股份有限公司 Block chain technology-based content storage method
US20180285869A1 (en) * 2017-03-28 2018-10-04 Alibaba Group Holding Limited Method and apparatus for processing transaction requests
CN108710658A (en) * 2018-05-11 2018-10-26 阿里巴巴集团控股有限公司 A kind of storage method and device of data record
CN110020544A (en) * 2018-12-26 2019-07-16 阿里巴巴集团控股有限公司 The Hash information processing method and system of record are stored in the block of block chain

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023169865A1 (en) * 2022-03-08 2023-09-14 Nchain Licensing Ag Translucent blockchain database

Also Published As

Publication number Publication date
CN110020544A (en) 2019-07-16
CN110020544B (en) 2021-08-24
TW202024951A (en) 2020-07-01

Similar Documents

Publication Publication Date Title
WO2020134898A1 (en) Hash information processing method and system for storage records in block of blockchain
TWI715217B (en) Screen recording and evidence collection method, system and electronic equipment based on blockchain
US11252165B2 (en) Cross-chain data trusted management methods and apparatuses
AU2018241037B2 (en) Method and device for processing service request
TWI730309B (en) Data processing method and device
JP6804668B2 (en) Block data validation method and equipment
US20190354977A1 (en) Consensus verification method and device
TWI724579B (en) Block chain data processing method, device, system, processing equipment and storage medium
WO2020233616A1 (en) Receipt storage method and node employing code marking in combination with transaction type and user type
TWI740388B (en) Operation record storage method, device and equipment based on trusted execution environment
WO2020233623A1 (en) Receipt storage method and node combining transaction type and judgment condition
WO2020233637A1 (en) Receipt storage method combining code labelling with user type, and node
WO2020233626A1 (en) Receipt storage method and node in combination with conditional limitation of transaction and user types
WO2020233635A1 (en) Receipt storage method combining conditional restrictions of multiple types of dimensions and node
WO2020233625A1 (en) Receipt storage method combining user type and determination conditions and node
WO2020233615A1 (en) Receipt storage method combining user type and event function type and node
TW202024984A (en) Data reading and writing method and device and electronic equipment
WO2020233628A1 (en) Receipt storage method and node based on combination of event function type and judgment condition
WO2020233624A1 (en) Receipt storage method and node employing transaction type in combination with event function type
WO2020228365A1 (en) Reconciliation method and device employing consortium chain, and electronic apparatus
WO2020233627A1 (en) Receipt storage method and node based on multiple types of dimensions
WO2020233632A1 (en) Receipt storage method and node based on event function type
WO2020233629A1 (en) Object-level receipt storage method and node based on code labeling
WO2020233634A1 (en) Method and node for receipt storage combining transaction and event type condition restrictions
CN112989397B (en) Data processing method and device for resisting side channel attack

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: 19903078

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 19903078

Country of ref document: EP

Kind code of ref document: A1