Data processing method and device of blockchain network, computer device and medium

By obtaining lease certificates through data leasing contracts and publishing business data within the validity period, the performance problem caused by frequent access to business systems in the blockchain network is solved, and more efficient business data processing is achieved.

CN117014429BActive Publication Date: 2026-06-26TENCENT TECHNOLOGY (SHENZHEN) CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
TENCENT TECHNOLOGY (SHENZHEN) CO LTD
Filing Date
2022-04-27
Publication Date
2026-06-26

AI Technical Summary

Technical Problem

The poor performance of business processing caused by frequent access by business systems in the blockchain network affects the normal business processing flow of the blockchain network.

Method used

The data lease agreement provides a lease certificate for business data, indicating the lease term, and allows data to be published to the business system within that term, reducing the frequency of access.

Benefits of technology

It reduces the frequency of access to the blockchain network and improves the performance of business data publishing related business processing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117014429B_ABST
    Figure CN117014429B_ABST
Patent Text Reader

Abstract

The application discloses a data processing method and device of a blockchain network, computer equipment and a medium. The method comprises the following steps: calling a data lease contract to obtain first business data to be published; obtaining a first lease certificate of the first business data; the first lease certificate is used for indicating a lease validity period of the first business data; calling the data lease contract to publish the first business data to a business system, and sending the first lease certificate to the business system, so that the business system obtains the first business data from the data lease contract within the lease validity period indicated by the first lease certificate. By using the application, the performance of the blockchain network for related business processing of publishing business data can be improved, and the accuracy of publishing business data can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of computer technology, and in particular to a data processing method, apparatus, computer equipment, and medium for a blockchain network. Background Technology

[0002] With the continuous development of computer networks, blockchain technology has become increasingly mature. Blockchain is a new application model of computer technologies such as distributed data storage, peer-to-peer transmission, consensus mechanisms, and encryption algorithms. Essentially, a blockchain is a decentralized database, a chain of data blocks linked together using cryptographic methods. Each data block contains information about a batch of network transactions, used to verify the validity of the information (anti-counterfeiting) and generate the next block.

[0003] In existing applications, blockchain networks can publish business data to business systems. Business systems can continuously poll the blockchain network to see if there is any new business data being published, and then obtain the latest published business data for business processing. However, the frequent access of business systems to the blockchain network will increase the business processing overhead of the blockchain network, interfere with the normal business processing flow of the blockchain network, and result in poor performance of the blockchain network in processing related business data. Summary of the Invention

[0004] This application provides a data processing method, apparatus, computer equipment, and medium for a blockchain network, which can improve the performance of the blockchain network in processing related business data for publishing business data.

[0005] This application provides a data processing method for a blockchain network, the method comprising:

[0006] Call the data leasing contract to obtain the first business data to be published;

[0007] Obtain the first lease certificate for the first business data; the first lease certificate is used to indicate the lease validity period of the first business data;

[0008] The system invokes the data lease contract to publish the first business data to the business system and sends the first lease certificate to the business system, enabling the business system to obtain the first business data from the data lease contract within the lease validity period indicated by the first lease certificate.

[0009] This application provides a data processing device for a blockchain network, the device comprising:

[0010] The first acquisition module is used to call the data leasing contract to obtain the first business data to be published.

[0011] The second acquisition module is used to acquire the first lease certificate of the first business data; the first lease certificate is used to indicate the lease validity period of the first business data;

[0012] The publishing module is used to call the data lease contract to publish the first business data to the business system and send the first lease certificate to the business system, so that the business system can obtain the first business data from the data lease contract within the lease validity period indicated by the first lease certificate.

[0013] Optionally, the above-mentioned device is also used for:

[0014] Based on business data, a contract is published to obtain business data used for publishing to business systems;

[0015] The first acquisition module obtains the first business data to be published by calling the data leasing contract in the following ways:

[0016] The data leasing contract is invoked to retrieve the first business data to be published from the business data publishing contract.

[0017] Optionally, the first acquisition module may retrieve the first business data to be published from the business data publishing contract by calling the data leasing contract, including:

[0018] The data leasing contract is invoked to retrieve the first data identifier that is in an enabled state from the metadata publishing contract; the metadata publishing contract stores the data identifier of each business data in the business data publishing contract.

[0019] The data leasing contract is invoked to obtain the business data to which the first data identifier belongs from the business data publishing contract, which is then used as the first business data to be published.

[0020] Optionally, the above-mentioned device is also used for:

[0021] If a data activation request is received from the publishing system, the metadata publishing contract is obtained; the data activation request contains the first data identifier of the business data to be activated;

[0022] The first data identifier in the metadata publishing contract is set to the enabled state based on the data enable request.

[0023] Optionally, the above-mentioned device is also used for:

[0024] After the expiry date of the lease validity period indicated by the first lease certificate, the data lease contract is invoked to obtain the second data identifier that is in an enabled state in the metadata publication contract;

[0025] If the second data identifier is different from the first data identifier, the data leasing contract is invoked to obtain the business data to which the second data identifier belongs from the business data publishing contract, and this data is used as the second business data.

[0026] Obtain a second lease certificate for the second business data; the second lease certificate is used to indicate the lease validity period of the second business data;

[0027] The system invokes the data lease contract to publish the second business data to the business system and sends the second lease certificate to the business system, enabling the business system to obtain the second business data from the data lease contract within the lease validity period indicated by the second lease certificate.

[0028] Optionally, the above-mentioned device is also used for:

[0029] If, within the lease validity period indicated by the first lease certificate, third business data for publishing to the business system is obtained based on the business data publishing contract, and the data identifier of the third business data in the metadata publishing contract is set to the enabled state, then the data lease contract is invoked to obtain the third business data with the data identifier set to the enabled state from the business data publishing contract.

[0030] A third lease certificate for obtaining third business data; the third lease certificate is used to indicate the lease validity period of the third business data;

[0031] Based on the data lease contract, the third business data is published to the business system, and the third lease certificate and data change information are sent to the business system, so that the business system can obtain the third business data from the data lease contract within the lease validity period indicated by the third lease certificate.

[0032] Among them, the data change information is used to notify the business system that the business data published has been changed from the first business data to the third business data.

[0033] Optionally, the above-mentioned device is also used for:

[0034] The system obtains the registration request sent by the business system based on the data lease contract, and registers the business system according to the registration request.

[0035] The data lease contract is invoked to publish the first business data to the business system, including:

[0036] The data lease contract is invoked to publish the first business data to the successfully registered business system.

[0037] Optionally, the blockchain network includes consensus nodes and business nodes, and the aforementioned device is applied to the consensus node;

[0038] The publishing module invokes the data lease contract to publish the first business data to the business system and sends the first lease certificate to the business system in the following ways:

[0039] The data lease contract is invoked to send a data publication request to the business node, which then publishes the first business data to the business system and sends the first lease certificate to the business system. The data publication request includes the first business data and the first lease certificate.

[0040] Optionally, the second acquisition module may acquire the first lease certificate of the first business data in the following ways:

[0041] Obtain data publishing information for the primary business data;

[0042] The data release information is encrypted using the private key of the data lease contract to obtain the first lease certificate.

[0043] Optionally, the first business data refers to the invoice template data, and the lease validity period indicated by the first lease voucher refers to the validity period of the invoice template data. The business system is used to provide the invoice template data issued by the data lease contract to the invoicing equipment.

[0044] This application provides a computer device, including a memory and a processor. The memory stores a computer program, and when the computer program is executed by the processor, the processor performs the method of this application.

[0045] This application provides a computer-readable storage medium storing a computer program, the computer program including program instructions that, when executed by a processor, cause the processor to perform the method described above.

[0046] According to one aspect of this application, a computer program product or computer program is provided, comprising computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the methods provided in the various alternative embodiments described above.

[0047] This application can invoke a data leasing contract to obtain first business data to be published; and can obtain a first lease certificate for the first business data; the first lease certificate is used to indicate the lease validity period of the first business data; it can also invoke the data leasing contract to publish the first business data to the business system, and send the first lease certificate to the business system, so that the business system can obtain the first business data from the data leasing contract within the lease validity period indicated by the first lease certificate. Therefore, the method proposed in this application can guarantee the accuracy of business data publication through a data leasing contract, and because the business data is published based on a lease mechanism, the business system does not need to perform frequent data access within the lease validity period of the business data, but only needs to obtain the business data published within the lease validity period. Therefore, it reduces frequent access to the blockchain network and improves the performance of the blockchain network in processing related business data publication. Attached Figure Description

[0048] To more clearly illustrate the technical solutions in this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0049] Figure 1 This is a schematic diagram of a network architecture for business processing provided in this application;

[0050] Figure 2 This is a schematic diagram of a data publishing scenario provided in this application;

[0051] Figure 3 This is a flowchart illustrating a data processing method for a blockchain network provided in this application;

[0052] Figure 4 This is a schematic diagram of a data publishing scenario provided in this application;

[0053] Figure 5 This is a schematic diagram of a data interaction scenario provided in this application;

[0054] Figure 6 This application provides a flowchart illustrating a process for obtaining business data to be published.

[0055] Figure 7 This is a schematic diagram of a data publishing scenario provided in this application;

[0056] Figure 8 This is a schematic diagram illustrating a data status change scenario provided in this application;

[0057] Figure 9This is a schematic diagram of the structure of a data processing device for a blockchain network provided in this application;

[0058] Figure 10 This is a schematic diagram of the structure of a computer device provided in this application. Detailed Implementation

[0059] The technical solutions of this application will now be clearly and completely described with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0060] This application relates to blockchain-related technologies. Blockchain is a novel application model of computer technologies such as distributed data storage, peer-to-peer transmission, consensus mechanisms, and cryptographic algorithms. Essentially, a blockchain is a decentralized database, a chain of data blocks linked using cryptographic methods. Each data block contains information about a batch of network transactions, used to verify the validity of the information (anti-counterfeiting) and generate the next block. A blockchain can include a blockchain underlying platform, a platform product service layer, and an application service layer. A blockchain consists of a series of blocks sequentially generated in chronological order. Once a new block is added to the blockchain, it cannot be removed. Each block records the data submitted by nodes in the blockchain system. In this application, business data can be published through smart contracts within the blockchain network.

[0061] This application also relates to cloud technology. Cloud technology refers to a managed technology that unifies a series of resources such as hardware, software, and networks within a wide area network or local area network to realize the computing, storage, processing, and sharing of data.

[0062] Cloud technology is a collective term for network technology, information technology, integration technology, management platform technology, and application technology applied to the cloud computing business model. It can form resource pools, providing flexible and convenient on-demand access. Cloud computing technology will become a crucial support. Backend services of technical network systems require substantial computing and storage resources, such as video websites, image websites, and many portal websites. With the rapid development and application of the internet industry, every item may have its own identification mark in the future, requiring transmission to backend systems for logical processing. Data at different levels will be processed separately, and various industry data will all require robust system support, which can only be achieved through cloud computing.

[0063] The cloud technology involved in this application mainly refers to the data interaction between business systems and blockchain networks (such as data lease contracts in blockchain networks) through the "cloud".

[0064] First, it should be noted that the collection, use and processing of relevant data (such as the business data described below) in this application must comply with the relevant laws, regulations and standards of the relevant countries and regions.

[0065] Please see Figure 1 , Figure 1 This is a schematic diagram of a network architecture for service processing provided in this application. For example... Figure 1 As shown, this network architecture can include a business network and a consensus network. The business network can include multiple business nodes, and the consensus network can include multiple consensus nodes. These two networks constitute a layered blockchain network, meaning they are not in the same network environment to protect the security of the consensus network. This network architecture can also include several business systems that can interact with the business nodes in the business network. These business systems can be understood as the front end (client system) of the blockchain network.

[0066] Both business nodes and consensus nodes can consist of one or more servers. These servers can be independent physical servers, server clusters or distributed systems composed of multiple physical servers, or cloud servers providing basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms. Terminal devices can be smart terminals such as smartphones, tablets, laptops, desktop computers, smart TVs, and in-vehicle terminals.

[0067] Please see also Figure 2 , Figure 2 This is a schematic diagram illustrating a data publishing scenario provided in this application. For example... Figure 2 As shown, a consensus node (which can be any consensus node in the consensus network) can be configured with a data lease contract. The consensus node can call the data lease contract to obtain the business data X to be published and obtain the lease certificate of the business data X to be published. The lease certificate is used to indicate the lease validity period of the business data X.

[0068] Furthermore, the consensus node can send the acquired business data X to be published and the lease certificate of business data X to the business node (which can be any business node in the business network). Then, the business node can publish business data X to the business system and send the lease certificate of business data X to the business system. This allows the business system to obtain business data X from the data lease contract through the business node within the lease validity period indicated by the lease certificate, and then perform corresponding business processing based on the obtained business data X.

[0069] By using the method provided in this application, business data is published to the business system through a lease mechanism. This allows the business system to avoid frequent data access to the blockchain network (such as access to business nodes or consensus nodes when not using a segmented business network) during the lease validity period of the business data. It only needs to obtain the business data published within the lease validity period. Therefore, it reduces the frequency of access to the blockchain network and improves the performance of the blockchain network in processing business data publication.

[0070] Please see Figure 3 , Figure 3 This is a flowchart illustrating a data processing method for a blockchain network provided in this application. The executing entity in the embodiments of this application can be a blockchain node in the blockchain network. This blockchain node can consist of one or more computer devices, which can be terminal devices or servers. Figure 3 As shown, the method may include:

[0071] Step S101: Call the data leasing contract to obtain the first business data to be published.

[0072] Optionally, the blockchain network may include a consensus network, which may include several consensus nodes. In this embodiment, the blockchain node that acts as the execution subject can be any consensus node in the blockchain network. The execution subject in this application will be collectively referred to as a consensus node (which can actually be other blockchain nodes in the blockchain network, depending on the actual application scenario, and there is no restriction on this).

[0073] The consensus node is configured with a data leasing contract, which is a caching contract. This contract manages business systems that can receive published business data. It caches currently published business data and related publication information (such as publication time, lease validity period, and a list of business systems that can access the data). This contract can be used to interact with external business systems, which can be understood as the front end of the blockchain network (e.g., a client system). These systems provide the published business data to devices that need it.

[0074] Among them, the data rental contract can be a type of smart contract.

[0075] Therefore, consensus nodes can invoke the data leasing contract to obtain the first business data to be published. This first business data can be any type of business data, and its specific nature can be determined based on the actual application scenario. This first business data is the business data that currently needs to be published to the business system.

[0076] The specific process by which consensus nodes obtain the first business data can also be found in the following text. Figure 6 The relevant descriptions in the corresponding embodiments.

[0077] Step S102: Obtain the first lease certificate of the first business data; the first lease certificate is used to indicate the lease validity period of the first business data.

[0078] Optionally, this application can publish business data according to the lease mechanism, and the consensus node can also obtain the lease certificate of the first business data. The lease certificate of the first business data can be referred to as the first lease certificate.

[0079] The first lease certificate can be used to indicate the lease validity period of the first business data, which is also the validity period during which the first business data can be used.

[0080] Optionally, the process by which a consensus node obtains the first lease certificate for the first business data can be as follows: when the consensus node needs to publish the first business data, it can obtain the data publication information of the first business data, which may include relevant publication information such as the lease validity period, publication time, and publication version of the first business data.

[0081] The consensus node records the private key of the data lease contract. The consensus node can use the private key of the data lease contract to encrypt the data publication information of the first business data, and thus obtain the first lease certificate of the first business data.

[0082] Step S103: Invoke the data lease contract to publish the first business data to the business system, and send the first lease certificate to the business system so that the business system can obtain the first business data from the data lease contract within the lease validity period indicated by the first lease certificate.

[0083] Optionally, the consensus node can invoke the data lease contract to publish the first business data to the business system, and can send the first lease certificate of the first business data to the business system, so that the business system can obtain the first business data from the data lease contract within the lease validity period indicated by the first lease certificate.

[0084] Optionally, there can be one or multiple business systems, and the number of business systems is determined based on the actual application scenario.

[0085] Typically, after publishing a piece of business data (such as the first piece of business data), no new business data will be published during the lease term of that data. Therefore, the business system can access the data lease contract once during the lease term of the first piece of business data to obtain it. Within the lease term of the first piece of business data, the business system does not need to repeatedly and frequently access the data lease contract to obtain the latest published business data, because no new business data is usually published during this lease term. Therefore, the method provided in this application can reduce invalid accesses to the data lease contract (i.e., to the consensus node), reduce the interference to the consensus node's business processing caused by frequent accesses to the data lease contract by the business system, and thus improve the business processing performance of the consensus node.

[0086] Please see Figure 4 , Figure 4 This is a schematic diagram illustrating a data publishing scenario provided in this application. For example... Figure 4 As shown, a data lease contract is created in the consensus node. The consensus node can call the data lease contract to publish business data to the business system. Here, the consensus node can first call the data lease contract to publish business data 1 to the business system. The lease validity period of business data 1 can be lease validity period 1. Then, when the expiration time (i.e., termination time) of lease validity period 1 is reached, the consensus node can call the data lease contract to publish business data 2 to the business system. The lease validity period of business data 2 can be lease validity period 2. Similarly, when the expiration time (i.e., termination time) of lease validity period 2 is reached, the consensus node can call the data lease contract to publish business data 3 to the business system. The lease validity period of business data 3 can be lease validity period 3.

[0087] Within the lease term 1, only business data 1 can be used effectively. After business data 2 is published, the previously published business data 1 becomes invalid. That is, within the lease term 2, only business data 2 can be used effectively. Similarly, after business data 3 is published, the previously published business data 2 becomes invalid. That is, within the lease term 3, only business data 3 can be used effectively.

[0088] Furthermore, business systems need to register with the data leasing contract. After registering as a legitimate business system, it can obtain the business data published by the data leasing contract. This process can be as follows: consensus nodes can obtain the registration request sent by the business system based on the data leasing contract, and register the business system according to the registration request, thus registering the business system as a legitimate business system in the blockchain network that can publish business data to it.

[0089] Optionally, the registration request may also carry information such as the domain name and address of the business system, so that after the consensus node registers the business system, it can subsequently perform related business operations such as publishing business data to the business system and sending lease certificates to the business system through the domain name and address information.

[0090] In this application, the collection, use, and processing of relevant data (such as domain names and addresses) of the business system must comply with the relevant laws, regulations, and standards of the relevant countries and regions.

[0091] Therefore, the process by which the consensus node calls the data leasing contract to publish the first business data to the business system can be as follows: the consensus node can call the data leasing contract to publish the first business data to the aforementioned business system that has been legally registered (i.e., successfully registered).

[0092] Optionally, consensus nodes can directly interact with the business system (i.e., data interaction), or consensus nodes can indirectly interact with the business system through business nodes, as described below.

[0093] Optionally, the blockchain network may also include a business network, which can include several business nodes. Consensus nodes can interact with business nodes, and business nodes can interact with the aforementioned external business systems. These business systems can be understood as the front end of the blockchain network (such as client systems). This data interaction method allows for the separation of the consensus network from external business systems, thereby improving the network security of the consensus network.

[0094] Therefore, the process by which the consensus node invokes the data leasing contract to publish the first business data to the business system and sends the first lease certificate to the business system can be as follows: the consensus node can invoke the data leasing contract to send a data publication request to the business node, and the data publication request can include the aforementioned first business data and the first lease certificate of the first business data.

[0095] Therefore, the business node can extract the first business data and the first lease certificate of the first business data from the data publishing request. Then, the business node can publish (can be understood as making public) the extracted first business data to the business system and send the extracted first lease certificate to the business system.

[0096] Similarly, the business system can obtain the first business data from the data lease contract in the consensus node through the business node within the lease validity period indicated by the first lease certificate.

[0097] Please see Figure 5 , Figure 5 This is a schematic diagram illustrating a data interaction scenario provided in this application. For example... Figure 5 As shown, a routing proxy network may separate the business network from the core network (i.e., the consensus network), and the network environments of the business network, core network, and routing proxy network can be mutually isolated. The business network contains several business nodes, the core network contains several core nodes (i.e., consensus nodes), and the routing proxy network contains several proxy nodes.

[0098] The business network can interface with the front-end business systems to exchange data and execute corresponding business operations (such as a business system requesting access to business data from a business node). The core network, on the other hand, can obtain business data to be published to the business systems. However, to ensure the security of the core network, it may not directly interface with the front-end business systems. The business network and the core network can also exchange data through proxy nodes in a routing proxy network, which further enhances the security of the core network.

[0099] For example, a consensus node can provide the business data to be published (such as the first business data mentioned above) and the lease certificate of the business data to the proxy node. The proxy node can then provide the business data to be published and the lease certificate of the business data to the business node. The business node can then publish the business data to the business system and send the lease certificate of the business data to the business system.

[0100] Optionally, the method provided in this application can be applied to scenarios involving the publication of invoice template data (i.e., business data can be invoice template data). In this scenario, the aforementioned first business data can refer to the invoice template data to be published, and the lease validity period indicated by the first lease certificate can be the usage validity period of the invoice template data. After the consensus node publishes the invoice template data to the business system, the business system can provide the invoice template data published by the data lease contract to the invoicing device, enabling the invoicing device to issue invoice data in accordance with the format of the published invoice template data within the lease validity period indicated by the first lease certificate. Optionally, the invoicing device can be the equipment of the merchant that needs to issue invoice data, etc.

[0101] Furthermore, when new invoice template data becomes available, the consensus node can redistribute the latest invoice template data to the business system following the same process described above. At any given time, only one piece of business data (such as the newly released data) can be effectively used; that is, only one piece of valid business data can exist simultaneously. Alternatively, business data can be categorized into multiple types. Only one piece of business data from any given type can be valid and usable at any given time. The publication process for each type of business data is the same as and independent of the process for publishing the first piece of business data described above, and each type of business data can correspond to a separate business system.

[0102] The invoice template data used to publish to the business system can be provided by the tax authority (such as the State Taxation Administration or local tax authorities) to the consensus nodes in the blockchain network. That is, the method provided in this application can be applied to the scenario of publishing invoice template data of the tax authority.

[0103] This application can invoke a data leasing contract to obtain first business data to be published; and can obtain a first lease certificate for the first business data; the first lease certificate is used to indicate the lease validity period of the first business data; it can also invoke the data leasing contract to publish the first business data to the business system, and send the first lease certificate to the business system, so that the business system can obtain the first business data from the data leasing contract within the lease validity period indicated by the first lease certificate. Therefore, the method proposed in this application can guarantee the accuracy of business data publication through a data leasing contract, and because the business data is published based on a lease mechanism, the business system does not need to perform frequent data access within the lease validity period of the business data, but only needs to obtain the business data published within the lease validity period. Therefore, it reduces frequent access to the blockchain network and improves the performance of the blockchain network in processing related business data publication.

[0104] Please see Figure 6 , Figure 6This is a schematic diagram illustrating a process for obtaining business data to be published, as provided in this application. The execution entity in this application embodiment can be the same as described above. Figure 3 The execution subject is the same in the corresponding application embodiments, such as Figure 6 As shown, the process includes:

[0105] Step S201: Invoke the data leasing contract to obtain the first data identifier in the enabled state from the metadata publishing contract; the metadata publishing contract stores the data identifier of each business data in the business data publishing contract.

[0106] Optionally, the consensus node is also configured with a metadata publishing contract and a business data publishing contract, which are also smart contracts in the blockchain network. The consensus node can obtain all the business data to be published to the business system based on the business data publishing contract. In other words, the business data publishing contract can store all business data that has been published to the business system or will be published to the business system in the future. The business data in the business data publishing contract can be submitted to the consensus node by the enterprise or organization to which the business data belongs.

[0107] For example, when the business data is invoice template data, the business data in the business data publishing contract can be provided by the tax authority (such as through a script or client to the business data publishing contract).

[0108] Furthermore, the metadata publishing contract can store data identifiers (such as serial numbers or version numbers) for each piece of business data in the business data publishing contract. This application can use the metadata publishing contract to determine the valid business data that needs to be published in the business data publishing contract, as described below.

[0109] Optionally, when it is necessary to publish the first business data, the publishing system (which may be the system of the organization or enterprise to which the business data belongs) may instruct the consensus node to set the first business data in the business data publishing contract to the enabled state (which can be understood as the effective state) through the metadata publishing contract: the consensus node may obtain the data enablement request sent by the publishing system, which may contain the data identifier of the business data to be enabled (which may be called the first data identifier). If the first business data needs to be published at present, then the first data identifier can be the data identifier of the first business data.

[0110] Then, the consensus node can obtain the metadata publishing contract. The consensus node can set the first data identifier in the metadata publishing contract to the enabled state. It can be understood that setting the first data identifier to the enabled state is to set the business data to which the first data identifier belongs to the enabled state (i.e., the effective state).

[0111] Therefore, consensus nodes can invoke the data leasing contract to access the metadata publishing contract and obtain the first data identifier that is in an enabled state from the metadata publishing contract.

[0112] Step S202: Invoke the data leasing contract to obtain the business data to which the first data identifier belongs from the business data publishing contract, and use it as the first business data to be published.

[0113] Optionally, after the consensus node obtains the first data identifier in the enabled state from the metadata publishing contract by calling the data leasing contract, it can then call the data leasing contract to obtain the business data to which the first data identifier in the enabled state belongs from the business data publishing contract, and use it as the first business data to be published.

[0114] Through the above process, it can be understood that the organization owning the business data can submit business data to the business data publishing contract. The data identifier of the business data submitted by the organization owning the business data can be recorded through the metadata publishing contract. In turn, the data leasing contract can use the data identifier in the metadata publishing contract that is in the enabled state to determine the business data that needs to be sent to the business system in the business data publishing contract.

[0115] Please see Figure 7 , Figure 7 This is a schematic diagram illustrating a data publishing scenario provided in this application. For example... Figure 7 As shown, consensus nodes can be configured with data leasing contracts, metadata publishing contracts, and business data publishing contracts. The data leasing contract can be used to cache the latest published business data and related publishing information (such as publishing time, lease validity period, and publishing version). The data leasing contract can also be used to manage business systems registered to obtain the published business data.

[0116] The business data publishing contract can store various business data (including business data 1 to business data n) provided by the organization to which the business data belongs. The metadata publishing contract can record the data identifier of each business data in the business data publishing contract (this data identifier can belong to metadata, including data identifier 1 of business data 1 to data identifier n of business data n). Then, the data identifier of each business data in the metadata publishing contract can be used to determine which business data needs to be published at the moment.

[0117] Therefore, the consensus node can first call the data leasing contract to obtain the data identifier (data identifier 2 in this case) that is in the enabled state from the metadata publishing contract. Then, the consensus node can call the data leasing contract to obtain the business data (business data 2 in this case) to which the data identifier belongs in the enabled state from the business data publishing contract. Then, the consensus node can publish the business data (i.e. business data 2) to which the data identifier belongs in the enabled state to the business system.

[0118] More often than not, new business data is republished after the lease term of the first business data expires. After the new business data is published, the first business data can no longer be used effectively, and only the newly published business data can be used effectively.

[0119] Therefore, after the expiration time of the lease validity period indicated by the first lease certificate, the consensus node can call the data lease contract to obtain the second data identifier of the enabled status in the metadata publication contract. That is, after the expiration time of the lease validity period indicated by the first lease certificate, the consensus node can detect whether there is new business data published after the first business data is published by accessing the metadata publication contract.

[0120] If the second data identifier is the same as the first data identifier (i.e., the data identifier of the first business data), it indicates that no new business data has been published after the first business data was published. At this time, the consensus node can call the data leasing contract to reissue a new lease certificate for the first business data to the business system. The new lease certificate is used to indicate the new lease validity period of the first business data (i.e., the renewed lease validity period, which can be provided to the data leasing contract by the publishing system), so that the business system can continue to obtain the first business data within the new lease validity period.

[0121] If the second data identifier is different from the first data identifier, it indicates that new business data has been published after the first business data. Therefore, the consensus node can call the data leasing contract to obtain the business data to which the second data identifier belongs from the business data publishing contract, and use it as the second business data.

[0122] The consensus node can also obtain the lease certificate of the second business data. The lease certificate of the second business data can be referred to as the second lease certificate. Similarly, the second lease certificate is used to indicate the lease validity period of the second business data.

[0123] Furthermore, the consensus node can invoke the data lease contract to publish the second business data to the business system, and can send the second lease certificate to the business system. This allows the business system to obtain the second business data from the data lease contract within the lease validity period indicated by the second lease certificate, and perform relevant business processing based on the obtained second business data. The second business data can also be business data published after the first business data expires.

[0124] For example, the lease term for the first business data can be 1 to 5 days, and the lease term for the second business data can be 6 to 20 days. Therefore, the business system can obtain the first business data from the data lease contract for business processing from 1 to 5 days, and the business system can also obtain the second business data from the data lease contract for business processing from 6 to 20 days.

[0125] Furthermore, in certain special scenarios, after publishing the first business data to the business system, before the expiration of the lease validity period of the first business data, the consensus node can also call the data lease contract to publish new business data to the business system. This process can be described as follows.

[0126] If, within the lease validity period indicated by the first lease certificate (i.e., before the expiration time of the lease validity period indicated by the first lease certificate), the consensus node obtains business data (which can be referred to as third business data, which may be provided by the publishing system) for publication to the business system based on the business data publication contract, and sets the data identifier of the third business data in the metadata publication contract to the enabled state (only one business data can be set to the enabled state at the same time), then the data identifier of the first business data in the metadata publication contract is not in the enabled state. In this case, the consensus node can call the data lease contract to obtain the third business data with the data identifier in the enabled state from the business data publication contract.

[0127] Consensus nodes can also obtain lease certificates for third-party business data. These lease certificates can be referred to as third-party lease certificates. Similarly, these third-party lease certificates are used to indicate the lease validity period of the third-party business data.

[0128] Furthermore, the consensus node can invoke the data lease contract to publish the third business data to the business system, and can send the third lease certificate to the business system. This allows the business system to obtain the third business data from the data lease contract within the lease validity period indicated by the third lease certificate, and perform relevant business processing based on the obtained third business data. This third business data can also be business data published before the expiration of the first business data.

[0129] In this scenario, when the consensus node invokes the data lease contract to send the third lease certificate to the business system, it can also invoke the data lease contract to send data change information (which could be an announcement) to the business system regarding the first business data. This data change information serves to indicate to the business system that the business data it published has been changed from the first business data to the third business data, meaning the business system needs to use the third business data and can no longer use the first business data. If the business data is invoice template data, the business system, upon receiving the data change information, can also send this information to the invoicing device to remind it that new business data has been published and that the third business data needs to be used instead of the first business data.

[0130] For example, the lease term for the first business data can be 1 to 5 days, and the lease term for the second business data can be 4 to 15 days. Therefore, the business system can obtain the first business data from the data lease contract for business processing from 1 to 3 days, and the business system can also obtain the third business data from the data lease contract for business processing from 4 to 15 days.

[0131] Please see Figure 8 , Figure 8 This is a schematic diagram illustrating a data status change scenario provided in this application. For example... Figure 8 As shown, the metadata publishing contract can include data identifiers of business data 1 to business data 5. If the consensus node publishes business data 2 to the business system at time t1, and the lease validity period of business data 2 is [t1, t2), then data identifier 2 of business data 2 in the metadata publishing contract is enabled during the time period [t1, t2), indicating that business data 2 is valid and can be legally used during the time period [t1, t2).

[0132] Subsequently, when the consensus node publishes business data 3 to the business system at time t2, and the lease validity period of business data 3 is [t2, t3), then the data identifier 3 of business data 3 in the metadata publishing contract is enabled during the time period [t2, t3), indicating that business data 3 is valid and can be legally used during the time period [t2, t3).

[0133] Similarly, when the consensus node publishes business data 5 to the business system at time t3, and the lease validity period of business data 5 is [t3, t4), then the data identifier 5 of business data 5 in the metadata publishing contract is enabled during the time period [t3, t4), indicating that business data 5 is valid and can be legally used during the time period [t3, t4).

[0134] By employing the method provided in this application, the accuracy and efficiency of business data publishing can be improved by combining multiple contracts (including data leasing contracts, business data publishing contracts, and metadata publishing contracts) to collaboratively manage the business data publishing process.

[0135] This application can invoke a data leasing contract to obtain first business data to be published; and can obtain a first lease certificate for the first business data; the first lease certificate is used to indicate the lease validity period of the first business data; it can also invoke the data leasing contract to publish the first business data to the business system, and send the first lease certificate to the business system, so that the business system can obtain the first business data from the data leasing contract within the lease validity period indicated by the first lease certificate. Therefore, the method proposed in this application can guarantee the accuracy of business data publication through a data leasing contract, and because the business data is published based on a lease mechanism, the business system does not need to perform frequent data access within the lease validity period of the business data, but only needs to obtain the business data published within the lease validity period. Therefore, it reduces frequent access to the blockchain network and improves the performance of the blockchain network in processing related business data publication.

[0136] Please see Figure 9 , Figure 9 This is a schematic diagram of the structure of a data processing device for a blockchain network provided in this application. The data processing device for the blockchain network can be a computer program (including program code) running on a computer device; for example, the data processing device for the blockchain network is an application software. This data processing device for the blockchain network can be used to execute the corresponding steps in the methods provided in the embodiments of this application. Figure 9 As shown, the data processing device 1 of the blockchain network may include: a first acquisition module 11, a second acquisition module 12, and a publishing module 13;

[0137] The first acquisition module 11 is used to call the data leasing contract to obtain the first business data to be published;

[0138] The second acquisition module 12 is used to acquire the first lease certificate of the first business data; the first lease certificate is used to indicate the lease validity period of the first business data;

[0139] The publishing module 13 is used to call the data lease contract to publish the first business data to the business system and send the first lease certificate to the business system, so that the business system can obtain the first business data from the data lease contract within the lease validity period indicated by the first lease certificate.

[0140] Optionally, the above-mentioned device 1 is also used for:

[0141] Based on business data, a contract is published to obtain business data used for publishing to business systems;

[0142] The first acquisition module 11 calls the data leasing contract to obtain the first business data to be published in the following ways:

[0143] The data leasing contract is invoked to retrieve the first business data to be published from the business data publishing contract.

[0144] Optionally, the first acquisition module 11 may retrieve the first business data to be published from the business data publishing contract by invoking the data leasing contract, including:

[0145] The data leasing contract is invoked to retrieve the first data identifier that is in an enabled state from the metadata publishing contract; the metadata publishing contract stores the data identifier of each business data in the business data publishing contract.

[0146] The data leasing contract is invoked to obtain the business data to which the first data identifier belongs from the business data publishing contract, which is then used as the first business data to be published.

[0147] Optionally, the above-mentioned device 1 is also used for:

[0148] If a data activation request is received from the publishing system, the metadata publishing contract is obtained; the data activation request contains the first data identifier of the business data to be activated;

[0149] The first data identifier in the metadata publishing contract is set to the enabled state based on the data enable request.

[0150] Optionally, the above-mentioned device 1 is also used for:

[0151] After the expiry date of the lease validity period indicated by the first lease certificate, the data lease contract is invoked to obtain the second data identifier that is in an enabled state in the metadata publication contract;

[0152] If the second data identifier is different from the first data identifier, the data leasing contract is invoked to obtain the business data to which the second data identifier belongs from the business data publishing contract, and this data is used as the second business data.

[0153] Obtain a second lease certificate for the second business data; the second lease certificate is used to indicate the lease validity period of the second business data;

[0154] The system invokes the data lease contract to publish the second business data to the business system and sends the second lease certificate to the business system, enabling the business system to obtain the second business data from the data lease contract within the lease validity period indicated by the second lease certificate.

[0155] Optionally, the above-mentioned device 1 is also used for:

[0156] If, within the lease validity period indicated by the first lease certificate, third business data for publishing to the business system is obtained based on the business data publishing contract, and the data identifier of the third business data in the metadata publishing contract is set to the enabled state, then the data lease contract is invoked to obtain the third business data with the data identifier set to the enabled state from the business data publishing contract.

[0157] A third lease certificate for obtaining third business data; the third lease certificate is used to indicate the lease validity period of the third business data;

[0158] Based on the data lease contract, the third business data is published to the business system, and the third lease certificate and data change information are sent to the business system, so that the business system can obtain the third business data from the data lease contract within the lease validity period indicated by the third lease certificate.

[0159] Among them, the data change information is used to notify the business system that the business data published has been changed from the first business data to the third business data.

[0160] Optionally, the above-mentioned device 1 is also used for:

[0161] The system obtains the registration request sent by the business system based on the data lease contract, and registers the business system according to the registration request.

[0162] The data lease contract is invoked to publish the first business data to the business system, including:

[0163] The data lease contract is invoked to publish the first business data to the successfully registered business system.

[0164] Optionally, the blockchain network includes consensus nodes and business nodes, and the aforementioned device is applied to the consensus node;

[0165] The publishing module 13 calls the data lease contract to publish the first business data to the business system and sends the first lease certificate to the business system in the following ways:

[0166] The data lease contract is invoked to send a data publication request to the business node, which then publishes the first business data to the business system and sends the first lease certificate to the business system. The data publication request includes the first business data and the first lease certificate.

[0167] Optionally, the second acquisition module 12 may acquire the first lease certificate of the first business data in the following ways:

[0168] Obtain data publishing information for the primary business data;

[0169] The data release information is encrypted using the private key of the data lease contract to obtain the first lease certificate.

[0170] Optionally, the first business data refers to the invoice template data, and the lease validity period indicated by the first lease voucher refers to the validity period of the invoice template data. The business system is used to provide the invoice template data issued by the data lease contract to the invoicing equipment.

[0171] According to one embodiment of this application, Figure 3 The steps involved in the data processing method of the blockchain network shown can be derived from... Figure 9 The data processing unit 1 of the blockchain network shown is used to execute this process. For example, Figure 3 Step S101 shown can be performed by Figure 9 The first acquisition module 11 in the process is executed. Figure 3 Step S102 shown can be performed by Figure 9 The second acquisition module 12 in the middle is used to execute; Figure 3 Step S103 shown can be performed by Figure 9 The publishing module 13 in the middle is used to execute it.

[0172] This application can invoke a data leasing contract to obtain first business data to be published; and can obtain a first lease certificate for the first business data; the first lease certificate is used to indicate the lease validity period of the first business data; it can also invoke the data leasing contract to publish the first business data to the business system, and send the first lease certificate to the business system, so that the business system can obtain the first business data from the data leasing contract within the lease validity period indicated by the first lease certificate. Therefore, the device proposed in this application can ensure the accuracy of business data publication through a data leasing contract, and because the business data is published based on a lease mechanism, the business system does not need to perform frequent data access within the lease validity period of the business data, but only needs to obtain the business data published within the lease validity period. Therefore, it reduces frequent access to the blockchain network and improves the performance of the blockchain network in processing related business data publication.

[0173] According to one embodiment of this application, Figure 9 The modules in the data processing device 1 of the blockchain network shown can be individually or entirely merged into one or more units, or some of these units can be further divided into multiple functionally smaller sub-units to achieve the same operation without affecting the technical effects of the embodiments of this application. The above modules are based on logical function division. In practical applications, the function of one module can be implemented by multiple units, or the function of multiple modules can be implemented by one unit. In other embodiments of this application, the data processing device 1 of the blockchain network may also include other units. In practical applications, these functions can also be implemented with the assistance of other units, and can be implemented collaboratively by multiple units.

[0174] According to one embodiment of this application, a general-purpose computer device, such as a computer, which includes processing elements and storage elements such as a central processing unit (CPU), random access memory (RAM), and read-only memory (ROM), can perform operations such as... Figure 3 The computer program (including program code) for each step involved in the corresponding method shown, to construct such... Figure 9 The data processing apparatus 1 of the blockchain network shown herein, and the data processing method for implementing the blockchain network according to the embodiments of this application. The computer program described above may be recorded on, for example, a computer-readable recording medium, loaded onto the computing device via the computer-readable recording medium, and run therein.

[0175] Please see Figure 10 , Figure 10 This is a schematic diagram of the structure of a computer device provided in this application. Figure 10 As shown, the computer device 1000 may include a processor 1001, a network interface 1004, and a memory 1005. Furthermore, the computer device 1000 may also include a user interface 1003 and at least one communication bus 1002. The communication bus 1002 is used to enable communication between these components. The user interface 1003 may include a display screen and a keyboard; optionally, the user interface 1003 may also include a standard wired interface or a wireless interface. The network interface 1004 may optionally include a standard wired interface or a wireless interface (such as a Wi-Fi interface). The memory 1005 may be high-speed RAM or non-volatile memory, such as at least one disk storage device. Optionally, the memory 1005 may also be at least one storage device located remotely from the aforementioned processor 1001. Figure 10 As shown, the memory 1005, which serves as a computer storage medium, may include an operating system, a network communication module, a user interface module, and a device control application program.

[0176] exist Figure 10 In the computer device 1000 shown, the network interface 1004 provides network communication functionality; the user interface 1003 is mainly used to provide an input interface for the user; and the processor 1001 can be used to call the device control application stored in the memory 1005 to achieve:

[0177] Call the data leasing contract to obtain the first business data to be published;

[0178] Obtain the first lease certificate for the first business data; the first lease certificate is used to indicate the lease validity period of the first business data;

[0179] The system invokes the data lease contract to publish the first business data to the business system and sends the first lease certificate to the business system, enabling the business system to obtain the first business data from the data lease contract within the lease validity period indicated by the first lease certificate.

[0180] In one feasible implementation, the processor 1001 can also be used to invoke a device control application stored in the memory 1005 to achieve:

[0181] Based on business data, a contract is published to obtain business data used for publishing to business systems;

[0182] In one feasible implementation, the processor 1001 can also be used to invoke a device control application stored in the memory 1005 to achieve:

[0183] The data leasing contract is invoked to retrieve the first business data to be published from the business data publishing contract.

[0184] In one feasible implementation, the processor 1001 can also be used to invoke a device control application stored in the memory 1005 to achieve:

[0185] The data leasing contract is invoked to retrieve the first data identifier that is in an enabled state from the metadata publishing contract; the metadata publishing contract stores the data identifier of each business data in the business data publishing contract.

[0186] The data leasing contract is invoked to obtain the business data to which the first data identifier belongs from the business data publishing contract, which is then used as the first business data to be published.

[0187] In one feasible implementation, the processor 1001 can also be used to invoke a device control application stored in the memory 1005 to achieve:

[0188] If a data activation request is received from the publishing system, the metadata publishing contract is obtained; the data activation request contains the first data identifier of the business data to be activated;

[0189] The first data identifier in the metadata publishing contract is set to the enabled state based on the data enable request.

[0190] In one feasible implementation, the processor 1001 can also be used to invoke a device control application stored in the memory 1005 to achieve:

[0191] After the expiry date of the lease validity period indicated by the first lease certificate, the data lease contract is invoked to obtain the second data identifier that is in an enabled state in the metadata publication contract;

[0192] If the second data identifier is different from the first data identifier, the data leasing contract is invoked to obtain the business data to which the second data identifier belongs from the business data publishing contract, and this data is used as the second business data.

[0193] Obtain a second lease certificate for the second business data; the second lease certificate is used to indicate the lease validity period of the second business data;

[0194] The system invokes the data lease contract to publish the second business data to the business system and sends the second lease certificate to the business system, enabling the business system to obtain the second business data from the data lease contract within the lease validity period indicated by the second lease certificate.

[0195] In one feasible implementation, the processor 1001 can also be used to invoke a device control application stored in the memory 1005 to achieve:

[0196] If, within the lease validity period indicated by the first lease certificate, third business data for publishing to the business system is obtained based on the business data publishing contract, and the data identifier of the third business data in the metadata publishing contract is set to the enabled state, then the data lease contract is invoked to obtain the third business data with the data identifier set to the enabled state from the business data publishing contract.

[0197] A third lease certificate for obtaining third business data; the third lease certificate is used to indicate the lease validity period of the third business data;

[0198] Based on the data lease contract, the third business data is published to the business system, and the third lease certificate and data change information are sent to the business system, so that the business system can obtain the third business data from the data lease contract within the lease validity period indicated by the third lease certificate.

[0199] Among them, the data change information is used to notify the business system that the business data published has been changed from the first business data to the third business data.

[0200] In one feasible implementation, the processor 1001 can also be used to invoke a device control application stored in the memory 1005 to achieve:

[0201] The system obtains the registration request sent by the business system based on the data lease contract, and registers the business system according to the registration request.

[0202] The data lease contract is invoked to publish the first business data to the business system, including:

[0203] The data lease contract is invoked to publish the first business data to the successfully registered business system.

[0204] In one feasible implementation, the blockchain network includes consensus nodes and service nodes. The aforementioned computer equipment is used in the consensus node, and the processor 1001 can also be used to call the device control application stored in the memory 1005 to achieve:

[0205] The data lease contract is invoked to send a data publication request to the business node, which then publishes the first business data to the business system and sends the first lease certificate to the business system. The data publication request includes the first business data and the first lease certificate.

[0206] In one feasible implementation, the processor 1001 can also be used to invoke a device control application stored in the memory 1005 to achieve:

[0207] Obtain data publishing information for the primary business data;

[0208] The data release information is encrypted using the private key of the data lease contract to obtain the first lease certificate.

[0209] In one feasible implementation, the first business data refers to the invoice template data, and the lease validity period indicated by the first lease certificate refers to the validity period of the invoice template data. The business system is used to provide the invoice template data issued by the data lease contract to the invoicing equipment.

[0210] It should be understood that the computer device 1000 described in the embodiments of this application can execute the foregoing text. Figure 3 The description of the data processing method for the blockchain network in the corresponding embodiments can also be performed as described above. Figure 9 The description of the data processing device 1 for the blockchain network in the corresponding embodiments will not be repeated here. Furthermore, the beneficial effects of using the same method will also not be repeated here.

[0211] Furthermore, it should be noted that this application also provides a computer-readable storage medium storing a computer program executed by the data processing device 1 of the aforementioned blockchain network. The computer program includes program instructions, which, when executed by the processor, enable the execution of the aforementioned... Figure 3 The description of the data processing method for the blockchain network in the corresponding embodiments is therefore not repeated here. Furthermore, the beneficial effects of using the same method will also not be repeated. For technical details not disclosed in the computer storage medium embodiments related to this application, please refer to the description of the method embodiments of this application.

[0212] As an example, the above program instructions can be deployed and executed on a single computer device, or deployed and executed on multiple computer devices located in one location, or executed on multiple computer devices distributed across multiple locations and interconnected via a communication network. Multiple computer devices distributed across multiple locations and interconnected via a communication network can form a blockchain network.

[0213] The aforementioned computer-readable storage medium can be a data processing device of the blockchain network provided in any of the foregoing embodiments, or an internal storage unit of the aforementioned computer device, such as a hard drive or memory of the computer device. The computer-readable storage medium can also be an external storage device of the computer device, such as a plug-in hard drive, smart media card (SMC), secure digital (SD) card, flash card, etc., provided on the computer device. Furthermore, the computer-readable storage medium can include both internal storage units and external storage devices of the computer device. The computer-readable storage medium is used to store the computer program and other programs and data required by the computer device. The computer-readable storage medium can also be used to temporarily store data that has been output or will be output.

[0214] This application provides a computer program product or computer program including computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the aforementioned... Figure 3 The data processing method for the blockchain network described in the corresponding embodiments will not be repeated here. Furthermore, the beneficial effects of using the same method will also not be repeated. For technical details not disclosed in the computer-readable storage medium embodiments related to this application, please refer to the description of the method embodiments of this application.

[0215] The terms "first," "second," etc., in the specification, claims, and drawings of this application are used to distinguish different objects, not to describe a specific order. Furthermore, the term "comprising," and any variations thereof, are intended to cover non-exclusive inclusion. For example, a process, method, apparatus, product, or device that includes a series of steps or units is not limited to the listed steps or modules, but may optionally include steps or modules not listed, or may optionally include other step units inherent to these processes, methods, apparatuses, products, or devices.

[0216] Those skilled in the art will recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of both. To clearly illustrate the interchangeability of hardware and software, the components and steps of the various examples have been generally described in terms of functionality in the foregoing description. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementations should not be considered beyond the scope of this application.

[0217] The methods and related apparatuses provided in this application are described with reference to the method flowcharts and / or structural diagrams provided in this application. Specifically, each block of the method flowchart and / or structural diagram, as well as combinations of blocks 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, special-purpose computer, embedded processor, or other programmable data processing device to create a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing device, generate instructions for implementing the process. Figure 1 A schematic diagram of one or more processes and / or structures. Figure 1 The computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 A schematic diagram of one or more processes and / or structures. Figure 1 The functions specified in one or more boxes. These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable apparatus for implementing the process. Figure 1 A process or multiple processes and / or structures illustrate the steps of the functions specified in one or more boxes.

[0218] The above-disclosed embodiments are merely preferred embodiments of this application and should not be construed as limiting the scope of this application. Therefore, any equivalent variations made in accordance with the claims of this application shall still fall within the scope of this application.

Claims

1. A data processing method for a blockchain network, characterized in that, The method includes: Call the data leasing contract to obtain the first business data to be published; Obtain the first lease certificate for the first business data; the first lease certificate is used to indicate the lease validity period of the first business data; The data lease contract is invoked to publish the first business data to the business system, and the first lease certificate is sent to the business system, so that the business system can obtain the first business data from the data lease contract within the lease validity period indicated by the first lease certificate. The business data publishing contract is used to obtain business data to be published to the business system; the data leasing contract is used to obtain the first business data to be published, including: The data leasing contract is invoked to obtain the first data identifier in the enabled state from the metadata publishing contract; the metadata publishing contract stores the data identifier of each business data in the business data publishing contract. The data leasing contract is invoked to obtain the business data to which the first data identifier belongs from the business data publishing contract, which is then used as the first business data to be published.

2. The method according to claim 1, characterized in that, The method further includes: Based on the business data, a contract is published to obtain the business data used to publish to the business system.

3. The method according to claim 1, characterized in that, The method further includes: If a data activation request is received from the publishing system, the metadata publishing contract is obtained; the data activation request contains the first data identifier of the business data to be activated; The first data identifier in the metadata publishing contract is set to the enabled state according to the data enable request.

4. The method according to claim 1, characterized in that, The method further includes: After the expiry time of the lease validity period indicated by the first lease certificate is reached, the data lease contract is invoked to obtain the second data identifier that is in an enabled state in the metadata publishing contract; If the second data identifier is different from the first data identifier, then the data leasing contract is invoked to obtain the business data to which the second data identifier belongs from the business data publishing contract, and this data is used as the second business data. Obtain the second lease certificate for the second business data; the second lease certificate is used to indicate the lease validity period of the second business data; The system invokes the data lease contract to publish the second business data to the business system and sends the second lease certificate to the business system, so that the business system can obtain the second business data from the data lease contract within the lease validity period indicated by the second lease certificate.

5. The method according to claim 1, characterized in that, The method further includes: If, within the lease validity period indicated by the first lease certificate, third business data for publishing to the business system is obtained based on the business data publishing contract, and the data identifier of the third business data in the metadata publishing contract is set to the enabled state, then the data leasing contract is invoked to obtain the third business data with the data identifier set to the enabled state from the business data publishing contract; Obtain the third lease certificate for the third business data; the third lease certificate is used to indicate the lease validity period of the third business data; Based on the data lease agreement, the third business data is published to the business system, and the third lease certificate and data change information are sent to the business system, so that the business system can obtain the third business data from the data lease agreement within the lease validity period indicated by the third lease certificate; The data change information is used to notify the business system that the business data it publishes has been changed from the first business data to the third business data.

6. The method according to claim 1, characterized in that, The method further includes: Based on the data lease contract, the registration request sent by the business system is obtained, and the business system is registered according to the registration request; The step of invoking the data lease contract to publish the first business data to the business system includes: The data rental contract is invoked to publish the first business data to the successfully registered business system.

7. The method according to claim 1, characterized in that, The blockchain network includes consensus nodes and business nodes, and the method is applied to the consensus nodes; The step of invoking the data lease contract to publish the first business data to the business system and sending the first lease certificate to the business system includes: The data leasing contract is invoked to send a data publishing request to the business node, which then publishes the first business data to the business system according to the data publishing request and sends the first lease certificate to the business system; the data publishing request includes the first business data and the first lease certificate.

8. The method according to claim 1, characterized in that, The first lease certificate for obtaining the first business data includes: Obtain the data publishing information of the first business data; The data publishing information is encrypted using the private key of the data rental contract to obtain the first rental certificate.

9. The method according to claim 1, characterized in that, The first business data refers to invoice template data, and the lease validity period indicated by the first lease certificate refers to the validity period of the invoice template data. The business system is used to provide the invoice template data issued by the data lease contract to the invoicing equipment.

10. A data processing device for a blockchain network, characterized in that, The device includes: The first acquisition module is used to call the data leasing contract to obtain the first business data to be published. The second acquisition module is used to acquire the first lease certificate of the first business data; the first lease certificate is used to indicate the lease validity period of the first business data; The publishing module is used to call the data lease contract to publish the first business data to the business system and send the first lease certificate to the business system, so that the business system can obtain the first business data from the data lease contract within the lease validity period indicated by the first lease certificate. The business data publishing contract is used to acquire business data published to the business system; the first acquisition module is further used for: The data leasing contract is invoked to obtain the first data identifier in the enabled state from the metadata publishing contract; the metadata publishing contract stores the data identifier of each business data in the business data publishing contract. The data leasing contract is invoked to obtain the business data to which the first data identifier belongs from the business data publishing contract, which is then used as the first business data to be published.

11. The apparatus according to claim 10, characterized in that, The first business data refers to invoice template data, and the lease validity period indicated by the first lease certificate refers to the validity period of the invoice template data. The business system is used to provide the invoice template data issued by the data lease contract to the invoicing equipment.

12. A computer program product comprising a computer program / instructions that, when executed by a processor, implement the steps of the method according to any one of claims 1-9.

13. A computer device, characterized in that, It includes a memory and a processor, the memory storing a computer program that, when executed by the processor, causes the processor to perform the steps of the method according to any one of claims 1-9.

14. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program adapted to be loaded by a processor and executed as described in any one of claims 1-9.