CN-121979631-A - Intelligent contract scheduling method, device, equipment and medium
Abstract
The invention relates to the technical field of blockchains and discloses an intelligent contract scheduling method, device, equipment and medium, which comprise the steps of carrying out semantic analysis on contract codes and service descriptions submitted by users in advance by utilizing a preset intelligent contract main chain to obtain structured service demands, converting the structured service demands into structured metadata labels, mapping the service descriptions into executable parameters based on a pre-trained service domain model, determining a target sub-chain by utilizing a preset intelligent routing engine, creating an intelligent contract by utilizing the target sub-chain according to the structured metadata labels and the executable parameters, judging whether the intelligent contract needs to be executed across multiple sub-chains, otherwise, utilizing the intelligent contract main chain to access the target sub-chain to complete service functions, and utilizing the preset execution engine to realize unified calling and data reading of multiple sub-chains to obtain a cross-chain transaction sequence, and accessing the target sub-chain to realize service functions based on the cross-chain transaction sequence, thereby improving the efficiency of intelligent contract scheduling.
Inventors
- LI ZONGJIN
- CHEN JIANGANG
- Li Shamo
- LONG XIYANG
- Cheng Yefeng
Assignees
- 招商局金融科技有限公司
Dates
- Publication Date
- 20260505
- Application Date
- 20251230
Claims (10)
- 1. An intelligent contract scheduling method, comprising: semantic analysis is carried out on contract codes and service descriptions submitted by users in advance by utilizing a preset intelligent contract main chain, so that structured service requirements are obtained; converting the structured business requirements into structured metadata tags, and mapping the business descriptions into executable parameters based on a pre-trained business domain model; Determining a target sub-chain by using a preset intelligent routing engine, and creating an intelligent contract by using the target sub-chain according to the structural metadata tag and the executable parameters; judging whether the intelligent contract needs to be executed across multiple sub-chains or not; If not, the intelligent contract main chain is utilized to access the target sub-chain to complete the service function; If so, utilizing a preset execution engine to realize unified calling and data reading of multiple sub-chains to obtain a cross-chain transaction sequence; and accessing the target sub-chain based on the cross-chain transaction sequence to realize a service function.
- 2. The intelligent contract scheduling method according to claim 1, wherein the semantic parsing of contract codes and service descriptions submitted by users in advance by using a preset intelligent contract main chain to obtain structured service requirements includes: performing lexical analysis and grammar analysis on the contract codes and the service description to obtain an abstract grammar tree; analyzing the intention of the abstract syntax tree based on semantic rules and a predefined dictionary to obtain semantic representation; And carrying out domain knowledge fusion on the semantic representation by combining a pre-trained service domain model to obtain a structured service requirement.
- 3. The intelligent contract scheduling method of claim 1, wherein said translating the structured business requirements into structured metadata tags includes: mapping each field in the structured business requirement into a corresponding label class according to a predefined metadata label classification system to obtain a metadata label framework; Performing numerical value standardization processing on the metadata tag frame to obtain a standardized metadata tag frame; carrying out versioning and signature initialization processing on the standardized metadata tag frame to obtain an initialization metadata tag frame; And carrying out format serialization on the initialization metadata tag frame to obtain the structured metadata tag.
- 4. The intelligent contract scheduling method of claim 1, wherein the pre-trained business domain model-based mapping the business description to executable parameters comprises: identifying technical parameter keywords in the service description, and extracting parameter names and original values in the technical parameter keywords to obtain an original parameter list; Performing concept analysis, numerical quantization and hidden parameter supplementation on the original parameter list by utilizing the service field model to obtain a preprocessing quantization parameter set; Converting the pre-processed quantization parameter set into an executable configuration instruction set based on parameter binding; And carrying out structural output on the executable configuration instruction set to obtain executable parameters.
- 5. The smart contract scheduling method of claim 1, wherein said creating a smart contract from said structured metadata tag and said executable parameters using said target sub-chain includes: generating a contract code according to the structured metadata tag and the executable parameters; compiling the contract code to obtain a compiled code; Identifying a deployment account in the structured metadata tag, and checking whether the deployment account has deployment contract authority in the target sub-chain or not to obtain an authority checking result; Signature deployment is carried out according to the authority verification result and the compiled code, so that signed deployment transaction is obtained; Submitting the signed deployment transaction to the target sub-chain enables creation of an intelligent contract.
- 6. The intelligent contract scheduling method as set forth in claim 1, wherein the implementing unified call and data read of multiple sub-chains by using a preset execution engine to obtain a cross-chain transaction sequence includes: Analyzing and arranging the cross-chain transaction by using the execution engine according to the service description and the structured metadata tag to obtain a cross-chain transaction logic execution plan; carrying out call request serialization according to the executable parameters and the cross-chain transaction logic execution plan to obtain a serialized call request queue; Injecting an atomicity and consistency guarantee mechanism for the serialized call request queue to obtain a cross-chain transaction protocol packet; And carrying out transaction sequence solidification on the cross-chain transaction protocol packet to obtain a cross-chain transaction sequence.
- 7. The intelligent contract scheduling method of claim 1, wherein said accessing said target sub-chain based on said cross-chain transaction sequence to implement a business function comprises: Initiating contract calling requests to a plurality of target sub-chains involved in the cross-chain transaction sequence, and acquiring execution results of the contract calling requests by each target sub-chain to obtain an execution result set; performing atomicity confirmation on the execution result set to obtain an atomicity confirmation result; And performing cross-link result aggregation and service output generation according to the atomicity confirmation result and the execution result set to obtain an aggregated final service result.
- 8. An intelligent contract scheduling apparatus, comprising: the semantic analysis module is used for carrying out semantic analysis on contract codes and service descriptions submitted by users in advance by utilizing a preset intelligent contract main chain to obtain structured service requirements; The parameter mapping module is used for converting the structured business requirements into structured metadata tags and mapping the business descriptions into executable parameters based on a pre-trained business field model; The contract creation module is used for determining a target sub-chain by utilizing a preset intelligent routing engine, and creating an intelligent contract by utilizing the target sub-chain according to the structural metadata tag and the executable parameters; the execution judging module is used for judging whether the intelligent contract needs to be executed across multiple sub-chains, if not, accessing the target sub-chains by using the intelligent contract main chain to complete the service function, and if so, using a preset execution engine to realize unified calling and data reading of the multiple sub-chains so as to obtain a cross-chain transaction sequence; and the service realization module is used for accessing the target sub-chain to realize service functions based on the cross-chain transaction sequence.
- 9. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the intelligent contract scheduling method of any one of claims 1 to 7 when the computer program is executed by the processor.
- 10. A computer readable storage medium storing a computer program, wherein the computer program when executed by a processor implements the intelligent contract scheduling method of any one of claims 1 to 7.
Description
Intelligent contract scheduling method, device, equipment and medium Technical Field The present invention relates to the field of blockchain technologies, and in particular, to an intelligent contract scheduling method, apparatus, device, and medium. Background With the wide application of the blockchain technology in the fields of finance, the Internet of things, a supply chain and the like, different business scenes show significant differences on the core requirements of blockchains, namely the finance field needs high privacy and compliance, the Internet of things field needs high concurrent throughput and low delay, and the supply chain field needs inter-chain data intercommunication and cooperative execution. However, the current blockchain technology system has obvious limitations, on one hand, a single chain structure (a public chain, a alliance chain and a private chain) is independent, so that diversified requirements cannot be dynamically adapted, for example, the public chain is open but has insufficient performance, high concurrency of an internet of things scene is difficult to support, and the alliance chain is efficient but limited in nodes, so that multi-party coordination of a financial scene cannot be met. This results in enterprises having to repeatedly deploy multiple chains for different services, not only increasing hardware and operation costs, but also creating a technical barrier due to inter-chain architecture differences. On the other hand, the existing cross-link technology multi-focus inter-link asset transfer (such as cross-link transfer) lacks dynamic adaptation capability to business logic, and cannot call external link contracts or match optimal sub-link resources according to business requirements. Meanwhile, the independently deployed chains form data islets, and inter-chain data is not communicated (e.g., order data of a supply chain cannot be synchronized to a financial chain for credit assessment), resulting in low global business execution efficiency. In addition, the enterprise can build chains for different services independently, so that serious resource waste is caused, multiple link points in the same enterprise are repeatedly built, stored and dispersed, and the operation cost is further increased. Under the background, a block chain architecture capable of dynamically adapting to multiple scene demands, realizing cross-chain coordination and optimizing resource utilization is needed, so as to solve the problems of difficult adaptation, poor coordination and high cost faced by the current industry. Therefore, in the prior art, most schemes only focus on the technical development of the asset probe, and there is a problem of lack of a unified management mechanism for clusters of multiple asset probes and automatic mapping association of the asset probes with a large enterprise organization architecture and an internal network structure. Disclosure of Invention The invention provides an intelligent contract scheduling method, an intelligent contract scheduling device, computer equipment and a medium, which are used for solving the problems of low efficiency and low safety of the existing intelligent contract scheduling method in the current market. In a first aspect, an intelligent contract scheduling method is provided, including: semantic analysis is carried out on contract codes and service descriptions submitted by users in advance by utilizing a preset intelligent contract main chain, so that structured service requirements are obtained; converting the structured business requirements into structured metadata tags, and mapping the business descriptions into executable parameters based on a pre-trained business domain model; Determining a target sub-chain by using a preset intelligent routing engine, and creating an intelligent contract by using the target sub-chain according to the structural metadata tag and the executable parameters; judging whether the intelligent contract needs to be executed across multiple sub-chains or not; If not, the intelligent contract main chain is utilized to access the target sub-chain to complete the service function; If so, utilizing a preset execution engine to realize unified calling and data reading of multiple sub-chains to obtain a cross-chain transaction sequence; and accessing the target sub-chain based on the cross-chain transaction sequence to realize a service function. In a second aspect, there is provided an intelligent contract scheduling apparatus, including: the semantic analysis module is used for carrying out semantic analysis on contract codes and service descriptions submitted by users in advance by utilizing a preset intelligent contract main chain to obtain structured service requirements; The parameter mapping module is used for converting the structured business requirements into structured metadata tags and mapping the business descriptions into executable parameters based on a pre-trained business fie