CN110704490A - Service data processing method and device based on intelligent contract - Google Patents

Service data processing method and device based on intelligent contract Download PDF

Info

Publication number
CN110704490A
CN110704490A CN201910980257.0A CN201910980257A CN110704490A CN 110704490 A CN110704490 A CN 110704490A CN 201910980257 A CN201910980257 A CN 201910980257A CN 110704490 A CN110704490 A CN 110704490A
Authority
CN
China
Prior art keywords
service
intelligent contract
data processing
processing result
block chain
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
CN201910980257.0A
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.)
Beijing Qidi Block Chain Technology Development Co Ltd
Original Assignee
Beijing Qidi Block Chain Technology Development 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 Beijing Qidi Block Chain Technology Development Co Ltd filed Critical Beijing Qidi Block Chain Technology Development Co Ltd
Priority to CN201910980257.0A priority Critical patent/CN110704490A/en
Publication of CN110704490A publication Critical patent/CN110704490A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2455Query execution
    • G06F16/24564Applying rules; Deductive queries
    • G06F16/24565Triggers; Constraints
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • General Physics & Mathematics (AREA)
  • Development Economics (AREA)
  • Technology Law (AREA)
  • Strategic Management (AREA)
  • General Business, Economics & Management (AREA)
  • Marketing (AREA)
  • Economics (AREA)
  • Computational Linguistics (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The embodiment of the invention discloses a service data processing method and a device based on an intelligent contract, wherein the service data processing method based on the intelligent contract comprises the following steps: responding to a service processing request initiated when the timing intelligent contract reaches a trigger time, and acquiring service key data to be processed by the timing intelligent contract from a block chain; wherein the timed intelligent contract is an intelligent contract with a timer deployed; processing the service key data by adopting the timing intelligent contract to obtain a service data processing result; and writing the service data processing result into a block chain. The embodiment of the invention automatically determines the trigger time of the intelligent contract by deploying the intelligent contract with the timer without triggering through access interactive operation, thereby reducing a large amount of repeated block chain high-frequency access.

Description

Service data processing method and device based on intelligent contract
Technical Field
The embodiment of the invention relates to the technical field of computers, in particular to a service data processing method and device based on an intelligent contract.
Background
In the current WEB application, most applications have a task scheduling function, and have own syntax and solutions for different operating systems. The application of the timing task in a plurality of scenes improves the processing efficiency of the task, such as driving processing work flow, system maintenance, service reminding in an application system, daily and final account checking, data statistics and the like.
The current timing task is integrated in a business system and actively waits, triggers and executes tasks. Or the timer is integrated in the application system, the database is scanned at regular time, specific data processing is carried out, the execution result is written back to the database, and the execution result message is sent to the outside.
However, the integration of the timing task into the business system may cause a system crash that occupies a large amount of resources when the timing task is suddenly started, and the timing task imposes a large burden on the database due to a large amount of batch processing jobs on the database, which may easily cause the business system to be unavailable or even crash.
Disclosure of Invention
The embodiment of the invention provides a service data processing method and device based on an intelligent contract, which are used for improving the efficiency of timer service data processing.
In a first aspect, an embodiment of the present invention provides a service data processing method based on an intelligent contract, which is executed by a node in a blockchain system, and includes:
responding to a service processing request initiated when the timing intelligent contract reaches a trigger time, and acquiring service key data to be processed by the timing intelligent contract from a block chain; wherein the timed intelligent contract is an intelligent contract with a timer deployed;
processing the service key data by adopting the timing intelligent contract to obtain a service data processing result;
and writing the service data processing result into a block chain.
In a second aspect, an embodiment of the present invention provides a service data processing method based on an intelligent contract, which is executed by a service party, and includes:
acquiring a service data processing result sent by a node in a block chain system; wherein, the service data processing result is determined by the node in the block chain system through the following operations: responding to a service processing request initiated when the timing intelligent contract reaches a trigger time, and acquiring service key data to be processed by the timing intelligent contract from a block chain; wherein the timed intelligent contract is an intelligent contract with a timer deployed; processing the service key data by adopting the timing intelligent contract to obtain a service data processing result;
and verifying the original service data according to the service data processing result.
In a third aspect, an embodiment of the present invention further provides a service data processing apparatus based on an intelligent contract, which is executed by a node in a blockchain system, and includes:
the processing request response module is used for responding to a service processing request initiated when the timing intelligent contract reaches the trigger time, and acquiring service key data to be processed by the timing intelligent contract from the block chain; wherein the timed intelligent contract is an intelligent contract with a timer deployed;
the key data processing module is used for processing the service key data by adopting the timing intelligent contract to obtain a service data processing result;
and the data processing result writing module is used for writing the service data processing result into the block chain.
In a fourth aspect, an embodiment of the present invention further provides a service data processing apparatus based on an intelligent contract, which is executed by a service party, and includes:
the data processing result acquisition module is used for acquiring a service data processing result sent by a node in the block chain system; wherein, the service data processing result is determined by the node in the block chain system through the following operations: responding to a service processing request initiated when the timing intelligent contract reaches a trigger time, and acquiring service key data to be processed by the timing intelligent contract from a block chain; wherein the timed intelligent contract is an intelligent contract with a timer deployed; processing the service key data by adopting the timing intelligent contract to obtain a service data processing result;
and the original data checking module is used for checking the service original data according to the service data processing result.
The embodiment of the invention is based on a timing intelligent contract with a timer deployed on a block chain, the triggering of a timing task is driven by the intelligent contract, when the triggering time is met, the service processing request of the timing task is responded, and the service key data acquired on the block chain is processed to obtain the service data processing result. The triggering time of the intelligent contract is automatically determined by deploying the intelligent contract with the timer, and the triggering through access interactive operation is not needed, so that the high-frequency access of a large number of repeated block chains can be reduced.
Drawings
FIG. 1 is a flowchart of a method for processing service data based on an intelligent contract according to a first embodiment of the present invention;
FIG. 2 is a flowchart of a method for processing service data based on intelligent contracts according to a second embodiment of the present invention;
FIG. 3 is a flowchart of a method for processing service data based on intelligent contracts according to a third embodiment of the present invention;
fig. 4 is a schematic structural diagram of a service data processing apparatus based on an intelligent contract in a fourth embodiment of the present invention;
fig. 5 is a schematic structural diagram of a service data processing apparatus based on an intelligent contract in a fifth embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Fig. 1 is a flowchart of a service data processing method based on an intelligent contract in an embodiment of the present invention, which is applicable to a case where an intelligent contract representing a timing task is deployed on a blockchain to be called in a scenario of processing the timing task. The method can be executed by a service data processing device based on the intelligent contract, the device can be realized in a software and/or hardware mode, and can be configured in computer equipment, such as equipment with communication and computing capabilities, such as a background server. As shown in fig. 1, the method specifically includes:
step 101, responding to a service processing request initiated when the timing intelligent contract reaches a trigger opportunity, and acquiring service key data to be processed by the timing intelligent contract from a block chain; wherein the timed intelligent contract is an intelligent contract with a timer deployed.
The timing intelligent contract is an interactive protocol which runs on a block chain network and can automatically execute certain timing tasks to complete timing business logic, and the timing intelligent contract is an intelligent contract with a timer. Optionally, the timed intelligent contract includes implementation of a timed task, and the timed intelligent contract includes specific business logic and a timing policy of the timed task. The triggering time is the execution time of the timing intelligent contract and can comprise a specific timing strategy of the timing task, optionally, the timing intelligent contract can automatically detect the triggering time, so that the automatic driving of the timing task after reaching the triggering time is realized, and the execution efficiency of the timing task is improved. Blockchains are a secure, encrypted, decentralized, non-tamperable, and consensus storage mechanism.
The business key data refers to key data related to business transaction contained in an uplink transaction request sent after a business transaction event occurs, for example, when the uplink transaction request initiates a consumption transaction for a user, a system requests to generate a deposit certificate for the transaction and uplink, the deposit certificate is the business key data of the consumption transaction, the deposit certificate is relevant information for proving user behavior, for example, bank deposit certificate refers to deposit certificate. The key business data on the block chain is an electronic deposit certificate which is used for proving user behaviors and can be generated by any node of which the block chain is, and the method has the characteristics of safety, reliability, decentralization and network consensus.
Optionally, the automatic detection of whether the trigger time arrives by the timed intelligent contract includes:
if the current time reaches the trigger time of any timed intelligent contract in the block chain, determining the trigger time of the timed intelligent contract in the block chain; alternatively, the first and second electrodes may be,
and if the state parameter acquired from the service party meets the trigger condition of any timing intelligent contract, determining the trigger time for detecting the timing intelligent contract in the arrival block chain.
The trigger time refers to specific time for executing the contract, which is preset according to specific service logic of the timed intelligent contract, and optionally, the trigger time includes specific time, such as 12 points of 9, 6 and 2019; the state parameter refers to a parameter related to a service party system or a server acquired from a service party, and optionally, the parameter is, for example, a cache of the system or a memory of the server. The triggering condition refers to a condition that the state parameter of the service party should meet when the intelligent contract is executed, and optionally, the triggering condition includes that the system memory is greater than a certain threshold value or the server does not execute a task.
Optionally, the triggering time includes a specifically set triggering time, and whether a related cache of the timed task in the system is greater than a preset threshold or a related index in the server indicates that the server is in an idle state, or the like. Different trigger opportunities are set for the timing intelligent contract according to the content of the specific service logic of the timing task, so that the execution efficiency of the intelligent contract can be improved. For example, the intelligent contract is processed when the server is in an idle state, so that the server is prevented from being more burdened, and the probability of server crash is reduced.
Specifically, two timed intelligent contracts are issued on a block chain, and a plurality of nodes can be selected for deployment of the timed intelligent contracts on the block chain to realize distributed deployment, wherein the distributed deployment comprises a consumption clearing timed intelligent contract and an integral clearing timed intelligent contract, the triggering time of the consumption clearing timed intelligent contract is that the current time is zero every day, the triggering time of the integral clearing timed intelligent contract is that a server memory is smaller than a preset threshold value, and the triggering time of a consumption clearing timed task arrives when the current time is zero, and the consumption clearing timed task is executed; and if the memory of the server obtained from the state parameters sent by the service party is smaller than the preset threshold value, the trigger time of the point clearing timing intelligent contract is reached.
And after the deployed timing intelligent contract is started, the deployed timing intelligent contract is in a running state, and timing intelligence starts to detect whether the triggering time of the timing task is reached. And when the trigger time of the timing intelligent contract arrives, the timing intelligent contract sends service processing requests, such as a consumption clearing service request and an integral clearing service request, to the block chain. And obtaining the key data of the uplink service related to the service processing request from the blockchain, such as a consumption transaction deposit certificate and a credit deposit certificate stored on the blockchain. The timer is deployed on the intelligent contract to complete the triggering of the timing task, so that the triggering of the timing task does not need to be in batch interaction with a business party, and the execution efficiency of the timing task is improved.
And 102, processing the service key data by adopting the timing intelligent contract to obtain a service data processing result.
And the service data processing result is a result of processing the service key data in the block chain according to the specific service logic of the timing intelligent contract. The method has the advantages that the business key data are processed on the block chain, so that the business processing efficiency is improved, the problem that all data are stored in the database of the application system, the batch processing of the database during the execution of the timing task causes burden on the application system, and the application system is easy to crash is avoided.
Illustratively, the specific service logic of the timed intelligent contract is to clear daily consumption of the user, the triggering time is zero per day, and when the user initiates a consumption transaction, the system stores the corresponding transaction certificate as uplink processing. And if the current time is zero, the triggering time of the intelligent contract arrives, the intelligent contract is executed, and at the moment, the intelligent contract carries out clearing on the daily consumption record of the user according to the transaction deposit certificate on the block chain, so that a daily consumption clearing processing result is generated.
And 103, writing the service data processing result into a block chain.
And storing a service data processing result generated according to the service key data processing on the block chain for the service party to process. Specifically, when the timed intelligent contract is a daily consumption clearing task of the user, the generated daily consumption record is generated into a consumption report and stored in the block chain, so that a business side can call the consumption report. The service party refers to a party calling the processing result of the intelligent contract, and comprises various application systems, for example, when the processing result of the intelligent contract is the daily consumption clearing summary of the user, the service party can be a credit card consumption system.
Optionally, after the service data processing result is written into the block chain, modifying the state of the timed intelligent contract according to the specific service logic of the timed intelligent contract. Illustratively, when the timed intelligent contract is used for clearing daily consumption of the user, after the timed intelligent contract is processed, the state of the timed intelligent contract is modified to be completed so as to be identified by the block chain, the block chain is not processed any more, and the accuracy of processing the timed intelligent contract is improved.
The embodiment of the invention is based on a timing intelligent contract with a timer deployed on a block chain, the intelligent contract is used as the core drive of a timing task, the triggering of the timing task is driven by the intelligent contract, when the triggering time is met, the service processing request of the timing task is responded, the service key data acquired on the block chain is processed, the service data processing result is obtained, and the execution of the timing task is completed. The triggering time of the intelligent contract is automatically determined by deploying the intelligent contract with the timer, and the triggering through access interactive operation is not needed, so that a large amount of repeated block chain high-frequency access can be reduced, the pressure of a business side application system server is reduced, and the task processing efficiency is improved.
Example two
Fig. 2 is a flowchart of a service data processing method based on an intelligent contract in the second embodiment of the present invention, and the second embodiment of the present invention performs further optimization based on the first embodiment of the present invention. As shown in fig. 2, the method includes:
step 201, in response to a service processing request initiated when the timing intelligent contract reaches a trigger time, acquiring service key data to be processed by the timing intelligent contract from a block chain; wherein the timed intelligent contract is an intelligent contract with a timer deployed.
Step 202, calling the intelligent contract to inquire the target business key data from the business key data in the block chain.
The target business key data refers to data which is inquired from the business key data in the blockchain and is related to the timing task to be executed by the intelligent contract. Specifically, the intelligent contracts are deployed at one point on a block chain, the whole network is available, and the deployment cost of the timing task of the application system is reduced, but the block chain at least comprises the service key data of a plurality of intelligent contracts, so the service key data related to the timing task executed at this time needs to be screened out, the screened result is the target service key data, and optionally, the data can be screened according to the keywords and the limited conditions of the timing task.
Illustratively, when the intelligent contract executes a timing task of daily consumption clearing of a certain user, target business key data about the timing task is inquired on the block chain according to the user identity and date.
And 203, processing the target service key data to obtain a service data processing result.
After all the target business key data related to the timing intelligent contract are inquired, corresponding processing is performed on the target business key data according to specific logic of the timing intelligent contract.
Optionally, the processing the target service key data includes:
and calling the intelligent contract to perform settlement or comparison processing on the target business key data.
The settlement refers to calculating key data of the target service to obtain a summary result; and the comparison refers to comparing information according to the key data of the target service and sharing abnormal information. Illustratively, when a timing task which is cleared for daily consumption is to be executed by the intelligent contract, the money uploaded to the consumption records on the block chain in the current day is summarized to obtain a service data processing result; and when the intelligent contract is to be executed as a user information check contract, screening all information about the user as target business key data, comparing the data, and screening different data as business data processing results.
And step 204, writing the service data processing result into a block chain.
Step 205, responding to the result query request of the service party, sending the service data processing result to the service party to instruct the service party to check the service original data according to the service data processing result.
The result query request refers to a request for querying a service data processing result of the timing intelligent contract deployed on the block chain by a service party according to a requirement. For example, when the business side needs to query the result of daily consumption liquidation of the user, the business side can request the blockchain to obtain the processing result of daily consumption liquidation of the user.
The service raw data refers to all raw data corresponding to the uplink service key data, for example, when a user initiates a consumption transaction, the service key data includes the total amount, time and card number of the consumption transaction, and the service raw data further includes other data information of the consumption transaction, such as a transaction location, transaction details, card balance and the like. The checking refers to that the service side performs related processing on the service raw data in the service side according to a processing result sent by the block chain, and the processing may include determining whether the service raw data is correct or updating related information in the service raw data.
Specifically, after an external service system generates a service transaction event, the transaction key information of the event is extracted according to a preset data result to generate a deposit certificate and the deposit certificate is stored in a block chain, the block chain packs the deposit certificate to generate blocks, and the blocks are identified by all nodes on the block chain through broadcasting. At the same time, the original information of the event is stored in the service party, for example in a database in the service party. The service party is connected with the block chain through at least one interface, and the service party acquires the service processing result from the block chain through any interface after acquiring the execution completion of the timing intelligent contract. And carrying out corresponding processing on the original data in the service party by using the service processing result.
Optionally, after the service side verifies the original data by using the service data processing result, the verification result is stored in the service side and sent to the user.
After the key data are processed on the block chain, the original data are verified by using the result obtained by processing the key data, so that the accuracy and the processing efficiency of the processing result are ensured, and the burden on an application system caused by the fact that a timing task is directly deployed in the application system is avoided.
According to the embodiment of the invention, the target data information stored in the block chain is screened according to the specific logic of the timed intelligent contract, and the target data information is processed relatively, so that the execution efficiency of the timed intelligent contract is improved; and the screened target service key data is settled or compared, so that a basis is provided for the verification of the subsequent service party on the original data, and the accuracy of a service processing result is ensured.
EXAMPLE III
Fig. 3 is a flowchart of a method for processing service data based on an intelligent contract according to a third embodiment of the present invention, where the method may be executed by a service party. As shown in fig. 3, the method includes:
301, acquiring a service data processing result sent by a node in a block chain system; wherein, the service data processing result is determined by the node in the block chain system through the following operations: responding to a service processing request initiated when the timing intelligent contract reaches a trigger time, and acquiring service key data to be processed by the timing intelligent contract from a block chain; wherein the timed intelligent contract is an intelligent contract with a timer deployed; and processing the service key data by adopting the timing intelligent contract to obtain a service data processing result.
The distributed block chain system has the distributed characteristic, and the timing task contract deployed on the distributed block chain system has the distributed characteristic, so that the task sharing can be better realized, and the data information on the block chain can be acquired through the node as long as the service party is connected with the node in the block chain system. And through the characteristic, the service party can register the timing task on the block chain in a subscription mode, so that the utilization efficiency of the timing task is improved.
Specifically, after the service data processing result is generated in the block chain system, the service data processing result is transmitted to the service party through the transmission between the nodes. The availability of the timing task in the block chain cannot be influenced after the application system of the service side is offline, so that the problem of single-point failure is solved; and the intelligent contracts can be deployed on a plurality of nodes of the blockchain system, so that the condition that the timing contracts are unavailable due to offline of a certain node is prevented.
Step 302, verifying the original service data according to the service data processing result.
The service raw data refers to related service data information stored in a service party, including all data information of the service. Illustratively, after a user initiates a transaction, the transaction deposit certificate is uploaded to the block chain, the detailed information is stored in the database of the application system, and the corresponding timing task starts to be executed, the deposit certificate information in the block chain only needs to be processed, so that batch processing operation on the database of the application system is avoided.
The verification refers to processing data stored in the service party, optionally, determining the service logic property of the timing task, and performing corresponding processing on the service original data in the service party by using the service data processing result. Illustratively, when the timing task is to settle the credit, the final settled credit of the service data processing result is accounted with the credit in the service raw data. Optionally, the final processing result is sent to a third party, such as a broadcast, an application system, an individual, through an external connection. The consumption on the block chain is reduced while the original data is checked on the business side.
Optionally, the verifying the original service data according to the service data processing result includes:
determining whether the original service data is accurate according to the service data processing result;
and if any service original data error is detected, rolling back the service operation associated with the service original data.
Where rollback refers to restoring the business data to the last correct state, illustratively, after the timing contract initiated the consumption clearing task execution, processing the data on the block chain to obtain a service data processing result, checking the original data stored in the service party according to the service processing result, judging whether the original data and the service processing result are consistent, if not, if the original data is found out and is regarded as the original data error, then request to cancel the original data and roll back, the original data error may be the condition that a transaction has been set as a success mark on the terminal, that is, the related information is sent to the database of the business party, but the financial transaction sent to the host is not responded, that is, the transaction fails, and at this time, the related transaction deposit evidence is not uploaded on the blockchain. Under the condition, the original data of the service is judged to be inaccurate according to the result of the service data, and the original data of the transaction in the service party is called for transaction correction, so that the consistency of the data and the result is ensured.
Optionally, the application system of the service side may perform read-write operation on the block chain, store the common data in the local cache to improve the efficiency of the application system, and store the data processing result on the block chain in the database of the service side for subsequent processing and calling.
The embodiment of the invention separates the driving of the timing task from the application system of the business side, and verifies the data in the business side according to the data processing result on the block chain, thereby ensuring the processing efficiency of the timing task and the accuracy of the data of the business side. And the timing intelligent contract is deployed on the block chain, so that high-frequency access of external application to the block chain is reduced, particularly high-frequency access caused by a tidal phenomenon is avoided, uplink data can be acquired by a plurality of service parties, the plurality of service parties deploy intelligent contracts with different data structures according to respective requirements, and single-source data multi-mode output is realized.
Example four
Fig. 4 is a schematic structural diagram of a service data processing apparatus based on an intelligent contract according to a fourth embodiment of the present invention, which is executed by a node in a blockchain system. As shown in fig. 4, the apparatus includes:
a processing request response module 410, configured to, in response to a service processing request initiated when the timing intelligent contract reaches the trigger time, obtain service key data to be processed by the timing intelligent contract from the block chain; wherein the timed intelligent contract is an intelligent contract with a timer deployed.
And the key data processing module 420 is configured to process the service key data by using the timing intelligent contract to obtain a service data processing result.
A data processing result writing module 430, configured to write the service data processing result into a block chain.
The embodiment of the invention is based on a timing intelligent contract with a timer deployed on a block chain, the intelligent contract is used as the core drive of a timing task, the triggering of the timing task is driven by the intelligent contract, when the triggering time is met, the service processing request of the timing task is responded, the service key data acquired on the block chain is processed, the service data processing result is obtained, and the execution of the timing task is completed. The triggering time of the intelligent contract is automatically determined by deploying the intelligent contract with the timer, and the triggering through access interactive operation is not needed, so that a large amount of repeated block chain high-frequency access can be reduced, the pressure of a business side application system server is reduced, and the task processing efficiency is improved.
Optionally, the apparatus further comprises:
and the data processing result sending module is used for responding to a result query request of the service party and sending the service data processing result to the service party so as to indicate the service party to check the service original data according to the service data processing result.
Optionally, the critical data processing module 420 includes:
the target business key data query unit is used for calling the intelligent contract to query the target business key data from the business key data in the block chain;
and the target service key data processing unit is used for processing the target service key data to obtain a service data processing result.
Optionally, the target service key data processing unit is specifically configured to:
and calling the intelligent contract to perform settlement or comparison processing on the target business key data.
The intelligent contract-based service data processing device provided by the embodiment of the invention can execute the intelligent contract-based service data processing method provided by any embodiment of the invention, and has the corresponding functional module and beneficial effect of executing the intelligent contract-based service data processing method.
EXAMPLE five
Fig. 5 is a schematic structural diagram of a service data processing apparatus based on an intelligent contract in a fifth embodiment of the present invention, which is executed by a service party, and this embodiment is applicable to a case of a data processing result of an intelligent contract on an application system call block chain. As shown in fig. 5, the apparatus includes:
a data processing result obtaining module 510, configured to obtain a service data processing result sent on a node in the blockchain system; wherein, the service data processing result is determined by the node in the block chain system through the following operations: responding to a service processing request initiated when the timing intelligent contract reaches a trigger time, and acquiring service key data to be processed by the timing intelligent contract from a block chain; wherein the timed intelligent contract is an intelligent contract with a timer deployed; and processing the service key data by adopting the timing intelligent contract to obtain a service data processing result.
And an original data checking module 520, configured to check the original service data according to the service data processing result.
Optionally, the original data checking module is specifically configured to:
determining whether the original service data is accurate according to the service data processing result;
and if any service original data error is detected, rolling back the service operation associated with the service original data.
The intelligent contract-based service data processing device provided by the embodiment of the invention can execute the intelligent contract-based service data processing method provided by any embodiment of the invention, and has the corresponding functional module and beneficial effect of executing the intelligent contract-based service data processing method.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (10)

1. A service data processing method based on intelligent contracts is characterized by being executed by nodes in a block chain system, and the method comprises the following steps:
responding to a service processing request initiated when the timing intelligent contract reaches a trigger time, and acquiring service key data to be processed by the timing intelligent contract from a block chain; wherein the timed intelligent contract is an intelligent contract with a timer deployed;
processing the service key data by adopting the timing intelligent contract to obtain a service data processing result;
and writing the service data processing result into a block chain.
2. The method of claim 1, wherein after writing the service data processing result into a block chain, further comprising:
and responding to a result query request of the service party, and sending the service data processing result to the service party to indicate the service party to verify the service original data according to the service data processing result.
3. The method of claim 1, wherein processing the business key data using the timed intelligent contract to obtain a business data processing result comprises:
calling the intelligent contract to inquire target business key data from the business key data in the block chain;
and processing the target service key data to obtain a service data processing result.
4. The method of claim 3, wherein processing the target business critical data comprises:
and calling the intelligent contract to perform settlement or comparison processing on the target business key data.
5. A service data processing method based on an intelligent contract, which is executed by a service party, and comprises the following steps:
acquiring a service data processing result sent by a node in a block chain system; wherein, the service data processing result is determined by the node in the block chain system through the following operations: responding to a service processing request initiated when the timing intelligent contract reaches a trigger time, and acquiring service key data to be processed by the timing intelligent contract from a block chain; wherein the timed intelligent contract is an intelligent contract with a timer deployed; processing the service key data by adopting the timing intelligent contract to obtain a service data processing result;
and verifying the original service data according to the service data processing result.
6. The method of claim 5, wherein verifying the service raw data according to the service data processing result comprises:
determining whether the original service data is accurate according to the service data processing result;
and if any service original data error is detected, rolling back the service operation associated with the service original data.
7. A service data processing apparatus based on intelligent contracts, which is executed by a node in a blockchain system, and comprises:
the processing request response module is used for responding to a service processing request initiated when the timing intelligent contract reaches the trigger time, and acquiring service key data to be processed by the timing intelligent contract from the block chain; wherein the timed intelligent contract is an intelligent contract with a timer deployed;
the key data processing module is used for processing the service key data by adopting the timing intelligent contract to obtain a service data processing result;
and the data processing result writing module is used for writing the service data processing result into the block chain.
8. The apparatus of claim 7, further comprising:
and the data processing result sending module is used for responding to a result query request of the service party and sending the service data processing result to the service party so as to indicate the service party to check the service original data according to the service data processing result.
9. A service data processing apparatus based on intelligent contracts, which is executed by a service side, and comprises:
the data processing result acquisition module is used for acquiring a service data processing result sent by a node in the block chain system; wherein, the service data processing result is determined by the node in the block chain system through the following operations: responding to a service processing request initiated when the timing intelligent contract reaches a trigger time, and acquiring service key data to be processed by the timing intelligent contract from a block chain; wherein the timed intelligent contract is an intelligent contract with a timer deployed; processing the service key data by adopting the timing intelligent contract to obtain a service data processing result;
and the original data checking module is used for checking the service original data according to the service data processing result.
10. The apparatus of claim 9, wherein the raw data verification module is specifically configured to:
determining whether the original service data is accurate according to the service data processing result;
and if any service original data error is detected, rolling back the service operation associated with the service original data.
CN201910980257.0A 2019-10-15 2019-10-15 Service data processing method and device based on intelligent contract Pending CN110704490A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910980257.0A CN110704490A (en) 2019-10-15 2019-10-15 Service data processing method and device based on intelligent contract

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910980257.0A CN110704490A (en) 2019-10-15 2019-10-15 Service data processing method and device based on intelligent contract

Publications (1)

Publication Number Publication Date
CN110704490A true CN110704490A (en) 2020-01-17

Family

ID=69199602

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910980257.0A Pending CN110704490A (en) 2019-10-15 2019-10-15 Service data processing method and device based on intelligent contract

Country Status (1)

Country Link
CN (1) CN110704490A (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111770201A (en) * 2020-08-31 2020-10-13 支付宝(杭州)信息技术有限公司 Data verification method, device and equipment
CN111818185A (en) * 2020-08-31 2020-10-23 支付宝(杭州)信息技术有限公司 Method and device for starting intelligent contract, electronic equipment and storage medium
CN111831745A (en) * 2020-06-05 2020-10-27 广东科学技术职业学院 Scheduling method and device of timed intelligent contract
CN111881217A (en) * 2020-08-06 2020-11-03 艾普工华科技(武汉)有限公司 Industrial data processing method and system based on block chain intelligent contract
CN111950245A (en) * 2020-08-25 2020-11-17 深圳市新系区块链技术有限公司 Financial statement generation method, device, equipment and medium based on block chain
CN112150262A (en) * 2020-09-29 2020-12-29 中国银行股份有限公司 Method and device for processing data of account and fact checking
CN112950378A (en) * 2020-10-28 2021-06-11 支付宝(杭州)信息技术有限公司 Method and device for executing intelligent contract in block chain
CN113393235A (en) * 2020-03-13 2021-09-14 富士通株式会社 Information processing apparatus for processing write request and transmission control method
CN113626170A (en) * 2021-08-23 2021-11-09 中国联合网络通信集团有限公司 Method and device for controlling full life cycle of communication engineering task

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106874087A (en) * 2017-01-25 2017-06-20 上海钜真金融信息服务有限公司 A kind of block chain intelligence contract timed task dispatching method
CN107886329A (en) * 2017-11-28 2018-04-06 无锡井通网络科技有限公司 The clocked flip call method of system contract based on block chain technology
CN108510251A (en) * 2018-03-30 2018-09-07 上海分赋信息科技有限公司 A variety of trigger mechanisms are built based on external data to execute the method and system of intelligent contract in block chain network
CN108985936A (en) * 2018-07-09 2018-12-11 北京中电普华信息技术有限公司 A kind of auditing method and system based on intelligent contract
CN109508915A (en) * 2019-01-17 2019-03-22 苏州复谷网络科技有限公司 A kind of intelligent contract of intelligence based on block chain

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106874087A (en) * 2017-01-25 2017-06-20 上海钜真金融信息服务有限公司 A kind of block chain intelligence contract timed task dispatching method
CN107886329A (en) * 2017-11-28 2018-04-06 无锡井通网络科技有限公司 The clocked flip call method of system contract based on block chain technology
CN108510251A (en) * 2018-03-30 2018-09-07 上海分赋信息科技有限公司 A variety of trigger mechanisms are built based on external data to execute the method and system of intelligent contract in block chain network
CN108985936A (en) * 2018-07-09 2018-12-11 北京中电普华信息技术有限公司 A kind of auditing method and system based on intelligent contract
CN109508915A (en) * 2019-01-17 2019-03-22 苏州复谷网络科技有限公司 A kind of intelligent contract of intelligence based on block chain

Cited By (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113393235A (en) * 2020-03-13 2021-09-14 富士通株式会社 Information processing apparatus for processing write request and transmission control method
CN111831745A (en) * 2020-06-05 2020-10-27 广东科学技术职业学院 Scheduling method and device of timed intelligent contract
CN111831745B (en) * 2020-06-05 2023-04-18 广东科学技术职业学院 Scheduling method and device of timed intelligent contract
CN111881217B (en) * 2020-08-06 2024-04-26 艾普工华科技(武汉)有限公司 Industrial data processing method and system based on blockchain intelligent contract
CN111881217A (en) * 2020-08-06 2020-11-03 艾普工华科技(武汉)有限公司 Industrial data processing method and system based on block chain intelligent contract
CN111950245A (en) * 2020-08-25 2020-11-17 深圳市新系区块链技术有限公司 Financial statement generation method, device, equipment and medium based on block chain
CN111818185B (en) * 2020-08-31 2021-01-12 支付宝(杭州)信息技术有限公司 Method and device for starting intelligent contract, electronic equipment and storage medium
US11233655B2 (en) 2020-08-31 2022-01-25 Alipay (Hangzhou) Information Technology Co., Ltd. Data verification methods, apparatuses, and devices
EP3971809A1 (en) * 2020-08-31 2022-03-23 Alipay (Hangzhou) Information Technology Co., Ltd. Method and apparatus for starting smart contract, electronic device, and storage medium
US11514446B2 (en) 2020-08-31 2022-11-29 Alipay (Hangzhou) Information Technology Co., Ltd. Method and apparatus for starting smart contract, electronic device, and storage medium
CN111770201A (en) * 2020-08-31 2020-10-13 支付宝(杭州)信息技术有限公司 Data verification method, device and equipment
CN111818185A (en) * 2020-08-31 2020-10-23 支付宝(杭州)信息技术有限公司 Method and device for starting intelligent contract, electronic equipment and storage medium
CN112150262A (en) * 2020-09-29 2020-12-29 中国银行股份有限公司 Method and device for processing data of account and fact checking
CN112150262B (en) * 2020-09-29 2023-09-19 中国银行股份有限公司 Account checking data processing method and device
CN112950378A (en) * 2020-10-28 2021-06-11 支付宝(杭州)信息技术有限公司 Method and device for executing intelligent contract in block chain
CN113626170A (en) * 2021-08-23 2021-11-09 中国联合网络通信集团有限公司 Method and device for controlling full life cycle of communication engineering task
CN113626170B (en) * 2021-08-23 2023-07-18 中国联合网络通信集团有限公司 Control method and device for full life cycle of communication engineering task

Similar Documents

Publication Publication Date Title
CN110704490A (en) Service data processing method and device based on intelligent contract
US20190378073A1 (en) Business-Aware Intelligent Incident and Change Management
US11269718B1 (en) Root cause detection and corrective action diagnosis system
CN108304554B (en) File splitting method and device, computer equipment and storage medium
CN110661658B (en) Node management method and device of block chain network and computer storage medium
CN110569251A (en) Data processing method, related equipment and computer readable storage medium
CN110807064B (en) Data recovery device in RAC distributed database cluster system
US10467576B2 (en) Distributed software process tracking
CN113220540B (en) Service management method, device, computer equipment and storage medium
CN110597918A (en) Account management method and device and computer readable storage medium
CN113872828B (en) State monitoring method for block chain prediction machine
CN112837157A (en) Method, device and system for registering and executing timing intelligent contract in block chain
CN111314174A (en) Network dial testing method and device based on block chain and SDN edge computing network system
CN112446786A (en) Abnormal transaction processing method and device, electronic equipment and readable storage medium
CN111651595A (en) Abnormal log processing method and device
CN111311254A (en) Service processing method, device and system based on block chain
CN108241616B (en) Message pushing method and device
CN113626218A (en) Data processing method, data processing device, storage medium and computer equipment
CN113360210A (en) Data reconciliation method and device, computer equipment and storage medium
CN111367934A (en) Data consistency checking method, device, server and medium
CN111522881A (en) Service data processing method, device, server and storage medium
CN116414628A (en) Transaction request processing method and device in new and old system switching process
CN115643271A (en) Method, device, server and medium for synchronizing multi-application data on cloud
CN112258184B (en) Method, apparatus, electronic device and readable storage medium for freezing blockchain network
CN113220475A (en) Transaction data processing method and device, computer equipment and storage medium

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20200117

RJ01 Rejection of invention patent application after publication