HK1247358B - Block chain-based data processing method and device - Google Patents
Block chain-based data processing method and device Download PDFInfo
- Publication number
- HK1247358B HK1247358B HK18106828.5A HK18106828A HK1247358B HK 1247358 B HK1247358 B HK 1247358B HK 18106828 A HK18106828 A HK 18106828A HK 1247358 B HK1247358 B HK 1247358B
- Authority
- HK
- Hong Kong
- Prior art keywords
- data
- transaction
- processing
- transaction data
- processing strategy
- Prior art date
Links
Description
技术领域Technical Field
本申请涉及互联网信息处理技术以及区块链技术领域,尤其涉及一种基于区块链的数据处理方法及设备。The present application relates to the fields of Internet information processing technology and blockchain technology, and in particular to a blockchain-based data processing method and device.
背景技术Background Art
区块链技术也称为分布式账本技术,是一种分布式互联网数据库技术,其特点是去中心化、公开透明、不可篡改、可信任。基于区块链技术构建的网络可以称之为区块链网络,在该区块链网络中包含网络节点(也可以称之为区块链节点)。Blockchain technology, also known as distributed ledger technology, is a distributed internet database technology characterized by decentralization, transparency, immutability, and trustworthiness. A network built on blockchain technology is called a blockchain network, which contains network nodes (also called blockchain nodes).
具体地,区块链节点在接收到交易数据时,确定该交易数据的摘要,并利用设定算法对该摘要进行加密,得到该交易数据的数字签名,进而通过广播的方式将该交易数据以及该交易数据的数字签名发送给其他区块链节点。在共识阶段,其他区块链节点对接收到的数字签名进行解密,得到所接收到的数字签名对应的交易数据,进而判断是否与接收到的交易数据一致,以实现对该交易数据的共识处理。Specifically, upon receiving transaction data, a blockchain node determines its digest and encrypts it using a pre-defined algorithm to obtain a digital signature for the transaction data. The node then broadcasts the transaction data and its digital signature to other blockchain nodes. During the consensus phase, other blockchain nodes decrypt the received digital signature to obtain the transaction data corresponding to the signature. They then determine whether the signature matches the received transaction data, achieving consensus on the transaction data.
然而,在实际应用中,加密计算的对象是序列化信息,也就是说,区块链节点在确定交易数据的摘要时,需要将接收到的交易数据转换成为序列化数据,基于该序列化数据得到该交易数据的摘要。However, in actual applications, the object of encryption calculation is serialized information. That is to say, when a blockchain node determines the summary of transaction data, it needs to convert the received transaction data into serialized data and obtain the summary of the transaction data based on the serialized data.
但是,由于区块链网络中的区块链节点可以支持不同的操作系统,也可以支持不同的编辑语言,那么对于同一个交易务数据,发送该交易数据的区块链节点在对该交易数据执行加密操作的过程中得到的摘要,与接收该交易数据的区块链节点在对接收到的数字签名执行解密操作的过程中得到的摘要可能因为操作系统和/或编译语言的不同而出现不同,这样将导致交易数据共识不通过的可能性增加,降低了交易数据的处理效率。However, since the blockchain nodes in the blockchain network can support different operating systems and different editing languages, for the same transaction data, the summary obtained by the blockchain node that sends the transaction data when performing an encryption operation on the transaction data may be different from the summary obtained by the blockchain node that receives the transaction data when performing a decryption operation on the received digital signature due to differences in operating systems and/or compilation languages. This will increase the possibility of transaction data consensus failing and reduce the efficiency of transaction data processing.
发明内容Summary of the Invention
有鉴于此,本申请实施例提供了一种基于区块链的数据处理方法及设备,用于解决现有技术中存在的交易数据处理效率低的问题。In view of this, the embodiments of the present application provide a blockchain-based data processing method and device to solve the problem of low transaction data processing efficiency in the prior art.
本申请实施例采用下述技术方案:The embodiments of the present application adopt the following technical solutions:
本申请实施例提供一种基于区块链的数据处理方法,包括:The present invention provides a data processing method based on blockchain, including:
区块链节点对于获取到的交易数据,确定所述交易数据对应的交易类型;The blockchain node determines the transaction type corresponding to the acquired transaction data;
所述区块链节点根据交易类型与处理策略之间的预设关系,确定与所述交易数据对应的处理策略,所述处理策略中包含用于转换的数据属性以及所述数据属性对应的转换规则;The blockchain node determines a processing strategy corresponding to the transaction data based on a preset relationship between the transaction type and the processing strategy, wherein the processing strategy includes data attributes for conversion and conversion rules corresponding to the data attributes;
所述区块链节点从所述交易数据中提取与所述处理策略中包含的数据属性对应的属性值,并利用所述处理策略中包含的转换规则,将提取的所述属性值转化成格式化信息;The blockchain node extracts attribute values corresponding to the data attributes included in the processing strategy from the transaction data, and converts the extracted attribute values into formatted information using conversion rules included in the processing strategy;
所述区块链节点根据所述格式化信息对所述交易数据进行处理。The blockchain node processes the transaction data according to the formatting information.
本申请实施例还提供一种基于区块链的数据处理方法,包括:The present application also provides a blockchain-based data processing method, including:
区块链节点接收交易数据和所述交易数据对应的格式化信息;The blockchain node receives transaction data and formatted information corresponding to the transaction data;
所述区块链节点根据所述交易数据对应的交易类型以及交易类型与处理策略之间的预设关系,确定与所述交易数据对应的处理策略,所述处理策略中包含用于转换的数据属性以及所述数据属性对应的转换规则;The blockchain node determines a processing strategy corresponding to the transaction data based on a transaction type corresponding to the transaction data and a preset relationship between the transaction type and the processing strategy, wherein the processing strategy includes data attributes for conversion and conversion rules corresponding to the data attributes;
所述区块链节点根据所述处理策略中包含的转换规则,将所述格式化信息转化成属性值,并确定所述属性值对应的数据属性;The blockchain node converts the formatted information into an attribute value according to the conversion rules included in the processing strategy, and determines the data attribute corresponding to the attribute value;
所述区块链节点根据所述数据属性的属性值和所述交易数据中包含的所述数据属性的属性值,对接收到的所述交易数据进行验证。The blockchain node verifies the received transaction data based on the attribute value of the data attribute and the attribute value of the data attribute contained in the transaction data.
本申请实施例还提供一种基于区块链的数据处理设备,包括:The present application also provides a blockchain-based data processing device, including:
确定单元,对于获取到的交易数据,确定所述交易数据对应的交易类型;a determination unit, for determining, with respect to the acquired transaction data, a transaction type corresponding to the transaction data;
处理单元,根据交易类型与处理策略之间的预设关系,确定与所述交易数据对应的处理策略,所述处理策略中包含用于转换的数据属性以及所述数据属性对应的转换规则;a processing unit, which determines a processing strategy corresponding to the transaction data based on a preset relationship between the transaction type and the processing strategy, wherein the processing strategy includes data attributes for conversion and conversion rules corresponding to the data attributes;
从所述交易数据中提取与所述处理策略中包含的数据属性对应的属性值,并利用所述处理策略中包含的转换规则,将提取的所述属性值转化成格式化信息;并根据所述格式化信息对所述交易数据进行处理。Attribute values corresponding to data attributes included in the processing strategy are extracted from the transaction data, and the extracted attribute values are converted into formatted information using conversion rules included in the processing strategy; and the transaction data is processed according to the formatted information.
本申请实施例还提供一种基于区块链的数据处理设备,包括:The present application also provides a blockchain-based data processing device, including:
接收单元,接收交易数据和所述交易数据对应的格式化信息;a receiving unit, receiving transaction data and formatted information corresponding to the transaction data;
确定单元,根据所述交易数据对应的交易类型以及交易类型与处理策略之间的预设关系,确定与所述交易数据对应的处理策略,所述处理策略中包含用于转换的数据属性以及所述数据属性对应的转换规则;a determining unit, configured to determine a processing strategy corresponding to the transaction data based on a transaction type corresponding to the transaction data and a preset relationship between the transaction type and the processing strategy, wherein the processing strategy includes data attributes for conversion and conversion rules corresponding to the data attributes;
处理单元,根据所述处理策略中包含的转换规则,将所述格式化信息转化成属性值,并确定所述属性值对应的数据属性;并根据所述数据属性的属性值和所述交易数据中包含的所述数据属性的属性值,对接收到的所述交易数据进行验证。The processing unit converts the formatted information into attribute values according to the conversion rules included in the processing strategy, and determines the data attributes corresponding to the attribute values; and verifies the received transaction data according to the attribute values of the data attributes and the attribute values of the data attributes included in the transaction data.
本申请实施例采用的上述至少一个技术方案能够达到以下有益效果:At least one of the above technical solutions adopted in the embodiments of the present application can achieve the following beneficial effects:
本申请实施例通过配置交易类型与处理策略之间的预设关系,所述处理策略中包含用于转换的数据属性以及所述数据属性对应的转换规则,区块链节点对于获取到的交易数据,确定所述交易数据对应的交易类型;根据所述预设关系,确定与所述交易数据对应的处理策略;从所述交易数据中提取所述处理策略中包含的数据属性,并根据所述处理策略中包含的转换规则,将提取得到的所述数据属性的属性值转化成格式化信息;根据所述格式化信息对所述交易数据进行共识处理。这样,采用统一的转换方式,能够保证不同的区块链节点准确地将转换后的信息还原得到原始数据,有效避免了因为操作平台和/或编辑语言之间的差异使得发送者在加密过程中得到的摘要与接收者在解密过程中得到的摘要出现差异的问题,有效提升了交易数据的共识效率,进而改善了交易数据的处理效率。The embodiment of the present application configures a preset relationship between a transaction type and a processing strategy, wherein the processing strategy includes data attributes for conversion and conversion rules corresponding to the data attributes. The blockchain node determines the transaction type corresponding to the acquired transaction data; determines the processing strategy corresponding to the transaction data based on the preset relationship; extracts the data attributes included in the processing strategy from the transaction data, and converts the attribute values of the extracted data attributes into formatted information based on the conversion rules included in the processing strategy; and performs consensus processing on the transaction data based on the formatted information. In this way, the use of a unified conversion method can ensure that different blockchain nodes can accurately restore the converted information to the original data, effectively avoiding the problem that the summary obtained by the sender during the encryption process and the summary obtained by the receiver during the decryption process are different due to differences in the operating platform and/or editing language, effectively improving the consensus efficiency of the transaction data, and thus improving the processing efficiency of the transaction data.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
此处所说明的附图用来提供对本申请的进一步理解,构成本申请的一部分,本申请的示意性实施例及其说明用于解释本申请,并不构成对本申请的不当限定。在附图中:The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:
图1为本申请实施例提供的一种基于区块链的数据处理方法的流程示意图;FIG1 is a flow chart of a data processing method based on blockchain provided in an embodiment of the present application;
图2为本申请实施例提供的一种基于区块链的数据处理方法的流程示意图;FIG2 is a flow chart of a data processing method based on blockchain provided in an embodiment of the present application;
图3为本申请实施例提供的一种基于区块链的数据处理设备的结构示意图;FIG3 is a schematic diagram of the structure of a blockchain-based data processing device provided in an embodiment of the present application;
图4为本申请实施例提供的一种基于区块链的数据处理设备的结构示意图。FIG4 is a schematic diagram of the structure of a blockchain-based data processing device provided in an embodiment of the present application.
具体实施方式DETAILED DESCRIPTION
为使本申请的目的、技术方案和优点更加清楚,下面将结合本申请具体实施例及相应的附图对本申请技术方案进行清楚、完整地描述。显然,所描述的实施例仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。To make the purpose, technical solutions, and advantages of this application more clear, the technical solutions of this application will be clearly and completely described below in conjunction with the specific embodiments of this application and the corresponding drawings. Obviously, the embodiments described are only part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.
以下结合附图,详细说明本申请各实施例提供的技术方案。The following describes in detail the technical solutions provided by various embodiments of the present application in conjunction with the accompanying drawings.
图1为本申请实施例提供的一种基于区块链的数据处理方法的流程示意图。所述方法可以如下所示。本申请实施例的执行主体包括但不限于区块链节点。Figure 1 is a flow chart of a blockchain-based data processing method provided in an embodiment of the present application. The method may be as follows. The execution entities of the embodiment of the present application include, but are not limited to, blockchain nodes.
需要说明的是,交易数据在区块链网络中一般需要经过受理、共识、存储三个处理阶段。区块链节点在受理该业务数据时,对该业务数据进行处理,通常对业务数据的处理是得到该业务数据的数字签名。这样,对于该业务数据的非受理区块链节点,在接收到受理区块链节点广播的该业务数据时,通过验签方式(所谓验签可以理解为接收者在接收到发送者发送的业务数据和数字签名时,使用公钥对接收到的数字签名进行验证,通过该验证操作确定接收到的业务数据为发送者发送),以验证接收到的该业务数据在网络传输过程中是否被篡改。It should be noted that transaction data in a blockchain network generally undergoes three processing stages: acceptance, consensus, and storage. When a blockchain node accepts business data, it processes it, typically by obtaining a digital signature for that data. Thus, upon receiving the business data broadcast by the accepting blockchain node, non-accepting blockchain nodes verify whether the data has been tampered with during network transmission through signature verification (the so-called signature verification can be understood as the receiver using the public key to verify the received digital signature when receiving the business data and digital signature from the sender, thereby confirming that the received business data was sent by the sender).
在得到该业务数据的数字签名的过程中,首先,需要对该业务数据进行序列化。所谓序列化是指将该业务数据转换成为一串字符串(例如:该字符串可以采用二进制形式表示),通过反序列化方式能够将该字符串转换成为该业务数据。其次,通过对序列化结果进行计算得到该业务数据对应的数字签名。To obtain the digital signature of the business data, the business data must first be serialized. Serialization converts the business data into a string (for example, a binary representation), which can then be deserialized to convert the string back into the business data. Next, the digital signature corresponding to the business data is calculated from the serialized result.
但是,在区块链网络中包含多个区块链节点,不同的区块链节点可以支持不同的操作系统,也可以支持不同的编辑语言,也就是说,针对同一个交易数据,由于操作系统和/或编辑语言的不同,对该交易数据进行序列化得到的序列化结果可能不同,例如:受理该业务数据的区块链节点与非受理该业务数据的区块链节点支持的操作系统不同,那么受理该业务数据的区块链节点按照上述方式对该业务数据进行序列化处理,并得到其的数字签名。此时,受理该业务数据的区块链节点将该业务数据和数字签名发送给非受理该业务数据的区块链节点。由于受理该业务数据的区块链节点与非受理该业务数据的区块链节点支持的操作系统不同,所以非受理该业务数据的区块链节点将数字签名还原得到的序列化结果与受理该业务数据的区块链节点按照上述方式对该业务数据进行序列化处理地得到的序列化结果不同,进而确定得到的业务数据与接收到的业务数据不同,这将影响后续对该业务数据的处理,因此,提出本申请的技术方案,采用统一的转换方式,能够保证不同的区块链节点准确地将转换后的信息还原得到原始数据,有效避免了因为操作平台和/或编辑语言之间的差异使得发送者在加密过程中得到的摘要与接收者在解密过程中得到的摘要出现差异的问题,有效提升了交易数据的共识效率,进而改善了交易数据的处理效率。However, a blockchain network contains multiple blockchain nodes, and different blockchain nodes may support different operating systems and different editing languages. In other words, for the same transaction data, the serialization results obtained by serializing the transaction data may be different due to different operating systems and/or editing languages. For example, if the blockchain node that accepts the business data supports different operating systems than the blockchain node that does not accept the business data, the blockchain node that accepts the business data will serialize the business data according to the above method and obtain its digital signature. At this time, the blockchain node that accepts the business data will send the business data and digital signature to the blockchain node that does not accept the business data. Since the blockchain node that accepts the business data supports different operating systems from the blockchain node that does not accept the business data, the serialization result obtained by the blockchain node that does not accept the business data after restoring the digital signature is different from the serialization result obtained by the blockchain node that accepts the business data after serializing the business data in the above manner, and thus the obtained business data is determined to be different from the received business data, which will affect the subsequent processing of the business data. Therefore, the technical solution of the present application is proposed, which adopts a unified conversion method to ensure that different blockchain nodes can accurately restore the converted information to the original data, effectively avoiding the problem of differences between the summary obtained by the sender in the encryption process and the summary obtained by the receiver in the decryption process due to differences in operating platforms and/or editing languages, effectively improving the consensus efficiency of transaction data, and thus improving the processing efficiency of transaction data.
步骤101:区块链节点对于获取到的交易数据,确定所述交易数据对应的交易类型。Step 101: The blockchain node determines the transaction type corresponding to the acquired transaction data.
在本申请实施例中,区块链节点可以作为交易数据的受理节点,从外部设备或者应用客户端接收交易数据,在接收到该交易数据时,可以根据产生该交易数据的业务,确定该交易数据对应的交易类型,这里的交易类型可以理解为业务类型;区块链节点也可以作为交易数据的非受理节点,进而通过广播的方式从该交易数据的受理节点处获取到该交易数据,同样的,在接收到该交易数据时,可以根据产生该交易数据的业务,确定该交易数据对应的交易类型,这里的交易类型可以理解为业务类型。In an embodiment of the present application, a blockchain node can act as an acceptance node for transaction data, receiving transaction data from an external device or application client. When receiving the transaction data, the transaction type corresponding to the transaction data can be determined based on the business that generates the transaction data. The transaction type here can be understood as a business type. A blockchain node can also act as a non-acceptance node for transaction data, and then obtain the transaction data from the acceptance node for the transaction data through broadcasting. Similarly, when receiving the transaction data, the transaction type corresponding to the transaction data can be determined based on the business that generates the transaction data. The transaction type here can be understood as a business type.
步骤102:所述区块链节点根据交易类型与处理策略之间的预设关系,确定与所述交易数据对应的处理策略。Step 102: The blockchain node determines a processing strategy corresponding to the transaction data based on a preset relationship between the transaction type and the processing strategy.
其中,所述处理策略中包含用于转换的数据属性以及所述数据属性对应的转换规则。这里的转换规则可以理解为将交易数据转换成为格式化信息的规则。The processing strategy includes data attributes for conversion and conversion rules corresponding to the data attributes. The conversion rules here can be understood as rules for converting transaction data into formatted information.
在本申请实施例中,可以预先在区块链网络的各区块链节点中配置交易类型与处理策略之间的预设关系,以便于对接收到的交易数据采用统一的处理策略。这里所记载的统一的处理策略并不限于指同一种处理策略,还可以基于不同交易类型给出不同的处理策略,但是对于处理该交易数据的发送者和接收者能够采用同一种处理策略进行处理,也就意味着这里的“统一”能够避免因为操作平台和/或编辑语言之间的差异使得发送者在加密过程中得到的摘要与接收者在解密过程中得到的摘要出现差异的问题。In an embodiment of the present application, a preset relationship between transaction type and processing strategy can be pre-configured in each blockchain node of the blockchain network to facilitate the use of a unified processing strategy for received transaction data. The unified processing strategy described herein is not limited to the same processing strategy, and different processing strategies can also be given based on different transaction types. However, the sender and receiver of the transaction data can use the same processing strategy for processing, which means that the "unification" here can avoid the problem of differences between the digest obtained by the sender during the encryption process and the digest obtained by the receiver during the decryption process due to differences in operating platforms and/or editing languages.
本申请实施例中所记载的处理策略中包含但不限于以下内容:The processing strategies described in the embodiments of this application include but are not limited to the following:
1、针对不同交易类型,确定每一种交易类型被执行转换的数据属性;1. For different transaction types, determine the data attributes to be converted for each transaction type;
2、转换规则。利用该转换规则能够唯一确定被执行转换的数据属性转换后对应的格式化信息。这里的格式化信息又可以称之为序列化数据。2. Conversion rules. These conversion rules uniquely determine the formatting information corresponding to the converted data attributes. This formatting information can also be called serialized data.
除此之外,还可以包含数据属性的排列顺序,即在得到业务数据的不同的数据属性对应的属性值的格式化信息后,确定格式化信息按照数据属性的排列顺序进行排序,排序结果可以视为业务数据的格式化信息。例如:对于业务数据中包含的数据属性1、数据属性2和数据属性3,处理策略中包含的排列顺序可以为123;也可以为321;还可以为231或者213。这里数据属性的排列顺序不同,意味着得到的业务数据的格式化信息将不同,进而后续处理的结果也不同(例如,计算得到的摘要不同)。In addition, the arrangement order of data attributes may also be included. That is, after obtaining the formatting information of the attribute values corresponding to different data attributes of the business data, the formatting information is determined to be sorted according to the arrangement order of the data attributes. The sorting result can be regarded as the formatting information of the business data. For example, for data attributes 1, data attributes 2, and data attributes 3 contained in the business data, the arrangement order included in the processing strategy can be 123; it can also be 321; it can also be 231 or 213. Here, the different arrangement orders of data attributes mean that the obtained formatting information of the business data will be different, and thus the results of subsequent processing will also be different (for example, the calculated summary will be different).
下面描述如何确定交易类型与处理策略之间的预设关系。The following describes how to determine the preset relationship between transaction types and processing strategies.
针对各交易类型,分别执行以下操作:For each transaction type, perform the following operations:
首先,确定该交易类型的交易特征,从该交易类型的交易数据中选择能够表征该交易特征的至少一个数据属性。First, a transaction feature of the transaction type is determined, and at least one data attribute that can characterize the transaction feature is selected from transaction data of the transaction type.
针对不同的交易类型,其用于表征该交易类型对应的交易特征的数据属性也不同。这里的数据属性包括但不限于哈希值、公钥、时间戳、交易内容等等。Different transaction types have different data attributes used to characterize the transaction characteristics corresponding to that transaction type. These data attributes include but are not limited to hash values, public keys, timestamps, transaction content, and more.
其次,根据选择的所述至少一个数据属性和为该数据属性配置的转换规则,生成该交易类型对应的处理策略,并建立所述交易类型与所述处理策略之间的映射关系。Secondly, based on the selected at least one data attribute and the conversion rule configured for the data attribute, a processing strategy corresponding to the transaction type is generated, and a mapping relationship between the transaction type and the processing strategy is established.
需要说明的是,针对不同的交易类型,为每一个交易类型配置转换规则,这里的转换规则可以适用于该交易类型的交易数据中包含的不同的数据属性,也可以为该交易类型的交易数据中包含的不同的数据属性配置不同的转换规则,在本申请实施例中不做具体限定。It should be noted that for different transaction types, conversion rules are configured for each transaction type. The conversion rules here can be applicable to different data attributes contained in the transaction data of this transaction type, and different conversion rules can also be configured for different data attributes contained in the transaction data of this transaction type. This is not specifically limited in the embodiments of this application.
在本申请实施例中,所述区块链节点在确定出交易数据的交易类型之后,可以基于已有的交易类型与处理策略之间的预设关系,确定出该交易数据对应的处理策略。In an embodiment of the present application, after determining the transaction type of the transaction data, the blockchain node can determine the processing strategy corresponding to the transaction data based on the preset relationship between the existing transaction type and the processing strategy.
步骤103:所述区块链节点从所述交易数据中提取与所述处理策略中包含的数据属性对应的属性值,并利用所述处理策略中包含的转换规则,将提取的所述属性值转化成格式化信息。Step 103: The blockchain node extracts attribute values corresponding to the data attributes included in the processing strategy from the transaction data, and converts the extracted attribute values into formatted information using the conversion rules included in the processing strategy.
在本申请实施例中,首先,所述区块链节点根据处理策略中包含的用于转换的数据属性,从获取到的交易数据中提取该数据属性对应的属性值。In an embodiment of the present application, first, the blockchain node extracts the attribute value corresponding to the data attribute from the acquired transaction data based on the data attribute for conversion included in the processing strategy.
假设处理策略中包含的数据属性个数为1个,那么从获取到的交易数据中提取该数据属性对应的属性值。Assuming that the number of data attributes included in the processing strategy is 1, the attribute value corresponding to the data attribute is extracted from the acquired transaction data.
假设处理策略中包含的数据属性个数为多个,那么依次从获取到的交易数据中提取每一个数据属性对应的属性值。Assuming that the processing strategy contains multiple data attributes, the attribute value corresponding to each data attribute is extracted from the acquired transaction data in turn.
其次,所述区块链节点利用所述处理策略中包含的转换规则,将提取的所述属性值转化成格式化信息。Secondly, the blockchain node converts the extracted attribute value into formatted information using the conversion rules included in the processing strategy.
具体地,所述区块链节点根据所述处理策略中包含的转换算法,对提取的所述属性值进行运算,得到所述属性值对应的字符串。Specifically, the blockchain node operates on the extracted attribute value according to the conversion algorithm included in the processing strategy to obtain a character string corresponding to the attribute value.
例如:将提取得到的数据属性的属性值转换成为二进制数据。假设提取的数据属性为哈希值,那么将该哈希值对应的数值转换成为二进制数据。For example, converting the attribute value of the extracted data attribute into binary data. Assuming that the extracted data attribute is a hash value, then converting the value corresponding to the hash value into binary data.
需要说明的是,假设处理策略中包含的数据属性为多个,可以每提取一个数据属性对应的属性值时将该属性值进行转换,也可以将需要转换的数据属性的属性值一次性提取出来,分别对不同的数据属性对应的属性值进行转换,这里对于处理的先后顺序不做限定。It should be noted that, assuming that the processing strategy contains multiple data attributes, the attribute value corresponding to each data attribute can be converted each time the attribute value is extracted, or the attribute values of the data attributes that need to be converted can be extracted at one time, and the attribute values corresponding to different data attributes can be converted separately. There is no restriction on the order of processing here.
较优地,在本申请实施例中,所述区块链节点在根据所述格式化信息对所述交易数据进行共识处理之前,所述方法还包括:Preferably, in the embodiment of the present application, before the blockchain node performs consensus processing on the transaction data according to the formatted information, the method further includes:
若所述处理策略中包含的数据属性的个数大于1,那么所述区块链节点在得到提取出的各属性值对应的格式化信息后,根据所述处理策略中包含的数据属性的排序规则,将得到的各所述格式化信息进行排序。If the number of data attributes included in the processing strategy is greater than 1, then after obtaining the formatted information corresponding to each extracted attribute value, the blockchain node sorts the obtained formatted information according to the sorting rules of the data attributes included in the processing strategy.
假设处理策略中包含的数据属性为数据属性1、数据属性3和数据属性5,若得到的数据属性1的属性值对应的格式化信息为1000、得到的数据属性3的属性值对应的格式化信息为1001、得到的数据属性5的属性值对应的格式化信息为1101,例如:包含的数据属性的排序规则为153,那么,按照所述处理策略中包含的数据属性的排序规则,得到排序后的格式化信息序列为:100011011001;再例如:包含的数据属性的排序规则为531,那么,按照所述处理策略中包含的数据属性的排序规则,得到排序后的格式化信息序列为:110110011000。Assume that the data attributes included in the processing strategy are data attribute 1, data attribute 3, and data attribute 5. If the formatting information corresponding to the attribute value of data attribute 1 is 1000, the formatting information corresponding to the attribute value of data attribute 3 is 1001, and the formatting information corresponding to the attribute value of data attribute 5 is 1101, for example: the sorting rule of the included data attributes is 153, then according to the sorting rule of the data attributes included in the processing strategy, the sorted formatting information sequence obtained is: 100011011001; for another example: the sorting rule of the included data attributes is 531, then according to the sorting rule of the data attributes included in the processing strategy, the sorted formatting information sequence obtained is: 110110011000.
步骤104:所述区块链节点根据所述格式化信息对所述交易数据进行处理。Step 104: The blockchain node processes the transaction data according to the formatting information.
在本申请实施例中,所述区块链节点在得到格式化信息之后,需要判断是否需要对交易数据执行加密操作,若不需要,则广播所述格式化信息和所述交易数据,使区块链为网络中的其他区块链节点根据所述格式化信息对所述交易数据进行共识处理;若需要,则对所述格式化信息进行加密得到加密结果,并将所述加密结果和所述交易数据发送给区块链网络中的其他区块链节点,以对所述交易数据进行共识处理。In an embodiment of the present application, after obtaining the formatted information, the blockchain node needs to determine whether it is necessary to perform an encryption operation on the transaction data. If not, the formatted information and the transaction data are broadcast, so that other blockchain nodes in the blockchain network can perform consensus processing on the transaction data based on the formatted information; if necessary, the formatted information is encrypted to obtain an encryption result, and the encryption result and the transaction data are sent to other blockchain nodes in the blockchain network to perform consensus processing on the transaction data.
通过本申请实施例提供的技术方案,配置交易类型与处理策略之间的预设关系,所述处理策略中包含用于执行转换的数据属性以及所述数据属性对应的转换规则,区块链节点对于获取到的交易数据,确定所述交易数据对应的交易类型;根据所述预设关系,确定与所述交易数据对应的处理策略;从所述交易数据中提取所述处理策略中包含的数据属性,并根据所述处理策略中包含的转换规则,将提取得到的所述数据属性的属性值转化成格式化信息;根据所述格式化信息对所述交易数据进行共识处理。这样,采用统一的转换方式,能够保证不同的区块链节点准确地将转换后的信息还原得到原始数据,有效避免了因为操作平台和/或编辑语言之间的差异使得发送者在加密过程中得到的摘要与接收者在解密过程中得到的摘要出现差异的问题,有效提升了交易数据的共识效率,进而改善了交易数据的处理效率。Through the technical solution provided by the embodiment of the present application, a preset relationship between a transaction type and a processing strategy is configured, wherein the processing strategy includes data attributes for performing conversions and conversion rules corresponding to the data attributes. The blockchain node determines the transaction type corresponding to the acquired transaction data; determines the processing strategy corresponding to the transaction data based on the preset relationship; extracts the data attributes included in the processing strategy from the transaction data, and converts the attribute values of the extracted data attributes into formatted information based on the conversion rules included in the processing strategy; and performs consensus processing on the transaction data based on the formatted information. In this way, the use of a unified conversion method can ensure that different blockchain nodes can accurately restore the converted information to the original data, effectively avoiding the problem that the summary obtained by the sender during the encryption process and the summary obtained by the receiver during the decryption process are different due to differences in the operating platform and/or editing language, effectively improving the consensus efficiency of the transaction data, and thereby improving the processing efficiency of the transaction data.
图2为本申请实施例提供的一种基于区块链的数据处理方法的流程示意图。所述方法可以如下所示。本申请实施例的执行主体为区块链网络中的非受理节点。FIG2 is a flow chart of a blockchain-based data processing method provided in an embodiment of the present application. The method may be as follows. The execution subject of the embodiment of the present application is a non-accepting node in the blockchain network.
步骤201:区块链节点接收交易数据和所述交易数据对应的格式化信息。Step 201: The blockchain node receives transaction data and formatted information corresponding to the transaction data.
在本申请实施例中,区块链节点作为非受理节点,通过广播方式接收受理节点广播的数据包,该数据包中包含交易数据以及该交易数据对应的格式化信息。In an embodiment of the present application, the blockchain node acts as a non-accepting node and receives a data packet broadcast by the accepting node via broadcasting. The data packet includes transaction data and formatting information corresponding to the transaction data.
这里的格式化信息由受理节点通过图1中所示的数据处理方式得到,具体处理方式参见上述记载的内容,这里不再一一赘述。The formatted information here is obtained by the receiving node through the data processing method shown in Figure 1. The specific processing method can be found in the above-mentioned content and will not be described in detail here.
需要说明的是,这里的格式化信息还可以加密操作后得到的摘要。It should be noted that the formatted information here may also be a digest obtained after an encryption operation.
步骤202:所述区块链节点根据所述交易数据对应的交易类型以及交易类型与处理策略之间的预设关系,确定与所述交易数据对应的处理策略。Step 202: The blockchain node determines a processing strategy corresponding to the transaction data based on the transaction type corresponding to the transaction data and a preset relationship between the transaction type and the processing strategy.
其中,所述处理策略中包含用于转换的数据属性以及所述数据属性对应的转换规则。The processing strategy includes data attributes for conversion and conversion rules corresponding to the data attributes.
在本申请实施例中,可以预先在区块链网络的各区块链节点中配置交易类型与处理策略之间的预设关系,所述处理策略中包含用于转换的数据属性以及所述数据属性对应的转换规则。In an embodiment of the present application, a preset relationship between transaction type and processing strategy can be pre-configured in each blockchain node of the blockchain network, and the processing strategy includes data attributes for conversion and conversion rules corresponding to the data attributes.
具体实现方式参见上述实施例中所记载的步骤102,这里不再一一赘述。For the specific implementation method, please refer to step 102 recorded in the above embodiment, which will not be described in detail here.
还可以所述区块链节点在接收交易数据时,接收受理所述交易数据的区块链节点发送的交易类型与处理策略之间的预设关系。The blockchain node may also receive a preset relationship between a transaction type and a processing strategy sent by a blockchain node that accepts the transaction data when receiving the transaction data.
或者,所述区块链节点在接收交易数据时,接收受理所述交易数据的区块链节点发送的该交易数据对应的处理策略。Alternatively, when receiving transaction data, the blockchain node receives a processing strategy corresponding to the transaction data sent by the blockchain node that accepts the transaction data.
步骤203:所述区块链节点根据所述处理策略中包含的转换规则,将所述格式化信息转化成属性值,并确定所述属性值对应的数据属性。Step 203: The blockchain node converts the formatted information into attribute values according to the conversion rules included in the processing strategy, and determines the data attributes corresponding to the attribute values.
在本申请实施例中,所述区块链节点可以根据所述处理策略中包含的转换规则,对接收到的格式化信息进行逆处理,得到属性值,进而确定该属性值对应的数据属性。这里通过这种转换规则实现对格式化信息的还原,由于采用相同的转换方法,所以能够保证格式化信息还原的准确性。In this embodiment of the present application, the blockchain node can perform inverse processing on the received formatted information according to the conversion rules included in the processing strategy to obtain attribute values, and then determine the data attributes corresponding to the attribute values. Here, the formatted information is restored by using this conversion rule. Since the same conversion method is used, the accuracy of the formatted information restoration can be guaranteed.
步骤204:所述区块链节点根据所述数据属性的属性值和所述交易数据中包含的所述数据属性的属性值,对接收到的所述交易数据进行验证。Step 204: The blockchain node verifies the received transaction data based on the attribute value of the data attribute and the attribute value of the data attribute contained in the transaction data.
在本申请实施例中,若所述区块链节点转换得到的属性值与所述交易数据中包含的该数据属性的属性值相同,则说明区块链接收到的交易数据可信,确定验证通过;若所述区块链节点转换得到的属性值与所述交易数据中包含的该数据属性的属性值不相同,则说明区块链接收到的交易数据存在不真实,确定验证不通过。In an embodiment of the present application, if the attribute value obtained by the conversion of the blockchain node is the same as the attribute value of the data attribute contained in the transaction data, it means that the transaction data received by the blockchain is credible, and the verification is determined to be successful; if the attribute value obtained by the conversion of the blockchain node is different from the attribute value of the data attribute contained in the transaction data, it means that the transaction data received by the blockchain is untrue, and the verification is determined to be untrue.
图3为本申请实施例提供的一种基于区块链的数据处理设备的结构示意图。所述数据处理设备包括:确定单元31和处理单元32,其中:FIG3 is a schematic diagram of the structure of a blockchain-based data processing device provided in an embodiment of the present application. The data processing device includes: a determination unit 31 and a processing unit 32, wherein:
确定单元31,对于获取到的交易数据,确定所述交易数据对应的交易类型;The determining unit 31 determines the transaction type corresponding to the acquired transaction data;
处理单元32,根据交易类型与处理策略之间的预设关系,确定与所述交易数据对应的处理策略,所述处理策略中包含用于转换的数据属性以及所述数据属性对应的转换规则;The processing unit 32 determines a processing strategy corresponding to the transaction data based on a preset relationship between the transaction type and the processing strategy, wherein the processing strategy includes data attributes for conversion and conversion rules corresponding to the data attributes;
从所述交易数据中提取与所述处理策略中包含的数据属性对应的属性值,并利用所述处理策略中包含的转换规则,将提取的所述属性值转化成格式化信息;并根据所述格式化信息对所述交易数据进行处理。Attribute values corresponding to data attributes included in the processing strategy are extracted from the transaction data, and the extracted attribute values are converted into formatted information using conversion rules included in the processing strategy; and the transaction data is processed according to the formatted information.
在本申请的另一个实施例中,所述数据处理设备还包括:排序单元33,其中:In another embodiment of the present application, the data processing device further includes: a sorting unit 33, wherein:
所述排序单元33,在根据所述格式化信息对所述交易数据进行处理之前,若所述处理策略中包含的数据属性的个数大于1,那么所述区块链节点在得到提取出的各属性值对应的格式化信息后,根据所述处理策略中包含的数据属性的排序规则,将得到的各所述格式化信息进行排序。Before processing the transaction data according to the formatting information, if the number of data attributes included in the processing strategy is greater than 1, the blockchain node, after obtaining the formatting information corresponding to each extracted attribute value, sorts the obtained formatting information according to the sorting rules of the data attributes included in the processing strategy.
在本申请的另一个实施例中,所述处理单元32确定交易类型与处理策略之间的预设关系,包括:In another embodiment of the present application, the processing unit 32 determines the preset relationship between the transaction type and the processing strategy, including:
针对各交易类型,分别执行以下操作:For each transaction type, perform the following operations:
确定该交易类型的交易特征,从该交易类型的交易数据中选择能够表征该交易特征的至少一个数据属性;Determining a transaction characteristic of the transaction type, and selecting at least one data attribute capable of representing the transaction characteristic from the transaction data of the transaction type;
根据选择的所述至少一个数据属性和为所述数据属性配置的转换规则,生成该交易类型对应的处理策略,并建立所述交易类型与所述处理策略之间的映射关系。A processing strategy corresponding to the transaction type is generated according to the selected at least one data attribute and the conversion rule configured for the data attribute, and a mapping relationship between the transaction type and the processing strategy is established.
在本申请的另一个实施例中,所述处理单元32根据所述格式化信息对所述交易数据进行处理,包括:In another embodiment of the present application, the processing unit 32 processes the transaction data according to the formatting information, including:
广播所述格式化信息和所述交易数据,使区块链网络中的其他区块链节点根据所述格式化信息对所述交易数据进行共识处理。The formatting information and the transaction data are broadcasted, so that other blockchain nodes in the blockchain network perform consensus processing on the transaction data according to the formatting information.
在本申请的另一个实施例中,所述处理单元32根据所述格式化信息对所述交易数据进行处理,包括:In another embodiment of the present application, the processing unit 32 processes the transaction data according to the formatting information, including:
对所述格式化信息进行加密得到加密结果,并将所述加密结果和所述交易数据发送给区块链网络中的其他区块链节点,以对所述交易数据进行共识处理。The formatted information is encrypted to obtain an encryption result, and the encryption result and the transaction data are sent to other blockchain nodes in the blockchain network to perform consensus processing on the transaction data.
在本申请的另一个实施例中,所述处理单元32根据所述处理策略中包含的转换规则,将提取的所述属性值转化成格式化信息,包括:In another embodiment of the present application, the processing unit 32 converts the extracted attribute value into formatted information according to the conversion rules included in the processing strategy, including:
根据所述处理策略中包含的转换算法,对提取的所述属性值进行运算,得到所述属性值对应的字符串。The extracted attribute value is operated according to the conversion algorithm included in the processing strategy to obtain a character string corresponding to the attribute value.
需要说明的是,本申请实施例提供的数据处理设备可以通过软件方式实现,也可以通过硬件方式实现,这里不做具体限定。通过本申请实施例提供的数据处理设备采用统一的转换方式,能够保证不同的区块链节点准确地将转换后的信息还原得到原始数据,有效避免了因为操作平台和/或编辑语言之间的差异使得发送者在加密过程中得到的摘要与接收者在解密过程中得到的摘要出现差异的问题,有效提升了交易数据的共识效率,进而改善了交易数据的处理效率。It should be noted that the data processing device provided in the embodiment of the present application can be implemented by software or hardware, and is not specifically limited here. The data processing device provided in the embodiment of the present application adopts a unified conversion method, which can ensure that different blockchain nodes accurately restore the converted information to the original data, effectively avoiding the problem of differences between the digest obtained by the sender during the encryption process and the digest obtained by the receiver during the decryption process due to differences in operating platforms and/or editing languages, effectively improving the consensus efficiency of transaction data, and thus improving the processing efficiency of transaction data.
图4为本申请实施例提供的一种基于区块链的数据处理设备的结构示意图。所述数据处理设备包括:接收单元41、确定单元42和处理单元43,其中:FIG4 is a schematic diagram of the structure of a blockchain-based data processing device provided in an embodiment of the present application. The data processing device includes: a receiving unit 41, a determining unit 42, and a processing unit 43, wherein:
接收单元41,接收交易数据和所述交易数据对应的格式化信息;A receiving unit 41 receives transaction data and formatted information corresponding to the transaction data;
确定单元42,根据所述交易数据对应的交易类型以及交易类型与处理策略之间的预设关系,确定与所述交易数据对应的处理策略,所述处理策略中包含用于转换的数据属性以及所述数据属性对应的转换规则;a determining unit 42 for determining a processing strategy corresponding to the transaction data based on a transaction type corresponding to the transaction data and a preset relationship between the transaction type and the processing strategy, wherein the processing strategy includes data attributes for conversion and conversion rules corresponding to the data attributes;
处理单元43,根据所述处理策略中包含的转换规则,将所述格式化信息转化成属性值,并确定所述属性值对应的数据属性;并根据所述数据属性的属性值和所述交易数据中包含的所述数据属性的属性值,对接收到的所述交易数据进行验证。The processing unit 43 converts the formatted information into attribute values according to the conversion rules included in the processing strategy, and determines the data attributes corresponding to the attribute values; and verifies the received transaction data according to the attribute values of the data attributes and the attribute values of the data attributes included in the transaction data.
在本申请的另一个实施例中,所述接收单元41在接收交易数据时,接收受理所述交易数据的区块链节点发送的交易类型与处理策略之间的预设关系。In another embodiment of the present application, when receiving transaction data, the receiving unit 41 receives a preset relationship between the transaction type and the processing strategy sent by the blockchain node that accepts the transaction data.
需要说明的是,本申请实施例提供的数据处理设备可以通过软件方式实现,也可以通过硬件方式实现,这里不做具体限定。通过本申请实施例提供的数据处理设采用统一的转换方式,能够保证不同的区块链节点准确地将转换后的信息还原得到原始数据,有效避免了因为操作平台和/或编辑语言之间的差异使得发送者在加密过程中得到的摘要与接收者在解密过程中得到的摘要出现差异的问题,有效提升了交易数据的共识效率,进而改善了交易数据的处理效率。It should be noted that the data processing device provided in the embodiments of the present application can be implemented by software or hardware, and is not specifically limited here. The data processing device provided in the embodiments of the present application adopts a unified conversion method, which can ensure that different blockchain nodes accurately restore the converted information to the original data, effectively avoiding the problem of differences between the digest obtained by the sender during the encryption process and the digest obtained by the receiver during the decryption process due to differences in operating platforms and/or editing languages, effectively improving the consensus efficiency of transaction data, and thus improving the processing efficiency of transaction data.
在20世纪90年代,对于一个技术的改进可以很明显地区分是硬件上的改进(例如,对二极管、晶体管、开关等电路结构的改进)还是软件上的改进(对于方法流程的改进)。然而,随着技术的发展,当今的很多方法流程的改进已经可以视为硬件电路结构的直接改进。设计人员几乎都通过将改进的方法流程编程到硬件电路中来得到相应的硬件电路结构。因此,不能说一个方法流程的改进就不能用硬件实体模块来实现。例如,可编程逻辑器件(Programmable Logic Device,PLD)(例如现场可编程门阵列(Field Programmable GateArray,FPGA))就是这样一种集成电路,其逻辑功能由用户对器件编程来确定。由设计人员自行编程来把一个数字系统“集成”在一片PLD上,而不需要请芯片制造厂商来设计和制作专用的集成电路芯片。而且,如今,取代手工地制作集成电路芯片,这种编程也多半改用“逻辑编译器(logic compiler)”软件来实现,它与程序开发撰写时所用的软件编译器相类似,而要编译之前的原始代码也得用特定的编程语言来撰写,此称之为硬件描述语言(Hardware Description Language,HDL),而HDL也并非仅有一种,而是有许多种,如ABEL(Advanced Boolean Expression Language)、AHDL(Altera Hardware DescriptionLanguage)、Confluence、CUPL(Cornell University Programming Language)、HDCal、JHDL(Java Hardware Description Language)、Lava、Lola、MyHDL、PALASM、RHDL(RubyHardware Description Language)等,目前最普遍使用的是VHDL(Very-High-SpeedIntegrated Circuit Hardware Description Language)与Verilog。本领域技术人员也应该清楚,只需要将方法流程用上述几种硬件描述语言稍作逻辑编程并编程到集成电路中,就可以很容易得到实现该逻辑方法流程的硬件电路。In the 1990s, technological improvements could be clearly distinguished as either hardware improvements (for example, improvements to circuit structures like diodes, transistors, and switches) or software improvements (improvements to process flows). However, with the advancement of technology, many process flow improvements today can now be considered direct improvements to hardware circuit structures. Designers almost always create the corresponding hardware circuit structure by programming the improved process flow into the hardware circuit. Therefore, it cannot be said that a process flow improvement cannot be implemented using hardware modules. For example, a programmable logic device (PLD), such as a field programmable gate array (FPGA), is an integrated circuit whose logical function is determined by user programming. Designers can "integrate" a digital system on a PLD through their own programming, without having to hire a chip manufacturer to design and manufacture a dedicated integrated circuit chip. Moreover, nowadays, instead of manually fabricating integrated circuit chips, this programming is mostly done using "logic compiler" software. This is similar to the software compiler used when developing programs. Before compilation, the original code must also be written in a specific programming language, called a hardware description language (HDL). There is not just one HDL, but many, such as ABEL (Advanced Boolean Expression Language), AHDL (Altera Hardware Description Language), Confluence, CUPL (Cornell University Programming Language), HDCal, JHDL (Java Hardware Description Language), Lava, Lola, MyHDL, PALASM, RHDL (Ruby Hardware Description Language), etc. The most commonly used ones are VHDL (Very-High-Speed Integrated Circuit Hardware Description Language) and Verilog. Those skilled in the art will also understand that by simply programming the method flow in one of these hardware description languages and then programming it into an integrated circuit, a hardware circuit that implements the logic method flow can be easily obtained.
控制器可以按任何适当的方式实现,例如,控制器可以采取例如微处理器或处理器以及存储可由该(微)处理器执行的计算机可读程序代码(例如软件或固件)的计算机可读介质、逻辑门、开关、专用集成电路(Application Specific Integrated Circuit,ASIC)、可编程逻辑控制器和嵌入微控制器的形式,控制器的例子包括但不限于以下微控制器:ARC 625D、Atmel AT91SAM、Microchip PIC18F26K20以及Silicone Labs C8051F320,存储器控制器还可以被实现为存储器的控制逻辑的一部分。本领域技术人员也知道,除了以纯计算机可读程序代码方式实现控制器以外,完全可以通过将方法步骤进行逻辑编程来使得控制器以逻辑门、开关、专用集成电路、可编程逻辑控制器和嵌入微控制器等的形式来实现相同功能。因此这种控制器可以被认为是一种硬件部件,而对其内包括的用于实现各种功能的装置也可以视为硬件部件内的结构。或者甚至,可以将用于实现各种功能的装置视为既可以是实现方法的软件模块又可以是硬件部件内的结构。The controller can be implemented in any suitable manner. For example, the controller can take the form of a microprocessor or processor and a computer-readable medium storing computer-readable program code (e.g., software or firmware) executable by the (micro)processor, logic gates, switches, application-specific integrated circuits (ASICs), programmable logic controllers, and embedded microcontrollers. Examples of controllers include, but are not limited to, the following microcontrollers: ARC 625D, Atmel AT91SAM, Microchip PIC18F26K20, and Silicone Labs C8051F320. The memory controller can also be implemented as part of the control logic of the memory. Those skilled in the art will also know that in addition to implementing the controller in a purely computer-readable program code format, the controller can be implemented in the form of logic gates, switches, application-specific integrated circuits, programmable logic controllers, and embedded microcontrollers by logically programming the method steps. Therefore, such a controller can be considered a hardware component, and the devices included therein for implementing various functions can also be considered as structures within the hardware component. Or even, the devices for implementing various functions can be considered as both software modules that implement the method and structures within the hardware component.
上述实施例阐明的系统、装置、模块或单元,具体可以由计算机芯片或实体实现,或者由具有某种功能的产品来实现。一种典型的实现设备为计算机。具体的,计算机例如可以为个人计算机、膝上型计算机、蜂窝电话、相机电话、智能电话、个人数字助理、媒体播放器、导航设备、电子邮件设备、游戏控制台、平板计算机、可穿戴设备或者这些设备中的任何设备的组合。The systems, devices, modules, or units described in the above embodiments may be implemented by computer chips or entities, or by products having certain functions. 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 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 the convenience of description, the above devices are described as being divided into various units according to their functions. Of course, when implementing this application, the functions of each unit can be implemented in the same or multiple software and/or hardware.
本领域内的技术人员应明白,本发明的实施例可提供为方法、系统、或计算机程序产品。因此,本发明可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。It will be understood by those skilled in the art that embodiments of the present invention may be provided as methods, systems, or computer program products. Thus, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware. Furthermore, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to magnetic disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
本发明是参照根据本发明实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present invention is described with reference to the flowcharts and/or block diagrams of the methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and/or box in the flowchart and/or block diagram, as well as the combination of processes and/or boxes in the flowchart and/or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device produce a device for implementing the functions specified in one or more processes in the flowchart and/or one or more boxes in the block diagram.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce a product including an instruction device that implements the functions specified in one or more processes in the flowchart and/or one or more boxes in the block diagram.
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, so that the instructions executed on the computer or other programmable device provide steps for implementing the functions specified in one or more processes in the flowchart and/or one or more boxes in the block diagram.
在一个典型的配置中,计算设备包括一个或多个处理器(CPU)、输入/输出接口、网络接口和内存。In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
内存可能包括计算机可读介质中的非永久性存储器,随机存取存储器(RAM)和/或非易失性内存等形式,如只读存储器(ROM)或闪存(flash RAM)。内存是计算机可读介质的示例。Memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and/or non-volatile memory in the form of read-only memory (ROM) or flash RAM. Memory is an example of a computer-readable medium.
计算机可读介质包括永久性和非永久性、可移动和非可移动媒体可以由任何方法或技术来实现信息存储。信息可以是计算机可读指令、数据结构、程序的模块或其他数据。计算机的存储介质的例子包括,但不限于相变内存(PRAM)、静态随机存取存储器(SRAM)、动态随机存取存储器(DRAM)、其他类型的随机存取存储器(RAM)、只读存储器(ROM)、电可擦除可编程只读存储器(EEPROM)、快闪记忆体或其他内存技术、只读光盘只读存储器(CD-ROM)、数字多功能光盘(DVD)或其他光学存储、磁盒式磁带,磁带磁磁盘存储或其他磁性存储设备或任何其他非传输介质,可用于存储可以被计算设备访问的信息。按照本文中的界定,计算机可读介质不包括暂存电脑可读媒体(transitory media),如调制的数据信号和载波。Computer-readable media includes permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. The information can be computer-readable instructions, data structures, program modules 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 disc (DVD) or other optical storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer-readable media does not include transitory computer-readable media (transitory media), such as modulated data signals and carrier waves.
还需要说明的是,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、商品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、商品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、商品或者设备中还存在另外的相同要素。It should also be noted that the terms "comprises," "includes," or any other variations thereof are intended to encompass non-exclusive inclusion, such that a process, method, commodity, or apparatus that includes a series of elements includes not only those elements but also other elements not explicitly listed, or includes elements inherent to such process, method, commodity, or apparatus. In the absence of further limitations, an element defined by the phrase "comprises a ..." does not exclude the presence of other identical elements in the process, method, commodity, or apparatus that includes the element.
本申请可以在由计算机执行的计算机可执行指令的一般上下文中描述,例如程序模块。一般地,程序模块包括执行特定任务或实现特定抽象数据类型的例程、程序、对象、组件、数据结构等等。也可以在分布式计算环境中实践本申请,在这些分布式计算环境中,由通过通信网络而被连接的远程处理设备来执行任务。在分布式计算环境中,程序模块可以位于包括存储设备在内的本地和远程计算机存储介质中。The present application may be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. The present application may also be practiced in distributed computing environments where tasks are performed by remote processing devices connected through a communications network. In a distributed computing environment, program modules may be located in local and remote computer storage media, including storage devices.
本说明书中的各个实施例均采用递进的方式描述,各个实施例之间相同相似的部分互相参见即可,每个实施例重点说明的都是与其他实施例的不同之处。尤其,对于系统实施例而言,由于其基本相似于方法实施例,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。The various embodiments in this specification are described in a progressive manner. Similar parts between the various embodiments can be referred to in conjunction with each other. Each embodiment focuses on the differences between the other embodiments. In particular, the system embodiments are generally similar to the method embodiments, so the description is relatively simple. For relevant parts, refer to the description of the method embodiments.
以上所述仅为本申请的实施例而已,并不用于限制本申请。对于本领域技术人员来说,本申请可以有各种更改和变化。凡在本申请的精神和原理之内所作的任何修改、等同替换、改进等,均应包含在本申请的权利要求范围之内。The foregoing is merely an embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present application should all be included within the scope of the claims of the present application.
Claims (16)
Publications (3)
| Publication Number | Publication Date |
|---|---|
| HK1247358A1 HK1247358A1 (en) | 2018-09-21 |
| HK1247358A HK1247358A (en) | 2018-09-21 |
| HK1247358B true HK1247358B (en) | 2020-10-16 |
Family
ID=
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN107451175B (en) | data processing method and device based on block chain | |
| CN107196989B (en) | A service request processing method and device | |
| WO2020086187A1 (en) | Data processing method, apparatus, and device | |
| CN108881120B (en) | A blockchain-based data processing method and device | |
| US11144286B2 (en) | Generating synchronous digital circuits from source code constructs that map to circuit implementations | |
| CN110781192B (en) | Verification method, device and equipment of block chain data | |
| US11775269B2 (en) | Generating a synchronous digital circuit from a source code construct defining a function call | |
| CN117201034A (en) | A digital signature method, device, storage medium and electronic equipment | |
| CN111930343A (en) | Method, device and medium for acquiring random number and generating random number | |
| WO2025039447A1 (en) | Electronic voting method and apparatus, and storage medium and electronic device | |
| WO2024092932A1 (en) | Transaction execution method and blockchain node | |
| CN107122401A (en) | To the method for data database storing, equipment, middleware equipment and server | |
| WO2025123985A1 (en) | Model training and service execution | |
| HK1247358B (en) | Block chain-based data processing method and device | |
| WO2024139320A1 (en) | Data sorting method and apparatus, and device and readable storage medium | |
| HK1247358A (en) | Block chain-based data processing method and device | |
| HK1247358A1 (en) | Block chain-based data processing method and device | |
| HK40006851B (en) | Data processing method, device and equipment | |
| HK1247301B (en) | Data processing method and equipment based on blockchain | |
| WO2025208929A1 (en) | Information recommendation method and apparatus and related product | |
| HK1245445B (en) | Data storage and query method and device based on block chain | |
| HK1248841B (en) | Data processing method and equipment based on blockchain | |
| HK1247000B (en) | Login information processing method and device | |
| HK1245450B (en) | Database state determining method, database consistency verifying method, database state determining device and database consistency verifying device | |
| HK1247300B (en) | Data processing method and equipment based on blockchain |