HK1247300B - Data processing method and equipment based on blockchain - Google Patents
Data processing method and equipment based on blockchain Download PDFInfo
- Publication number
- HK1247300B HK1247300B HK18106424.3A HK18106424A HK1247300B HK 1247300 B HK1247300 B HK 1247300B HK 18106424 A HK18106424 A HK 18106424A HK 1247300 B HK1247300 B HK 1247300B
- Authority
- HK
- Hong Kong
- Prior art keywords
- processing
- data
- tag information
- business data
- volume
- Prior art date
Links
Description
技术领域Technical Field
本申请涉及互联网信息处理技术以及计算机技术领域,尤其涉及一种基于区块链的数据处理方法及设备。The present application relates to the fields of Internet information processing technology and computer technology, and in particular to a data processing method and device based on blockchain.
背景技术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. This network consists of network nodes (also referred to as blockchain nodes, hereinafter referred to as nodes). Each network node corresponds to at least one blockchain, and each blockchain contains at least one block.
由于网络节点在接收到待存储的数据时,通过广播的方式发送给区块链网络中的其他网络节点,所以区块链网络中的每一个网络节点都存储了该区块链网络的全量数据,且各个网络节点上存储的数据一致。Since a network node sends the data to be stored to other network nodes in the blockchain network by broadcasting when receiving the data to be stored, each network node in the blockchain network stores the full amount of data of the blockchain network, and the data stored on each network node is consistent.
具体地,在区块链网络中存储数据一般分为两个阶段:第一个阶段,区块链网络中的节点接收到待存储的数据,并将该数据通过广播的方式在区块链网络中进行全网广播,这样区块链网络中的所有节点接收到该待存储的数据,此时,区块链网络中各个网络节点将该待存储的数据写入缓存中;第二个阶段,区块链网络中获取该待存储的数据的存储权的网络节点,在获取记录权时,将该待存储数据写入某一区块中,并将该区块上链至已存在的区块链上。由此可见,在区块链网络中采用异步写入策略存储数据。Specifically, data storage in a blockchain network generally involves two phases: First, nodes in the blockchain network receive the data to be stored and broadcast it across the entire network. This allows all nodes in the blockchain network to receive the data and, at this point, write it into their cache. Second, nodes in the blockchain network that obtain storage rights for the data write it into a block upon obtaining the recording rights, and then add the block to the existing blockchain. This demonstrates that blockchain networks employ an asynchronous write strategy for data storage.
然而,在实际业务场景中,采用异步写入策略将业务数据存储至区块链网络中,通常在第一个阶段维护一个数据池队列,按照待存储数据的时间戳依次将待存储的数据写入数据池队列中。这样,在第二阶段,按照先进先出的原则将数据池队列中的待存储数据写入区块中。However, in real-world scenarios, asynchronous write strategies are used to store business data in blockchain networks. Typically, in the first phase, a data pool queue is maintained, and data to be stored is written to the data pool queue sequentially according to its timestamp. In the second phase, data in the data pool queue is written to the block according to the first-in, first-out principle.
经研究发现,按照上述方式在区块链网络中存储数据存在以下问题:对于业务优先级比较高的业务,业务数据处理效率比较低,进而导致这些业务的处理效率也比较低。Research has found that storing data in the blockchain network in the above manner has the following problems: for businesses with higher business priorities, the business data processing efficiency is relatively low, which in turn leads to relatively low processing efficiency of these businesses.
发明内容Summary of the Invention
有鉴于此,本申请实施例提供了一种基于区块链的数据处理方法及设备,用于解决现有技术中存在的业务优先级比较高的业务数据处理效率比较低的问题。In view of this, the embodiments of the present application provide a blockchain-based data processing method and device, which are used to solve the problem of low efficiency in processing business data with relatively high business priority in the prior art.
本申请实施例提供了一种基于区块链的数据处理方法,包括:The present invention provides a data processing method based on blockchain, including:
所述区块链中的节点接收设定时间周期内产生的至少一个业务数据,所述业务数据中包含用于表征所述业务数据的处理优先级的标签信息;A node in the blockchain receives at least one piece of business data generated within a set time period, wherein the business data includes tag information for representing a processing priority of the business data;
所述节点在新的区块产生时,根据预设的标签信息与处理量之间的对应关系,确定与所述标签信息对应的处理量;When a new block is generated, the node determines the processing volume corresponding to the label information according to the preset correspondence between the label information and the processing volume;
所述节点根据所述处理量,从数据处理集中获取满足所述处理量且包含所述标签信息的业务数据,所述数据处理集中存储接收到的所述业务数据;The node obtains, according to the processing volume, service data that meets the processing volume and contains the label information from the data processing center, and the data processing center stores the received service data;
将获取到的所述业务数据存储至所述区块中。The acquired business data is stored in the block.
本申请实施例还提供一种基于区块链的数据处理设备,包括:The present application also provides a blockchain-based data processing device, including:
接收单元,接收设定时间周期内产生的至少一个业务数据,所述业务数据中包含用于表征所述业务数据的处理优先级的标签信息;a receiving unit, configured to receive at least one piece of service data generated within a set time period, wherein the service data includes tag information for representing a processing priority of the service data;
确定单元,在新的区块产生时,根据预设的标签信息与处理量之间的对应关系,确定与所述标签信息对应的处理量;a determining unit, which determines, when a new block is generated, a processing amount corresponding to the label information according to a preset correspondence between the label information and the processing amount;
获取单元,根据所述处理量,从数据处理集中获取满足所述处理量且包含所述标签信息的业务数据,所述数据处理集中存储接收到的所述业务数据;an acquiring unit, configured to acquire, from a data processing center, business data that meets the processing volume and contains the tag information, based on the processing volume, and to store the received business data in the data processing center;
处理单元,将获取到的所述业务数据存储至所述区块中。The processing unit stores the acquired business data in the block.
本申请实施例采用的上述至少一个技术方案能够达到以下有益效果:At least one of the above technical solutions adopted in the embodiments of the present application can achieve the following beneficial effects:
通过为不同处理优先级的业务数据确定处理量,在向区块中存储业务数据时,可以获取不同处理优先级的业务数据,以实现不同处理优先级的业务数据能够被处理,打破了现有技术中单一按照时间因素处理业务数据的规定,避免了现有技术中业务优先级比较高的业务的处理效率比较低的问题,本申请实施例提供出的方案既保证了处理优先级高的业务数据的处理效率,也保证了处理优先级低的业务数据的处理效率,在满足处理优先级时,增加了区块链中业务数据处理的灵活性,也提升了区块链在业务应用领域的使用价值。By determining the processing volume for business data with different processing priorities, business data with different processing priorities can be obtained when storing business data in the block, so that business data with different processing priorities can be processed. This breaks the provision in the prior art that business data is processed solely according to time factors, and avoids the problem of low processing efficiency of business with higher business priorities in the prior art. The solution provided in the embodiment of the present application not only ensures the processing efficiency of business data with high processing priority, but also ensures the processing efficiency of business data with low processing priority. When meeting the processing priority, it increases the flexibility of business data processing in the blockchain and also enhances the use value of the blockchain in the field of business applications.
附图说明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 schematic diagram of a data processing set corresponding to business data of different processing priorities provided by an embodiment of the present application;
图3为本申请实施例提供的一种基于区块链的数据处理方法的场景示意图;FIG3 is a schematic diagram of a scenario of a blockchain-based data processing method 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 subject in the embodiment of the present application may be any business node in the blockchain (also referred to as a blockchain node, hereinafter referred to as a node), without specific limitation here. In the embodiment of the present application, the execution subject is taken as an example to be described in detail.
步骤101:所述区块链中的节点接收设定时间周期内产生的至少一个业务数据。Step 101: A node in the blockchain receives at least one piece of business data generated within a set time period.
其中,所述业务数据中包含用于表征所述业务数据的处理优先级的标签信息。The service data includes label information for representing the processing priority of the service data.
在本申请实施例中,针对不同业务产生的业务数据,可以为其设置处理优先级,并在业务数据产生时在其中增加表示该业务数据的处理优先级的标签信息,这样在接收到该业务数据时,能够根据标签信息确定该业务数据的处理优先级。这里的处理优先级也可以称之为处理等级,这里不做具体限定。In the embodiments of the present application, processing priorities can be set for service data generated by different services. When the service data is generated, tag information indicating the processing priority of the service data can be added to the service data. In this way, when the service data is received, the processing priority of the service data can be determined based on the tag information. The processing priority here can also be referred to as the processing level, which is not specifically defined here.
此外,在本申请实施例中,为业务数据设置的处理优先级可以根据业务类型进行确定,也可以根据其他因素确定,这里不做具体限定。例如:同一个业务产生的不同业务数据的处理优先级可以相同,也可以不同;不同业务产生的不同业务数据的处理优先级可以相同,也可以不同。Furthermore, in the embodiments of the present application, the processing priority set for service data may be determined based on the service type or other factors, which are not specifically limited herein. For example, the processing priorities of different service data generated by the same service may be the same or different; and the processing priorities of different service data generated by different services may be the same or different.
例如:首先,可以为不同的业务确定业务优先级。这里的业务优先级与业务数据的处理优先级相对应,即业务优先级越高,那么该业务所产生的业务数据的业务处理优先级越高。其次,可以在业务数据中增加一个字段,该字段可以称之为标签信息,用于表征所述业务数据的处理优先级。For example, first, service priorities can be determined for different services. The service priority here corresponds to the processing priority of the service data. That is, the higher the service priority, the higher the service processing priority of the service data generated by that service. Secondly, a field, called tag information, can be added to the service data to indicate the processing priority of the service data.
较优地,在本申请实施例所提供的技术方案中可以预先为不同处理优先级的业务数据确定处理量,并建立处理优先级对应的标签信息与确定的处理量之间的对应关系。Preferably, in the technical solution provided in the embodiment of the present application, the processing volume can be determined in advance for business data with different processing priorities, and a corresponding relationship can be established between the label information corresponding to the processing priority and the determined processing volume.
具体地,确定不同业务的业务数据的处理优先级,并确定不同的处理优先级与标签信息之间的映射关系;根据所述处理优先级,确定与所述处理优先级对应的处理量;建立所述处理优先级对应的标签信息与所述处理量之间的对应关系。Specifically, determine the processing priority of business data of different businesses, and determine the mapping relationship between different processing priorities and label information; determine the processing volume corresponding to the processing priority based on the processing priority; establish a corresponding relationship between the label information corresponding to the processing priority and the processing volume.
需要说明的是,这里的处理量可以是处理比例,也可以是处理数量,这里不做具体限定。It should be noted that the processing capacity here can be a processing ratio or a processing quantity, and there is no specific limitation here.
表1为标签信息与处理量之间的对应关系表。Table 1 is a table showing the correspondence between label information and processing volume.
表1Table 1
从表1中可以看出,如果业务数据中包含的标签信息为10000,说明该业务数据的处理优先级为第一优先级,那么对于处理优先级为第一优先级的处理量为30%;如果业务数据中包含的标签信息为20000,说明该业务数据的处理优先级为第二优先级,那么对于处理优先级为第二优先级的处理量为20%;如果业务数据中包含的标签信息为30000,说明该业务数据的处理优先级为第三优先级,那么对于处理优先级为第三优先级的处理量为10%。需要说明的是,表1中所示的处理比例以区块链中区块的存储容量为单位1,那么区块中所要存储某种业务的业务数据的多少可以根据处理量和区块的存储容量计算得到。As can be seen from Table 1, if the tag information contained in the business data is 10,000, indicating that the processing priority of the business data is first, then the processing capacity for the first priority is 30%; if the tag information contained in the business data is 20,000, indicating that the processing priority of the business data is second, then the processing capacity for the second priority is 20%; if the tag information contained in the business data is 30,000, indicating that the processing priority of the business data is third, then the processing capacity for the third priority is 10%. It should be noted that the processing ratios shown in Table 1 are based on the storage capacity of the blockchain block. Therefore, the amount of business data required to store a particular business in a block can be calculated based on the processing capacity and the storage capacity of the block.
较优地,在本申请实施例中,同一种业务数据在不同时间周期内的处理量可以不同。即可以为同一种业务数据设置多个处理优先级,这样在不同时间周期内该业务数据的处理量不同。Preferably, in the embodiment of the present application, the processing volume of the same type of business data in different time periods can be different. That is, multiple processing priorities can be set for the same type of business data, so that the processing volume of the business data in different time periods is different.
这里以业务数据A为例进行说明。在本申请实施例中,假设业务数据A属于处理优先级为第一优先级的业务数据,那么可以设置任何时间业务数据A的处理量可以占区块的存储容量的30%;此外还可以对业务数据A的处理量进行动态调整。Here, we take business data A as an example. In this embodiment of the present application, assuming that business data A is the first priority business data, the processing capacity of business data A can be set to 30% of the storage capacity of the block at any time; in addition, the processing capacity of business data A can be dynamically adjusted.
例如:在T1时间周期,设置业务数据A属于处理优先级为第二优先级的业务数据,那么该业务数据A的处理量可以占区块的存储容量的30%;在T2时间周期,设置业务数据A属于处理优先级为第一优先级的业务数据,那么该业务数据A的处理量可以占区块的存储容量的50%;在T3时间周期,设置业务数据A属于处理优先级为第三优先级的业务数据,那么该业务数据A处理量可以占区块的存储容量的10%,那么在本申请实施例中还可以预先建立时间周期、标签信息以及处理量三者之间的对应关系。例如:当业务数据产生时,确定该业务数据的产生时间所对应的时间周期,将该时间周期对应的标签信息包含在该业务数据中。For example: in the T1 time period, if business data A is set to be the business data with the second priority for processing, then the processing volume of the business data A can account for 30% of the storage capacity of the block; in the T2 time period, if business data A is set to be the business data with the first priority for processing, then the processing volume of the business data A can account for 50% of the storage capacity of the block; in the T3 time period, if business data A is set to be the business data with the third priority for processing, then the processing volume of the business data A can account for 10% of the storage capacity of the block. In this embodiment of the present application, the correspondence between the time period, label information and processing volume can also be pre-established. For example: when business data is generated, the time period corresponding to the generation time of the business data is determined, and the label information corresponding to the time period is included in the business data.
通常业务数据中的字段包含但不限于:哈希值、版本号、公钥、签名、所属区块的哈希值、时间戳(即节点受理该业务数据的时间)等,那么本申请实施例中所记载的业务数据中包含的字段包含但不限于:如表2所示。表2中描述各个字段的具体属性:Typically, the fields in business data include but are not limited to: hash value, version number, public key, signature, hash value of the block to which it belongs, timestamp (i.e., the time when the node accepts the business data), etc., and the fields included in the business data recorded in the embodiment of the present application include but are not limited to: as shown in Table 2. Table 2 describes the specific attributes of each field:
表2Table 2
较优地,本申请实施例中,还可以根据确定的处理优先级,为不同处理优先级的业务数据配置数据处理集,这样在接收到业务数据时,可以按照业务数据中包含的标签信息进行分开存储,即包含相同标签信息的业务数据存储在同一个数据处理集中。Preferably, in an embodiment of the present application, data processing sets can also be configured for business data of different processing priorities based on the determined processing priority, so that when business data is received, it can be stored separately according to the tag information contained in the business data, that is, business data containing the same tag information is stored in the same data processing set.
需要说明的是,由于区块链中产生相邻两个区块之间存在一个时间间隔,那么这个时间间隔可以作为本申请实施例中设定时间周期的参考条件,这里不做具体限定。It should be noted that since there is a time interval between two adjacent blocks generated in the blockchain, this time interval can be used as a reference condition for setting the time period in the embodiments of the present application, and is not specifically limited here.
较优地,在本申请实施例中,所述节点在接收到设定时间周期内产生的至少一个业务数据时,所述方法还包括:Preferably, in the embodiment of the present application, when the node receives at least one service data generated within a set time period, the method further includes:
根据所述业务数据中包含的标签信息,确定与所述标签信息对应的数据处理集;Determining, based on the tag information included in the business data, a data processing set corresponding to the tag information;
将所述业务数据存储至确定的所述数据处理集中。The business data is stored in the determined data processing center.
图2为本申请实施例提供的不同处理优先级的业务数据对应的数据处理集的示意图。从图2中可以看出包含两个数据处理集,一个数据处理集对应于处理优先级1,即在该数据处理集中存储处理优先级1对应的业务数据;另一个数据处理集对应于处理优先级2,即在该数据处理集中存储处理优先级2对应的业务数据。Figure 2 is a schematic diagram of data processing sets corresponding to business data of different processing priorities provided in an embodiment of the present application. As can be seen from Figure 2, two data processing sets are included: one data processing set corresponds to processing priority 1, that is, the business data corresponding to processing priority 1 is stored in this data processing set; the other data processing set corresponds to processing priority 2, that is, the business data corresponding to processing priority 2 is stored in this data processing set.
步骤102:所述节点在新的区块产生时,根据预设的标签信息与处理量之间的对应关系,确定与所述标签信息对应的处理量。Step 102: When a new block is generated, the node determines the processing volume corresponding to the label information according to the preset correspondence between the label information and the processing volume.
在本申请实施例中,可以通过以下方式建立预设的标签信息与处理量之间的对应关系,包括:In the embodiment of the present application, the correspondence between the preset tag information and the processing amount can be established in the following ways, including:
确定不同业务的业务数据的处理优先级,并确定不同的处理优先级与标签信息之间的映射关系;Determine the processing priority of business data for different businesses, and determine the mapping relationship between different processing priorities and tag information;
根据所述处理优先级,确定与所述处理优先级对应的处理量;determining, according to the processing priority, a processing amount corresponding to the processing priority;
建立所述处理优先级对应的标签信息与所述处理量之间的对应关系。A corresponding relationship between the label information corresponding to the processing priority and the processing volume is established.
具体地,任意选择一个标签信息,根据预设的标签信息与处理量之间的对应关系,确定与选择所述标签信息对应的处理量。Specifically, a piece of label information is arbitrarily selected, and the processing amount corresponding to the selected label information is determined according to a preset correspondence relationship between the label information and the processing amount.
这里选择标签信息还可以按照处理优先级的先后顺序,从高到低依次确定标签信息。进而,根据上述方式,确定不同标签信息对应的处理量。Here, the tag information can also be selected in the order of processing priority, from high to low. Then, the processing amount corresponding to different tag information is determined according to the above method.
步骤103:所述节点根据所述处理量,从数据处理集中获取满足所述处理量的包含所述业务标识的业务数据。Step 103: The node obtains the service data including the service identifier that meets the processing volume from the data processing set according to the processing volume.
在本申请实施例中,根据所述处理量和所述区块的存储容量,确定获取包含所述标签信息的业务数据的数量;In the embodiment of the present application, the amount of service data including the tag information to be acquired is determined based on the processing volume and the storage capacity of the block;
从数据处理集中获取所述数量的包含所述业务标识的业务数据,所述数据处理集中存储接收到的所述业务数据。The quantity of service data including the service identifier is acquired from a data processing center, and the data processing center stores the received service data.
例如:对于待处理的业务数据,可以根据预设的标签信息与处理量之间的对应关系,确定与所述标签信息对应的处理量,例如:处理量为p(百分比形式),那么在本申请实施例中,确定产生新的区块的存储容量,例如:存储容量为x,那么确定需要存储至区块中的该标签信息对应的业务数据的数量为xp。For example: for business data to be processed, the processing volume corresponding to the preset tag information can be determined based on the correspondence between the tag information and the processing volume. For example: the processing volume is p (in percentage form), then in an embodiment of the present application, the storage capacity of the new block is determined. For example: the storage capacity is x, then the amount of business data corresponding to the tag information that needs to be stored in the block is determined to be xp.
较优地,所述节点在新的区块产生时,若在接收到的业务数据对应于至少两个不同的处理优先级,则分别确定不同处理优先级的标签信息对应的处理量,不同标签信息对应的处理量之和小于等于所述区块的存储容量。Preferably, when a new block is generated, if the received business data corresponds to at least two different processing priorities, the node determines the processing volume corresponding to the label information of different processing priorities respectively, and the sum of the processing volumes corresponding to the different label information is less than or equal to the storage capacity of the block.
如:假设待处理的业务数据对应于多个处理优先级(例如:处理优先级1和处理优先级2),那么根据预设的标签信息与处理量之间的对应关系,分别确定与所述标签信息对应的处理量,例如:处理优先级1的标签信息对应的处理量为p(百分比形式),处理优先级2的标签信息对应的处理量为m(百分比形式)。For example: assuming that the business data to be processed corresponds to multiple processing priorities (for example, processing priority 1 and processing priority 2), then based on the correspondence between the preset tag information and the processing volume, the processing volume corresponding to the tag information is determined respectively. For example: the processing volume corresponding to the tag information of processing priority 1 is p (in percentage form), and the processing volume corresponding to the tag information of processing priority 2 is m (in percentage form).
再例如:假设待处理的业务数据对应于多种业务(例如:业务1和业务2,业务1对应的处理优先级为处理优先级1,业务2对应的处理优先级为处理优先级2),那么根据预设的标签信息与处理量之间的对应关系,分别确定与所述标签信息对应的处理量,例如:业务1的标签信息对应的处理量为p(百分比形式),业务2的标签信息对应的处理量为m(百分比形式)。Another example: assuming that the business data to be processed corresponds to multiple businesses (for example: business 1 and business 2, the processing priority corresponding to business 1 is processing priority 1, and the processing priority corresponding to business 2 is processing priority 2), then according to the correspondence between the preset tag information and the processing volume, the processing volume corresponding to the tag information is determined respectively, for example: the processing volume corresponding to the tag information of business 1 is p (in percentage form), and the processing volume corresponding to the tag information of business 2 is m (in percentage form).
那么在本申请实施例中,确定产生新的区块的存储容量,例如:存储容量为x,那么确定需要存储至区块中的处理优先级1的标签信息对应的业务数据的数量为xp,确定需要存储至区块中的处理优先级2的标签信息对应的业务数据的数量为xm。这里需要说明的是,(xm+xp)之和小于等于x。In this embodiment of the present application, the storage capacity of a new block is determined. For example, if the storage capacity is x, the amount of business data corresponding to the tag information of processing priority 1 that needs to be stored in the block is xp, and the amount of business data corresponding to the tag information of processing priority 2 that needs to be stored in the block is xm. It should be noted that the sum of (xm + xp) is less than or equal to x.
还存在一种情况,有些业务数据的处理优先级比较低,系统并未其配置标签信息,或者配置标签信息但并为其确定处理量,那么针对此种情况可以但不限于按照如下方式处理:There is also a situation where some business data has a low processing priority and the system does not configure tag information for it, or configures tag information but does not determine the processing volume for it. In this case, you can handle it in the following ways, but not limited to:
当所述业务数据中未包含标签信息时,根据所述区块的空闲容量,从数据处理集中获取满足所述空闲容量的未包含标签信息的业务数据;或者,When the service data does not contain tag information, according to the free capacity of the block, obtain service data that does not contain tag information and meets the free capacity from the data processing set; or
当所述标签信息对应的处理量为Null时,根据所述区块的空闲容量,从数据处理集中获取满足所述空闲容量的包含所述标签信息的业务数据。When the processing volume corresponding to the tag information is Null, business data containing the tag information that meets the idle capacity is acquired from the data processing set according to the idle capacity of the block.
例如:接收到的业务数据对应于多种业务(例如:业务1、业务2和业务3)或者多个处理优先级,那么根据预设的标签信息与处理量之间的对应关系,分别确定与所述标签信息对应的处理量,例如:业务1的标签信息对应的处理量为p(百分比形式),业务2的标签信息对应的处理量为m(百分比形式),业务3的标签信息对应的处理量为空。For example: the received business data corresponds to multiple businesses (for example: business 1, business 2 and business 3) or multiple processing priorities, then according to the correspondence between the preset label information and the processing volume, the processing volume corresponding to the label information is determined respectively. For example: the processing volume corresponding to the label information of business 1 is p (in percentage form), the processing volume corresponding to the label information of business 2 is m (in percentage form), and the processing volume corresponding to the label information of business 3 is empty.
那么在本申请实施例中,确定产生新的区块的存储容量,例如:存储容量为x,那么确定需要存储至区块中的业务1的标签信息对应的业务数据的数量为xp,确定需要存储至区块中的业务2的标签信息对应的业务数据的数量为xm,确定需要存储至区块中的业务3的标签信息对应的业务数据的数量为(1-p-m)x。Then, in an embodiment of the present application, the storage capacity of a new block is determined. For example, if the storage capacity is x, the amount of business data corresponding to the tag information of business 1 that needs to be stored in the block is xp, the amount of business data corresponding to the tag information of business 2 that needs to be stored in the block is xm, and the amount of business data corresponding to the tag information of business 3 that needs to be stored in the block is (1-p-m)x.
在本申请实施例中还存在另一种情况,即所述标签信息对应的数据处理集中存储的所述业务数据的数量小于所述处理量,也就意味着,数据处理集中存储的业务数据无法满足所述处理量的需求,为了实现资源的合理使用,那么在这种情况下,按照所述数据处理集中存储的业务数据的数量,从所述数据处理集中获取所述业务数据。即将所述数据处理集中存储的业务数据全部读取出。In the embodiment of the present application, there is another situation where the amount of the business data stored in the data processing set corresponding to the tag information is less than the processing capacity, which means that the business data stored in the data processing set cannot meet the processing capacity requirement. In order to achieve reasonable use of resources, in this case, the business data is obtained from the data processing set according to the amount of business data stored in the data processing set. That is, all the business data stored in the data processing set is read out.
在本申请实施例中,根据所述处理量和业务数据的时间戳,从所述标签信息对应的数据数据处理集中获取满足所述处理量的业务数据。In an embodiment of the present application, based on the processing volume and the timestamp of the business data, business data that meets the processing volume is obtained from the data processing set corresponding to the tag information.
具体地,根据所述业务数据对应的受理时间的先后,从所述标签信息对应的数据数据处理集中获取满足所述处理量的业务数据。Specifically, according to the order of the acceptance times corresponding to the business data, business data that meets the processing volume is acquired from the data processing set corresponding to the tag information.
步骤104:所述节点将获取到的所述业务数据存储至所述区块中。Step 104: The node stores the acquired business data in the block.
在本申请实施例中,根据所述业务数据对应的受理时间的先后,依次将获取到的所述业务数据存储至所述区块中。In the embodiment of the present application, the acquired business data are stored in the blocks in sequence according to the order of the acceptance times corresponding to the business data.
通过本申请实施例提供的技术方案,为不同处理优先级的业务数据确定处理量,在向区块中存储业务数据时,可以获取不同处理优先级的业务数据,以实现不同处理优先级的业务数据能够被处理,打破了现有技术中单一按照时间因素处理业务数据的规定,避免了现有技术中业务优先级比较高的业务的处理效率比较低的问题,本申请实施例提供出的方案既保证了处理优先级高的业务数据的处理效率,也保证了处理优先级低的业务数据的处理效率,在满足处理优先级时,增加了区块链中业务数据处理的灵活性,也提升了区块链在业务应用领域的使用价值。Through the technical solution provided in the embodiment of the present application, the processing volume is determined for business data of different processing priorities. When storing business data in the block, business data of different processing priorities can be obtained to ensure that business data of different processing priorities can be processed. This breaks the provision in the prior art that business data is processed solely according to time factors, and avoids the problem of low processing efficiency of businesses with higher business priorities in the prior art. The solution provided in the embodiment of the present application ensures both the processing efficiency of business data with high processing priority and the processing efficiency of business data with low processing priority. When the processing priority is met, the flexibility of business data processing in the blockchain is increased, and the use value of the blockchain in the field of business applications is also enhanced.
图3为本申请实施例提供的一种基于区块链的数据处理方法的场景示意图。从图3中可以看出,区块链中的节点在接收到业务数据时,确定该业务数据的业务标识。当产生新的区块时,可以根据业务数据的业务的处理优先级确定该业务数据的处理数量,并从缓存中获取满足该处理数量的业务数据存储至区块中(即按照上述实施例中步骤102~步骤103的方式实现)。FIG3 is a schematic diagram of a scenario of a data processing method based on blockchain provided in an embodiment of the present application. As can be seen from FIG3, when a node in the blockchain receives business data, it determines the business identifier of the business data. When a new block is generated, the processing quantity of the business data can be determined based on the processing priority of the business data, and the business data that meets the processing quantity is obtained from the cache and stored in the block (i.e., implemented in the manner of steps 102 to 103 in the above embodiment).
图4为本申请实施例提供的一种基于区块链的数据处理设备的结构示意图。所述数据处理设备包括:接收单元401、确定单元402、获取单元403和处理单元404,其中:Figure 4 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 401, a determining unit 402, an acquiring unit 403, and a processing unit 404, wherein:
所述接收单元401,接收设定时间周期内产生的至少一个业务数据,所述业务数据中包含用于表征所述业务数据的处理优先级的标签信息;The receiving unit 401 receives at least one piece of service data generated within a set time period, wherein the service data includes tag information for representing a processing priority of the service data;
所述确定单元402,在新的区块产生时,根据预设的标签信息与处理量之间的对应关系,确定与所述标签信息对应的处理量;The determining unit 402 determines the processing amount corresponding to the tag information according to the preset correspondence between the tag information and the processing amount when a new block is generated;
所述获取单元403,根据所述处理量,从数据处理集中获取满足所述处理量且包含所述标签信息的业务数据,所述数据处理集中存储接收到的所述业务数据;The acquiring unit 403 acquires, according to the processing volume, business data that meets the processing volume and contains the tag information from the data processing center, and the data processing center stores the received business data;
所述处理单元404,将获取到的所述业务数据存储至所述区块中。The processing unit 404 stores the acquired business data in the block.
在本申请的另一个实施例中,所述数据处理设备还包括:建立单元405,其中:In another embodiment of the present application, the data processing device further includes: an establishing unit 405, wherein:
所述建立单元405,建立预设的标签信息与处理量之间的对应关系,包括:The establishing unit 405 establishes a correspondence between preset tag information and processing volume, including:
确定不同业务的业务数据的处理优先级,并确定不同的处理优先级与标签信息之间的映射关系;Determine the processing priority of business data for different businesses, and determine the mapping relationship between different processing priorities and tag information;
根据所述处理优先级,确定与所述处理优先级对应的处理量;determining, according to the processing priority, a processing amount corresponding to the processing priority;
建立所述处理优先级对应的标签信息与所述处理量之间的对应关系。A corresponding relationship between the label information corresponding to the processing priority and the processing volume is established.
在本申请的另一个实施例中,同一种业务数据在不同时间周期内的处理量不同。In another embodiment of the present application, the processing volume of the same type of business data is different in different time periods.
在本申请的另一个实施例中,所述获取单元403根据所述处理量,从数据处理集中获取满足所述处理量的包含所述标签信息的业务数据,包括:In another embodiment of the present application, the acquiring unit 403 acquires, from the data processing set according to the processing volume, the business data containing the tag information that satisfies the processing volume, including:
根据所述处理量和所述区块的存储容量,确定获取包含所述标签信息的业务数据的数量;Determining the amount of service data containing the tag information to be acquired based on the processing volume and the storage capacity of the block;
从数据处理集中获取所述数量的包含所述标签信息的业务数据。Acquire the quantity of business data containing the tag information from the data processing set.
在本申请的另一个实施例中,所述获取单元403根据所述处理量,从数据处理集中获取满足所述处理量的包含所述标签信息的业务数据,包括:In another embodiment of the present application, the acquiring unit 403 acquires, from the data processing set according to the processing volume, the business data containing the tag information that satisfies the processing volume, including:
当所述业务数据中未包含标签信息时,根据所述区块的空闲容量,从数据处理集中获取满足所述空闲容量的未包含标签信息的业务数据;或者,When the service data does not contain tag information, according to the free capacity of the block, obtain service data that does not contain tag information and meets the free capacity from the data processing set; or
当所述标签信息对应的处理量为Null时,根据所述区块的空闲容量,从数据处理集中获取满足所述空闲容量的包含所述标签信息的业务数据。When the processing volume corresponding to the tag information is Null, business data containing the tag information that meets the idle capacity is acquired from the data processing set according to the idle capacity of the block.
在本申请的另一个实施例中,所述数据设备还包括:存储单元406,其中:In another embodiment of the present application, the data device further includes: a storage unit 406, wherein:
所述存储单元406在所述节点在接收到设定时间周期内产生的至少一个业务数据时,根据所述业务数据中包含的标签信息,确定与所述标签信息对应的数据处理集;When the node receives at least one piece of service data generated within a set time period, the storage unit 406 determines a data processing set corresponding to the label information according to the label information included in the service data;
将所述业务数据存储至确定的所述数据处理集中。The business data is stored in the determined data processing center.
在本申请的另一个实施例中,所述获取单元403根据所述处理量,从数据处理集中获取满足所述处理量的包含所述标签信息的业务数据,包括:In another embodiment of the present application, the acquiring unit 403 acquires, from the data processing set according to the processing volume, the business data containing the tag information that satisfies the processing volume, including:
根据所述处理量和业务数据的时间戳,从所述标签信息对应的数据数据处理集中获取满足所述处理量的业务数据。According to the processing volume and the timestamp of the business data, business data that meets the processing volume is acquired from the data processing set corresponding to the tag information.
在本申请的另一个实施例中,所述获取单元403根据所述处理量,从数据处理集中获取满足所述处理量的包含所述标签信息的业务数据,包括:In another embodiment of the present application, the acquiring unit 403 acquires, from the data processing set according to the processing volume, the business data containing the tag information that satisfies the processing volume, including:
在所述标签信息对应的数据处理集中存储的所述业务数据的数量小于所述处理量时,按照所述数据处理集中存储的业务数据的数量,从所述数据处理集中获取所述业务数据。When the amount of the business data stored in the data processing set corresponding to the tag information is less than the processing volume, the business data is obtained from the data processing set according to the amount of the business data stored in the data processing set.
在本申请的另一个实施例中,所述确定单元402在新的区块产生时,根据预设的标签信息与处理量之间的对应关系,确定与所述标签信息对应的处理量,包括:In another embodiment of the present application, when a new block is generated, the determining unit 402 determines the processing amount corresponding to the tag information according to a preset correspondence between the tag information and the processing amount, including:
在新的区块产生时,若接收到的业务数据对应于至少两个不同的处理优先级,则分别确定不同处理优先级的标签信息对应的处理量,不同标签信息对应的处理量之和小于等于所述区块的存储容量。When a new block is generated, if the received business data corresponds to at least two different processing priorities, the processing volume corresponding to the tag information of different processing priorities is determined respectively, and the sum of the processing volumes corresponding to different tag information is less than or equal to the storage capacity of the block.
需要说明的是,本申请实施例提供的数据处理设备可以通过软件方式实现,也可以通过硬件方式实现,这里不做具体限定。本申请实施例中所记载的数据处理设备为不同处理优先级的业务数据确定处理量,在向区块中存储业务数据时,可以获取不同处理优先级的业务数据,以实现不同处理优先级的业务数据能够被处理,打破了现有技术中单一按照时间因素处理业务数据的规定,避免了现有技术中业务优先级比较高的业务的处理效率比较低的问题,本申请实施例提供出的方案既保证了处理优先级高的业务数据的处理效率,也保证了处理优先级低的业务数据的处理效率,在满足处理优先级时,增加了区块链中业务数据处理的灵活性,也提升了区块链在业务应用领域的使用价值。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 recorded in the embodiment of the present application determines the processing capacity for business data of different processing priorities. When storing business data in the block, business data of different processing priorities can be obtained to enable business data of different processing priorities to be processed, breaking the provisions of the prior art that only process business data according to time factors, and avoiding the problem of low processing efficiency of business with higher business priority in the prior art. The solution provided in the embodiment of the present application not only ensures the processing efficiency of business data with high processing priority, but also ensures the processing efficiency of business data with low processing priority. When the processing priority is met, the flexibility of business data processing in the blockchain is increased, and the use value of the blockchain in the field of business applications is also enhanced.
在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 such as 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 by programming it themselves, without having to hire a chip manufacturer to design and produce 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 (18)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| HK18106424.3A HK1247300B (en) | 2018-05-17 | Data processing method and equipment based on blockchain |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| HK18106424.3A HK1247300B (en) | 2018-05-17 | Data processing method and equipment based on blockchain |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| HK1247300A1 HK1247300A1 (en) | 2018-09-21 |
| HK1247300B true HK1247300B (en) | 2021-03-05 |
Family
ID=
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN107391527B (en) | Data processing method and device based on block chain | |
| CN113282659B (en) | Data processing method and device based on block chain | |
| CN111756550B (en) | Block chain consensus method and device | |
| CN107450981A (en) | A kind of block chain common recognition method and apparatus | |
| CN107395665A (en) | A kind of block chain service handling and business common recognition method and device | |
| CN116932175B (en) | Heterogeneous chip task scheduling method and device based on sequence generation | |
| CN109002357A (en) | Resource allocation method, device and internet of things system | |
| CN116954954A (en) | Method and device for processing multi-task queues, storage medium and electronic equipment | |
| HK1247300B (en) | Data processing method and equipment based on blockchain | |
| CN109614388B (en) | A budget deduction method and device | |
| HK1247301B (en) | Data processing method and equipment based on blockchain | |
| HK1248349B (en) | Data processing method and equipment based on blockchain | |
| HK1247359B (en) | Block chain consensus method and device | |
| HK1247300A1 (en) | Data processing method and equipment based on blockchain | |
| HK1247457B (en) | Block chain service acceptance and consensus methods and devices | |
| HK1247357B (en) | Block chain consensus method and device | |
| HK1247301A1 (en) | Data processing method and equipment based on blockchain | |
| HK1248841B (en) | Data processing method and equipment based on blockchain | |
| HK1247717B (en) | Method and device for sending electronic coupons | |
| HK1248957B (en) | Geofence generation method and device | |
| HK1244600B (en) | Method and device for processing service request | |
| HK1244601B (en) | Method and device for broadcasting message |