A supervision system, business processing method and cross-chain supervision method
By deploying smart contracts on the business chain and custody chain of the regional equity market, business processing and cross-chain supervision are automatically performed, which solves the problem that existing technology cannot guarantee the invariance, authenticity, accuracy and timeliness of business data. Realizing data credibility, irreversibility and traceability.
Patent Information
- Application Number
- CN202410441825.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-12
- Publication Date
- 2025-01-21
- Estimated Expiration
- 2044-04-12
AI Technical Summary
Existing regulatory technologies cannot guarantee the immutability, authenticity, accuracy and timeliness of regional equity market business data.
A supervision system is designed, including a business system, a business chain and a chain of custody system. By deploying smart contracts on the business chain and the chain of custody, business processing and cross-chain supervision are automatically performed to ensure data immutability, source authenticity and accuracy. and timeliness.
It achieves data immutability, authenticity, accuracy and timeliness in the business processing process and cross-chain supervision process. The entire process is free from human intervention, cannot be tampered with, is verifiable and traceable.
Smart Images

Figure CN118337397B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of blockchain technology, and more specifically, to a supervision system, a business processing method and a cross-chain supervision method. Background Art
[0002] In order to ensure the standardization of the business of operating institutions in the regional equity market, operating institutions need to submit business data to the regulatory authorities so that the regulatory authorities can supervise the business of the operating institutions.
[0003] However, existing regulatory technologies cannot guarantee data invariance, data source authenticity, data accuracy and timeliness during the reporting process of regional equity market business data supervision. Summary of the invention
[0004] In view of this, the present invention provides a supervision system, a business processing method and a cross-chain supervision method to ensure data invariance, data source authenticity, data accuracy and timeliness during the business processing process and the cross-chain supervision process.
[0005] In order to achieve the above-mentioned invention object, the specific technical solution provided by the present invention is as follows:
[0006] In a first aspect, an embodiment of the present invention provides a supervision system, including: a business system, a business chain and a supervision chain system;
[0007] The business system is used to send a business contract call request to the business chain during the business handling process;
[0008] The business chain is used to respond to the business contract call request sent by the business system, call the pre-created business contract, perform business processing, and generate a target specific event;
[0009] The supervision chain system is used to monitor the business contract on the business chain to generate the target specific event, obtain the business data and cross-chain verification information corresponding to the target specific event, call the supervision contract pre-created on the supervision chain, and perform cross-chain verification on the business data according to the cross-chain verification information. If the cross-chain verification passes, the business data is stored on the supervision chain.
[0010] In some embodiments, the business chain is specifically used to respond to the business contract call request, call the business contract according to the call parameters carried by the business contract call request, generate the target specific event and the business data information associated with the target specific event according to various specific events defined in the template of the business contract and the data standards corresponding to various specific events, and store the target specific event in the form of a transaction on the business chain.
[0011] In some embodiments, the chain of custody system includes cross-chain middleware and chain of custody;
[0012] The cross-chain middleware includes a specific event listener and a specific event handler;
[0013] The specific event listener stores the block height of the business chain, obtains the current block height of the business chain through the block information interface of the business chain, and if the current block height is greater than the stored block height, determines that a new block is generated on the business chain, and sends the target specific event in the new block to the specific event handler;
[0014] The specific event processor is used to obtain the business data and cross-chain verification information corresponding to the target specific event, and send the business data and the cross-chain verification information to the supervision chain.
[0015] In some embodiments, the specific event listener is specifically used to obtain transaction information in the newly added block after determining that a new block is generated on the business chain, and detect whether the transaction information of the newly added block includes the specific event generated by the business contract. If it includes the specific event generated by the business contract, the specific event is sent to the specific event handler.
[0016] In some embodiments, the specific event processor is specifically used to parse the target specific event to obtain target specific event information, detect whether the target specific event information includes business data information generated by the business contract, and if it includes business data information generated by the business contract, obtain business data and cross-chain verification information from the business chain according to the business data information, and send the business data and the cross-chain verification information to the supervision chain.
[0017] In some embodiments, the supervision chain is used to perform cross-chain verification on the business data according to the cross-chain verification information. If the cross-chain verification passes, the business data is stored on the supervision chain; if the cross-chain verification fails, a system log is generated.
[0018] In some embodiments, the supervision chain is specifically used to call the supervision contract to verify the legitimacy of the newly added block of the business chain according to the cross-chain verification information, and to verify whether the business data is stored in the business chain according to the cross-chain verification information, so as to perform cross-chain verification.
[0019] In a second aspect, an embodiment of the present invention provides a business processing method, which is applied to a business chain in a supervision system, wherein the supervision system further includes a business system and a supervision chain system, and the business processing method includes:
[0020] Receiving a business contract call request sent by the business system during the business handling process;
[0021] According to the business contract call request, the pre-created business contract is called to perform business processing and generate a target specific event, so that after the supervision chain system monitors the business contract on the business chain to generate the target specific event, the business data and cross-chain verification information corresponding to the target specific event are obtained, and the supervision contract pre-created on the supervision chain is called. According to the cross-chain verification information, cross-chain verification is performed on the business data. If the cross-chain verification passes, the business data is stored on the supervision chain.
[0022] In some embodiments, calling a pre-created business contract according to the business contract calling request, performing business processing, and generating a target specific event include:
[0023] Calling the business contract according to the calling parameters carried in the business contract calling request, and generating the target specific event and the business data information associated with the target specific event according to various specific events defined in the template of the business contract and the data standards corresponding to the various specific events;
[0024] The target specific event is recorded in the business chain in the form of a transaction, and a block corresponding to the target specific event is constructed.
[0025] In a third aspect, an embodiment of the present invention provides a cross-chain supervision method, which is applied to a supervision chain system in a supervision system, wherein the supervision system also includes a business system and a business chain, and the cross-chain supervision method includes:
[0026] After monitoring that the business contract on the business chain generates a target specific event, the business data and cross-chain verification information corresponding to the target specific event are obtained, wherein the business chain calls the business contract pre-created by the business chain after receiving the business contract call request sent by the business system during the business handling process, performs business processing, and generates a target specific event;
[0027] Calling a pre-created supervision contract to perform cross-chain verification on the business data according to the cross-chain verification information;
[0028] If the cross-chain verification is passed, the business data will be stored on the supervision chain.
[0029] Compared with the prior art, the beneficial effects of the present invention are as follows:
[0030] The present invention discloses a supervision system, a business processing method and a cross-chain supervision method, and constructs a supervision system including a business system, a business chain and a supervision chain system. The business system sends a business contract call request to the business chain during the business processing process. The business chain automatically generates a target-specific event by calling a pre-created business contract. After the supervision chain system monitors that the business contract on the business chain generates a target-specific event, it obtains the business data and cross-chain verification information corresponding to the target-specific event, and automatically performs cross-chain verification on the business data by calling the pre-created supervision contract on the supervision chain, and stores the cross-chain verified business data on the supervision chain. The present invention automatically performs business processing and cross-chain supervision by deploying smart contracts on the business chain and the supervision chain. The whole process is not subject to human intervention, cannot be tampered with, can be verified, and can be traced, ensuring data invariance, data source authenticity, data accuracy and timeliness in the business processing process and cross-chain supervision process. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.
[0032] Figure 1 A schematic diagram of the structure of a monitoring system disclosed in an embodiment of the present invention;
[0033] Figure 2 A schematic diagram of the structure of a chain of custody system disclosed in an embodiment of the present invention;
[0034] Figure 3 A flowchart of a business processing method disclosed in an embodiment of the present invention;
[0035] Figure 4 A schematic diagram of a flow chart of a cross-chain supervision method disclosed in an embodiment of the present invention. DETAILED DESCRIPTION
[0036] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0037] The term "including" and its variations used herein are open inclusions, i.e., "including but not limited to". The term "based on" means "based at least in part on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". The relevant definitions of other terms will be given in the following description.
[0038] It should be noted that the concepts such as "first" and "second" mentioned in the present disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.
[0039] It should be noted that the modifications of "one" and "plurality" mentioned in the present disclosure are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, it should be understood as "one or more".
[0040] It should be noted that the business data (including but not limited to business party equipment information, business party information, business processing information, etc.) and data (including but not limited to data used for analysis, stored data, transaction data, etc.) involved in this application are all information and data authorized by enterprises or individuals or fully authorized by all parties, and the collection, use and processing of relevant data need to comply with relevant laws, regulations and standards of relevant countries and regions.
[0041] The embodiments of the present invention provide a supervision system, a business processing method and a cross-chain supervision method. Before introducing the technical solution provided by the embodiments of the present invention, an application scenario involved in the present invention is first described.
[0042] For example, the regional equity market is a private equity market that mainly serves small and medium-sized enterprises within the provincial administrative region. In order to ensure the standardization of the business of operating institutions in the regional equity market, the operating institutions need to report business data to the regulatory authorities so that the regulatory authorities can supervise the business of the operating institutions. At present, the business system of the regional equity market sends business data to the regulatory system so that the regulatory system can supervise the business data. In this process, it is impossible to ensure that the business data is not deformed, the data source is authentic, and the data is accurate and timely.
[0043] Figure 1 A schematic diagram of the structure of a monitoring system disclosed in an embodiment of the present invention is shown in FIG. Figure 1 As shown, the supervision system includes: a business system 11, a business chain 12 and a supervision chain system 13.
[0044] The business system 11 is built by the business side. For example, the business system 11 is built by the regional equity market operating institution and is the entrance for users of the regional equity market operating institution to process business. The regional equity market operating institution accepts the user's business processing application and initiates the business processing request through the business system 11. Specifically, the business processing request is implemented by the business system 11 sending a business contract call request to the business chain 12 during the business processing process.
[0045] Furthermore, the business system 11 is also used to respond to the business contract call result.
[0046] Business Chain 12 is the underlying blockchain on the business side of the dual-layer chain architecture of "supervision chain-local business chain". Taking the regional equity market as an example, Business Chain 12 is a blockchain built by a regional equity market operator. Business Chain 12 includes multiple nodes, and the operating institution users process business through Business Chain 12, such as equity registration, equity change, and other business processing.
[0047] Specifically, the business chain 12 is used to respond to the business contract call request sent by the business system 11, call the pre-created business contract, perform business processing, and generate a target specific event.
[0048] A business contract is a smart contract that is pre-created based on the business process. A smart contract is a computer protocol designed to disseminate, verify or execute contracts in an information-based manner. It is written in computer-readable code and allows trusted transactions without a third party. Transactions are traceable and irreversible. By calling smart contracts for business processing, business processing efficiency is improved and irreversible, and the business processing results are also guaranteed to be credible.
[0049] Different business processing types correspond to different types of specific events. For example, the specific events may be equity registration events, equity change events, and the like.
[0050] The chain of supervision system 13 includes the chain of supervision, which is the underlying blockchain on the supervision side under the double-layer chain architecture of "chain of supervision-local business chain", built by the regulatory agency and including multiple nodes.
[0051] The supervision chain system 13 is used to monitor the business contract on the business chain to generate a target specific event, obtain the business data and cross-chain verification information corresponding to the target specific event, call the supervision contract pre-created on the supervision chain, and perform cross-chain verification on the business data according to the cross-chain verification information. If the cross-chain verification passes, the business data is stored on the supervision chain.
[0052] The supervision contract is also a smart contract, which is pre-created according to the cross-chain verification process. By calling the smart contract for cross-chain verification, the efficiency of cross-chain verification is improved and irreversible, ensuring the credibility of the cross-chain verification results.
[0053] The purpose of cross-chain verification is to verify whether the business data in the business processing process is truly stored in the business chain12.
[0054] It can be seen that the present embodiment discloses a supervision system including a business system, a business chain and a supervision chain system. The business chain automatically generates a target-specific event by calling a pre-created business contract. After monitoring the business contract on the business chain to generate a target-specific event, the supervision chain system obtains the business data and cross-chain verification information corresponding to the target-specific event, and automatically performs cross-chain verification on the business data by calling the pre-created supervision contract on the supervision chain. By deploying smart contracts on the business chain and the supervision chain, business processing and cross-chain supervision are automatically performed. The entire process is not subject to human intervention and cannot be tampered with. The business process and cross-chain verification results are traced on the chain, which can be verified and traced, ensuring the data invariance, data source authenticity, data accuracy and timeliness in the business processing process and cross-chain supervision process.
[0055] At the same time, the supervision chain realizes penetrating supervision of business processing in the business chain. On the one hand, it can further improve the authenticity of business data and the timeliness of business data supervision; on the other hand, regulatory agencies can actively and promptly discover problems in the business processing process through cross-chain supervision.
[0056] Furthermore, the business chain 12 is specifically used to respond to a business contract call request, call the business contract according to the call parameters carried in the business contract call request, generate target specific events and business data information associated with the target specific events according to various specific events defined in the business contract template and the data standards corresponding to the various specific events, and store the target specific events in the form of transactions on the business chain 12.
[0057] Among them, in addition to defining the business processing flow, the business contract also defines the calling parameters for calling the business contract. Different business contracts have different calling parameters. Taking the enterprise element business contract as an example, the calling parameters of the business contract are the enterprise element information.
[0058] The business contract inherits the business contract template. Taking the equity initial registration business scenario as an example, the specific events defined by the template include: voucher generation event, enterprise element update event, etc. The voucher generation event is used to create an enterprise element voucher. The data standard corresponding to the voucher generation event is the data structure for building enterprise element vouchers.
[0059] By defining the template of the business contract, the business processing can be standardized. Taking the regional equity market business as an example, the business processing of the regional equity market can be standardized.
[0060] For further information, see Figure 2As shown in the schematic diagram of the chain of custody system structure, the chain of custody system 13 includes a cross-chain middleware 31 and a chain of custody 32. The cross-chain middleware 31 can be deployed in a server.
[0061] The cross-chain middleware 31 includes a specific event listener 311 and a specific event handler 312 .
[0062] The specific event listener 311 stores the block height of the business chain, and obtains the current block height of the business chain through the block information interface of the business chain. If the current block height is greater than the stored block height, it is determined that a new block is generated on the business chain, and the target specific event in the new block is sent to the specific event processor 312.
[0063] The specific event processor 312 is used to obtain the business data and cross-chain verification information corresponding to the target specific event, and send the business data and cross-chain verification information to the supervision chain.
[0064] This embodiment discloses deploying a specific event listener in the cross-chain middleware, dynamically sensing the business contract call on the business chain, being able to obtain target specific events in real time, and sending the business data and cross-chain verification information corresponding to the target specific events to the supervision chain through a specific event processor, thereby ensuring the timeliness of cross-chain supervision.
[0065] Furthermore, not all business data on the business chain needs to be supervised, only specific events need to be supervised. In order to accurately supervise specific events, the specific event listener 311 is specifically used to obtain the transaction information in the new block after determining that a new block is generated on the business chain, and to detect whether the transaction information of the new block includes the specific event generated by the business contract. If it includes the specific event generated by the business contract, the specific event is sent to the specific event processor.
[0066] Specifically, the specific event listener 311 obtains the block information of the newly added block from the business chain according to the current block height, and obtains the transaction information of the newly added block from the business chain according to the transaction identifier contained in the block information of the newly added block. The transaction information of the newly added block includes at least one transaction.
[0067] Exemplarily, the specific event listener 311 checks whether each transaction in the transaction information of the newly added block contains a specific event generated by the business contract until the check of all transaction information is completed. If a specific event exists, the existing specific event is sent to the specific event processor 312 as a target specific event.
[0068] Exemplarily, the specific event listener 311 matches the transaction information of the newly added block with a pre-configured specific event list. If the transaction information of the newly added block matches a specific event in the specific event list, the matched specific event is sent to the specific event handler 312 as a target specific event.
[0069] Furthermore, after receiving the target specific event sent by the specific event listener, the specific event processor 312 is specifically used to parse the target specific event to obtain target specific event information, detect whether the target specific event information includes business data information generated by the business contract, and if it includes business data information generated by the business contract, obtain business data and cross-chain verification information from the business chain according to the business data information, and send the business data and cross-chain verification information to the supervision chain 32.
[0070] Exemplarily, taking the Ethereum smart contract EVM system as an example, ABI (Application Binary Interfaces) is used to define the methods, events and errors that can be interacted in the smart contract, that is, ABI is an encoding and decoding specification used to regulate the interaction between the outside and EVM (Ethereum Virtual Machine), and can also be used for interaction between contracts. When a business contract is called, it is encoded according to the ABI specification requirements and passed to the EVM. When the business contract generates a target specific event according to the template of the business contract, the relevant byte data will be generated in the EVM. The specific event processor 312 decodes the relevant byte data in the EVM corresponding to the target specific event through the ABI specification, thereby completing the parsing of the target specific event.
[0071] Specifically, the target specific event information includes the specific event type and the business data information associated with the specific event. The specific event processor 312 obtains business data and cross-chain verification information from the business chain according to the business data information, specifically: obtains business data from the business chain according to the business data information, and obtains cross-chain verification information through the business chain block information interface according to the height information of the newly added block. The cross-chain verification information includes the current block information (i.e., the newly added block information), transaction information, block consensus status, and business data, etc.
[0072] The supervision chain 32 is used to perform cross-chain verification on the business data based on the cross-chain verification information. If the cross-chain verification passes, the business data is stored on the supervision chain; if the cross-chain verification fails, a system log is generated to facilitate the staff to view the relevant information of the business data that failed the cross-chain verification.
[0073] The custody chain 32 performs cross-chain verification on the business data based on the cross-chain verification information, including block verification and transaction verification. Block verification is used to verify the legitimacy of the newly added blocks in the business chain, and transaction verification is used to verify whether the business data is stored in the business chain.
[0074] Specifically, after receiving the business data and cross-chain verification information, the supervision chain 32 calls the supervision contract to verify the legitimacy of the newly added blocks of the business chain according to the cross-chain verification information, and verifies whether the business data is stored in the business chain according to the cross-chain verification information to perform cross-chain verification. Among them, the legitimacy verification of the newly added blocks is determined by the heterogeneous business chain consensus algorithm. For CFT consensus algorithms, the legitimacy of the newly added blocks is verified based on the characteristics of the blockchain chain structure and block continuity, that is, verifying that the newly added blocks are linked to the longest chain in sequence; for BFT consensus algorithms, the legitimacy of the block is judged based on the number of consensus signatures of the block, that is, in a block, a sufficient number of consensus signatures can confirm the legitimacy of the block. After the block legitimacy verification is passed, the existence of the transactions contained in the newly added block is verified, and the verification of transactions is also carried out by different heterogeneous business chains in different ways, including: for business chains that use merkle proofs, the merkle root contained in the block header and the unique merkle path corresponding to the transaction are used to verify the existence of any transaction in the block; for business chains that do not use merkle proofs, it is necessary to rely on all transactions in the newly added block to be assembled together and the root hash in the block header is calculated to complete the transaction existence verification.
[0075] The embodiment of the present invention also provides a business processing method, which is applied to the business chain in the supervision system. Figure 3 The process diagram of the business processing method shown in the figure specifically includes the following steps:
[0076] S301: receiving a business contract call request sent by the business system during the business handling process;
[0077] S302: According to the business contract call request, call the pre-created business contract, perform business processing, and generate a target specific event, so that the supervision chain system monitors the business contract on the business chain to generate a target specific event, obtains the business data and cross-chain verification information corresponding to the target specific event, calls the pre-created supervision contract on the supervision chain, and performs cross-chain verification on the business data according to the cross-chain verification information. If the cross-chain verification passes, the business data is stored on the supervision chain.
[0078] Further, an optional implementation of S302 in the above embodiment includes the following steps:
[0079] A1: Call the business contract according to the call parameters carried in the business contract call request, and generate target specific events and business data information associated with the target specific events according to various specific events defined in the business contract template and the data standards corresponding to the various specific events;
[0080] A2: Store the target specific event in the form of a transaction on the business chain and construct a block corresponding to the target specific event.
[0081] For the specific implementation of the above business processing method, please refer to the specific functional implementation of the business chain in the above embodiment, which will not be repeated here.
[0082] The present embodiment discloses a business processing method, in which a business chain automatically generates a target specific event by calling a pre-created business contract. The entire process is not subject to human intervention, cannot be tampered with, is verifiable, and is traceable, thereby ensuring the invariance of data in the business processing process, the authenticity of the data source, and the accuracy of the data.
[0083] The embodiment of the present invention also discloses a cross-chain supervision method, which is applied to a chain of supervision system in a supervision system. Figure 4 The schematic diagram of the cross-chain supervision method shown in FIG. 1 includes the following steps:
[0084] S401: After monitoring the business contract on the business chain to generate a target specific event, obtain the business data and cross-chain verification information corresponding to the target specific event, wherein the business chain calls the business contract pre-created by the business chain after receiving the business contract call request sent by the business system during the business handling process, performs business processing, and generates a target specific event;
[0085] S402: Call the pre-created supervision contract to perform cross-chain verification on the business data according to the cross-chain verification information;
[0086] S403: If the cross-chain verification is passed, the business data is stored on the supervision chain.
[0087] For the specific implementation of the above cross-chain supervision method, please refer to the specific functional implementation of the supervision chain system in the above embodiment, which will not be repeated here.
[0088] This embodiment discloses a cross-chain supervision method. After monitoring a business contract on a business chain to generate a target specific event, the supervision chain system obtains the business data and cross-chain verification information corresponding to the target specific event, and automatically performs cross-chain verification on the business data by calling a supervision contract pre-created on the supervision chain. The entire process is not subject to human intervention, cannot be tampered with, is verifiable, and traceable, thereby ensuring data immutability, data source authenticity, data accuracy, and timeliness during the cross-chain supervision process.
[0089] Based on the service processing method disclosed in the above embodiment, this embodiment correspondingly discloses a service processing device, including:
[0090] A request receiving unit, used to receive a business contract call request sent by the business system during the business handling process;
[0091] The contract calling unit is used to call a pre-created business contract according to the business contract calling request, perform business processing, and generate a target specific event, so that after the supervision chain system monitors the business contract on the business chain to generate the target specific event, it obtains the business data and cross-chain verification information corresponding to the target specific event, calls the supervision contract created in advance on the supervision chain, performs cross-chain verification on the business data according to the cross-chain verification information, and if the cross-chain verification passes, the business data is stored on the supervision chain.
[0092] In some embodiments, the contract calling unit is specifically used to call the business contract according to the calling parameters carried by the business contract calling request, generate the target specific event and the business data information associated with the target specific event according to the various specific events defined in the template of the business contract and the data standards corresponding to the various specific events; store the target specific event in the business chain in the form of a transaction, and construct a block corresponding to the target specific event.
[0093] Based on the cross-chain supervision method disclosed in the above embodiment, this embodiment correspondingly discloses a cross-chain supervision device, including:
[0094] An information acquisition unit is used to acquire the business data and cross-chain verification information corresponding to the target specific event after monitoring the business contract on the business chain to generate the target specific event, wherein the business chain calls the business contract pre-created by the business chain after receiving the business contract call request sent by the business system during the business handling process, performs business processing, and generates the target specific event;
[0095] A cross-chain verification unit, used to call a pre-created supervision contract and perform cross-chain verification on the business data according to the cross-chain verification information;
[0096] The data storage unit is used to store business data on the supervision chain if the cross-chain verification is passed.
[0097] The embodiment of the present invention further discloses an electronic device, which may be a server or a server cluster. The electronic device disclosed in this embodiment includes a memory, a processor, and a computer program stored in the memory, and the processor executes the computer program to implement the business processing method described in any one of the implementations in the above embodiments or the cross-chain supervision method described in any one of the implementations in the above embodiments.
[0098] An embodiment of the present invention also discloses a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, it implements the business processing method described in any one of the implementation methods in the above embodiments or the cross-chain supervision method described in any one of the implementation methods in the above embodiments.
[0099] An embodiment of the present invention also discloses a computer program product, including a computer program, which, when executed by a processor, implements the business processing method described in any one of the implementations in the above embodiments or the cross-chain supervision method described in any one of the implementations in the above embodiments.
[0100] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.
[0101] It should also be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.
[0102] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented directly using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
[0103] The above-mentioned embodiments may be combined arbitrarily. For the above description of the disclosed embodiments, the features recorded in the embodiments in this specification may be replaced or combined with each other, so that professional and technical personnel in this field can implement or use the present application.
[0104] The above description of the disclosed embodiments enables one skilled in the art to implement or use the present invention. Various modifications to these embodiments will be apparent to one skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A supervision system, characterized in that: include: business systems, business chains and chain of custody systems; The business system is used to send a business contract call request to the business chain during the business handling process; The business chain is used to respond to the business contract call request, call the business contract according to the call parameters carried in the business contract call request, generate a target specific event and business data information associated with the target specific event according to various specific events defined in the template of the business contract and data standards corresponding to various specific events, and store the target specific event in the business chain in the form of a transaction; The custody chain system is used to monitor the business contract on the business chain to generate the target specific event, obtain the business data and cross-chain verification information corresponding to the target specific event, call the pre-created supervision contract on the custody chain, and perform cross-chain verification on the business data according to the cross-chain verification information. If the cross-chain verification passes, the business data is stored on the custody chain, and the cross-chain verification information includes new block information, transaction information, block consensus status and business data; Wherein, the chain of custody system includes cross-chain middleware and chain of custody; The cross-chain middleware includes a specific event listener and a specific event handler; The specific event listener stores the block height of the business chain, and is used to obtain the current block height of the business chain through the block information interface of the business chain. If the current block height is greater than the stored block height, it is determined that a new block is generated on the business chain, and the transaction information in the new block is obtained. The transaction information of the new block is detected and matched with the pre-configured specific event list. If the transaction information of the new block matches a specific event in the specific event list, the matched specific event is sent to the specific event processor as a target specific event; The specific event processor is used to obtain the business data and cross-chain verification information corresponding to the target specific event, and send the business data and the cross-chain verification information to the supervision chain.
2. The monitoring system according to claim 1, characterized in that: The specific event processor is specifically used to parse the target specific event to obtain target specific event information, detect whether the target specific event information includes the business data information generated by the business contract, and if it includes the business data information generated by the business contract, obtain business data and cross-chain verification information from the business chain according to the business data information, and send the business data and the cross-chain verification information to the supervision chain.
3. The monitoring system according to claim 1, characterized in that: The supervision chain is used to perform cross-chain verification on the business data according to the cross-chain verification information. If the cross-chain verification passes, the business data is stored on the supervision chain; if the cross-chain verification fails, a system log is generated.
4. The monitoring system according to claim 1, characterized in that: The supervision chain is specifically used to call the supervision contract to verify the legitimacy of the newly added block of the business chain according to the cross-chain verification information, and to verify whether the business data is stored in the business chain according to the cross-chain verification information, so as to perform cross-chain verification.
5. A business processing method, characterized in that: A service chain applied to a supervision system, wherein the supervision system further comprises a service system and a supervision chain system, and the service processing method comprises: Receiving a business contract call request sent by the business system during the business handling process; The business contract is called according to the call parameters carried by the business contract call request, and a target specific event and business data information associated with the target specific event are generated according to various specific events defined in the template of the business contract and the data standards corresponding to various specific events, and the target specific event is recorded in the business chain in the form of a transaction, so that after the supervision chain system monitors the business contract on the business chain to generate the target specific event, it obtains the business data and cross-chain verification information corresponding to the target specific event, calls the supervision contract created in advance on the supervision chain, and performs cross-chain verification on the business chain according to the cross-chain verification information. If the cross-chain verification passes, the business data is recorded in the supervision chain, and the cross-chain verification information includes newly added block information, transaction information, block consensus status and business data; Wherein, the chain of custody system includes cross-chain middleware and chain of custody; The cross-chain middleware includes a specific event listener and a specific event handler; The specific event listener stores the block height of the business chain, and is used to obtain the current block height of the business chain through the block information interface of the business chain. If the current block height is greater than the stored block height, it is determined that a new block is generated on the business chain, and the transaction information in the new block is obtained. The transaction information of the new block is detected and matched with the pre-configured specific event list. If the transaction information of the new block matches a specific event in the specific event list, the matched specific event is sent to the specific event processor as a target specific event; The specific event processor is used to obtain the business data and cross-chain verification information corresponding to the target specific event, and send the business data and the cross-chain verification information to the supervision chain.
6. A cross-chain supervision method, characterized in that: Applied to a chain of custody system in a supervision system, the supervision system also includes a business system and a business chain, and the cross-chain supervision method includes: After monitoring the business contract on the business chain to generate a target specific event, the business data and cross-chain verification information corresponding to the target specific event are obtained, wherein, after receiving the business contract call request sent by the business system during the business handling process, the business chain calls the business contract according to the call parameters carried by the business contract call request, generates the target specific event and the business data information associated with the target specific event according to the various specific events defined in the template of the business contract and the data standards corresponding to the various specific events, and stores the target specific event in the form of a transaction on the business chain; Calling a pre-created supervision contract to perform cross-chain verification on the business data according to the cross-chain verification information; If the cross-chain verification is passed, the business data is stored on the supervision chain. The cross-chain verification information includes the newly added block information, transaction information, block consensus status and business data; Wherein, the chain of custody system includes cross-chain middleware and chain of custody; The cross-chain middleware includes a specific event listener and a specific event handler; The specific event listener stores the block height of the business chain, and is used to obtain the current block height of the business chain through the block information interface of the business chain. If the current block height is greater than the stored block height, it is determined that a new block is generated on the business chain, and the transaction information in the new block is obtained. The transaction information of the new block is detected and matched with the pre-configured specific event list. If the transaction information of the new block matches a specific event in the specific event list, the matched specific event is sent to the specific event processor as a target specific event; The specific event processor is used to obtain the business data and cross-chain verification information corresponding to the target specific event, and send the business data and the cross-chain verification information to the supervision chain.
Citation Information
Patent Citations
Cross-block-chain business service implementation method, device and system
CN115439249A