CN117591125A - Service processing method, device, electronic equipment and storage medium - Google Patents

Service processing method, device, electronic equipment and storage medium Download PDF

Info

Publication number
CN117591125A
CN117591125A CN202311611426.6A CN202311611426A CN117591125A CN 117591125 A CN117591125 A CN 117591125A CN 202311611426 A CN202311611426 A CN 202311611426A CN 117591125 A CN117591125 A CN 117591125A
Authority
CN
China
Prior art keywords
target
contract
service
processing
configuration request
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202311611426.6A
Other languages
Chinese (zh)
Inventor
马欣怡
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Bank of China Financial Technology Co Ltd
Original Assignee
Bank of China Financial Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Bank of China Financial Technology Co Ltd filed Critical Bank of China Financial Technology Co Ltd
Priority to CN202311611426.6A priority Critical patent/CN117591125A/en
Publication of CN117591125A publication Critical patent/CN117591125A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/40Transformation of program code
    • G06F8/41Compilation
    • G06F8/44Encoding
    • G06F8/447Target code generation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention provides a business processing method, a business processing device, electronic equipment and a storage medium, and relates to the technical field of computers, wherein the business processing method comprises the following steps: acquiring an intelligent contract configuration request of a target service, and determining the service type and processing demand information of the target service according to the intelligent contract configuration request; generating a target contract code corresponding to the target service according to the service type and the processing demand information; storing the target contract code to a blockchain network for the blockchain network to process the target business according to the target contract code. The invention realizes the self-adaptive generation of the target contract code corresponding to the target service and the automatic execution of the target contract code to process the target service, thereby avoiding the manual customization configuration of the contract code and improving the accuracy and efficiency of the service processing process.

Description

Service processing method, device, electronic equipment and storage medium
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a service processing method, a device, an electronic device, and a storage medium.
Background
Blockchain technology is a distributed database technology that forms a tamper-proof chain by linking data together in blocks. Because the blockchain has the characteristics of decentralization, high transparency, strong security and the like, the blockchain is widely applied to the fields of finance, supply chain management, internet of things and the like so as to perform business processing in the related fields.
In the related art, in the process of performing service processing based on a blockchain, manually customizing contract codes one by one according to service scenes is generally adopted, so that the contract execution efficiency is low and the error is high, and further the accuracy and the efficiency of the service processing process are not guaranteed.
Therefore, a service processing method, apparatus, electronic device and storage medium are needed to solve the above problems.
Disclosure of Invention
The invention provides a business processing method, a business processing device, electronic equipment and a storage medium, which are used for solving the defect that in the prior art, the accuracy and efficiency of a business processing process are not guaranteed due to the fact that contract codes are customized one by one according to business scenes by adopting manpower, and realizing efficient and accurate business processing.
The invention provides a service processing method, which comprises the following steps:
acquiring an intelligent contract configuration request of a target service, wherein the intelligent contract configuration request is used for configuring an intelligent contract corresponding to the target service;
determining the service type and the processing demand information of the target service according to the intelligent contract configuration request;
generating a target contract code corresponding to the target service according to the service type and the processing demand information;
storing the target contract code to a blockchain network for the blockchain network to process the target business according to the target contract code.
According to the service processing method provided by the invention, the generation of the target contract code corresponding to the target service according to the service type and the processing demand information comprises the following steps:
determining at least one first contract parameter and a contract code template in a contract management library according to the service type;
according to the processing demand information, at least one second contract parameter is acquired from the at least one first contract parameter;
and compiling and generating the target contract code according to each second contract parameter and the contract code template.
According to the service processing method provided by the invention, the target contract code is generated by compiling according to each second contract parameter and the contract code template, and the method comprises the following steps:
configuring each second contract parameter into the contract code template to obtain an initial contract code;
and compiling the initial contract code to generate the target contract code according to the programming language corresponding to the blockchain network.
According to the service processing method provided by the invention, the service type and processing demand information of the target service are determined according to the intelligent contract configuration request, and the method comprises the following steps:
performing normalization verification and correctness verification on the intelligent contract configuration request to obtain a verification result;
pushing the verification result to a user interface when the intelligent contract configuration request is determined to not pass the normative verification and/or the correctness verification according to the verification result;
acquiring an update operation corresponding to the intelligent contract configuration request according to a request update instruction; the request updating instruction is input according to the verification result displayed by the user interface;
updating the intelligent contract configuration request according to the updating operation;
and analyzing the updated intelligent contract configuration request to obtain the service type and the processing requirement information of the target service.
According to the service processing method provided by the invention, the service type and processing demand information of the target service are determined according to the intelligent contract configuration request, and the method comprises the following steps:
acquiring target user information according to the intelligent contract configuration request;
acquiring a target authorization list according to the service type of the target service;
matching the target user information with each piece of authorized user information in the target authorization list;
and under the condition that the target user information is matched with any one of the authorized user information, determining the service type and the processing requirement information of the target service according to the intelligent contract configuration request.
According to the service processing method provided by the invention, after the target contract code is stored in the blockchain network so that the blockchain network processes the target service according to the target contract code, the method further comprises:
acquiring a processing result and a processing state of the target service recorded by the blockchain network;
under the condition that abnormal processing of the target service is judged and known according to the processing result, or the processing completion of the target service is judged and known according to the processing state, generating target push information of the target service according to the processing result and the processing state;
pushing the target pushing information to a user interface in a target pushing mode;
the target pushing mode comprises one or more of a voice broadcasting mode, a popup window prompting mode, a vibration prompting mode and an icon prompting mode.
The invention also provides a service processing device, which comprises:
the intelligent contract configuration system comprises an acquisition unit, a target service and a service management unit, wherein the acquisition unit is used for acquiring an intelligent contract configuration request of the target service, and the intelligent contract configuration request is used for configuring an intelligent contract corresponding to the target service;
the determining unit is used for determining the service type and the processing demand information of the target service according to the intelligent contract configuration request;
the generation unit is used for generating a target contract code corresponding to the target service according to the service type and the processing demand information;
and the processing unit is used for storing the target contract code into a blockchain network so that the blockchain network can process the target service according to the target contract code.
The invention also provides an electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the business processing method as described above when executing the program.
The present invention also provides a non-transitory computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements a business processing method as described in any of the above.
The invention also provides a computer program product comprising a computer program which when executed by a processor implements a business processing method as described in any of the above.
According to the business processing method, the business processing device, the electronic equipment and the storage medium, the business type and the processing demand information of the target business are automatically acquired according to the intelligent contract configuration request of the target business, and the target contract code corresponding to the target business is adaptively generated and automatically executed to perform target business processing, so that manual customization of configuration contract codes is avoided, and the accuracy and the efficiency of a business processing process are improved.
Drawings
In order to more clearly illustrate the invention or the technical solutions of the prior art, the following description will briefly explain the drawings used in the embodiments or the description of the prior art, and it is obvious that the drawings in the following description are some embodiments of the invention, and other drawings can be obtained according to the drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic flow chart of a service processing method provided by the invention;
fig. 2 is a schematic structural diagram of a service processing device provided by the present invention;
fig. 3 is a schematic structural diagram of an electronic device provided by the present invention.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the present invention more apparent, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings, and it is apparent that the described embodiments are some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
In the related art, in the process of performing service processing based on a blockchain, manually customizing contract codes one by one according to service scenes is generally adopted, and a user is required to manually input the customized contract codes, so that the complexity and risk of contract execution are increased; because of the existence of manual intervention, the efficiency of contract execution is limited, and real-time or near real-time contract execution cannot be realized; manual intervention may lead to errors or fraudulent conduct in the execution of the contract, reducing the security of the contract, and thus, not guaranteeing the accuracy and efficiency of the business processing process.
In view of the above drawbacks, the present embodiment provides a service processing method, apparatus, electronic device, and storage medium, which increase the efficiency and security of contract execution by automatically generating and executing contract codes according to an intelligent contract configuration request, thereby increasing the accuracy and efficiency of a service processing procedure.
The service processing method of the present invention is described below with reference to fig. 1.
Fig. 1 is a flow chart of a service processing method provided in the present embodiment; as shown in fig. 1, the method comprises the steps of:
step 101, acquiring an intelligent contract configuration request of a target service, wherein the intelligent contract configuration request is used for configuring an intelligent contract corresponding to the target service;
the smart contract configuration request herein may be a user input entered by a user at the front end interface module. The user input may be information input through a command line interface input, a graphical interface input, a touch input, a drop-down selection input, a voice input, a gesture input, a visual input, a brain-computer input, or the like, which is not specifically limited in this embodiment.
The target service is a service to be processed in various scenes, such as an image processing service cooperatively performed by multiple computer nodes; in another example, in a financial scenario, the scenario may include a cross-border payment scenario, a supply chain financial scenario, a loan scenario, and a bond issuing scenario in banking daily business, which is not specifically limited in this embodiment. Under the cross-border payment scene, the problem that the traditional cross-border payment scene needs to be operated by a plurality of banks and clearing institutions is solved, the flow is complex, the cost is high, and the real-time and low-cost cross-border payment can be realized by the intelligent contract without manual intervention based on the blockchain; under the supply chain finance scene, the automation and the intellectualization of the supply chain finance can be realized through intelligent contracts, the financing efficiency is improved, and the risk is reduced; in loan scene and bond issue scene, can utilize intelligent contract, realize the automation of loan and bond issue, improve operating efficiency, reduce the operation cost to can utilize intelligent contract, provide more individuation, convenient customer service, improve customer satisfaction.
Optionally, the user may input a request for configuring the intelligent contract corresponding to the target service in the front-end interface module or the user interface module, so that the service processing apparatus automatically configures and deploys the contract code to the blockchain network based on the intelligent contract configuration request, thereby implementing efficient and accurate processing of the target service.
Step 102, determining the service type and the processing demand information of the target service according to the intelligent contract configuration request;
optionally, after the intelligent contract configuration request is obtained, the intelligent contract configuration request may be analyzed to obtain the service type and processing requirement information of the target service.
Here, the service type and the processing requirement information of the target service may be configured in the smart contract configuration request; or the mapping relation is associated with the intelligent contract configuration request for storage, namely the mode of acquiring the service type and the processing requirement information of the target service can be obtained through the mapping relation association or can be obtained through analysis; for example, the association relationship between the request identifier of the intelligent contract configuration request and the service type and the processing requirement information of the target service can be mapped, searched and obtained; or analyzing the intelligent contract configuration request to obtain the service type and the processing demand information of the target service.
Step 103, generating a target contract code corresponding to the target service according to the service type and the processing demand information;
optionally, after the service type and the processing requirement information are acquired, the contract parameters corresponding to the target service are jointly acquired according to the mapping relation between the service type and the contract parameters and the mapping relation between the processing requirement information and the contract parameters, so that the target contract code is compiled and generated according to the contract parameters corresponding to the target service.
The contract code herein refers to an automatically executed contract that implements automated processing of business through rules and conditions in the contract.
And step 104, storing the target contract code into a blockchain network so that the blockchain network can process the target service according to the target contract code.
Alternatively, after the target contract code is acquired, the target contract code may be stored in the blockchain network, so that the blockchain network extracts the target contract code from the node of the blockchain data layer after the target service is acquired, and the target service is automatically processed by executing the target contract code.
According to the business processing method provided by the embodiment, the business type and the processing demand information of the target business are automatically acquired according to the intelligent contract configuration request of the target business, and the target business processing is performed by adaptively generating the target contract code corresponding to the target business and automatically executing the target contract code, so that the manual customization configuration contract code is avoided, and the accuracy and the efficiency of the business processing process are improved.
In some embodiments, the generating, in step 103, the target contract code corresponding to the target service according to the service type and the processing requirement information includes:
determining at least one first contract parameter and a contract code template in a contract management library according to the service type;
according to the processing demand information, at least one second contract parameter is acquired from the at least one first contract parameter;
and compiling and generating the target contract code according to each second contract parameter and the contract code template.
The contract management library is pre-stored with mapping relations between each service type and each contract parameter, mapping relations between each service type and each contract code template, and mapping relations between processing demand information and contract parameters; and the associated mapping data in the contract management library can be configured and updated according to actual requirements, such as adding, deleting or modifying any group of associated mapping data.
Optionally, after the service type and the processing requirement information are acquired, at least one first contract parameter associated with the service type is mapped and acquired in a contract management library based on the service type and the association relation between the service type and the contract parameters, and a contract code template associated with the service type is mapped and acquired in the contract management library based on the service type and the association relation between the service type and the contract code template.
Then, mapping and acquiring at least one second contract parameter associated with the processing demand information in the at least one first contract parameter based on the processing demand information and the association relation between the processing demand information and the contract parameters.
Next, the second contract parameters and the contract code templates are combined, and the target contract code is compiled and generated.
The compiling method for generating the target contract code may be a compiling method for compiling each second contract parameter according to a contract code template to generate the target contract code; or updating each second contract parameter configuration to the contract code template, and then encoding to generate the target contract code.
According to the method provided by the embodiment, the second contract parameters and the contract code templates are mapped in the contract management library in an associated mode through the service type and the processing demand information, so that the target contract codes are generated according to the second contract parameters and the contract code templates in a self-adaptive compiling mode, the configurability, the adaptability and the safety of contracts are improved, the demands of users on complex contracts are met, the efficiency of contract development and execution is improved, the accuracy and the efficiency of a service processing process are further improved, and meanwhile, the usability and the expandability of service processing are improved.
In some embodiments, compiling the object contract code according to each of the second contract parameters and the contract code template includes:
configuring each second contract parameter into the contract code template to obtain an initial contract code;
and compiling the initial contract code to generate the target contract code according to the programming language corresponding to the blockchain network.
Optionally, after the second contract parameters and the contract code templates are acquired, the acquired initial contract codes are configured into corresponding positions or functions one by one according to the structure and the requirements of the contract code templates, so as to ensure that the acquired initial contract codes can dynamically execute different contract logics according to the differences of the second contract parameters; the configuration includes operations of replacing variables, setting parameter values, defining logic conditions, and the like.
Further, in order to adapt the language format of the generated contract code to the programming language corresponding to the blockchain network, the initial contract code may be compiled according to the programming language corresponding to the blockchain network to generate the target contract code adapted to the programming language corresponding to the blockchain network.
According to the method provided by the embodiment, the contract code template is configured according to the specific second contract parameters, and finally the target contract code suitable for the target blockchain network is compiled and generated, so that the contract code is completely matched with the business logic, meanwhile, the requirements of the programming language and the execution environment of the blockchain network are met, the contracts can be deployed and executed conveniently and efficiently, and the high efficiency of business processing is further improved.
In some embodiments, the determining, in step 102, the service type and the processing requirement information of the target service according to the smart contract configuration request includes:
performing normalization verification and correctness verification on the intelligent contract configuration request to obtain a verification result;
pushing the verification result to a user interface when the intelligent contract configuration request is determined to not pass the normative verification and/or the correctness verification according to the verification result;
acquiring an update operation corresponding to the intelligent contract configuration request according to a request update instruction; the request updating instruction is input according to the verification result displayed by the user interface;
updating the intelligent contract configuration request according to the updating operation;
and analyzing the updated intelligent contract configuration request to obtain the service type and the processing requirement information of the target service.
Alternatively, to ensure the validity of the smart contract configuration request, and thus the generated contract code, normalization and correctness verification may be performed on the smart contract configuration request to determine whether the format of the smart contract configuration request is within a preset format range and whether the content is within a preset content range, thereby determining whether the smart contract configuration request passes the normalization and correctness verification.
If the format of the intelligent contract configuration request is determined to be in the preset format range and the content is determined to be in the preset content range, determining that the intelligent contract configuration request passes the standardability verification and passes the correctness verification, and analyzing the intelligent contract configuration request to obtain the service type and the processing requirement information of the target service.
If the format of the intelligent contract configuration request is determined not to be in the preset format range and/or the content is determined not to be in the preset content range, determining that the intelligent contract configuration request fails to pass the normalization verification and/or fails to pass the correctness verification, updating the intelligent contract configuration request to obtain an updated intelligent contract configuration request meeting the normalization verification and the correctness verification, and analyzing the updated intelligent contract configuration request to obtain the service type and the processing requirement information of the target service.
Here, the manner in which the smart contract configuration request is updated includes: pushing the verification result to a user interface so that a user can update and input the intelligent contract configuration request according to the verification result displayed by the user interface to form a request update instruction; and updating the intelligent contract configuration request according to the updating operation determined by the request updating instruction until the updated intelligent contract configuration request passing the verification is obtained.
The pushing mode may be pushing in the form of log, text, voice, etc.
According to the method provided by the embodiment, in the analysis process of the intelligent contract configuration request, the analysis is performed after the normalization test and the correctness test are performed on the intelligent contract configuration request, so that the service type and the processing demand information of the target service obtained through the analysis are more normalized and effective, a user-friendly interface and an operation mode are provided, the contract code development and management efficiency and effectiveness are improved, and the service processing effectiveness and efficiency are further improved.
In some embodiments, the determining the service type and the processing requirement information of the target service according to the intelligent contract configuration request includes:
acquiring target user information according to the intelligent contract configuration request;
acquiring a target authorization list according to the service type of the target service;
matching the target user information with each piece of authorized user information in the target authorization list;
and under the condition that the target user information is matched with any one of the authorized user information, determining the service type and the processing requirement information of the target service according to the intelligent contract configuration request.
Optionally, the intelligent contract configuration request is parsed to obtain target user information of the user initiating the intelligent contract configuration request.
And mapping and acquiring at least one piece of authorization user information associated with the service type according to the service type of the target service and the association relation between the service type and the authorization user information to form a target authorization list. The authorized user information is user information corresponding to the user with the intelligent contract configuration authority. The user information includes, but is not limited to, one or more of account identification, user identification, and identity authentication information, which is not specifically limited in this embodiment.
And then, matching the target user information with all the authorized user information in the target authorization list one by one to determine whether the authorized user information matched with the target user information exists in the target authorization list, and if the authorized user information matched with the target user information exists, characterizing that the user initiating the intelligent contract configuration request has the intelligent contract configuration authority. At this time, the intelligent contract configuration request may be further parsed to obtain the service type and the processing requirement information of the target service, so as to adaptively compile and generate the target contract code according to the service type and the processing requirement information.
According to the method provided by the embodiment, before the intelligent contract configuration request is analyzed to obtain the service type and the processing demand information of the target service, the user authority corresponding to the intelligent contract configuration request is verified, so that the user with the intelligent contract configuration authority can perform contract configuration, the precision and the safety of contract configuration are improved, and the precision and the safety of target service processing are improved.
In some embodiments, after the storing the target contract code to a blockchain network for the blockchain network to process the target business according to the target contract code, the method further includes:
acquiring a processing result and a processing state of the target service recorded by the blockchain network;
under the condition that abnormal processing of the target service is judged and known according to the processing result, or the processing completion of the target service is judged and known according to the processing state, generating target push information of the target service according to the processing result and the processing state;
pushing the target pushing information to a user interface in a target pushing mode;
the target pushing mode comprises one or more of a voice broadcasting mode, a popup window prompting mode, a vibration prompting mode and an icon prompting mode.
Where blockchain is a distributed ledger technique that enables decentralized data management and transaction verification by storing data in a network of multiple nodes. Each block contains a certain number of transaction records and is linked with the previous block by a cryptographic method to form a tamper-proof chain. Decentralizing refers to data and transactions in a system that do not rely on a single central authority or server, but are commonly maintained and managed by multiple nodes. The distributed ledger data is stored on a plurality of nodes, each node having a complete ledger copy and maintaining consistency by a consensus algorithm.
Optionally, after storing the target contract code to the blockchain network, the blockchain network may load the target contract code to handle the target business; after the business processing is completed, node consensus verification is carried out based on a consensus algorithm, after the node consensus verification is passed, the processing result and the processing state of the target business are recorded, and the processing result and the processing state of the target business are packaged into blocks and added into a block chain, so that each node can acquire or verify the processing result and the processing state of the target business.
Alternatively, the processing result and the processing state of the target service may be acquired in a blockchain of the blockchain network. Judging whether an abnormality occurs according to the processing result or determining whether the service is completed according to the processing state; if the target service is abnormally processed or the target service is processed, generating target pushing information of the target service according to a processing result and a processing state, and pushing the generated target pushing information to a user interface in a target pushing mode (such as voice broadcasting, popup window prompting, vibration prompting and icon prompting) so as to inform a user of the processing condition of the target service.
According to the method provided by the embodiment, the contract execution result is recorded on the blockchain and can be verified through the contract verification mechanism, so that the method has higher reliability and safety, and the processing result and the pushing information of the processing state can be pushed in a plurality of modes, so that the expansion can be realized according to the requirements, the personalized requirements of users can be met to the greatest extent, more functions and application scenes can be supported, and the expandability of service processing can be improved.
The service processing device provided by the invention is described below, and the service processing device described below and the service processing method described above can be referred to correspondingly.
Fig. 2 is a schematic structural diagram of a service processing device according to this embodiment, as shown in fig. 2, where the service processing device includes:
the acquiring unit 201 is configured to acquire an intelligent contract configuration request of a target service, where the intelligent contract configuration request is used to configure an intelligent contract corresponding to the target service;
the determining unit 202 is configured to determine, according to the intelligent contract configuration request, a service type and processing requirement information of the target service;
the generating unit 203 is configured to generate a target contract code corresponding to the target service according to the service type and the processing requirement information;
the processing unit 204 is configured to store the target contract code to a blockchain network, so that the blockchain network processes the target service according to the target contract code.
According to the business processing device provided by the embodiment, the business type and the processing demand information of the target business are automatically acquired according to the intelligent contract configuration request of the target business, and the target contract code corresponding to the target business is adaptively generated and automatically executed to perform target business processing, so that manual customization configuration of the contract code is avoided, and the accuracy and the efficiency of a business processing process are improved.
In some embodiments, the present embodiment further provides a service processing system, including, but not limited to, a blockchain network module, a contract execution engine module, and the service processing apparatus provided in the foregoing embodiments; the business processing means includes, but is not limited to, a compiler module and user interface module and processing unit 204; the compiler module includes, but is not limited to, an acquisition unit 201, a determination unit 202, and a generation unit 203;
the block chain network module is used for constructing and maintaining a block chain network, such as node selection, consensus algorithm determination and the like, and storing and managing contract codes and business processing records; the front end interface module is used for providing a user-friendly interface, so that a user can use and manage contracts conveniently; the compiler module is used for encoding the intelligent contract configuration request input by the user interface to generate a contract code; the contract execution engine module is used for automatically executing and verifying contracts and carrying out transaction processing and processing state updating according to contract codes. The modules communicate and exchange data through interfaces, thereby realizing various business processes.
The interaction process between each module in the service processing system is as follows:
first, a user composes an intelligent contract configuration request through a user interface module.
Then, submitting the compiled intelligent contract configuration request to a compiler module through a user interface module by a user;
then, the compiler module compiles and generates executable machine codes, namely target contract codes according to the intelligent contract configuration request;
next, the compiler module stores the compiled object contract code in the blockchain network module.
And then, when judging that the execution condition of the contract code is met, the blockchain network module calls the contract execution engine module to acquire the target contract code from the blockchain network module.
Then, the contract execution engine module automatically executes the processing and processing status update of the business according to the contract rules and conditions of the target contract code, and records the processing result and processing status in the blockchain network module.
The blockchain network module then returns the processing results and processing status to the contract execution engine module.
The contract execution engine module then pushes the processing results and processing status to the user interface module.
And finally, the user interface module displays the processing result and the push information of the processing state to the user.
According to the business processing system provided by the embodiment, a compiler is introduced to enable the target contract codes containing contract rules and conditions to be automatically configured and generated in a mode of intelligent contract configuration request, the target contract codes are deployed in a blockchain network by utilizing the decentralization characteristic of the blockchain, and consistency and reliability of contracts are ensured through a consensus algorithm, so that automatic configuration, execution and verification of the contracts are realized, and accuracy and high efficiency of business processing are improved.
Fig. 3 illustrates a physical schematic diagram of an electronic device, as shown in fig. 3, where the electronic device may include: processor 301, communication interface (Communications Interface) 302, memory (memory) 303 and communication bus 304, wherein processor 301, communication interface 302, memory 303 accomplish the communication between each other through communication bus 304. The processor 301 may invoke logic instructions in the memory 303 to perform a business processing method comprising: acquiring an intelligent contract configuration request of a target service, wherein the intelligent contract configuration request is used for configuring an intelligent contract corresponding to the target service; determining the service type and the processing demand information of the target service according to the intelligent contract configuration request; generating a target contract code corresponding to the target service according to the service type and the processing demand information; storing the target contract code to a blockchain network for the blockchain network to process the target business according to the target contract code.
Further, the logic instructions in the memory 303 may be implemented in the form of software functional units and stored in a computer readable storage medium when sold or used as a stand alone product. Based on this understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution, in the form of a software product stored in a storage medium, comprising several instructions for causing a computer device (which may be a personal computer, a server, a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
In another aspect, the present invention also provides a computer program product, the computer program product comprising a computer program, the computer program being storable on a non-transitory computer readable storage medium, the computer program, when executed by a processor, being capable of executing the service processing method provided by the above methods, the method comprising: acquiring an intelligent contract configuration request of a target service, wherein the intelligent contract configuration request is used for configuring an intelligent contract corresponding to the target service; determining the service type and the processing demand information of the target service according to the intelligent contract configuration request; generating a target contract code corresponding to the target service according to the service type and the processing demand information; storing the target contract code to a blockchain network for the blockchain network to process the target business according to the target contract code.
In yet another aspect, the present invention also provides a non-transitory computer readable storage medium having stored thereon a computer program which, when executed by a processor, is implemented to perform a service processing method provided by the above methods, the method comprising: acquiring an intelligent contract configuration request of a target service, wherein the intelligent contract configuration request is used for configuring an intelligent contract corresponding to the target service; determining the service type and the processing demand information of the target service according to the intelligent contract configuration request; generating a target contract code corresponding to the target service according to the service type and the processing demand information; storing the target contract code to a blockchain network for the blockchain network to process the target business according to the target contract code.
The apparatus embodiments described above are merely illustrative, wherein the elements illustrated as separate elements may or may not be physically separate, and the elements shown as elements may or may not be physical elements, may be located in one place, or may be distributed over a plurality of network elements. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment. Those of ordinary skill in the art will understand and implement the present invention without undue burden.
From the above description of the embodiments, it will be apparent to those skilled in the art that the embodiments may be implemented by means of software plus necessary general hardware platforms, or of course may be implemented by means of hardware. Based on this understanding, the foregoing technical solution may be embodied essentially or in a part contributing to the prior art in the form of a software product, which may be stored in a computer readable storage medium, such as ROM/RAM, a magnetic disk, an optical disk, etc., including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method described in the respective embodiments or some parts of the embodiments.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present invention, and are not limiting; although the invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims (10)

1. A method for processing a service, comprising:
acquiring an intelligent contract configuration request of a target service, wherein the intelligent contract configuration request is used for configuring an intelligent contract corresponding to the target service;
determining the service type and the processing demand information of the target service according to the intelligent contract configuration request;
generating a target contract code corresponding to the target service according to the service type and the processing demand information;
storing the target contract code to a blockchain network for the blockchain network to process the target business according to the target contract code.
2. The service processing method according to claim 1, wherein the generating the target contract code corresponding to the target service according to the service type and the processing requirement information includes:
determining at least one first contract parameter and a contract code template in a contract management library according to the service type;
according to the processing demand information, at least one second contract parameter is acquired from the at least one first contract parameter;
and compiling and generating the target contract code according to each second contract parameter and the contract code template.
3. The business processing method according to claim 2, wherein compiling the object contract code according to each of the second contract parameters and the contract code template includes:
configuring each second contract parameter into the contract code template to obtain an initial contract code;
and compiling the initial contract code to generate the target contract code according to the programming language corresponding to the blockchain network.
4. A service processing method according to any one of claims 1-3, wherein said determining the service type and processing requirement information of the target service according to the smart contract configuration request comprises:
performing normalization verification and correctness verification on the intelligent contract configuration request to obtain a verification result;
pushing the verification result to a user interface when the intelligent contract configuration request is determined to not pass the normative verification and/or the correctness verification according to the verification result;
acquiring an update operation corresponding to the intelligent contract configuration request according to a request update instruction; the request updating instruction is input according to the verification result displayed by the user interface;
updating the intelligent contract configuration request according to the updating operation;
and analyzing the updated intelligent contract configuration request to obtain the service type and the processing requirement information of the target service.
5. A service processing method according to any one of claims 1-3, wherein said determining the service type and processing requirement information of the target service according to the smart contract configuration request comprises:
acquiring target user information according to the intelligent contract configuration request;
acquiring a target authorization list according to the service type of the target service;
matching the target user information with each piece of authorized user information in the target authorization list;
and under the condition that the target user information is matched with any one of the authorized user information, determining the service type and the processing requirement information of the target service according to the intelligent contract configuration request.
6. A method of traffic processing according to any of claims 1-3, wherein after said storing said target contract code to a blockchain network for said blockchain network to process said target traffic in accordance with said target contract code, said method further comprises:
acquiring a processing result and a processing state of the target service recorded by the blockchain network;
under the condition that abnormal processing of the target service is judged and known according to the processing result, or the processing completion of the target service is judged and known according to the processing state, generating target push information of the target service according to the processing result and the processing state;
pushing the target pushing information to a user interface in a target pushing mode;
the target pushing mode comprises one or more of a voice broadcasting mode, a popup window prompting mode, a vibration prompting mode and an icon prompting mode.
7. A service processing apparatus, comprising:
the intelligent contract configuration system comprises an acquisition unit, a target service and a service management unit, wherein the acquisition unit is used for acquiring an intelligent contract configuration request of the target service, and the intelligent contract configuration request is used for configuring an intelligent contract corresponding to the target service;
the determining unit is used for determining the service type and the processing demand information of the target service according to the intelligent contract configuration request;
the generation unit is used for generating a target contract code corresponding to the target service according to the service type and the processing demand information;
and the processing unit is used for storing the target contract code into a blockchain network so that the blockchain network can process the target service according to the target contract code.
8. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the service processing method according to any of claims 1 to 6 when executing the program.
9. A non-transitory computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when executed by a processor, implements the service processing method according to any one of claims 1 to 6.
10. A computer program product comprising a computer program which, when executed by a processor, implements the business processing method of any of claims 1 to 6.
CN202311611426.6A 2023-11-28 2023-11-28 Service processing method, device, electronic equipment and storage medium Pending CN117591125A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311611426.6A CN117591125A (en) 2023-11-28 2023-11-28 Service processing method, device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311611426.6A CN117591125A (en) 2023-11-28 2023-11-28 Service processing method, device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN117591125A true CN117591125A (en) 2024-02-23

Family

ID=89914881

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311611426.6A Pending CN117591125A (en) 2023-11-28 2023-11-28 Service processing method, device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN117591125A (en)

Similar Documents

Publication Publication Date Title
US20190279197A1 (en) Systems and methods for implementing deterministic finite automata (dfas) via a blockchain
US20100235275A1 (en) Card Processing
CN110968437A (en) Method, device, equipment and medium for parallel execution of single contract based on Java intelligent contract
CA3198981A1 (en) Constructing executable program code based on sequence codes
US20200007647A1 (en) Real-time Event Orchestrator
US11609757B1 (en) Continuous integration framework for development of software for EMV-based card present transaction processing
CN115398457A (en) System and method for evaluating digital interactions using a digital third party account service
CN109460661A (en) A kind of logical security leak detection method, device and terminal device
CN111105224A (en) Payment feedback information processing method and device, electronic equipment and storage medium
CN112613288B (en) Method, device, computer equipment and storage medium for generating bill
US20230385891A1 (en) Prototype message service
CN111459800B (en) Method, device, equipment and medium for verifying availability of service system
US20210342900A1 (en) Methods for customized rule engines for automated medical bill review and devices thereof
CN114707146B (en) Workflow identification method, system, computer device and readable storage medium
CN117591125A (en) Service processing method, device, electronic equipment and storage medium
CN115268847A (en) Block chain intelligent contract generation method and device and electronic equipment
KR101843092B1 (en) Method for verifying multiple insurance computer system
CN110851516B (en) Host operation control system and method
WO2022047278A1 (en) Systems and methods for graphical programming and deployment of distributed ledger applications
CN112965986A (en) Service consistency processing method, device, equipment and storage medium
US20080001959A1 (en) System, Method and Computer Program Product for Performing Information Transfer Using a Virtual Operator
WO2020155167A1 (en) Application of cross-organizational transactions to blockchain
CN108596751A (en) A kind of account repayment method, device, terminal device and storage medium
US20240112082A1 (en) Method and system for performing a digital process
CN116258358A (en) Workflow-based decision engine loop body data processing method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination