CN110908813B - Intelligent contract calling method, device, system, computer equipment and storage medium - Google Patents

Intelligent contract calling method, device, system, computer equipment and storage medium Download PDF

Info

Publication number
CN110908813B
CN110908813B CN201911128061.5A CN201911128061A CN110908813B CN 110908813 B CN110908813 B CN 110908813B CN 201911128061 A CN201911128061 A CN 201911128061A CN 110908813 B CN110908813 B CN 110908813B
Authority
CN
China
Prior art keywords
intelligent contract
uplink request
calling
block chain
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.)
Active
Application number
CN201911128061.5A
Other languages
Chinese (zh)
Other versions
CN110908813A (en
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.)
Shenzhen Qianhai Huanrong Lianyi Information Technology Service Co Ltd
Original Assignee
Shenzhen Qianhai Huanrong Lianyi Information Technology Service 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 Shenzhen Qianhai Huanrong Lianyi Information Technology Service Co Ltd filed Critical Shenzhen Qianhai Huanrong Lianyi Information Technology Service Co Ltd
Priority to CN201911128061.5A priority Critical patent/CN110908813B/en
Publication of CN110908813A publication Critical patent/CN110908813A/en
Application granted granted Critical
Publication of CN110908813B publication Critical patent/CN110908813B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/547Remote procedure calls [RPC]; Web services
    • 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)
  • Software Systems (AREA)
  • General Physics & Mathematics (AREA)
  • Development Economics (AREA)
  • Technology Law (AREA)
  • General Business, Economics & Management (AREA)
  • Strategic Management (AREA)
  • Marketing (AREA)
  • Economics (AREA)
  • General Engineering & Computer Science (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The embodiment of the invention provides an intelligent contract calling method, an intelligent contract calling device, an intelligent contract calling system, computer equipment and a computer readable storage medium. The method comprises the steps of receiving a first uplink request sent by any user side through a block chain network when intelligent contract calling is achieved, wherein the first uplink request is used for intelligent contract calling, judging whether verification of the first uplink request passes or not, triggering intelligent contract calling if verification of the first uplink request passes, returning an intelligent contract to the user side according to a triggering instruction, and reporting the intelligent contract calling chain to a preset memory in the block chain so as to enable the memory to persistently store the intelligent contract calling chain. Because the intelligent contract calling chain is reported to the preset memory in the block chain, so that the memory stores the intelligent contract calling chain persistently, the disclosure and the transparency of the intelligent contract calling in the block chain can be improved.

Description

Intelligent contract calling method, device, system, computer equipment and storage medium
Technical Field
The invention relates to the technical field of system services, in particular to an intelligent contract calling method, an intelligent contract calling device, an intelligent contract calling system, computer equipment and a computer-readable storage medium.
Background
The core business logic of the modern block chain application scene, namely, the intelligent contract, represents the authority and the irresistibility of the intelligent contract in a public transparent and alliance party confirmation mode, namely, Code is Law (Code is Law) which is a feasible bridge and guarantee measure for leading the block chain to real world governance. The block chain in the market at present lacks a public transparent mode for intelligent contract calling, and the controllability of intelligent contract calling is reduced.
Disclosure of Invention
The embodiment of the invention provides an intelligent contract calling method, an intelligent contract calling device, an intelligent contract calling system, computer equipment and a computer readable storage medium, which can solve the problem of low controllability of intelligent contract calling in the prior art.
In a first aspect, an embodiment of the present invention provides an intelligent contract invoking method, which is applied to a blockchain network in a blockchain application system, where the blockchain application system further includes at least one user side interacting with the blockchain network, and the method includes: receiving a first uplink request sent by any user side, wherein the first uplink request is used for intelligent contract invoking; judging whether the verification of the first uplink request is passed; if the first uplink request passes the verification, triggering the intelligent contract to be called; and returning the intelligent contract to the user side according to a trigger instruction, and reporting an intelligent contract calling chain to a preset memory in a block chain so as to enable the memory to persistently store the intelligent contract calling chain, wherein the intelligent contract calling chain refers to calling information data corresponding to the intelligent contract calling.
In a second aspect, an embodiment of the present invention further provides an intelligent contract invoking apparatus, which is applied to a blockchain network in a blockchain application system, where the blockchain application system further includes at least one user side interacting with the blockchain network, and the apparatus includes: a first receiving unit, configured to receive a first uplink request sent by any ue, where the first uplink request is used for intelligent contract invocation; a first judging unit, configured to judge whether the verification of the first uplink request passes; the triggering unit is used for triggering the intelligent contract to be called if the verification of the first uplink request passes; and the processing unit is used for returning the intelligent contract to the user side according to the trigger instruction, and reporting the intelligent contract calling chain to a preset memory in a block chain so as to enable the memory to persistently store the intelligent contract calling chain, wherein the intelligent contract calling chain refers to calling information data corresponding to the intelligent contract calling.
In a third aspect, an embodiment of the present invention further provides an intelligent contract invoking system, including a user side, a blockchain application business side, a blockchain platform business side, and a blockchain network side; wherein, the user terminal executes the following steps: triggering a first uplink request called by an intelligent contract through a preset mode provided by the block chain application business end; the block chain application business end executes the following steps: receiving the first uplink request sent by the ue; judging whether the verification of the first uplink request is passed; if the first uplink request passes the verification, signing the first uplink request, and sending a second uplink request corresponding to the signed first uplink request to the business end of the block chain platform; the block chain platform business end executes the following steps: receiving the second uplink request sent by the blockchain application business terminal; judging whether the verification of the second uplink request is passed; if the verification of the second uplink request passes, signing the second uplink request, and sending a third uplink request corresponding to the signed second uplink request to the blockchain network end; and the block chain network end receives the third uplink request sent by the block chain platform business end and executes the intelligent contract calling method on the third uplink request.
In a fourth aspect, an embodiment of the present invention further provides a computer device, which includes a memory and a processor, where the memory stores a computer program, and the processor implements the intelligent contract invoking method when executing the computer program.
In a fifth aspect, an embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored, and when executed by a processor, the computer program causes the processor to execute the intelligent contract invoking method.
The embodiment of the invention provides an intelligent contract calling method, an intelligent contract calling device, an intelligent contract calling system, computer equipment and a computer readable storage medium. The block chain application system further comprises at least one user side which interacts with the block chain network, receives a first uplink request sent by any user side through the block chain network, the first uplink request is used for intelligent contract calling, judges whether verification of the first uplink request passes or not, triggers the intelligent contract calling if the verification of the first uplink request passes, returns the intelligent contract to the user side according to a triggering instruction, and reports the intelligent contract calling chain corresponding to the intelligent contract calling to a preset memory in the block chain so as to enable the memory to persistently store the intelligent contract calling chain. Because the intelligent contract calling chain is reported to the preset memory in the block chain, so that the memory stores the intelligent contract calling chain persistently, the disclosure and the transparency of the intelligent contract calling in the block chain can be improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic flowchart of an intelligent contract invoking method according to an embodiment of the present invention;
FIG. 2 is another schematic flow chart of an intelligent contract invoking method according to an embodiment of the present invention;
fig. 3 is a schematic flowchart of a specific embodiment of an intelligent contract invoking method according to an embodiment of the present invention;
FIG. 4 is a schematic block diagram of an intelligent contract invoking apparatus provided by an embodiment of the present invention; and
FIG. 5 is a schematic block diagram of a computer device provided by an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It will be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
Referring to fig. 1, fig. 1 is a schematic flowchart of an intelligent contract invoking method according to an embodiment of the present invention. The intelligent contract calling method is applied to a blockchain network in a blockchain application system, the blockchain application system further includes at least one user side interacting with the blockchain network, as shown in fig. 1, the method includes the following steps S101 to S105:
s101, receiving a first uplink request sent by any user side, wherein the first uplink request is used for intelligent contract invoking.
Among them, a Smart contract (Smart contract in english) is a computer protocol that propagates, verifies, or executes contracts in an informational manner. Smart contracts allow trusted transactions to be conducted without third parties, which transactions are traceable and irreversible. The intelligent contract calling refers to that on a block chain, some functions cannot be completed through one intelligent contract, and at the moment, the calling among the intelligent contracts is used, namely the calling of the intelligent contracts is realized.
Specifically, in the intelligent contract calling, when a user side corresponding to an intelligent contract calling initiating end performs intelligent contract calling, a first uplink request is initiated first, the first uplink request is used for intelligent contract calling, and after a block chain network receives the first uplink request initiated by the user side, the block chain network checks the first uplink request and judges whether the verification of the first uplink request passes.
S102, judging whether the verification of the first uplink request is passed.
S103, if the verification of the first uplink request is passed, triggering the intelligent contract to call.
And S104, returning the intelligent contract to the user side according to a trigger instruction, and reporting an intelligent contract calling chain to a preset memory in a block chain so as to enable the memory to persistently store the intelligent contract calling chain, wherein the intelligent contract calling chain refers to calling information data corresponding to the intelligent contract calling.
S105, if the verification of the first uplink request is not passed, returning a prompt of failure of the verification of the first uplink request.
And the intelligent contract calling chain refers to calling information data corresponding to the intelligent contract calling.
Specifically, the blockchain network verifies the first uplink request, determines whether the verification of the first uplink request passes, allows the ue to perform intelligent contract calling if the blockchain network determines that the verification of the first uplink request passes, triggers the intelligent contract calling, and returns the intelligent contract to the ue according to a triggering instruction, meanwhile, reporting the intelligent contract calling chain corresponding to the intelligent contract calling to a preset memory in a block chain so as to enable the preset memory to store calling information data corresponding to the intelligent contract calling, thereby facilitating querying and tracking the intelligent contract invocation information, and causing the memory to persistently store the intelligent contract invocation chain, due to the consensus mechanism of the block chain network, the disclosure and transparency of intelligent contract calling can be ensured.
Further, in an embodiment, the step of determining whether the verification of the first uplink request is passed includes:
verifying the user identity contained in the first uplink request;
and if the user identity passes the verification, judging that the first uplink request passes the verification.
Specifically, the block chain network receives a first uplink request sent by a user side, judges whether the verification of the user identity contained in the first uplink request is passed, for example, the communication party identity and the signature user identity are verified to be legal, if the communication party identity and the signature user identity are legal, the verification of the first uplink request is passed, triggers the intelligent contract calling, for example, triggers the corresponding intelligent contract calling according to the set interface rule after the verification is passed, and therefore the safety of the intelligent contract calling in the block chain network is ensured through multi-level user identity validity verification.
The block chain application system further comprises at least one user side which interacts with the block chain network, receives a first uplink request sent by any user side through the block chain network, the first uplink request is used for intelligent contract calling, judges whether verification of the first uplink request passes or not, triggers the intelligent contract calling if the verification of the first uplink request passes, returns the intelligent contract to the user side according to a triggering instruction, and reports the intelligent contract calling chain corresponding to the intelligent contract calling to a preset memory in the block chain so as to enable the memory to persistently store the intelligent contract calling chain. Because the intelligent contract calling chain is reported to the preset memory in the block chain, so that the memory stores the intelligent contract calling chain persistently, the openness and transparency of the intelligent contract calling in the block chain can be improved, and the controllability of the intelligent contract calling in the block chain is improved.
Further, the method further comprises: and carrying out consensus and block-out on the called intelligent contracts.
Wherein consensus refers to a consensus mechanism, the so-called consensus mechanism is equivalent to voting, and different consensus mechanisms are equivalent to different voting rules. And the block outputting means that the data in the block chain is output to a user side outside the block chain.
Specifically, the called intelligent contracts are subjected to consensus and block identification to complete verification of data in the block chain, so that the safety of the data in the block chain can be ensured.
In one embodiment, after the step of returning the intelligent contract to the user side and reporting the intelligent contract call chain to a preset memory in a block chain, the method further includes:
receiving a query request for the intelligent contract calling chain sent by any user side;
calling the intelligent contract calling chain according to the query request;
and returning the intelligent contract calling chain to the user side corresponding to the query request.
Specifically, in the intelligent contract calling, if a first uplink request called by an intelligent contract sent by a user end is verified, the block chain network calls the intelligent contract and returns the intelligent contract to the user end, and simultaneously reports the intelligent contract calling chain to a preset memory in the block chain, so that after the memory persistently stores the intelligent contract calling chain, the block chain network receives a query request sent by any user end for the intelligent contract calling chain, calls the intelligent contract calling chain from the preset memory according to the query request, and returns the intelligent contract calling chain to the user end corresponding to the query request, so as to realize that the any user end queries the calling information data corresponding to the intelligent contract calling, because the intelligent contract calling chain is persistently stored in the preset memory, thereby realizing the disclosure and transparency of the intelligent contract calling chain.
Referring to fig. 2, fig. 2 is another schematic flow chart of the intelligent contract invoking method according to the embodiment of the present invention. As shown in fig. 2, in this embodiment, the step of receiving the query request for the intelligent contract invocation chain sent by any of the user terminals includes:
s206, receiving a second uplink request sent by any ue, where the second uplink request includes the query request;
s207, judging whether the verification of the second uplink request is passed;
s208, if the second uplink request is verified, calling the intelligent contract calling chain according to the query request;
s209, returning the intelligent contract calling chain to the user side corresponding to the query request
S210, if the verification of the second uplink request is not passed, returning a prompt that the verification of the second uplink request is failed.
Specifically, when any user terminal makes an inquiry request for the intelligent contract calling chain stored in the blockchain network, the blockchain network verifies the second uplink request, determines whether the verification of the second uplink request is passed, that is, determines whether the verification of the user terminal is passed, if the verification of the user terminal is passed, calls the intelligent contract calling chain according to the inquiry request, returns the intelligent contract calling chain to the user terminal corresponding to the inquiry request, and if the verification of the second uplink request is not passed, returns a prompt indicating that the verification of the second uplink request fails, so that on the basis of ensuring the openness and transparency of the intelligent contract calling chain, the security of the intelligent contract calling chain is further ensured, and the user terminal having the authority of the inquiry request is ensured to inquire the intelligent contract calling chain, so that the intelligent contract calling chain ensures the openness and the transparency within the preset subject range. Steps S201 to S205 included in fig. 2 correspond to steps S101 to S105 in fig. 1, respectively, and are not described herein again.
In one embodiment, the block chain application system further comprises a block chain applicator terminal and a block chain platform terminal, and the first uplink request is a uplink request that is sequentially verified by the block chain applicator terminal and the block chain platform terminal.
Specifically, in a block chain application system corresponding to an application environment used by the intelligent contract invoking method, the application environment includes, in addition to a user terminal, a block chain application business terminal and a block chain platform business terminal, after the user terminal initiates a first uplink request for intelligent contract invoking, the block chain application business terminal firstly verifies the first uplink request including the intelligent contract invoking, if the block chain application business terminal verifies the first uplink request, the first uplink request is sent to the block chain platform business terminal, the block chain platform business terminal verifies the first uplink request, if the block chain platform business terminal verifies the first uplink request, the first uplink request is sent to the block chain network, the block chain network continues to verify the first uplink request, and then whether the verification of the first uplink request passes is determined, if the verification of the first uplink request is passed, triggering the intelligent contract calling, returning the intelligent contract to the user side according to a triggering instruction, and reporting the intelligent contract calling chain to a preset memory in a block chain so as to enable the memory to persistently store the intelligent contract calling chain, wherein the intelligent contract calling chain refers to calling information data corresponding to the intelligent contract calling, and if the verification of the first uplink request is failed, returning a prompt that the verification of the first uplink request is failed, thereby completing the intelligent contract calling.
Referring to fig. 3, fig. 3 is a schematic flowchart of an embodiment of an intelligent contract invoking method according to the present invention. As shown in fig. 3, this embodiment includes the following processes:
1) the ue initiates an uplink request to the blockchain provider. For example, the end-user triggers an ul interface request through a page of the blockchain utility, and the blockchain utility receives the ul request from the end-user.
2) The block chain application business end checks the uplink request, and if the check is passed, the communication party message is used for signing; 3) and the block chain application business end sends an uplink request to the block chain platform business end through an HTTPS uplink interface. For example, after the application business verifies the user identity, the message is signed by using a private key of a communication party registered at the business end of the block chain platform to realize signature of the communication party, and an uplink interface of the business end of the block chain platform is requested through http.
4) The block chain platform business end carries out authority verification on a cochain request which is sent by the block chain application business end and contains intelligent contract calling, and if the verification is passed, a escrow private key is used for signing; 5) and the blockchain platform business end sends an uplink request to the blockchain network through the uplink interface to carry out uplink on the blockchain network. For example, the platform side firstly verifies the identity of the communication party through http bidirectional authentication, and then verifies the validity of the uplink request user identity of the corresponding agent to realize authority verification, including identity validity and correlation verification of the communication party and the like. And the platform party signs the uplink request through a private key managed by the user to realize uplink signature, assembles the communication party signature of the application provider and requests the block chain network.
6) And the block chain network carries out identity validity check on the uplink request sent by the business end of the block chain platform, and triggers contract calling if the check is passed. For example, the blockchain network receives the uplink request and first checks the validity of the correspondent identity and the signed subscriber identity. And triggering corresponding intelligent contract calling according to the interface rule to realize contract triggering.
7) The block chain network performs contract triggering on the intelligent contract to realize contract 1 calling; 8) carrying out contract 1 calling on the intelligent contract 1; 9) returning the contract 1 called by the intelligent contract to the block chain network; 10) the intelligent contract reports calling information data corresponding to the intelligent contract 1 calling chain to a preset memory corresponding to the intelligent contract calling tracking through a calling stack; 11) the preset memory stores the data of the calling information data corresponding to the intelligent contract 1 calling chain; 12) the block chain network performs contract triggering on the intelligent contract to realize contract 2 calling; 13) calling a contract 2 to the intelligent contract 2; 14) returning the contract 2 called by the intelligent contract to the block chain network; 15) the intelligent contract reports calling information data corresponding to the intelligent contract 2 calling chain to the preset memory through a calling stack; 16) and the preset memory stores the data of the calling information data corresponding to the intelligent contract 2 calling chain. In the intelligent contract calling process, data such as corresponding call stack information and the like are reported to a link tracking acquisition end server, and an intelligent contract calling chain is stored persistently to realize data reporting.
17) The block chain network identifies the intelligent contract 1 calling chain and the intelligent contract 2 calling chain together and performs block output; 18) the block chain network returns the uplink interface to the business end of the block chain platform; 19) the business end of the block chain platform returns the uplink interface to the business end of the block chain application; 20) and the block chain application business terminal returns the uplink interface to the terminal user terminal so as to realize uplink return of intelligent contract calling of the terminal user terminal.
With continued reference to FIG. 3, the process of querying the intelligent contract invocation chain includes the steps of:
(1) the request end (i.e. the terminal user end) sends a contract call chain query to the blockchain application provider end.
(2) And the block chain application provider side sends a contract calling chain query to the block chain platform provider side.
3) And the business end of the block chain platform checks the authority of the contract calling chain inquiry, and if the check is passed, the business end sends an inquiry request to a preset memory.
(4) And sending the contract calling chain query to a preset memory.
(5) The preset memory carries out link inquiry of the intelligent contract calling chain.
(6) And the preset memory inquires the intelligent contract call chain inquiry result and returns the intelligent contract call chain inquiry result to the business end of the block chain platform.
(7) And the block chain platform business end queries the intelligent contract call chain query result and returns the query result to the block chain application business end.
(8) And the block chain application business end inquires the intelligent contract calling chain inquiry result and returns the intelligent contract calling chain inquiry result to the request end so as to complete the inquiry of the intelligent contract calling chain.
Through the processes, the terminal user side can check the complete process of intelligent contract calling by clicking the corresponding page and triggering the calling chain inquiry interface after successfully triggering the uplink request on the terminal user side, so that the contract calling process and the result are transparent and public. The invention also solves the problems of the disclosure and the transparency of contract calling and management on the premise of realizing the safe trusteeship of the user key.
It should be noted that the intelligent contract invoking methods described in the above embodiments may recombine technical features included in different embodiments as needed to obtain a combined implementation, but all of them are within the protection scope of the present invention.
Referring to fig. 4, fig. 4 is a schematic block diagram of an intelligent contract invoking device according to an embodiment of the present invention. Corresponding to the intelligent contract calling method, the embodiment of the invention also provides an intelligent contract calling device. As shown in fig. 4, the intelligent contract invoking device includes a unit for executing the intelligent contract invoking method, and the device may be configured in a blockchain network, and the blockchain application system further includes at least one client interacting with the blockchain network. Specifically, referring to fig. 4, the intelligent contract invoking apparatus 400 includes a first receiving unit 401, a first determining unit 402, a triggering unit 403, and a processing unit 404.
The first receiving unit 401 is configured to receive a first uplink request sent by any ue, where the first uplink request is used for intelligent contract invocation;
a first determining unit 402, configured to determine whether the verification of the first uplink request passes;
a triggering unit 403, configured to trigger the intelligent contract invocation if the verification of the first uplink request passes;
the processing unit 404 is configured to return the intelligent contract to the user side according to a trigger instruction, and report an intelligent contract invocation chain to a preset memory in a block chain, so that the memory persistently stores the intelligent contract invocation chain, where the intelligent contract invocation chain refers to invocation information data corresponding to the intelligent contract invocation.
In one embodiment, the intelligent contract invoking apparatus 400 further comprises:
a second receiving unit, configured to receive a query request for the intelligent contract invocation chain sent by any of the user sides;
the calling unit is used for calling the intelligent contract calling chain according to the query request;
and the return unit is used for returning the intelligent contract calling chain to the user side corresponding to the query request.
In one embodiment, the second receiving unit includes:
a receiving subunit, configured to receive a second uplink request sent by any ue, where the second uplink request includes the query request;
a determining subunit, configured to determine whether the verification of the second uplink request passes;
and the execution subunit is configured to execute the step of calling the intelligent contract calling chain according to the query request if the second uplink request is verified.
In one embodiment, the first judging unit 402 includes:
a verification subunit, configured to verify a user identity included in the first uplink request;
and the judging subunit is used for judging that the verification of the first uplink request is passed if the verification of the user identity is passed.
In one embodiment, the block chain application system further comprises a block chain applicator terminal and a block chain platform terminal, and the first uplink request is a uplink request that is sequentially verified by the block chain applicator terminal and the block chain platform terminal.
It should be noted that, as can be clearly understood by those skilled in the art, the specific implementation processes of the intelligent contract invoking apparatus and each unit may refer to the corresponding descriptions in the foregoing method embodiments, and for convenience and brevity of description, no further description is provided herein.
Meanwhile, the division and connection mode of each unit in the intelligent contract invoking device are only used for illustration, in other embodiments, the intelligent contract invoking device may be divided into different units as needed, and each unit in the intelligent contract invoking device may also adopt different connection sequences and modes to complete all or part of the functions of the intelligent contract invoking device.
The embodiment of the invention also provides an intelligent contract calling system which comprises a user side, a block chain application business side, a block chain platform business side and a block chain network side.
Wherein, the user terminal executes the following steps: and triggering a first uplink request called by an intelligent contract through a preset mode provided by the block chain application business terminal.
The block chain application business end executes the following steps: receiving the first uplink request sent by the ue; judging whether the verification of the first uplink request is passed; if the verification of the first uplink request passes, signing the first uplink request, and sending a second uplink request corresponding to the signed first uplink request to the business terminal of the block chain platform.
The block chain platform business end executes the following steps: receiving the second uplink request sent by the blockchain application business terminal; judging whether the verification of the second uplink request is passed; and if the verification of the second uplink request passes, signing the second uplink request, and sending a third uplink request corresponding to the signed second uplink request to the block chain network terminal.
The network side of the block chain receives the third uplink request sent by the business side of the block chain platform, and executes the steps of the intelligent contract calling method described in the above embodiment on the third uplink request.
Further, the intelligent contract invoking apparatus may be implemented in the form of a computer program, which may be run on a computer device as shown in fig. 5.
Referring to fig. 5, fig. 5 is a schematic block diagram of a computer device according to an embodiment of the present invention. The computer device 500 may be a computer device such as a desktop computer or a server, or may be a component or part of another device.
Referring to fig. 5, the computer device 500 includes a processor 502, memory, and a network interface 505 connected by a system bus 501, where the memory may include a non-volatile storage medium 503 and an internal memory 504.
The non-volatile storage medium 503 may store an operating system 5031 and a computer program 5032. The computer program 5032, when executed, causes the processor 502 to perform one of the intelligent contract invocation methods described above.
The processor 502 is used to provide computing and control capabilities to support the operation of the overall computer device 500.
The memory 504 provides an environment for the operation of the computer program 5032 in the non-volatile storage medium 503, and when the computer program 5032 is executed by the processor 502, the processor 502 may be enabled to execute an intelligent contract invocation method as described above.
The network interface 505 is used for network communication with other devices. Those skilled in the art will appreciate that the configuration shown in fig. 5 is a block diagram of only a portion of the configuration associated with aspects of the present invention and is not intended to limit the computing device 500 to which aspects of the present invention may be applied, and that a particular computing device 500 may include more or less components than those shown, or may combine certain components, or have a different arrangement of components. For example, in some embodiments, the computer device may only include a memory and a processor, and in such embodiments, the structures and functions of the memory and the processor are consistent with those of the embodiment shown in fig. 5, and are not described herein again.
Wherein the processor 502 is configured to run the computer program 5032 stored in the memory to implement the following steps: receiving a first uplink request sent by any user side, wherein the first uplink request is used for intelligent contract invoking; judging whether the verification of the first uplink request is passed; if the first uplink request passes the verification, triggering the intelligent contract to be called; and returning the intelligent contract to the user side according to a trigger instruction, and reporting an intelligent contract calling chain to a preset memory in a block chain so as to enable the memory to persistently store the intelligent contract calling chain, wherein the intelligent contract calling chain refers to calling information data corresponding to the intelligent contract calling.
In an embodiment, after implementing the steps of returning the intelligent contract to the user side and reporting the intelligent contract call chain to a preset memory in a block chain, the processor 502 further implements the following steps:
receiving a query request for the intelligent contract calling chain sent by any user side;
calling the intelligent contract calling chain according to the query request;
and returning the intelligent contract call chain to the user side corresponding to the query request.
In an embodiment, when the step of receiving the query request for the intelligent contract invocation chain sent by any of the user terminals is implemented, the processor 502 specifically implements the following steps:
receiving a second uplink request sent by any of the ues, wherein the second uplink request includes the query request;
judging whether the verification of the second uplink request is passed;
and if the verification of the second uplink request is passed, executing the step of calling the intelligent contract calling chain according to the query request.
In an embodiment, when the processor 502 performs the step of determining whether the verification of the first uplink request is passed, the following steps are specifically performed:
verifying the user identity contained in the first uplink request;
and if the user identity passes the verification, determining that the first uplink request passes the verification.
In an embodiment, the block chain application system further includes a block chain application provider side and a block chain platform provider side, and when the processor 502 implements the step of receiving a first uplink request sent by any of the ues, where the first uplink request is used for intelligent contract invocation, the first uplink request is a uplink request that is sequentially verified to pass through the block chain application provider side and the block chain platform provider side.
It should be understood that, in the embodiment of the present invention, the Processor 502 may be a Central Processing Unit (CPU), and the Processor 502 may also be other general-purpose processors, 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, and the like. Wherein a general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
It will be understood by those skilled in the art that all or part of the processes in the method for implementing the above embodiments may be implemented by a computer program, and the computer program may be stored in a computer readable storage medium. The computer program is executed by at least one processor in the computer system to implement the flow steps of the embodiments of the method described above.
Accordingly, the present invention also provides a computer-readable storage medium. The computer readable storage medium may be a non-volatile computer readable storage medium, the computer readable storage medium storing a computer program that, when executed by a processor, causes the processor to perform the steps of:
a computer program product which, when run on a computer, causes the computer to perform the steps of the intelligent contract invocation method described in the embodiments above.
The computer readable storage medium may be an internal storage unit of the aforementioned device, such as a hard disk or a memory of the device. The computer readable storage medium may also be an external storage device of the device, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), etc. provided on the device. Further, the computer-readable storage medium may also include both an internal storage unit and an external storage device of the apparatus.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described apparatuses, devices and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
The storage medium is an entity and non-transitory storage medium, and may be various entity storage media capable of storing computer programs, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a magnetic disk, or an optical disk.
Those of ordinary skill in the art will appreciate that the elements and algorithm steps of the examples described in connection with the embodiments disclosed herein may be embodied in electronic hardware, computer software, or combinations of both, and that the components and steps of the examples have been described in a functional general in the foregoing description for the purpose of illustrating clearly the interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative. For example, the division of each unit is only one logic function division, and there may be another division manner in actual implementation. For example, various elements or components may be combined or may be integrated into another system, or some features may be omitted, or not implemented.
The steps in the method of the embodiment of the invention can be sequentially adjusted, combined and deleted according to actual needs. The units in the device of the embodiment of the invention can be merged, divided and deleted according to actual needs. In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a storage medium. Based on such understanding, the technical solution of the present invention essentially or partially contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing an electronic device (which may be a personal computer, a terminal, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention.
While the invention has been described with reference to specific embodiments, the invention is not limited thereto, and various equivalent modifications and substitutions can be easily made by those skilled in the art within the technical scope of the invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (9)

1. An intelligent contract calling method applied to a blockchain network in a blockchain application system, wherein the blockchain application system further comprises at least one user side interacting with the blockchain network, and the method is characterized by comprising the following steps:
receiving a first uplink request, where the first uplink request is a request for invoking an intelligent contract sent by an arbitrary ue, and the block chain application system further includes a block chain application provider end and a block chain platform provider end, the first uplink request is a uplink request obtained by sequentially verifying, by the block chain application provider end and the block chain platform provider end, that an initial uplink request is an original uplink request sent by the ue;
judging whether the verification of the first uplink request is passed;
if the first uplink request passes the verification, triggering the intelligent contract to be called;
according to a trigger instruction, returning the intelligent contract to the user side, and reporting an intelligent contract calling chain to a preset memory in a block chain so as to enable the memory to persistently store the intelligent contract calling chain, wherein the intelligent contract calling chain refers to calling information data corresponding to the intelligent contract calling;
before the triggering of the intelligent contract invoking, the method further includes:
performing consensus verification on the called intelligent contract based on a consensus mechanism;
and if the called intelligent contract consensus is verified to be passed, executing the triggering intelligent contract calling.
2. The intelligent contract calling method according to claim 1, wherein after the step of returning the intelligent contract to the user side and reporting the intelligent contract calling chain to a preset memory in a block chain, the method further comprises:
receiving a query request for the intelligent contract calling chain sent by any user side;
calling the intelligent contract calling chain according to the query request;
and returning the intelligent contract calling chain to the user side corresponding to the query request.
3. The intelligent contract invocation method according to claim 2, wherein the step of receiving the query request for the intelligent contract invocation chain sent by any of the user terminals comprises:
receiving a second uplink request sent by any of the ues, wherein the second uplink request includes the query request;
judging whether the verification of the second uplink request is passed;
and if the verification of the second uplink request is passed, executing the step of calling the intelligent contract calling chain according to the query request.
4. The intelligent contract invoking method according to claim 1, wherein the step of determining whether the verification of the first uplink request is passed comprises:
verifying the user identity contained in the first uplink request;
and if the user identity passes the verification, determining that the first uplink request passes the verification.
5. An intelligent contract calling device, applied to a blockchain network in a blockchain application system, wherein the blockchain application system further comprises at least one user side interacting with the blockchain network, and the intelligent contract calling device is characterized by comprising:
a first receiving unit, configured to receive a first uplink request, where the first uplink request is a request for invoking an intelligent contract and is sent by an arbitrary ue, and the block chain application system further includes a block chain application provider and a block chain platform provider, the first uplink request is a uplink request obtained by sequentially verifying an initial uplink request through the block chain application provider and the block chain platform provider, and the initial uplink request is an original uplink request sent by the ue;
a first judging unit, configured to judge whether the verification of the first uplink request passes;
the triggering unit is used for triggering the intelligent contract to be called if the verification of the first uplink request passes;
the processing unit is used for returning the intelligent contract to the user side according to a trigger instruction, and reporting an intelligent contract calling chain to a preset memory in a block chain so as to enable the memory to persistently store the intelligent contract calling chain, wherein the intelligent contract calling chain refers to calling information data corresponding to the intelligent contract calling;
wherein the apparatus further comprises:
the consensus verification unit is used for carrying out consensus verification on the called intelligent contract based on a consensus mechanism;
and the execution unit is used for executing the triggering of the intelligent contract calling if the called intelligent contract consensus verification passes.
6. The intelligent contract invocation apparatus according to claim 5, wherein said apparatus further comprises:
a second receiving unit, configured to receive a query request for the intelligent contract invocation chain sent by any of the user sides;
the calling unit is used for calling the calling information data corresponding to the intelligent contract calling chain according to the query request;
and the return unit is used for returning the intelligent contract calling chain to the user side corresponding to the query request.
7. An intelligent contract calling system is characterized by comprising a user side, a block chain application business side, a block chain platform business side and a block chain network side;
wherein, the user terminal executes the following steps: triggering an initial uplink request called by an intelligent contract through a preset mode provided by the block chain application business end;
the block chain application business end executes the following steps: receiving the initial uplink request sent by the ue; judging whether the verification of the initial uplink request is passed; if the verification of the initial uplink request passes, signing the initial uplink request to obtain a third uplink request, and sending the third uplink request to the business terminal of the block chain platform;
the block chain platform business end executes the following steps: receiving the third uplink request sent by the blockchain application business terminal; judging whether the verification of the third uplink request is passed; if the verification of the third uplink request is passed, signing the third uplink request to obtain a first uplink request, and sending the first uplink request to the block chain network end;
the blockchain network end receives the first uplink request sent by the blockchain platform business end, and performs the steps of the intelligent contract calling method according to any one of claims 1 to 4 on the first uplink request.
8. A computer device, comprising a memory and a processor coupled to the memory; the memory is used for storing a computer program; the processor is configured to execute a computer program stored in the memory to perform the steps of the intelligent contract invocation method according to any of claims 1-4.
9. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program which, when executed by a processor, causes the processor to carry out the steps of the intelligent contract invocation method according to any of claims 1-4.
CN201911128061.5A 2019-11-18 2019-11-18 Intelligent contract calling method, device, system, computer equipment and storage medium Active CN110908813B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911128061.5A CN110908813B (en) 2019-11-18 2019-11-18 Intelligent contract calling method, device, system, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911128061.5A CN110908813B (en) 2019-11-18 2019-11-18 Intelligent contract calling method, device, system, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN110908813A CN110908813A (en) 2020-03-24
CN110908813B true CN110908813B (en) 2022-08-05

Family

ID=69817730

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911128061.5A Active CN110908813B (en) 2019-11-18 2019-11-18 Intelligent contract calling method, device, system, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110908813B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111797142A (en) * 2020-07-06 2020-10-20 北京荷月科技有限公司 Method and system for auditing data on link
CN113761493B (en) * 2021-08-26 2024-04-05 浙商银行股份有限公司 Intelligent contract interface calling authority and caller identity control method and system for blockchain platform
CN116955090B (en) * 2023-09-19 2023-11-28 四川集鲜数智供应链科技有限公司 Calling chain monitoring system and method for chain service

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108632045A (en) * 2018-05-10 2018-10-09 阿里巴巴集团控股有限公司 A kind of block chain data processing method, device, processing equipment and system
CN109272324A (en) * 2018-09-25 2019-01-25 深圳市元征科技股份有限公司 A kind of business function implementation method, system, equipment and computer storage medium
CN109376541A (en) * 2018-09-21 2019-02-22 上海点融信息科技有限责任公司 For running the method, apparatus and computer storage medium of intelligent contract
CN109583891A (en) * 2018-11-14 2019-04-05 咪咕文化科技有限公司 A kind of information processing method, device and storage medium
CN110177079A (en) * 2019-04-17 2019-08-27 北京百度网讯科技有限公司 The calling system and call method of intelligent contract
CN110175875A (en) * 2019-05-28 2019-08-27 山东省计算中心(国家超级计算济南中心) A kind of outdoor advertising acquisition method and device based on block chain

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20190132130A1 (en) * 2017-10-27 2019-05-02 Sap Se Authoring and Embedding Blockchain Based Smart Contracts in B2B Contract Managements Systems

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108632045A (en) * 2018-05-10 2018-10-09 阿里巴巴集团控股有限公司 A kind of block chain data processing method, device, processing equipment and system
CN109376541A (en) * 2018-09-21 2019-02-22 上海点融信息科技有限责任公司 For running the method, apparatus and computer storage medium of intelligent contract
CN109272324A (en) * 2018-09-25 2019-01-25 深圳市元征科技股份有限公司 A kind of business function implementation method, system, equipment and computer storage medium
CN109583891A (en) * 2018-11-14 2019-04-05 咪咕文化科技有限公司 A kind of information processing method, device and storage medium
CN110177079A (en) * 2019-04-17 2019-08-27 北京百度网讯科技有限公司 The calling system and call method of intelligent contract
CN110175875A (en) * 2019-05-28 2019-08-27 山东省计算中心(国家超级计算济南中心) A kind of outdoor advertising acquisition method and device based on block chain

Also Published As

Publication number Publication date
CN110908813A (en) 2020-03-24

Similar Documents

Publication Publication Date Title
CN110908813B (en) Intelligent contract calling method, device, system, computer equipment and storage medium
CN112446785B (en) Cross-chain transaction method, system, device, equipment and storage medium
US11349665B2 (en) Device attestation server and method for attesting to the integrity of a mobile device
EP2839401B1 (en) Secure password-based authentication for cloud computing services
CN109995776B (en) Internet data verification method and system
CN110400217B (en) Rule change processing method and device for intelligent contract
US9911158B1 (en) Systems and methods for providing a persistent state
CN110889640A (en) Risk assessment method for preventing personal data from being leaked, terminal and network center
CN109308416B (en) Business service data processing method, device, system, storage medium and equipment
WO2020088323A1 (en) Capability exposure method and device
CN114491436A (en) Contract signing method and device, electronic equipment and storage medium
CN111260475A (en) Data processing method, block chain node point equipment and storage medium
CN112187453A (en) Digital certificate updating method and system, electronic equipment and readable storage medium
CN110740163B (en) Idempotent control method, idempotent control device, electronic equipment and readable storage medium
CN111915308A (en) Transaction processing method of blockchain network and blockchain network
CN115396192A (en) User identity verification method and device, computer equipment and storage medium
CN116502283A (en) Privacy data processing method and device
CN115879074A (en) Identity authentication method, device and system based on block chain
CN111259411B (en) Block chain management method, device, electronic equipment and readable storage medium
CN109510816B (en) Service request validity verification method, client and server
TWI505128B (en) Method and System of Intelligent Component Library Management
CN111563756A (en) Transaction method based on credit guarantee, transaction establishing method and related hardware
CN110585717A (en) Information processing method and device
CN115022864B (en) Verification method and device for subscription service
CN110647757A (en) Data processing method based on intelligent contract and related device

Legal Events

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