Cross-regional transaction information verification method, system, device and medium

Through on-chain and off-chain collaborative verification, cross-regional transaction information verification is achieved using forwarder contracts and oracles, which solves the anonymity and cross-regional verification problems of transaction verification in traditional blockchain systems, and improves the accuracy and efficiency of transaction information verification.

CN120235626BActive Publication Date: 2025-08-22LINKLOGIS DIGITAL TECH GRP CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202510719917.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-05-30
Publication Date
2025-08-22
Estimated Expiration
2045-05-30

AI Technical Summary

Technical Problem

Transaction verification in traditional blockchain systems is anonymous and censorship-resistant, which is difficult to meet the requirements of financial regulators for transaction compliance. The existing technology cannot accurately verify transaction information across regions, resulting in inefficiency and high cost.

Method used

The cross-regional transaction information verification method is adopted, through the collaboration of the on-chain verification layer, off-chain verification layer and transaction execution layer, and the forwarder contract, oracle and standardized smart contract strategy library, it realizes pre-chain verification and in-process offline verification, and supports dynamic verification strategies and cross-regional verification.

Benefits of technology

It improves the accuracy and efficiency of transaction information verification, solves the problems of on-chain verification delay and high cost, and realizes the processing of complex verification logic and high scalability of cross-region transactions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120235626B_ABST
    Figure CN120235626B_ABST
Patent Text Reader

Abstract

The present invention relates to the field of blockchain technology and provides a cross-regional transaction information verification method, system, device and medium. On the one hand, the present invention realizes the interaction of on-chain and off-chain information based on an oracle, provides an opportunity for intervention for off-chain in-process verification, thereby improving the accuracy of transaction information verification based on the collaborative verification of on-chain and off-chain, and solving the problem of the need to adopt a complex rollback mechanism for off-chain supervision due to the irreversibility of blockchain transactions on the chain; on the other hand, the present invention realizes cross-regional transaction information verification through the interaction between the constructed standardized smart contract policy library and the on-chain verification layer, the off-chain verification layer and the transaction execution layer. It has high scalability and can cope with dynamic changes in verification strategies.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of blockchain technology, and in particular to a method, system, device and medium for verifying cross-regional transaction information. Background Art

[0002] Transactions in traditional blockchain systems are anonymous and censorship-resistant, making it difficult to meet the requirements of financial regulators for transaction compliance verification.

[0003] Specifically, the transaction verification in the existing technology mainly has the following problems:

[0004] (1) Inadequacy: Existing solutions typically perform simple screening through on-chain rule engines, but are unable to handle complex compliance scenarios that require off-chain manual review;

[0005] (2) Conflict between efficiency and compliance: Existing on-chain compliance solutions require embedding complete verification logic on the chain, resulting in high transaction delays, a surge in gas costs, and an inability to adapt to dynamic verification rules;

[0006] (3) Lag: Existing technologies mainly rely on post-verification, which is delayed, and blockchain contracts do not have the ability to adapt to adjustments to the verification framework;

[0007] (4) Fragmentation of the verification framework: Compliance policies vary greatly across regions, and the existing on-chain verification mechanism is unable to cope with verification requirements in different regions, resulting in low cross-regional circulation efficiency and the need to develop multiple verification-specific versions for the same financial product;

[0008] (5) High cost of changing the verification framework: Existing verification schemes generally use static rule engines, which makes it costly to modify on-chain contracts and difficult to cope with changes in dynamic verification strategies;

[0009] (6) Low efficiency of single-layer verification: Pure on-chain verification is limited by the computing power of smart contracts and cannot handle complex risk control logic; pure off-chain verification loses the transparency advantage of blockchain;

[0010] (7) Lack of transaction status management: Existing blockchain transactions are irreversible once they are on the chain, and lack an intermediate state of "pending review", resulting in the need for a complex rollback mechanism when the off-chain verification system intervenes. Summary of the Invention

[0011] In view of the above, it is necessary to provide a cross-regional transaction information verification method, system, device and medium, aiming to solve the problem of being unable to accurately verify transaction information across regions.

[0012] A cross-regional transaction information verification method is applied to a cross-regional transaction information verification system. The cross-regional transaction information verification system includes an on-chain verification layer, an off-chain verification layer, and a transaction execution layer. The on-chain verification layer is deployed with a forwarder contract and verification contracts in different regions. The off-chain verification layer includes an oracle and off-chain verification systems in different regions. The cross-regional transaction information verification method includes:

[0013] When the forwarder contract receives a transaction request, it obtains the transaction information and region information carried in the transaction request, and retrieves the target verification strategy from the pre-built standardized smart contract strategy library based on the region information;

[0014] The forwarder contract calls the target verification contract according to the target verification strategy to perform pre-chain verification on the transaction information;

[0015] When the transaction information passes the pre-on-chain verification, the forwarder contract marks the transaction information, stores the marked transaction information in the transaction temporary queue, and generates an in-process off-chain verification event based on the marked transaction information;

[0016] When the oracle monitors the in-process off-chain verification event, the oracle determines the target off-chain verification system based on the in-process off-chain verification event and pushes the transaction information to the target off-chain verification system;

[0017] The target off-chain verification system performs an in-process off-chain verification on the transaction information to obtain a target verification result, and returns the target verification result to the oracle;

[0018] The oracle generates a certificate of the target verification result, obtains the transaction identifier in the transaction information, packages the transaction identifier and the target verification result according to the certificate to obtain the data to be processed, and calls the forwarder contract to parse the data to be processed to obtain the parsing result;

[0019] The transaction execution layer processes the transaction information according to the analysis result.

[0020] According to a preferred embodiment of the present invention, the step of retrieving a target verification strategy from a pre-built standardized smart contract strategy library based on the regional information includes:

[0021] The forwarder contract obtains the dynamic routing registry stored in itself;

[0022] The forwarder contract uses the region information to query the target routing information in the dynamic routing registry;

[0023] The forwarder contract retrieves the target verification policy from the standardized smart contract policy library according to the target routing information;

[0024] Among them, the forwarder contract adopts the EIP-2535 proxy mode, which supports pluggable configuration of verification strategies for different regions.

[0025] According to a preferred embodiment of the present invention, the oracle determines the target off-chain verification system based on the in-process off-chain verification event, and pushes the transaction information to the target off-chain verification system, including:

[0026] The oracle obtains the target identifier of the in-flight off-chain verification event;

[0027] The oracle obtains an identifier search engine corresponding to the target identifier;

[0028] The oracle calls the identifier search engine to dynamically load the target interaction protocol template and target application program interface corresponding to the target identifier;

[0029] The oracle sends the transaction information to the target application program interface according to the target interaction protocol template, and pushes the transaction information to the target off-chain verification system through the target application program interface.

[0030] According to a preferred embodiment of the present invention, the target off-chain verification system performs an in-process off-chain verification on the transaction information to obtain a target verification result, including:

[0031] The target off-chain verification system parses the transaction information to obtain the transaction content;

[0032] The target off-chain verification system loads the verification rules and verifies the transaction content according to the verification rules.

[0033] According to a preferred embodiment of the present invention, the oracle generates the proof of the target verification result including:

[0034] The oracle digitally signs and encrypts the target verification result to obtain the proof.

[0035] According to a preferred embodiment of the present invention, the transaction execution layer processes the transaction information according to the parsing result, including:

[0036] When the parsing result indicates that the transaction information passes verification, the transaction execution layer calls the forwarder contract to forward the transaction information stored in the transaction temporary queue to the target contract to execute the transaction; or

[0037] When the parsing result is that the transaction information fails to pass the verification, the transaction execution layer closes the transaction corresponding to the transaction information and marks the transaction as a failed state.

[0038] According to a preferred embodiment of the present invention, the method further includes:

[0039] When a verification policy for a newly added region is detected, a new policy is deployed in the standardized smart contract policy library according to the verification policy for the newly added region, and routing information of the new policy is broadcast.

[0040] A cross-regional transaction information verification system, comprising an on-chain verification layer, an off-chain verification layer, and a transaction execution layer. The on-chain verification layer is deployed with a forwarder contract and verification contracts in different regions. The off-chain verification layer includes an oracle and off-chain verification systems in different regions. The cross-regional transaction information verification system includes:

[0041] The forwarder contract is configured to obtain the transaction information and region information carried in the transaction request when the forwarder contract receives the transaction request, and retrieve the target verification strategy from a pre-built standardized smart contract strategy library based on the region information;

[0042] The forwarder contract is further configured to call the target verification contract according to the target verification strategy to perform a pre-on-chain verification on the transaction information;

[0043] The forwarder contract is further configured to mark the transaction information when it passes the pre-on-chain verification, store the marked transaction information in a temporary transaction queue, and generate an in-process off-chain verification event based on the marked transaction information;

[0044] The oracle is configured to determine a target off-chain verification system based on the off-chain verification event when the oracle monitors the off-chain verification event, and push the transaction information to the target off-chain verification system;

[0045] The target off-chain verification system is used to perform an in-process off-chain verification on the transaction information to obtain a target verification result, and return the target verification result to the oracle;

[0046] The oracle is further configured to generate a certificate of the target verification result, obtain a transaction identifier in the transaction information, package the transaction identifier and the target verification result according to the certificate to obtain data to be processed, and call the forwarder contract to parse the data to be processed to obtain a parsing result;

[0047] The transaction execution layer is used to process the transaction information according to the analysis result.

[0048] A computer device, comprising:

[0049] a memory storing at least one instruction; and

[0050] The processor executes the instructions stored in the memory to implement the cross-region transaction information verification method.

[0051] A computer-readable storage medium stores at least one instruction, and the at least one instruction is executed by a processor in a computer device to implement the cross-regional transaction information verification method.

[0052] It can be seen from the above technical solutions that, on the one hand, the present invention realizes the interaction of on-chain and off-chain information based on the oracle, provides an opportunity for intervention for off-chain in-process verification, thereby improving the accuracy of transaction information verification based on the collaborative verification of on-chain and off-chain, and at the same time solves the problem of the need to adopt a complex rollback mechanism for off-chain supervision due to the irreversibility of blockchain transactions on the chain; on the other hand, the present invention realizes cross-regional transaction information verification through the interaction between the constructed standardized smart contract policy library and the on-chain verification layer, off-chain verification layer, and transaction execution layer. It has high scalability and can cope with dynamic changes in verification strategies. BRIEF DESCRIPTION OF THE DRAWINGS

[0053] Figure 1 It is a flow chart of a preferred embodiment of the cross-regional transaction information verification method of the present invention.

[0054] Figure 2 It is a functional module diagram of a preferred embodiment of the cross-regional transaction information verification system of the present invention.

[0055] Figure 3 It is a structural diagram of a computer device of a preferred embodiment of the present invention for implementing a cross-regional transaction information verification method. DETAILED DESCRIPTION

[0056] In order to make the objectives, technical solutions and advantages of the present invention more clear, the present invention is described in detail below with reference to the accompanying drawings and specific embodiments.

[0057] like Figure 1 FIG. 1 is a flow chart of a preferred embodiment of the cross-regional transaction information verification method of the present invention. The order of the steps in the flow chart can be changed according to different requirements, and some steps can be omitted.

[0058] The cross-regional transaction information verification method is applied to one or more computer devices, which are devices that can automatically perform numerical calculations and / or information processing according to pre-set or stored instructions. Their hardware includes but is not limited to microprocessors, application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), digital signal processors (DSPs), embedded devices, etc.

[0059] The computer device may be any electronic product that can perform human-computer interaction with a user, such as a personal computer, a tablet computer, a smart phone, a personal digital assistant (PDA), a game console, an interactive network television (IPTV), a smart wearable device, etc.

[0060] The computer device may also include a network device and / or a user device, wherein the network device includes, but is not limited to, a single network server, a server group consisting of multiple network servers, or a cloud based on cloud computing consisting of a large number of hosts or network servers.

[0061] The server can be an independent server or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (CDNs), and big data and artificial intelligence platforms.

[0062] Among them, Artificial Intelligence (AI) is the theory, method, technology and application system that uses digital computers or machines controlled by digital computers to simulate, extend and expand human intelligence, perceive the environment, acquire knowledge and use knowledge to obtain the best results.

[0063] Fundamental AI technologies generally include sensors, dedicated AI chips, cloud computing, distributed storage, big data processing, operating / interaction systems, and mechatronics. AI software technologies primarily encompass computer vision, robotics, biometrics, speech processing, natural language processing, and machine learning / deep learning.

[0064] The network where the computer device is located includes but is not limited to the Internet, wide area network, metropolitan area network, local area network, virtual private network (VPN), etc.

[0065] The cross-regional transaction information verification method is applied to a cross-regional transaction information verification system. The cross-regional transaction information verification system includes an on-chain verification layer, an off-chain verification layer, and a transaction execution layer. The on-chain verification layer deploys a forwarder contract and verification contracts in different regions. The off-chain verification layer includes an oracle and off-chain verification systems in different regions.

[0066] The on-chain verification layer is used to perform pre-on-chain verification and trigger off-chain verification during the event.

[0067] The off-chain verification layer is used to perform in-process off-chain verification;

[0068] The transaction execution layer is used to execute transactions according to different verification results.

[0069] Specifically, the cross-region transaction information verification method includes:

[0070] S10, when the forwarder contract receives a transaction request, the forwarder contract obtains the transaction information and regional information carried by the transaction request, and calls the target verification strategy from the pre-built standardized smart contract strategy library according to the regional information.

[0071] In this embodiment, the forwarder contract is a contract used to forward transactions or messages in the field of blockchain smart contracts. It is an entry contract for transaction information and is used to maintain the transaction life cycle of the on-chain and off-chain collaborative transaction architecture.

[0072] In this embodiment, the transaction information may include, but is not limited to: transaction parties, transaction amount, etc.

[0073] In this embodiment, the geographical information refers to the place where the transaction is performed, and the transaction must meet local verification requirements.

[0074] In this embodiment, the step of retrieving a target verification strategy from a pre-built standardized smart contract strategy library based on the regional information includes:

[0075] The forwarder contract obtains the dynamic routing registry stored in itself;

[0076] The forwarder contract uses the region information to query the target routing information in the dynamic routing registry;

[0077] The forwarder contract retrieves the target verification policy from the standardized smart contract policy library according to the target routing information;

[0078] Among them, the forwarder contract adopts the EIP-2535 (EIP - 2535 Diamond Proxy Pattern, Ethereum Improvement Proposal 2535 Diamond Proxy Pattern) proxy mode, which supports pluggable configuration of verification strategies for different regions.

[0079] The EIP-2535 proxy mode solves the problem of contract size limitations on the Ethereum network. By breaking down large contracts into multiple small aspect contracts, each aspect contract can be deployed and managed independently, breaking the limitation of single contract size and allowing developers to build more complex and feature-rich smart contracts.

[0080] The EIP-2535 proxy mode can upgrade, replace, or delete functions of a certain aspect individually without affecting the functions of other parts, making contract upgrades more flexible and controllable, and facilitating code maintenance and management.

[0081] Among them, the standardized smart contract policy library is used to store verification policies for different regions. Through the dynamic routing registry, the verification policies corresponding to different regional information can be indexed in the standardized smart contract policy library, solving the problem of being unable to verify transactions across regions.

[0082] Through the above embodiments, verification strategies for different regions can be called in a targeted manner through a pre-built standardized smart contract strategy library to meet transaction verification requirements in different regions.

[0083] S11, the forwarder contract calls the target verification contract according to the target verification strategy to perform pre-on-chain verification on the transaction information.

[0084] For example, the target verification contract may include on-chain address verification, qualification verification, etc. For example, compliance checks can be performed by retrieving digital identities.

[0085] By conducting pre-transaction on-chain verification, preventive measures can be taken before a transaction occurs, thereby identifying and avoiding potential risks in advance.

[0086] In addition, the chain can achieve millisecond-level response and high verification efficiency.

[0087] S12. When the transaction information passes the pre-on-chain verification, the forwarder contract marks the transaction information, stores the marked transaction information in the transaction temporary queue, and generates an in-process off-chain verification event based on the marked transaction information.

[0088] In this embodiment, the verification result of the pre-on-chain verification can be identified by a mark. For example, when the transaction information passes the pre-on-chain verification, the forwarder contract can mark the transaction information as "pending review".

[0089] In this embodiment, the transaction temporary queue is used to temporarily store transaction information that has passed the pre-on-chain verification, so that subsequent operations can be performed based on the verification results of the in-process off-chain verification.

[0090] In this embodiment, after generating the in-process off-chain verification event based on the marked transaction information, the forwarder contract notifies the oracle of the in-process off-chain verification event to prompt the oracle to proceed with subsequent verification tasks.

[0091] S13. When the oracle monitors the in-process off-chain verification event, the oracle determines the target off-chain verification system based on the in-process off-chain verification event and pushes the transaction information to the target off-chain verification system.

[0092] This embodiment uses the oracle to provide blockchain smart contracts with data and information from the outside world, thereby enabling interaction between smart contracts and off-chain information and providing an opportunity for intervention for off-chain verification during the process.

[0093] In this embodiment, the oracle determines the target off-chain verification system based on the in-process off-chain verification event and pushes the transaction information to the target off-chain verification system, including:

[0094] The oracle obtains the target identifier of the in-flight off-chain verification event;

[0095] The oracle obtains an identifier search engine corresponding to the target identifier;

[0096] The oracle calls the identifier search engine to dynamically load the target interaction protocol template and target application program interface corresponding to the target identifier;

[0097] The oracle sends the transaction information to the target application program interface according to the target interaction protocol template, and pushes the transaction information to the target off-chain verification system through the target application program interface.

[0098] Through the above embodiments, transaction information can be processed in a targeted manner according to the verification requirements of different regions, and the corresponding interface can be called, so that the corresponding off-chain verification system can be called in a targeted manner to assist in the off-chain verification during the process.

[0099] S14, the target off-chain verification system performs an in-process off-chain verification on the transaction information to obtain a target verification result, and returns the target verification result to the oracle.

[0100] In this embodiment, the target off-chain verification system performs on-chain verification on the transaction information to obtain a target verification result including:

[0101] The target off-chain verification system parses the transaction information to obtain the transaction content;

[0102] The target off-chain verification system loads the verification rules and verifies the transaction content according to the verification rules.

[0103] Through the above embodiments, real-time monitoring and intervention can be carried out during the transaction execution process, thereby ensuring that the operation is legal and compliant, and solving the problem that on-chain verification cannot handle complex verification logic.

[0104] Pre-transaction on-chain verification and in-transaction off-chain verification are aimed at risk control and compliance management at different stages of the transaction. This embodiment is based on a blockchain compliance transaction flow architecture with on-chain and off-chain collaborative verification. By adding intermediate transaction status at the contract level, it provides an opportunity for in-transaction off-chain verification to intervene, thereby achieving comprehensive verification of transaction information and improving verification accuracy.

[0105] S15, the oracle generates a certificate of the target verification result, and obtains the transaction identifier in the transaction information, packages the transaction identifier and the target verification result according to the certificate to obtain the data to be processed, and calls the forwarder contract to parse the data to be processed to obtain the parsing result.

[0106] In this embodiment, the oracle generates the proof of the target verification result including:

[0107] The oracle digitally signs and encrypts the target verification result to obtain the proof.

[0108] Through the above embodiments, the authenticity of the result can be ensured by generating a certificate.

[0109] S16: The transaction execution layer processes the transaction information according to the analysis result.

[0110] In this embodiment, the transaction execution layer processes the transaction information according to the parsing result, including:

[0111] When the parsing result indicates that the transaction information passes verification, the transaction execution layer calls the forwarder contract to forward the transaction information stored in the transaction temporary queue to the target contract to execute the transaction; or

[0112] When the parsing result is that the transaction information fails to pass the verification, the transaction execution layer closes the transaction corresponding to the transaction information and marks the transaction as a failed state.

[0113] Through the above embodiments, different response measures can be taken according to different off-chain verification results. Valid transactions that pass the verification are sent to the corresponding contract for execution, and invalid transactions that fail the verification are closed, thereby improving the security of the transaction.

[0114] In this embodiment, the method further includes:

[0115] When a verification policy for a newly added region is detected, a new policy is deployed in the standardized smart contract policy library according to the verification policy for the newly added region, and routing information of the new policy is broadcast.

[0116] Through the above embodiments, hot update of the newly added region verification strategy can be achieved.

[0117] This embodiment can be applied to a variety of transaction scenarios. For example, in the case of the transfer of accounts receivable equity in supply chain finance, when an enterprise initiates a transaction request to transfer the accounts receivable equity, it specifies the receiving enterprise and the transfer amount. After the on-chain verification contract verifies that the addresses of both parties are compliant, the transaction is added to the "pending review" transaction queue. The oracle monitors the event and pushes the transaction content to the off-chain verification system for analysis (such as detecting abnormal transaction behavior through machine learning) to generate the verification results. The oracle sends the transaction that passes the off-chain verification. The on-chain contract verifies the verification and executes the final transaction, transferring the ownership of the accounts receivable equity to the receiving enterprise.

[0118] It can be seen from the above technical solutions that, on the one hand, the present invention realizes the interaction of on-chain and off-chain information based on the oracle, provides an opportunity for intervention for off-chain in-process verification, thereby improving the accuracy of transaction information verification based on the collaborative verification of on-chain and off-chain, and at the same time solves the problem of the need to adopt a complex rollback mechanism for off-chain supervision due to the irreversibility of blockchain transactions on the chain; on the other hand, the present invention realizes cross-regional transaction information verification through the interaction between the constructed standardized smart contract policy library and the on-chain verification layer, off-chain verification layer, and transaction execution layer. It has high scalability and can cope with dynamic changes in verification strategies.

[0119] like Figure 2Figure 2 shows a functional block diagram of a preferred embodiment of the cross-regional transaction information verification system of the present invention. The cross-regional transaction information verification system 11 comprises an on-chain verification layer 110, an off-chain verification layer 111, and a transaction execution layer 112. The on-chain verification layer deploys a forwarder contract 1101 and verification contracts in different regions. The off-chain verification layer 111 includes an oracle 1111 and off-chain verification systems in different regions (including a target off-chain verification system 1112). As used herein, a module / unit refers to a series of computer program segments that can be executed by a processor and perform fixed functions, and are stored in a memory. The functions of each module / unit in this embodiment will be described in detail in subsequent embodiments.

[0120] The forwarder contract 1101 is configured to obtain the transaction information and region information carried in the transaction request when the forwarder contract 1101 receives the transaction request, and retrieve the target verification strategy from the pre-built standardized smart contract strategy library based on the region information;

[0121] The forwarder contract 1101 is further used to call the target verification contract according to the target verification strategy to perform pre-on-chain verification on the transaction information;

[0122] The forwarder contract 1101 is further configured to mark the transaction information when it passes the pre-on-chain verification, store the marked transaction information in the temporary transaction queue, and generate an in-process off-chain verification event based on the marked transaction information;

[0123] The oracle 1111 is configured to determine a target off-chain verification system 1112 according to the off-chain verification event when the oracle 1111 monitors the off-chain verification event, and push the transaction information to the target off-chain verification system 1112;

[0124] The target off-chain verification system 1112 is used to perform an on-chain verification on the transaction information to obtain a target verification result, and return the target verification result to the oracle 1111;

[0125] The oracle 1111 is further configured to generate a certificate of the target verification result, obtain a transaction identifier in the transaction information, package the transaction identifier and the target verification result according to the certificate to obtain data to be processed, and call the forwarder contract 1101 to parse the data to be processed to obtain a parsing result;

[0126] The transaction execution layer 112 is configured to process the transaction information according to the analysis result.

[0127] It can be seen from the above technical solutions that, on the one hand, the present invention realizes the interaction of on-chain and off-chain information based on the oracle, provides an opportunity for intervention for off-chain in-process verification, thereby improving the accuracy of transaction information verification based on the collaborative verification of on-chain and off-chain, and at the same time solves the problem of the need to adopt a complex rollback mechanism for off-chain supervision due to the irreversibility of blockchain transactions on the chain; on the other hand, the present invention realizes cross-regional transaction information verification through the interaction between the constructed standardized smart contract policy library and the on-chain verification layer, off-chain verification layer, and transaction execution layer. It has high scalability and can cope with dynamic changes in verification strategies.

[0128] like Figure 3 FIG. 1 is a schematic diagram of the structure of a computer device according to a preferred embodiment of the present invention for implementing a cross-regional transaction information verification method.

[0129] The computer device 1 may include a memory 12, a processor 13 and a bus (the arrow in the figure represents the bus), and may also include a computer program stored in the memory 12 and executable on the processor 13, such as a cross-regional transaction information verification program.

[0130] Those skilled in the art will understand that the schematic diagram is merely an example of the computer device 1 and does not constitute a limitation on the computer device 1. The computer device 1 may have either a bus structure or a star structure. The computer device 1 may also include more or less other hardware or software than shown in the figure, or a different arrangement of components. For example, the computer device 1 may also include input and output devices, network access devices, etc.

[0131] It should be noted that the computer device 1 is only an example. Other existing or future electronic products that are suitable for the present invention should also be included in the scope of protection of the present invention and included here by reference.

[0132] The memory 12 includes at least one type of readable storage medium, including flash memory, a removable hard disk, a multimedia card, a card-type memory (e.g., SD or DX memory), a magnetic memory, a magnetic disk, an optical disk, etc. In some embodiments, the memory 12 may be an internal storage unit of the computer device 1, such as a removable hard disk of the computer device 1. In other embodiments, the memory 12 may also be an external storage device of the computer device 1, such as a plug-in removable hard disk, a Smart Media Card (SMC), a Secure Digital (SD) card, a flash memory card, etc. Furthermore, the memory 12 may include both an internal storage unit of the computer device 1 and an external storage device. The memory 12 can be used not only to store application software installed in the computer device 1 and various types of data, such as the code for the cross-regional transaction information verification program, but also to temporarily store data that has been output or is about to be output.

[0133] In some embodiments, processor 13 may be comprised of an integrated circuit, such as a single packaged integrated circuit or multiple packaged integrated circuits with the same or different functions, including one or more central processing units (CPUs), microprocessors, digital processing chips, graphics processors, and combinations of various control chips. Processor 13 is the control core (control unit) of computer device 1, connecting the various components of computer device 1 using various interfaces and circuits. It executes programs or modules stored in memory 12 (e.g., executing a cross-regional transaction information verification program) and accesses data stored in memory 12 to perform various functions and process data.

[0134] The processor 13 executes the operating system of the computer device 1 and various installed applications. The processor 13 executes the applications to implement the steps in the above-mentioned embodiments of the cross-regional transaction information verification method, for example Figure 1 Steps shown.

[0135] Exemplarily, the computer program may be divided into one or more modules / units, which are stored in the memory 12 and executed by the processor 13 to implement the present invention. The one or more modules / units may be a series of computer-readable instruction segments capable of performing specific functions, which are used to describe the execution process of the computer program in the computer device 1. For example, the computer program may be divided into an on-chain verification layer 110, an off-chain verification layer 111, a transaction execution layer 112, a forwarder contract 1101, an oracle 1111, and a target off-chain verification system 1112.

[0136] The integrated unit implemented as a software functional module can be stored in a computer-readable storage medium. The software functional module stored in a storage medium includes instructions for causing a computer device (which can be a personal computer, computer equipment, or network device, etc.) or a processor to execute portions of the cross-region transaction information verification method described in various embodiments of the present invention.

[0137] If the modules / units integrated in the computer device 1 are implemented as software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the present invention can also implement all or part of the processes in the above-mentioned method embodiments by instructing relevant hardware devices through a computer program. The computer program can be stored in a computer-readable storage medium. When executed by a processor, the computer program can implement the steps of each of the above-mentioned method embodiments.

[0138] The computer program includes computer program code, which may be in source code form, object code form, executable file, or some intermediate form. The computer-readable medium may include any entity or device capable of carrying the computer program code, recording medium, USB flash drive, mobile hard drive, magnetic disk, optical disk, computer memory, read-only memory (ROM), random access memory, etc.

[0139] Furthermore, the computer-readable storage medium may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function, etc.; the data storage area may store data created according to the use of the blockchain node, etc.

[0140] Blockchain, as used in this article, refers to a novel application model for computer technologies such as distributed data storage, peer-to-peer transmission, consensus mechanisms, and encryption algorithms. Blockchain is essentially a decentralized database, a series of data blocks linked together using cryptographic methods. Each block contains information about a batch of online transactions, used to verify the validity of this information (to prevent counterfeiting) and generate the next block. Blockchain can include the underlying blockchain platform, the platform product and service layer, and the application service layer.

[0141] The bus can be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus. The bus can be divided into address bus, data bus, control bus, etc. For ease of representation, Figure 3 The figure shows that only one straight line is used, but it does not mean that there is only one bus or one type of bus. The bus is configured to realize the connection and communication between the memory 12 and at least one processor 13.

[0142] Although not shown, the computer device 1 may also include a power supply (such as a battery) to power various components. Preferably, the power supply can be logically connected to the at least one processor 13 via a power management device, thereby enabling functions such as charge management, discharge management, and power consumption management through the power management device. The power supply may also include one or more DC or AC power supplies, a recharging device, a power failure detection circuit, a power converter or inverter, a power status indicator, and other arbitrary components. The computer device 1 may also include various sensors, Bluetooth modules, Wi-Fi modules, etc., which will not be further described here.

[0143] Furthermore, the computer device 1 may also include a network interface. Optionally, the network interface may include a wired interface and / or a wireless interface (such as a WI-FI interface, a Bluetooth interface, etc.), which is generally used to establish a communication connection between the computer device 1 and other computer devices.

[0144] Optionally, the computer device 1 may further include a user interface, which may be a display or an input unit (such as a keyboard). Optionally, the user interface may also be a standard wired interface or a wireless interface. Optionally, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, or an OLED (Organic Light-Emitting Diode) touchscreen. The display may also be appropriately referred to as a display screen or display unit, and is used to display information processed by the computer device 1 and to display a visual user interface.

[0145] It should be understood that the embodiment is for illustration only and the scope of the patent application is not limited to this structure.

[0146] It will be understood by those skilled in the art that Figure 3 The structure shown does not constitute a limitation on the computer device 1 , and may include fewer or more components than shown in the figure, or combine certain components, or arrange the components differently.

[0147] Combine Figure 1 The memory 12 in the computer device 1 stores a plurality of instructions to implement a cross-regional transaction information verification method, and the processor 13 can execute the plurality of instructions to implement:

[0148] When the forwarder contract receives a transaction request, it obtains the transaction information and region information carried in the transaction request, and retrieves the target verification strategy from the pre-built standardized smart contract strategy library based on the region information;

[0149] The forwarder contract calls the target verification contract according to the target verification strategy to perform pre-chain verification on the transaction information;

[0150] When the transaction information passes the pre-on-chain verification, the forwarder contract marks the transaction information, stores the marked transaction information in the transaction temporary queue, and generates an in-process off-chain verification event based on the marked transaction information;

[0151] When the oracle monitors the in-process off-chain verification event, the oracle determines the target off-chain verification system based on the in-process off-chain verification event and pushes the transaction information to the target off-chain verification system;

[0152] The target off-chain verification system performs an in-process off-chain verification on the transaction information to obtain a target verification result, and returns the target verification result to the oracle;

[0153] The oracle generates a certificate of the target verification result, obtains the transaction identifier in the transaction information, packages the transaction identifier and the target verification result according to the certificate to obtain the data to be processed, and calls the forwarder contract to parse the data to be processed to obtain the parsing result;

[0154] The transaction execution layer processes the transaction information according to the analysis result.

[0155] Specifically, the specific implementation method of the processor 13 for the above instructions can refer to Figure 1 The description of the relevant steps in the corresponding embodiments will not be repeated here.

[0156] It should be noted that the data involved in this case were all obtained legally. The software tools or components not produced by our company that appear in the embodiments of this application are merely examples and do not represent actual use.

[0157] In the several embodiments provided herein, it should be understood that the disclosed systems, devices, and methods may be implemented in other ways. For example, the device embodiments described above are merely illustrative. For example, the module division is merely a logical functional division, and actual implementation may employ other division methods.

[0158] The present invention can be used in a wide variety of general or special computer system environments or configurations. For example: personal computers, server computers, handheld or portable devices, tablet devices, multiprocessor systems, microprocessor-based systems, set-top boxes, programmable consumer electronics, network PCs, minicomputers, mainframe computers, distributed computing environments including any of the above systems or devices, and the like. The present invention can be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. The present invention can also be practiced in distributed computing environments in which tasks are performed by remote processing devices connected via a communications network. In a distributed computing environment, program modules can be located in local and remote computer storage media, including storage devices.

[0159] The modules described as separate components may or may not be physically separate, and the components shown as modules may or may not be physical units, that is, they may be located in one place or distributed across multiple network elements. Some or all of the modules may be selected to achieve the purpose of the solution of this embodiment according to actual needs.

[0160] In addition, the functional modules in various embodiments of the present invention may be integrated into a single processing unit, each unit may exist physically separately, or two or more units may be integrated into a single unit. The aforementioned integrated units may be implemented in the form of hardware or hardware plus software functional modules.

[0161] It will be apparent to those skilled in the art that the present invention is not limited to the details of the exemplary embodiments described above, and that the present invention can be implemented in other specific forms without departing from the spirit or essential characteristics of the present invention.

[0162] Therefore, the embodiments should be considered in all respects as illustrative and non-restrictive, and the scope of the invention is defined by the appended claims rather than the foregoing description, and all changes that come within the meaning and range of equivalents of the claims are intended to be embraced therein. Any reference to a figure in a claim should not be construed as limiting the claim to which it relates.

[0163] Furthermore, it is clear that the word "comprising" does not exclude other units or steps, and the singular does not exclude the plural. Multiple units or devices described in the present invention may also be implemented by a single unit or device through software or hardware. Terms such as first and second are used to indicate names and do not imply any particular order.

[0164] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and are not limiting. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solutions of the present invention may be modified or replaced by equivalents without departing from the spirit and scope of the technical solutions of the present invention.

Claims

1. A cross-regional transaction information verification method, characterized in that: Applied to a cross-regional transaction information verification system, the cross-regional transaction information verification system includes an on-chain verification layer, an off-chain verification layer, and a transaction execution layer. The on-chain verification layer deploys a forwarder contract and verification contracts in different regions. The off-chain verification layer includes an oracle and off-chain verification systems in different regions. The cross-regional transaction information verification method includes: When the forwarder contract receives a transaction request, the forwarder contract obtains the transaction information and regional information carried by the transaction request, and retrieves the target verification strategy from the pre-built standardized smart contract strategy library based on the regional information; wherein, the retrieving the target verification strategy from the pre-built standardized smart contract strategy library based on the regional information includes: the forwarder contract obtains the dynamic routing registry stored in itself; the forwarder contract uses the regional information to query the target routing information in the dynamic routing registry; the forwarder contract retrieves the target verification strategy from the standardized smart contract strategy library based on the target routing information; wherein, the forwarder contract adopts the EIP-2535 proxy mode, which supports pluggable configuration of verification strategies for different regions; The forwarder contract calls the target verification contract according to the target verification strategy to perform pre-chain verification on the transaction information; When the transaction information passes the pre-on-chain verification, the forwarder contract marks the transaction information, stores the marked transaction information in the transaction temporary queue, and generates an in-process off-chain verification event based on the marked transaction information; When the oracle monitors the in-process off-chain verification event, the oracle determines the target off-chain verification system based on the in-process off-chain verification event and pushes the transaction information to the target off-chain verification system; The target off-chain verification system performs an in-process off-chain verification on the transaction information to obtain a target verification result, and returns the target verification result to the oracle; The oracle generates a certificate of the target verification result, obtains the transaction identifier in the transaction information, packages the transaction identifier and the target verification result according to the certificate to obtain the data to be processed, and calls the forwarder contract to parse the data to be processed to obtain the parsing result; The transaction execution layer processes the transaction information according to the analysis result.

2. The cross-regional transaction information verification method according to claim 1, characterized in that: The oracle determines the target off-chain verification system based on the in-process off-chain verification event, and pushes the transaction information to the target off-chain verification system, including: The oracle obtains the target identifier of the in-flight off-chain verification event; The oracle obtains an identifier search engine corresponding to the target identifier; The oracle calls the identifier search engine to dynamically load the target interaction protocol template and target application program interface corresponding to the target identifier; The oracle sends the transaction information to the target application program interface according to the target interaction protocol template, and pushes the transaction information to the target off-chain verification system through the target application program interface.

3. The cross-regional transaction information verification method according to claim 1, characterized in that: The target off-chain verification system performs an in-process off-chain verification on the transaction information to obtain a target verification result including: The target off-chain verification system parses the transaction information to obtain the transaction content; The target off-chain verification system loads the verification rules and verifies the transaction content according to the verification rules.

4. The cross-regional transaction information verification method according to claim 1, characterized in that: The oracle generates proof of the target verification result including: The oracle digitally signs and encrypts the target verification result to obtain the proof.

5. The cross-regional transaction information verification method according to claim 1, wherein: The transaction execution layer processes the transaction information according to the analysis result, including: When the parsing result indicates that the transaction information passes verification, the transaction execution layer calls the forwarder contract to forward the transaction information stored in the transaction temporary queue to the target contract to execute the transaction; or When the parsing result is that the transaction information fails to pass the verification, the transaction execution layer closes the transaction corresponding to the transaction information and marks the transaction as a failed state.

6. The cross-regional transaction information verification method according to claim 1, characterized in that: The method further comprises: When a verification policy for a newly added region is detected, a new policy is deployed in the standardized smart contract policy library according to the verification policy for the newly added region, and routing information of the new policy is broadcast.

7. A cross-regional transaction information verification system, characterized in that: The cross-regional transaction information verification system includes an on-chain verification layer, an off-chain verification layer, and a transaction execution layer. The on-chain verification layer deploys a forwarder contract and verification contracts in different regions. The off-chain verification layer includes an oracle and off-chain verification systems in different regions. The cross-regional transaction information verification system includes: The forwarder contract is used to obtain the transaction information and regional information carried by the transaction request when the forwarder contract receives the transaction request, and retrieve the target verification strategy from the pre-built standardized smart contract strategy library according to the regional information; wherein, the calling of the target verification strategy from the pre-built standardized smart contract strategy library according to the regional information includes: the forwarder contract obtains the dynamic routing registry stored in itself; the forwarder contract uses the regional information to query the target routing information in the dynamic routing registry; the forwarder contract retrieves the target verification strategy from the standardized smart contract strategy library according to the target routing information; wherein, the forwarder contract adopts the EIP-2535 proxy mode, which supports pluggable configuration of verification strategies for different regions; The forwarder contract is further configured to call the target verification contract according to the target verification strategy to perform a pre-on-chain verification on the transaction information; The forwarder contract is further configured to mark the transaction information when it passes the pre-on-chain verification, store the marked transaction information in a temporary transaction queue, and generate an in-process off-chain verification event based on the marked transaction information; The oracle is configured to determine a target off-chain verification system based on the off-chain verification event when the oracle monitors the off-chain verification event, and push the transaction information to the target off-chain verification system; The target off-chain verification system is used to perform an in-process off-chain verification on the transaction information to obtain a target verification result, and return the target verification result to the oracle; The oracle is further configured to generate a certificate of the target verification result, obtain a transaction identifier in the transaction information, package the transaction identifier and the target verification result according to the certificate to obtain data to be processed, and call the forwarder contract to parse the data to be processed to obtain a parsing result; The transaction execution layer is used to process the transaction information according to the analysis result.

8. A computer device, characterized in that: The computer device comprises: a memory storing at least one instruction; and A processor executes instructions stored in the memory to implement the cross-regional transaction information verification method according to any one of claims 1 to 6.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores at least one instruction, and the at least one instruction is executed by a processor in a computer device to implement the cross-regional transaction information verification method according to any one of claims 1 to 6.

Citation Information

Patent Citations

  • High-concurrency relay transaction coordination method and system in cross-chain scene

    CN116260590A

  • Data processing method, blockchain system, computer device and storage medium

    WO2023109217A1