CN113205416A - Service processing method and system based on block chain prediction machine - Google Patents

Service processing method and system based on block chain prediction machine Download PDF

Info

Publication number
CN113205416A
CN113205416A CN202110433493.8A CN202110433493A CN113205416A CN 113205416 A CN113205416 A CN 113205416A CN 202110433493 A CN202110433493 A CN 202110433493A CN 113205416 A CN113205416 A CN 113205416A
Authority
CN
China
Prior art keywords
intelligent contract
service
request
chain
prediction machine
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
CN202110433493.8A
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.)
Hangzhou Rivtower Technology Co Ltd
Original Assignee
Hangzhou Rivtower 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 Hangzhou Rivtower Technology Co Ltd filed Critical Hangzhou Rivtower Technology Co Ltd
Priority to CN202110433493.8A priority Critical patent/CN113205416A/en
Publication of CN113205416A publication Critical patent/CN113205416A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/64Protecting data integrity, e.g. using checksums, certificates or signatures

Abstract

One or more embodiments of the present specification disclose a service processing method and system based on a blockchain prediction machine, where the scheme includes: calling a prediction machine intelligent contract aiming at the target service on the chain to generate request information for requesting external information required by the target service, and then acquiring the external data required by the service from outside the chain by a data acquisition terminal under the chain based on monitoring the request information on the chain. And then, the acquired external data and the set corresponding codes are firstly sent to the intelligent contract of the language prediction machine in a trading mode, and finally the intelligent contract of the language prediction machine is fed back to the service contract so that the service contract can execute corresponding target services by using the external data. The scheme provides required off-chain information for the block chain by a specific prediction machine design concept, breaks through the defect that the block chain passively receives the off-chain information, and realizes the optimization of the block chain for actively acquiring the off-chain information through phase change.

Description

Service processing method and system based on block chain prediction machine
Technical Field
The present invention relates to the field of blockchain technologies, and in particular, to a service processing method and system based on a blockchain prediction machine.
Background
The blockchain is a decentralized and innovative solution for solving the multi-party trust problem by using a distributed book technology, and is a leading-edge technology of the current society.
However, the blockchain is a closed environment, and real world data outside the chain cannot be actively acquired on the chain. The reason for this is mainly because the blockchain cannot actively initiate a network call, and the intelligent contract on the chain passively receives data. Secondly, the intelligent contract is not "intelligent" in nature, and it only reaches the program in the trigger state when the corresponding conditions are met. Meanwhile, the final execution of the intelligent contract needs the signing of the private key of the contract participant, and the intelligent contract has no way to automatically execute.
Disclosure of Invention
One or more embodiments of the present disclosure provide a service processing method and system based on a block chain prediction machine, so as to provide needed out-of-chain information for a block chain through a specific prediction machine design concept, break through a defect that the block chain passively receives the out-of-chain information, and implement optimization of obtaining the out-of-chain information "actively" by the block chain through phase change.
To solve the above technical problem, one or more embodiments of the present specification are implemented as follows:
in a first aspect, a service processing method based on a block chain prediction machine is provided, including:
responding to an external data acquisition request initiated by a service party for a target service, calling a request method of a intelligent contract of a prediction machine by the intelligent contract of the service so as to send request information constructed based on the request method to the intelligent contract of the prediction machine, wherein the request information at least carries a request address, a callback address and a callback method;
the intelligent contract of the dialer generates a unique identifier according to the received request information, correspondingly stores the unique identifier in the local, and simultaneously sends the unique identifier to the intelligent contract of the service, so that the intelligent contract of the service correspondingly stores the unique identifier and the target service;
when monitoring request information on the intelligent contract of the language predicting machine, the data acquisition terminal acquires external data based on a request address in the request information, constructs the external data and a unique identifier corresponding to the request information into a transaction and sends the transaction to the intelligent contract of the language predicting machine;
the intelligent contract of the prediction machine searches a corresponding callback address according to the unique identifier in the transaction, and returns external data and the unique identifier in the transaction to the intelligent contract of the service based on a corresponding callback method;
and the service intelligent contract uses the external data to execute the corresponding target service according to the unique identifier in the received callback result.
In a second aspect, a service processing system based on a blockchain predictor is provided, which includes: the intelligent contract of the business on the block chain, the intelligent contract of the prediction machine and a data acquisition terminal outside the chain; wherein the content of the first and second substances,
the service intelligent contract calls a request method of the intelligent contract of the language prediction machine in response to an external data acquisition request initiated by a service party for a target service so as to send request information constructed based on the request method to the intelligent contract of the language prediction machine, wherein the request information at least carries a request address, a callback address and a callback method;
the intelligent contract of the prompter generates a unique identifier for the received request information, correspondingly stores the unique identifier in the local, and simultaneously sends the unique identifier to the intelligent contract of the service, so that the intelligent contract of the service correspondingly stores the unique identifier and the target service;
the data acquisition terminal acquires external data based on a request address in the request information when monitoring the request information on the intelligent contract of the language prediction machine, constructs the external data and the unique identifier corresponding to the request information into a transaction and sends the transaction to the intelligent contract of the language prediction machine;
the intelligent contract of the language predicting machine searches a corresponding callback address according to the uniqueness identifier in the transaction, and returns external data and the uniqueness identifier in the transaction to the intelligent contract of the service based on a corresponding callback method;
and the service intelligent contract executes the corresponding target service by using the external data according to the unique identifier in the received callback result.
In a third aspect, an electronic device is provided, including:
a processor; and
a memory arranged to store computer executable instructions that, when executed, cause the processor to perform the method of the first aspect.
In a fourth aspect, a computer-readable storage medium is presented, storing one or more programs which, when executed by an electronic device comprising a plurality of application programs, cause the electronic device to perform the method of the first aspect.
As can be seen from the technical solutions provided in one or more embodiments of the present specification, through a specific predicting machine technology, a predicting machine intelligent contract is called on a chain for a target service to generate request information for requesting external information required by the target service, and then, a data acquisition terminal under the chain can acquire external data required by the service from outside the chain based on monitoring the request information on the chain. And then, the acquired external data and the set corresponding codes are firstly sent to the intelligent contract of the language prediction machine in a trading mode, and finally the intelligent contract of the language prediction machine is fed back to the service contract so that the service contract can execute corresponding target services by using the external data. The scheme provides required off-chain information for the block chain by a specific prediction machine design concept, breaks through the defect that the block chain passively receives the off-chain information, and realizes the optimization of the block chain for actively acquiring the off-chain information through phase change.
Drawings
In order to more clearly illustrate one or more embodiments or prior art solutions of the present specification, reference will now be made briefly to the attached drawings, which are needed in the description of one or more embodiments or prior art, and it should be apparent that the drawings in the description below are only some of the embodiments described in the specification, and that other drawings may be obtained by those skilled in the art without inventive exercise.
Fig. 1 is a system architecture diagram to which a service processing method based on a block chain prediction machine according to an embodiment of the present specification is applied.
Fig. 2 is a schematic step diagram of a service processing method based on a block chain prediction machine according to an embodiment of the present disclosure.
Fig. 3 is a schematic structural diagram of a service processing system based on a blockchain prediction machine according to an embodiment of the present disclosure.
Fig. 4 is a schematic structural diagram of an electronic device provided in an embodiment of the present specification.
Detailed Description
In order to make the technical solutions in the present specification better understood, the technical solutions in one or more embodiments of the present specification will be clearly and completely described below with reference to the accompanying drawings in one or more embodiments of the present specification, and it is obvious that the one or more embodiments described are only a part of the embodiments of the present specification, and not all embodiments. All other embodiments that can be derived by a person skilled in the art from one or more of the embodiments described herein without making any inventive step shall fall within the scope of protection of this document.
The block chain is a deterministic and closed system environment, the block chain can only acquire data in the chain at present but cannot acquire data of a real world outside the chain, and the block chain is split from the real world. The mechanism by which out-of-chain information for a blockchain is written into a blockchain is generally referred to as an oracle mechanism. The function of the prediction machine is to write external information into the block chain to complete the data intercommunication between the block chain and the real world. The method allows the determined intelligent contract to react to the uncertain external world, is the only way for the intelligent contract to perform data interaction with the outside, and is also an interface for the block chain to perform data interaction with the real world.
The execution of a general intelligent contract requires a trigger condition, and when the trigger condition of the intelligent contract is external information, a prediction machine is necessary to provide data service, and real-world data is input to a block chain through the prediction machine because the intelligent contract does not support external requests. The specific reasons are that: a blockchain is a deterministic environment that does not allow for indeterminate things or factors, and intelligent contracts must be consistent results regardless of time and place to run, so Virtual Machines (VMs) cannot have network calls to the intelligent contracts, or the results are indeterminate. That is, the smart contract cannot perform I/O (Input/Output), so it cannot actively acquire external data, and only can give data to the smart contract through the prediction engine. The method is the work flow of an ideal prediction machine, namely, an intelligent contract of a user requests to an Oracle contract on a chain, external data is obtained through an API (application programming interface) under the chain, more specifically, the intelligent contract requests and triggers the external data to the Oracle contract on the chain, and then the Oracle contract sends the data to the intelligent contract of the user.
In the embodiment of the present specification, a prediction machine intelligent contract is called on a chain for a target service through a specific prediction machine technology to generate request information for requesting external information required by the target service, and then a data acquisition terminal under the chain can acquire external data required by the service from outside the chain based on monitoring the request information on the chain. And then, the acquired external data and the set corresponding codes are firstly sent to the intelligent contract of the language prediction machine in a trading mode, and finally the intelligent contract of the language prediction machine is fed back to the service contract so that the service contract can execute corresponding target services by using the external data. The scheme provides required off-chain information for the block chain by a specific prediction machine design concept, breaks through the defect that the block chain passively receives the off-chain information, and realizes the optimization of the block chain for actively acquiring the off-chain information through phase change.
Fig. 1 is a diagram illustrating a system architecture to which the service processing method based on a blockchain prediction machine according to the embodiment of the present disclosure is applied. In the implementation scenario of the prediction machine, the prediction machine mainly comprises: an upper-chain portion 102 located on the blockchain and a lower-chain portion 104 located outside the blockchain; the on-chain part 102 is mainly an intelligent contract related to a prediction machine, and also comprises other functional modules; the down-link portion 104 is primarily concerned with the data collection terminal that performs the centralized data collection service. The acquisition of the block chain to the off-chain data is realized in a predictive machine technology through the interaction of the on-chain part 102 and the off-chain part 104.
The following describes a detailed description of an embodiment of the present disclosure with reference to the system architecture shown in fig. 1.
Example one
Referring to fig. 2, a schematic step diagram of a service processing method based on a blockchain prediction machine provided in an embodiment of the present specification, where the service processing method may include the following steps:
step 202: responding to an external data acquisition request initiated by a service party for a target service, calling a request method of a intelligent contract of a prediction machine by the intelligent contract of the service so as to send request information constructed based on the request method to the intelligent contract of the prediction machine, wherein the request information at least carries a request address, a callback address and a callback method.
It should be understood that in the embodiments of the present description, the intelligent contracts deployed in the upper chain portion of the system architecture shown in fig. 1 may include at least a prediction machine intelligent contract and a business intelligent contract, and may also include intelligent contracts that execute or invoke other methods or businesses. The intelligent contract of the prediction machine is mainly used for adding a calling request or a method and returning externally acquired off-link data to the intelligent contract of the service. The intelligent contract of the prediction machine can record the request code of the target service, the request address and the data analysis mode of the target service and the callback mode after the request is successful. The business intelligent contract is used for interacting information with the intelligent contract of the language predicting machine in a mode of calling methods on one hand, and is used for executing business methods specified in the local contract on the other hand.
After a service side initiates an external data acquisition request aiming at a target service, a service intelligent contract on a chain part in the service processing system starts to respond, and an adding and calling request method of a language predictive engine intelligent contract is called, wherein the main parameters comprise: user request address, data analysis mode, callback address and method, etc.
Step 204: and the intelligent contract of the prediction machine generates a unique identifier according to the received request information, correspondingly stores the unique identifier in the local, and simultaneously sends the unique identifier to the intelligent contract of the service, so that the intelligent contract of the service correspondingly stores the unique identifier and the target service.
In this specification embodiment, the unique identifier may be a request code that is incremented or decremented by a sequence. During specific implementation, the intelligent contract of the language prediction machine can generate a request code for the received request information according to a mode of sequence increasing or decreasing, and return the request code to the intelligent contract of the service for recording, and store the request information in the local intelligent contract of the language prediction machine, and take the request code as the unique code. Wherein, the request code can be an ordered code composed of numbers and/or letters.
Step 206: and when monitoring the request information on the intelligent contract of the language prediction machine, the data acquisition terminal acquires external data based on the request address in the request information, constructs the external data and the unique identifier corresponding to the request information into a transaction and sends the transaction to the intelligent contract of the language prediction machine.
It should be understood that the data collection terminal may be a data collection service centralized down the chain to listen for requests for smart contracts for the prediction machines on the chain. When the data acquisition terminal monitors that the request information exists, the external data can be acquired according to the request address in the request information. And sending the acquired external data chain and a request code corresponding to request information requesting the external data to a prediction machine intelligent contract on the chain in a transaction mode. In order to prevent the possibility of malicious tampering of data in the process of acquiring external data, in this embodiment of the present specification, the request address may be an encrypted request link address of HTTPS.
Step 208: and the intelligent contract of the prediction machine searches a corresponding callback address according to the unique identifier in the transaction, and returns external data and the unique identifier in the transaction to the intelligent contract of the service based on a corresponding callback method.
And searching a corresponding callback address and a corresponding method from the local according to a request code in the transaction sent by the received data acquisition terminal by the intelligent contract of the on-chain prediction machine, and returning the external data and the request code in the transaction to the intelligent contract of the service.
Step 210: and the service intelligent contract uses the external data to execute the corresponding target service according to the unique identifier in the received callback result.
Considering that the request information initiated by each target service corresponds to a unique request code, after external data and the request code in the transaction are returned to the service intelligent contract, the service intelligent contract searches the specific content of the target service corresponding to the request code according to the request code in the received callback result, and executes the target service by using the acquired external data.
Further, the data acquisition terminal records an application program interface API query record at each request, where the API query record at least includes: request address, request result and request time; accordingly, after the data collection terminal sends the transaction to the intelligent contract of the prediction machine, the method may further include:
and the supervision terminal acquires the request number information and the returned external data from the chain and audits the data based on the API inquiry record so as to ensure the authenticity of the data. In this way, after the auditing is completed, whether to execute the target service by using the data can be determined according to the auditing result.
Optionally, the data acquisition terminal is operated and maintained by a trusted third party, and no direct business participates in the chain, so that the neutrality and credibility of the data acquisition terminal can be fully ensured.
Alternatively, the target service may be a fair game service implemented based on a blockchain intelligent contract, and accordingly, the acquired external data is a random number generated outside the chain.
In particular, many current blockchain games may involve random numbers that are often unpredictable, verifiable, and ultimately determine the level or ultimate battle condition of the game player. In this case, the service processing system shown in fig. 1 can be used as a game service processing system to process the problem of secure and reliable generation of random numbers in the field of game services. At this time, the external data is a random number generated by a random number generator located outside the block chain, and the data acquisition terminal may be the random number generator or other acquisition devices may acquire the random number from the random number generator. The subsequent data interaction realized by the predictive engine technology can be referred to fig. 2.
Optionally, the target service may also be a financial service implemented based on a blockchain intelligent contract, and accordingly, the obtained external data is asset information derived from an off-chain financial product, where the asset information at least includes: exchange rate, stock, interest rate, deposit.
Similarly, the business processing system shown in fig. 1 can be used as a financial business processing system to handle the problem that some characteristic asset information related to the financial business field needs to be acquired externally. At this time, the external data is the asset information such as exchange rate, stock, interest rate, and deposit, which is located outside the block chain, and the data acquisition terminal can acquire the asset information from different financial institutions or government departments. The subsequent data interaction realized by the predictive engine technology can be referred to as shown in fig. 2, and is not described herein again.
Through a specific prediction machine technology, a prediction machine intelligent contract is called on a chain aiming at a target service to generate request information for requesting external information required by the target service, and then a data acquisition terminal under the chain can acquire external data required by the service from outside the chain based on monitoring the request information on the chain. And then, the acquired external data and the set corresponding codes are firstly sent to the intelligent contract of the language prediction machine in a trading mode, and finally the intelligent contract of the language prediction machine is fed back to the service contract so that the service contract can execute corresponding target services by using the external data. The scheme provides required off-chain information for the block chain by a specific prediction machine design concept, breaks through the defect that the block chain passively receives the off-chain information, and realizes the optimization of the block chain for actively acquiring the off-chain information through phase change.
Example two
Referring to fig. 3, for the service processing system based on the blockchain prediction machine provided in the embodiment of the present disclosure, the system 300 may include: a service intelligent contract 302, a prediction machine intelligent contract 304 and an off-chain data acquisition terminal 306 on the block chain; it should be understood that the intelligent contracts carrying labels referred to in this second embodiment may be understood as corresponding intelligent contract modules, and each intelligent contract module has a respective intelligent contract code deployed therein. Wherein the content of the first and second substances,
the service intelligent contract 302 calls a request method of a dialer intelligent contract in response to an external data acquisition request initiated by a service party for a target service so as to send request information constructed based on the request method to the dialer intelligent contract, wherein the request information at least carries a request address, a callback address and a callback method;
the intelligent contract 304 of the prompter generates a unique identifier for the received request information, correspondingly stores the unique identifier in the local, and simultaneously sends the unique identifier to the intelligent contract of the service, so that the intelligent contract of the service correspondingly stores the unique identifier and the target service;
the data acquisition terminal 306 acquires external data based on a request address in the request information when monitoring the request information on the intelligent contract of the language prediction machine, and constructs the external data and the unique identifier corresponding to the request information into a transaction to be sent to the intelligent contract of the language prediction machine;
the intelligent contract 304 of the prediction machine searches a corresponding callback address according to the uniqueness identifier in the transaction, and returns external data and the uniqueness identifier in the transaction to the intelligent contract of the service based on a corresponding callback method;
and the service intelligent contract 302 executes the corresponding target service by using the external data according to the unique identifier in the received callback result.
Optionally, as an embodiment, the data acquisition terminal records an API query record of an application program interface at each request, where the API query record at least includes: request address, request result and request time; the system further comprises: a supervision terminal; and the supervision terminal acquires the request information and the returned external data from the chain after the data acquisition terminal sends the transaction to the intelligent contract of the prediction machine, and audits the data based on the API inquiry record.
In a specific implementation manner of the embodiment of the present specification, the request address is an encrypted request link address of HTTPS.
In another specific implementation manner of the embodiment of the present specification, the data acquisition terminal is operated and maintained by a trusted third party, and no direct business participation is involved in the chain.
Through a specific prediction machine technology, a prediction machine intelligent contract is called on a chain aiming at a target service to generate request information for requesting external information required by the target service, and then a data acquisition terminal under the chain can acquire external data required by the service from outside the chain based on monitoring the request information on the chain. And then, the acquired external data and the set corresponding codes are firstly sent to the intelligent contract of the language prediction machine in a trading mode, and finally the intelligent contract of the language prediction machine is fed back to the service contract so that the service contract can execute corresponding target services by using the external data. The scheme provides required off-chain information for the block chain by a specific prediction machine design concept, breaks through the defect that the block chain passively receives the off-chain information, and realizes the optimization of the block chain for actively acquiring the off-chain information through phase change.
EXAMPLE III
Fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure. Referring to fig. 4, at a hardware level, the electronic device includes a processor, and optionally further includes an internal bus, a network interface, and a memory. The Memory may include a Memory, such as a Random-Access Memory (RAM), and may further include a non-volatile Memory, such as at least 1 disk Memory. Of course, the electronic device may also include hardware required for other services.
The processor, the network interface, and the memory may be connected to each other via an internal bus, which may be an ISA (Industry Standard Architecture) bus, a PCI (Peripheral Component Interconnect) bus, an EISA (Extended Industry Standard Architecture) bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one double-headed arrow is shown in FIG. 4, but that does not indicate only one bus or one type of bus.
And the memory is used for storing programs. In particular, the program may include program code comprising computer operating instructions. The memory may include both memory and non-volatile storage and provides instructions and data to the processor.
The processor reads the corresponding computer program from the nonvolatile memory into the memory and then runs the computer program to form the modules involved in the block chain business processing system on the logic level. And the processor is used for executing the program stored in the memory and is specifically used for executing corresponding operation.
The method performed by the apparatus according to the embodiment shown in fig. 2 of the present specification can be applied to or implemented by a processor. The processor may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware in a processor or instructions in the form of software. The Processor may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but also Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components. The methods, steps, and logic blocks disclosed in one or more embodiments of the present specification may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of a method disclosed in connection with one or more embodiments of the present disclosure may be embodied directly in hardware, in a software module executed by a hardware decoding processor, or in a combination of the hardware and software modules executed by a hardware decoding processor. The software module may be located in ram, flash memory, rom, prom, or eprom, registers, etc. storage media as is well known in the art. The storage medium is located in a memory, and a processor reads information in the memory and completes the steps of the method in combination with hardware of the processor.
The electronic device may also execute the method of fig. 2 and implement the functions of the corresponding apparatus in the embodiment shown in fig. 2, which are not described herein again in this specification.
Of course, besides the software implementation, the electronic device of the embodiment of the present disclosure does not exclude other implementations, such as a logic device or a combination of software and hardware, and the like, that is, the execution subject of the following processing flow is not limited to each logic unit, and may also be hardware or a logic device.
Through a specific prediction machine technology, a prediction machine intelligent contract is called on a chain aiming at a target service to generate request information for requesting external information required by the target service, and then a data acquisition terminal under the chain can acquire external data required by the service from outside the chain based on monitoring the request information on the chain. And then, the acquired external data and the set corresponding codes are firstly sent to the intelligent contract of the language prediction machine in a trading mode, and finally the intelligent contract of the language prediction machine is fed back to the service contract so that the service contract can execute corresponding target services by using the external data. The scheme provides required off-chain information for the block chain by a specific prediction machine design concept, breaks through the defect that the block chain passively receives the off-chain information, and realizes the optimization of the block chain for actively acquiring the off-chain information through phase change.
Example four
This specification embodiment also proposes a computer readable storage medium storing one or more programs, the one or more programs comprising instructions, which when executed by a portable electronic device comprising a plurality of application programs, are capable of causing the portable electronic device to perform the method of the embodiment shown in fig. 2.
Through a specific prediction machine technology, a prediction machine intelligent contract is called on a chain aiming at a target service to generate request information for requesting external information required by the target service, and then a data acquisition terminal under the chain can acquire external data required by the service from outside the chain based on monitoring the request information on the chain. And then, the acquired external data and the set corresponding codes are firstly sent to the intelligent contract of the language prediction machine in a trading mode, and finally the intelligent contract of the language prediction machine is fed back to the service contract so that the service contract can execute corresponding target services by using the external data. The scheme provides required off-chain information for the block chain by a specific prediction machine design concept, breaks through the defect that the block chain passively receives the off-chain information, and realizes the optimization of the block chain for actively acquiring the off-chain information through phase change.
In short, the above description is only a preferred embodiment of the present disclosure, and is not intended to limit the scope of the present disclosure. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present specification shall be included in the protection scope of the present specification.
The system, apparatus, module or unit illustrated in one or more of the above embodiments may be implemented by a computer chip or an entity, or by an article of manufacture with a certain functionality. One typical implementation device is a computer. In particular, the computer may be, for example, a personal computer, a laptop computer, a cellular telephone, a camera phone, a smartphone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the system embodiment, since it is substantially similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
The foregoing description has been directed to specific embodiments of this disclosure. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims may be performed in a different order than in the embodiments and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing may also be possible or may be advantageous.

Claims (10)

1. A service processing method based on a block chain prediction machine comprises the following steps:
responding to an external data acquisition request initiated by a service party for a target service, calling a request method of a intelligent contract of a prediction machine by the intelligent contract of the service so as to send request information constructed based on the request method to the intelligent contract of the prediction machine, wherein the request information at least carries a request address, a callback address and a callback method;
the intelligent contract of the dialer generates a unique identifier according to the received request information, correspondingly stores the unique identifier in the local, and simultaneously sends the unique identifier to the intelligent contract of the service, so that the intelligent contract of the service correspondingly stores the unique identifier and the target service;
when monitoring request information on the intelligent contract of the language predicting machine, the data acquisition terminal acquires external data based on a request address in the request information, constructs the external data and a unique identifier corresponding to the request information into a transaction and sends the transaction to the intelligent contract of the language predicting machine;
the intelligent contract of the prediction machine searches a corresponding callback address according to the unique identifier in the transaction, and returns external data and the unique identifier in the transaction to the intelligent contract of the service based on a corresponding callback method;
and the service intelligent contract uses the external data to execute the corresponding target service according to the unique identifier in the received callback result.
2. The method of claim 1, wherein the data acquisition terminal records an API query record for each request, the API query record at least comprising: request address, request result and request time;
after the data collection terminal sends the transaction to the intelligent contract of the prediction machine, the method further comprises the following steps:
and the supervision terminal acquires the request information and the returned external data from the chain and audits the data based on the API inquiry record.
3. The method of claim 1, the request address being an encrypted request link address of HTTPS.
4. The method of claim 1, wherein the data collection terminal is operated and maintained by a trusted third party without direct business participation in the chain.
5. The method according to any one of claims 1-4, wherein the target service is a fair game service implemented based on a blockchain intelligent contract, and accordingly the acquired external data is a random number generated outside the chain.
6. The method according to any one of claims 1-4, wherein the target service is a financial service implemented based on a blockchain intelligent contract, and accordingly, the acquired external data is asset information derived from an off-chain financial product, the asset information at least comprising: exchange rate, stock, interest rate, deposit.
7. A service processing system based on a blockchain predictor, comprising: the intelligent contract of the business on the block chain, the intelligent contract of the prediction machine and a data acquisition terminal outside the chain; wherein the content of the first and second substances,
the service intelligent contract calls a request method of the intelligent contract of the language prediction machine in response to an external data acquisition request initiated by a service party for a target service so as to send request information constructed based on the request method to the intelligent contract of the language prediction machine, wherein the request information at least carries a request address, a callback address and a callback method;
the intelligent contract of the prompter generates a unique identifier for the received request information, correspondingly stores the unique identifier in the local, and simultaneously sends the unique identifier to the intelligent contract of the service, so that the intelligent contract of the service correspondingly stores the unique identifier and the target service;
the data acquisition terminal acquires external data based on a request address in the request information when monitoring the request information on the intelligent contract of the language prediction machine, constructs the external data and the unique identifier corresponding to the request information into a transaction and sends the transaction to the intelligent contract of the language prediction machine;
the intelligent contract of the language predicting machine searches a corresponding callback address according to the uniqueness identifier in the transaction, and returns external data and the uniqueness identifier in the transaction to the intelligent contract of the service based on a corresponding callback method;
and the service intelligent contract executes the corresponding target service by using the external data according to the unique identifier in the received callback result.
8. The system of claim 7, wherein the data acquisition terminal records an API query record for each request, the API query record at least comprising: request address, request result and request time; the system further comprises: a supervision terminal;
and the supervision terminal acquires the request information and the returned external data from the chain after the data acquisition terminal sends the transaction to the intelligent contract of the prediction machine, and audits the data based on the API inquiry record.
9. The system of claim 7, the request address being an encrypted request link address of HTTPS.
10. The system of claim 7, wherein the data collection terminal is operated and maintained by a trusted third party without direct business participation in the chain.
CN202110433493.8A 2021-04-19 2021-04-19 Service processing method and system based on block chain prediction machine Pending CN113205416A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110433493.8A CN113205416A (en) 2021-04-19 2021-04-19 Service processing method and system based on block chain prediction machine

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110433493.8A CN113205416A (en) 2021-04-19 2021-04-19 Service processing method and system based on block chain prediction machine

Publications (1)

Publication Number Publication Date
CN113205416A true CN113205416A (en) 2021-08-03

Family

ID=77027735

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110433493.8A Pending CN113205416A (en) 2021-04-19 2021-04-19 Service processing method and system based on block chain prediction machine

Country Status (1)

Country Link
CN (1) CN113205416A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114172662A (en) * 2021-12-03 2022-03-11 工银科技有限公司 Block chain external data acquisition method and device
CN114331446A (en) * 2022-03-15 2022-04-12 北京百度网讯科技有限公司 Method, device, equipment and medium for realizing out-of-chain service of block chain
CN114362968A (en) * 2022-03-15 2022-04-15 北京百度网讯科技有限公司 Method, device, equipment and medium for acquiring random number by block chain
CN114513518A (en) * 2022-02-28 2022-05-17 蚂蚁区块链科技(上海)有限公司 Data processing method and system based on block chain
CN114969724A (en) * 2022-07-28 2022-08-30 山东省计算中心(国家超级计算济南中心) External data source data credible uplink method and system
CN115065563A (en) * 2022-08-17 2022-09-16 中航信移动科技有限公司 Civil aviation data processing system based on block chain prediction machine
CN116866045A (en) * 2023-07-18 2023-10-10 四川华西集采电子商务有限公司 Block chain credible predictor decision support system based on access control rule

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110502927A (en) * 2019-08-27 2019-11-26 腾讯科技(深圳)有限公司 A kind of information processing method and relevant apparatus
US20200104307A1 (en) * 2018-09-30 2020-04-02 Innoplexus Ag System and method for blockchain-based secure data processing
CN111258725A (en) * 2020-01-17 2020-06-09 北京百度网讯科技有限公司 Data processing method, device, equipment and medium based on block chain
CN111401903A (en) * 2020-06-03 2020-07-10 腾讯科技(深圳)有限公司 Block chain message processing method, device, computer and readable storage medium
CN111786792A (en) * 2020-06-16 2020-10-16 杭州溪塔科技有限公司 Block chain-based data change recording method and device
CN112100277A (en) * 2020-09-14 2020-12-18 泰链智能技术(济南)有限公司 Method, system, equipment and product for realizing enterprise data chaining prediction machine
CN112650605A (en) * 2020-12-30 2021-04-13 杭州趣链科技有限公司 Method and device for realizing calling process of language predictive controller based on intelligent contract

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20200104307A1 (en) * 2018-09-30 2020-04-02 Innoplexus Ag System and method for blockchain-based secure data processing
CN110502927A (en) * 2019-08-27 2019-11-26 腾讯科技(深圳)有限公司 A kind of information processing method and relevant apparatus
CN111258725A (en) * 2020-01-17 2020-06-09 北京百度网讯科技有限公司 Data processing method, device, equipment and medium based on block chain
CN111401903A (en) * 2020-06-03 2020-07-10 腾讯科技(深圳)有限公司 Block chain message processing method, device, computer and readable storage medium
CN111786792A (en) * 2020-06-16 2020-10-16 杭州溪塔科技有限公司 Block chain-based data change recording method and device
CN112100277A (en) * 2020-09-14 2020-12-18 泰链智能技术(济南)有限公司 Method, system, equipment and product for realizing enterprise data chaining prediction machine
CN112650605A (en) * 2020-12-30 2021-04-13 杭州趣链科技有限公司 Method and device for realizing calling process of language predictive controller based on intelligent contract

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114172662A (en) * 2021-12-03 2022-03-11 工银科技有限公司 Block chain external data acquisition method and device
CN114513518A (en) * 2022-02-28 2022-05-17 蚂蚁区块链科技(上海)有限公司 Data processing method and system based on block chain
CN114331446A (en) * 2022-03-15 2022-04-12 北京百度网讯科技有限公司 Method, device, equipment and medium for realizing out-of-chain service of block chain
CN114362968A (en) * 2022-03-15 2022-04-15 北京百度网讯科技有限公司 Method, device, equipment and medium for acquiring random number by block chain
CN114969724A (en) * 2022-07-28 2022-08-30 山东省计算中心(国家超级计算济南中心) External data source data credible uplink method and system
CN115065563A (en) * 2022-08-17 2022-09-16 中航信移动科技有限公司 Civil aviation data processing system based on block chain prediction machine
CN116866045A (en) * 2023-07-18 2023-10-10 四川华西集采电子商务有限公司 Block chain credible predictor decision support system based on access control rule
CN116866045B (en) * 2023-07-18 2024-01-23 四川华西集采电子商务有限公司 Block chain credible predictor decision support system based on access control rule

Similar Documents

Publication Publication Date Title
CN113205416A (en) Service processing method and system based on block chain prediction machine
CN110032880B (en) Screen recording evidence obtaining method and system based on block chain and electronic equipment
US10572653B1 (en) Computer-based systems configured for managing authentication challenge questions in a database and methods of use thereof
US10812477B2 (en) Blockchain-based enterprise authentication method, apparatus, and device, and blockchain-based authentication traceability method, apparatus, and device
CN110457912B (en) Data processing method and device and electronic equipment
CN110035105B (en) Screen recording evidence obtaining method and system based on block chain and electronic equipment
CN111415158B (en) Wind control method and system based on block chain
CN109598407B (en) Method and device for executing business process
CN111723943B (en) Multi-label-based federal learning method, device and system
CN111260469A (en) Block chain-based evidence storing method, block chain-based evidence storing query method, corresponding device and electronic equipment
CN110780870A (en) Service execution method, device, equipment and storage medium
TW202032466A (en) User age prediction method, apparatus, and device
CN111651467A (en) Block chain link point interface issuing and calling method and device
CN110851207B (en) State transition management method and device, electronic equipment and storage medium
CN111461886B (en) Management method and device for system configuration independent of intelligent contracts on block chains
CN111523887A (en) Authority control method and device of intelligent contract read-only method and electronic equipment
CN111259429A (en) Resource operation authority control method and device and electronic equipment
CN112734349A (en) Interface generation method, data calling method, device and electronic equipment
CN112131545B (en) Method, device and equipment for processing voice authorization and voice related service
CN111062057B (en) Neutral data application method, device and system
CN113761581A (en) Authority control method and device in block chain and electronic equipment
CN114463110A (en) Credit granting system and method based on block chain
CN110750271B (en) Service aggregation, method and device for executing aggregated service and electronic equipment
CN111461884A (en) Trusted computing service sharing method, device and system based on block chain
CN113485758A (en) Micro-service issuing method and device, electronic 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
RJ01 Rejection of invention patent application after publication

Application publication date: 20210803