CN109818957B - Intelligent contract calling method, device and system based on visual interface - Google Patents

Intelligent contract calling method, device and system based on visual interface Download PDF

Info

Publication number
CN109818957B
CN109818957B CN201910074994.4A CN201910074994A CN109818957B CN 109818957 B CN109818957 B CN 109818957B CN 201910074994 A CN201910074994 A CN 201910074994A CN 109818957 B CN109818957 B CN 109818957B
Authority
CN
China
Prior art keywords
calling
block chain
target
user
contract
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
CN201910074994.4A
Other languages
Chinese (zh)
Other versions
CN109818957A (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.)
Puxin Hengye Technology Development Beijing Co ltd
Shanghai Chunqi Financial Information Service Co ltd
Original Assignee
Puxin Hengye Technology Development Beijing Co ltd
Shanghai Chunqi Financial Information 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 Puxin Hengye Technology Development Beijing Co ltd, Shanghai Chunqi Financial Information Service Co ltd filed Critical Puxin Hengye Technology Development Beijing Co ltd
Priority to CN201910074994.4A priority Critical patent/CN109818957B/en
Publication of CN109818957A publication Critical patent/CN109818957A/en
Application granted granted Critical
Publication of CN109818957B publication Critical patent/CN109818957B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

When a user needs to call an intelligent contract, a corresponding SDK application program does not need to be developed, the local environment configuration, the parameter configuration and the like are not needed to be familiar, and only the target block chain, the target intelligent contract and the target method need to be selected from the selectable block chains displayed in the visual interface of the user terminal, the selectable intelligent contract in each selectable block chain and the selectable method in each selectable intelligent contract, and specific calling parameter values are input according to the calling parameters of the target method, so that the intelligent contract can be called. The calling method of the intelligent contract is simple and easy to operate, reduces the difficulty and cost of calling the intelligent contract, enlarges the range of users of the block chain, and enables the block chain to be better fused with a service scene.

Description

Intelligent contract calling method, device and system based on visual interface
Technical Field
The invention relates to the technical field of block chains, in particular to an intelligent contract calling method, device and system based on a visual interface.
Background
The blockchain is a distributed database with multiple parties participating in recording and storage, and is of great interest in the industry due to the characteristics of decentralization, non-tampering and the like. The intelligent contract is expressed by computer code, deployed in a blockchain network, and is equivalent to an executable electronic contract. As long as the participants reach agreement, the right and obligation established by the intelligent contract are automatically calculated and executed by the computer according to the logic agreed by the code without human intervention.
The existing contract invoking method firstly needs a developer to develop an SDK application program capable of invoking a contract, secondly needs a user invoking the contract to perform related configuration in an SDK running environment, and then needs the user to download a certificate and secret key information for proving the identity of the user on a block chain service cloud platform. The whole operation process is very complicated, a user needs to be familiar with local environment configuration and parameter configuration, the operation is abstract, the user needs to have technical related professional background, the use threshold is high, and the operation can only be used by technical personnel.
Disclosure of Invention
In view of this, the invention discloses an intelligent contract calling method, an intelligent contract calling device and an intelligent contract calling system based on a visual interface, wherein a user can input a target block chain to be called, a target intelligent contract in the target block chain, a target method in the target intelligent contract and a calling parameter of the target method through the visual interface, so that the intelligent contract is called, and the difficulty and the cost of calling the intelligent contract are reduced.
In order to achieve the above purpose, the invention provides the following specific technical scheme:
an intelligent contract calling method based on a visual interface is applied to a user terminal, and comprises the following steps:
calling access authority information which is stored by a block chain cloud service platform and corresponds to digital identity information of a block chain user, and displaying selectable block chains in the access authority information, selectable intelligent contracts in each selectable block chain, selectable methods in each selectable intelligent contract and calling parameters in each selectable method in a visual interface for the user to select and input calling parameter information;
generating contract invocation transaction information in response to contract invocation information input by the blockchain user through a visual interface, wherein the contract invocation transaction information comprises: a target block chain, a target intelligent contract, a target method, and a calling parameter of the target method;
signing the contract invoking transaction information by using a private key in the digital identity information of the blockchain user;
and sending the signed contract calling transaction information to the block chain cloud service platform, so that the block chain cloud service platform calls a target method in a target intelligent contract in a target block chain through a calling parameter of the target method.
Optionally, before the access right information corresponding to the digital identity information of the blockchain user and stored by the call server, the method further includes:
and according to the user name and the password input by the system for logging in the blockchain user, acquiring the digital identity information of the blockchain user in a blockchain cloud service platform, encrypting the digital identity information of the blockchain user and storing the encrypted digital identity information in the local, wherein the digital identity information of the blockchain user comprises a certificate and a private key.
Optionally, the method further includes:
when contract calling transaction information pushed by a block chain cloud service platform is received, displaying a target block chain, a target intelligent contract, a target method and calling parameters of the target method in the contract calling transaction information in a visual interface;
responding to a confirmation instruction input by the blockchain user through a visual interface, and executing the signing of the contract invoking transaction information by using a private key in the digital identity information of the blockchain user.
An intelligent contract calling method based on a visual interface is applied to a block chain cloud service platform, and comprises the following steps:
receiving an access authority information calling request which is sent by a user terminal and carries digital identity information of a block chain user;
according to the pre-stored corresponding relation between the digital identity information and the access authority information of different blockchain users, feeding back the access authority information corresponding to the digital identity information of the blockchain users to a user terminal, and enabling the user terminal to display the access authority information in a visual interface, wherein the access authority information comprises selectable blockchains of the blockchain users, selectable intelligent contracts in each selectable blockchain, selectable methods in each selectable intelligent contract and calling parameters in each selectable method;
receiving contract calling transaction information sent by a user terminal, wherein the contract calling transaction information comprises a signature of a private key of the blockchain user on the contract calling transaction information, and calling parameters of a target blockchain, a target intelligent contract, a target method and a target method, which are input by the blockchain user through a visual interface;
verifying the signature, and extracting a target block chain, a target intelligent contract, a target method and a calling parameter of the target method from the contract calling transaction information after the signature passes the verification;
and calling the target method in the target intelligent contract in the target block chain through the calling parameter of the target method.
Optionally, the method further includes:
and creating a block chain user, distributing a user name and a password for logging in a system for the block chain user, and generating digital identity information of the block chain user.
Optionally, after the creating the blockchain user, the method further includes:
and setting and storing access authority information corresponding to the digital identity information of the blockchain user according to the identity information of the blockchain user.
Optionally, the method further includes:
and when detecting that the contract calling transaction information needs to be confirmed by the blockchain user, pushing the contract calling transaction information needing to be confirmed to the user terminal.
An intelligent contract invoking device based on a visual interface, which is applied to a user terminal, the device comprises:
the access authority information calling unit is used for calling access authority information which is stored by a block chain cloud service platform and corresponds to digital identity information of a block chain user, and displaying selectable block chains in the access authority information, selectable intelligent contracts in each selectable block chain, selectable methods in each selectable intelligent contract and calling parameters in each selectable method in a visual interface for the block chain user to select and input calling parameter information;
the contract invoking transaction information generating unit is used for responding to contract invoking information input by the blockchain user through a visual interface and generating contract invoking transaction information, and the contract invoking transaction information comprises: a target block chain, a target intelligent contract, a target method, and a calling parameter of the target method;
the signature unit is used for signing the contract invoking transaction information by using a private key in the digital identity information of the block chain user;
and the contract calling transaction information sending unit is used for sending the signed contract calling transaction information to the block chain cloud service platform, so that the block chain cloud service platform calls the target method in the target intelligent contract in the target block chain through the calling parameter of the target method.
Optionally, the apparatus further comprises:
and the digital identity information acquisition unit is used for acquiring the digital identity information of the blockchain user in a blockchain cloud service platform according to the user name and the password input by the blockchain user login system, encrypting the digital identity information of the blockchain user and storing the encrypted digital identity information in the local area, wherein the digital identity information of the blockchain user comprises a certificate and a private key.
Optionally, the apparatus further comprises:
the contract calling transaction information display unit is used for displaying a target block chain, a target intelligent contract, a target method and calling parameters of the target method in the contract calling transaction information in a visual interface when the contract calling transaction information pushed by the block chain cloud service platform is received;
and the instruction response unit is used for responding to a confirmation instruction input by the user of the block chain through a visual interface and triggering the signature unit.
An intelligent contract calling device based on a visual interface is applied to a block chain cloud service platform, and the device comprises:
the system comprises a calling request receiving unit, a calling request sending unit and a calling unit, wherein the calling request receiving unit is used for receiving an access authority information calling request which is sent by a user terminal and carries digital identity information of a block chain user;
the access authority information feedback unit is used for feeding back access authority information corresponding to the digital identity information of the users of the block chain to the user terminal according to the corresponding relation between the digital identity information and the access authority information of the users of different pre-stored block chains, so that the user terminal displays the access authority information in a visual interface, and the access authority information comprises the selectable block chains of the users of the block chain, the selectable intelligent contracts in each selectable block chain, the selectable methods in each selectable intelligent contract and the calling parameters in each selectable method;
the contract calling transaction information receiving unit is used for receiving contract calling transaction information sent by a user terminal, wherein the contract calling transaction information comprises a signature of a private key of the block chain user on the contract calling transaction information and calling parameters of a target block chain, a target intelligent contract, a target method and a target method, which are input by the block chain user through a visual interface;
the signature verification unit is used for verifying the signature, and extracting a target block chain, a target intelligent contract, a target method and a calling parameter of the target method from the contract calling transaction information after the signature passes the verification;
and the intelligent contract calling unit is used for calling the target method in the target intelligent contract in the target block chain through the calling parameter of the target method.
Optionally, the apparatus further comprises:
and the block chain user creating unit is used for creating a block chain user, distributing a user name and a password for logging in a system for the block chain user, and generating the digital identity information of the block chain user.
Optionally, the apparatus further comprises:
and the access authority information setting unit is used for setting and storing the access authority information corresponding to the digital identity information of the blockchain user according to the identity information of the blockchain user.
Optionally, the apparatus further comprises:
and the contract calling transaction information pushing unit is used for pushing the contract calling transaction information needing to be confirmed to the user terminal when detecting that the contract calling transaction information needing to be confirmed by the blockchain user is detected.
An intelligent contract calling system based on a visual interface comprises:
at least one user terminal, wherein the user terminal comprises any one of the above intelligent contract invoking devices based on the visual interface applied to the user terminal;
the system comprises a block chain cloud service platform, a service platform and a service platform, wherein the block chain cloud service platform comprises any one of the intelligent contract calling devices based on the visual interface and applied to the block chain cloud service platform;
at least one blockchain, wherein at least one intelligent contract is deployed in each blockchain, each intelligent contract comprises at least one method, and each method comprises at least one calling parameter.
Compared with the prior art, the invention has the following beneficial effects:
when a user needs to call an intelligent contract, a corresponding SDK application program does not need to be developed, local environment configuration, parameter configuration and the like are not needed to be familiar, and the intelligent contract can be called only by selecting a target block chain, a target intelligent contract and a target method from selectable block chains displayed in the visual interface of the user terminal, selectable intelligent contracts in each selectable block chain and selectable methods in each selectable intelligent contract and inputting specific calling parameter values according to the calling parameters of the target method. The calling method of the intelligent contract is simple and easy to operate, reduces the difficulty and cost of calling the intelligent contract, enlarges the range of users of the block chain, and enables the block chain to be better fused with a service scene.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a schematic flowchart of an intelligent contract invoking method based on a visual interface applied to a user terminal according to an embodiment of the present invention;
FIG. 2 is a schematic view of a visualization interface of a user terminal according to an embodiment of the present disclosure;
fig. 3 is a schematic flowchart of an intelligent contract invoking method based on a visual interface and applied to a block chain cloud service platform according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of an intelligent contract invoking device based on a visual interface and applied to a user terminal according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of an intelligent contract invoking device based on a visual interface and applied to a block chain cloud service platform according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of an intelligent contract invoking system based on a visual interface according to 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 only a part of the embodiments of the present invention, and not all of the embodiments. 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.
The embodiment discloses an intelligent contract calling method based on a visual interface, which is applied to a user terminal, wherein the user terminal can be an electronic device terminal such as a smart phone, a tablet personal computer, a notebook computer and the like, specifically, codes for calling intelligent contracts on a block chain in the prior art are packaged, an APP with the visual interface is developed and completed, and a block chain user can call the intelligent contracts by performing simple operation in the visual interface provided by the user terminal. Specifically, referring to fig. 1, the method for invoking an intelligent contract based on a visual interface, which is disclosed in this embodiment and applied to a user terminal, specifically includes the following steps:
s101: calling access authority information which is stored by a block chain cloud service platform and corresponds to digital identity information of a block chain user, and displaying selectable block chains in the access authority information, selectable intelligent contracts in each selectable block chain, selectable methods in each selectable intelligent contract and calling parameters in each selectable method in a visual interface for the user to select and input calling parameter information;
it should be noted that a blockchain user needs to log in a system before using a user terminal to invoke an intelligent contract, specifically, the blockchain user needs to create in the blockchain cloud service platform first, and when the blockchain user is successfully created, a user name and a password required for logging in the system are allocated to the blockchain user. The blockchain user logs in the system after entering a user name and password in the APP of the user terminal.
After a blockchain user is created in the blockchain cloud service platform, the blockchain cloud service platform generates digital identity information for the blockchain user, wherein the digital identity information comprises a certificate and a private key, and the certificate comprises a public key, certificate issuing information and other information for proving the identity of the blockchain user.
The method comprises the steps that the corresponding relation between a user name and a password of a block chain user and digital identity information is stored in a block chain cloud service platform, when the block chain user logs in a system after inputting the user name and the password into an APP of a user terminal, the user terminal obtains the digital identity information of the block chain user in the block chain cloud service platform according to the user name and the password, encrypts the digital identity information of the block chain user and stores the encrypted digital identity information in the local.
It should be further noted that, after the blockchain cloud service platform creates the blockchain user, the blockchain cloud service platform further sets and stores access right information corresponding to the digital identity information of the blockchain user according to the identity information of the blockchain user, where the access right information includes the selectable blockchain, the selectable intelligent contracts in each selectable blockchain, the selectable methods in each selectable intelligent contract, and the invocation parameters in each selectable method. The identity information of the block chain user can be organization mechanism information of the block chain user, and if a certain organization A is a tenant of a block chain cloud service platform and the organization A has authority to access the block chains a, b and c, the block chain user of the organization A has authority to access the block chains a, b and c and has authority to call all intelligent contracts deployed in the block chains a, b and c; or the users of the blockchain of the organization a have the right to access the blockchain a, b, c, and specifically, the intelligent contracts deployed in the blockchain a, b, c and the method that each intelligent contract can call can set the access and call right according to the department or user level to which the users of the blockchain of the organization a belong.
The method comprises the steps of obtaining access authority information corresponding to digital identity information of a block chain user at a user terminal, and displaying selectable block chains in the access authority information, selectable intelligent contracts in each selectable block chain, selectable methods in each selectable intelligent contract and calling parameters in each selectable method in a visual interface.
Specifically, please refer to fig. 2, wherein the selectable blockchains, the selectable intelligent contracts in each selectable blockchain, and the selectable methods in each selectable intelligent contract may be selected in a pull-down menu form for the blockchain user, when the blockchain user selects the target blockchain, the target intelligent contract in the target blockchain, and the target method in the target intelligent contract, the invocation parameters in the target method may be known, and the user terminal prompts the user of the blockchain in the visual interface that the user needs to input the number of the invocation parameters, and the invocation parameters are specifically those parameters, so that the user of the blockchain may input the values of the invocation parameters according to the format.
S102: generating contract calling transaction information in response to contract calling information input by the blockchain user through a visual interface;
the contract invoking transaction information includes: a target blockchain, a target intelligent contract, a target method, and a calling parameter of the target method.
Referring to fig. 2, after the user of the blockchain inputs contract invoking information through the visual interface, the user clicks the sending parameter, and then inputs all contract invoking information to generate contract invoking transaction information.
S103: signing the contract invoking transaction information by using a private key in the digital identity information of the blockchain user;
s104: and sending the signed contract calling transaction information to the block chain cloud service platform, so that the block chain cloud service platform calls a target method in a target intelligent contract in a target block chain through a calling parameter of the target method.
It should be noted that, as the transaction is circulated, when the transaction flow is transferred to a certain blockchain user, the blockchain user may only need to invoke a method in the intelligent contract in the determined blockchain by using the determined invocation parameter, and the blockchain user does not need to make additional selection and input.
For a user terminal, when contract invoking transaction information pushed by a block chain cloud service platform is received, target block chains, target intelligent contracts, target methods and invoking parameters of the target methods in the contract invoking transaction information are displayed in a visual interface, in response to a confirmation instruction input by a block chain user through the visual interface, a private key in digital identity information of the block chain user is used for signing the contract invoking transaction information, the signed contract invoking transaction information is sent to the block chain cloud service platform, and the block chain cloud service platform invokes the target methods in the target intelligent contracts in the target block chains through the invoking parameters of the target methods.
According to the intelligent contract calling method based on the visual interface, when a user needs to call an intelligent contract, a corresponding SDK application program does not need to be developed, the local environment configuration, the parameter configuration and the like do not need to be familiar, and the intelligent contract calling method can be realized only by selecting a target block chain, a target intelligent contract and a target method from selectable block chains displayed in the visual interface of the user terminal, selectable intelligent contracts in each selectable block chain and selectable methods in each selectable intelligent contract and inputting specific calling parameter values according to the calling parameters of the target method. The calling method of the intelligent contract is simple and easy to operate, reduces the difficulty and cost of calling the intelligent contract, enlarges the range of users of the block chain, and enables the block chain to be better fused with a service scene.
For a block chain cloud service platform, this embodiment correspondingly discloses an intelligent contract invoking method based on a visual interface, please refer to fig. 3, where the method includes:
s301: receiving an access authority information calling request which is sent by a user terminal and carries digital identity information of a block chain user;
s302: according to the pre-stored corresponding relationship between the digital identity information and the access authority information of different blockchain users, feeding back the access authority information corresponding to the digital identity information of the blockchain users to a user terminal, and enabling the user terminal to display the access authority information in a visual interface;
the access right information comprises selectable blockchains of the blockchain users, selectable intelligent contracts in each selectable blockchain, selectable methods in each selectable intelligent contract and call parameters in each selectable method.
S303: receiving contract calling transaction information sent by a user terminal;
the contract calling transaction information comprises a signature of a private key of the blockchain user on the contract calling transaction information, and calling parameters of a target blockchain, a target intelligent contract, a target method and a target method, which are input by the blockchain user through a visual interface.
S304: verifying the signature, and extracting a target block chain, a target intelligent contract, a target method and a calling parameter of the target method from the contract calling transaction information after the signature passes the verification;
the public key of each block chain user is stored in the block chain cloud server platform, the public key is used for verifying the signature, whether the identity of the block chain user is credible or not is judged, and whether the block chain user can call the intelligent contract in the contract calling transaction information or not is verified.
S305: and calling the target method in the target intelligent contract in the target block chain through the calling parameter of the target method.
It should be further noted that a complete transaction may involve multiple blockchain users, the execution process of the transaction is to circulate among the several blockchain users, taking the execution of an order transaction as an example, first, the blockchain user a needs to create order information, the blockchain user B takes the order goods out of the warehouse, the blockchain user C is responsible for updating the logistics information after the warehouse is taken out, and the blockchain user D signs in. Each block chain user needs to update the state information of the order, such as order generation, ex-warehouse, logistics state and sign-in, for example, a block chain user a, can call the intelligent contract to execute the transaction of generating the order by selecting a target block chain, a target intelligent contract in the target block chain and a target method in the target intelligent contract in a visual interface of a user terminal and inputting a calling parameter value of the target method, the state of the order needs to be updated to the generated order after the transaction is executed, at this time, the block chain user a does not need to input any parameter, only needs to determine, when the block chain cloud service platform detects that the contract calling transaction information needs to be confirmed by the block chain user a, the block chain user a pushes the contract calling transaction information needing to be confirmed to the user terminal of the block chain user a, so that the block chain user a completes confirmation on the visual interface of the user terminal by clicking a button, and the user terminal automatically signs the contract calling transaction information and then sends the contract calling transaction information to the block chain cloud service platform, so that the block chain cloud service platform calls the corresponding intelligent contract.
Based on the intelligent contract invoking method based on the visual interface applied to the user terminal disclosed in the above embodiment, this embodiment correspondingly discloses an intelligent contract invoking device based on the visual interface, which is applied to the user terminal, please refer to fig. 4, and the device includes:
an access authority information invoking unit 401, configured to invoke access authority information corresponding to digital identity information of a blockchain user, which is stored by a blockchain cloud service platform, and display, in a visual interface, an optional blockchain in the access authority information, an optional intelligent contract in each optional blockchain, an optional method in each optional intelligent contract, and an invocation parameter in each optional method, so that the blockchain user selects and inputs invocation parameter information;
a contract invoking transaction information generating unit 402, configured to generate contract invoking transaction information in response to contract invoking information input by the blockchain user through a visual interface, where the contract invoking transaction information includes: a target block chain, a target intelligent contract, a target method, and a calling parameter of the target method;
a signature unit 403, configured to sign the contract invocation transaction information by using a private key in the digital identity information of the blockchain user;
and a contract invoking transaction information sending unit 405, configured to send the signed contract invoking transaction information to the blockchain cloud service platform, so that the blockchain cloud service platform invokes a target method in a target intelligent contract in a target blockchain through a invoking parameter of the target method.
Optionally, the apparatus further comprises:
and the digital identity information acquisition unit is used for acquiring the digital identity information of the blockchain user in a blockchain cloud service platform according to the user name and the password input by the blockchain user login system, encrypting the digital identity information of the blockchain user and storing the encrypted digital identity information in the local area, wherein the digital identity information of the blockchain user comprises a certificate and a private key.
Optionally, the apparatus further comprises:
the contract calling transaction information display unit is used for displaying a target block chain, a target intelligent contract, a target method and calling parameters of the target method in the contract calling transaction information in a visual interface when the contract calling transaction information pushed by the block chain cloud service platform is received;
and the instruction response unit is used for responding to a confirmation instruction input by the user of the block chain through a visual interface and triggering the signature unit.
Based on the foregoing intelligent contract invoking method based on a visual interface applied to a block chain cloud service platform disclosed in the embodiment, this embodiment correspondingly discloses an intelligent contract invoking device based on a visual interface, which is applied to a block chain cloud service platform, please refer to fig. 5, where the device includes:
a calling request receiving unit 501, configured to receive an access right information calling request carrying digital identity information of a block chain user and sent by a user terminal;
an access right information feedback unit 502, configured to feed back, to a user terminal, access right information corresponding to digital identity information of users in a blockchain according to a correspondence between pre-stored digital identity information and access right information of users in different blockchains, so that the user terminal displays the access right information in a visual interface, where the access right information includes selectable blockchains of the users in the blockchain, selectable intelligent contracts in each selectable blockchain, selectable methods in each selectable intelligent contract, and call parameters in each selectable method;
a contract invoking transaction information receiving unit 503, configured to receive contract invoking transaction information sent by a user terminal, where the contract invoking transaction information includes a signature of a private key of the blockchain user on the contract invoking transaction information, and invoking parameters of a target blockchain, a target intelligent contract, a target method, and a target method, which are input by the blockchain user through a visual interface;
a signature verification unit 504, configured to verify the signature, and extract a target block chain, a target intelligent contract, a target method, and a call parameter of the target method from the contract call transaction information after the verification is passed;
and the intelligent contract calling unit 505 is configured to call the target method in the target intelligent contract in the target blockchain by using the calling parameter of the target method.
Optionally, the apparatus further comprises:
and the block chain user creating unit is used for creating a block chain user, distributing a user name and a password for logging in a system for the block chain user, and generating the digital identity information of the block chain user.
Optionally, the apparatus further comprises:
and the access authority information setting unit is used for setting and storing the access authority information corresponding to the digital identity information of the blockchain user according to the identity information of the blockchain user.
Optionally, the apparatus further comprises:
and the contract calling transaction information pushing unit is used for pushing the contract calling transaction information needing to be confirmed to the user terminal when detecting that the contract calling transaction information needing to be confirmed by the blockchain user is detected.
Based on all the above embodiments, the present embodiment discloses an intelligent contract invoking system based on a visual interface, including:
at least one user terminal, wherein the user terminal comprises any one of the above intelligent contract invoking devices based on the visual interface applied to the user terminal;
the system comprises a block chain cloud service platform, a service platform and a service platform, wherein the block chain cloud service platform comprises any one of the intelligent contract calling devices based on the visual interface and applied to the block chain cloud service platform;
at least one blockchain, wherein at least one intelligent contract is deployed in each blockchain, each intelligent contract comprises at least one method, and each method comprises at least one calling parameter.
According to the intelligent contract calling system based on the visual interface disclosed by the embodiment, when a user needs to call an intelligent contract, a corresponding SDK application program does not need to be developed, the local environment configuration, the parameter configuration and the like are not needed to be familiar, and only the target block chain, the target intelligent contract and the target method need to be selected from the selectable block chains displayed in the visual interface of the user terminal, the selectable intelligent contracts in each selectable block chain and the selectable methods in each selectable intelligent contract, and specific calling parameter values are input according to the calling parameters of the target method, so that the intelligent contract can be called. The calling method of the intelligent contract is simple and easy to operate, reduces the difficulty and cost of calling the intelligent contract, enlarges the range of users of the block chain, and enables the block chain to be better fused with a service scene.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (10)

1. An intelligent contract calling method based on a visual interface is applied to a user terminal, and comprises the following steps:
calling access authority information which is stored by a block chain cloud service platform and corresponds to digital identity information of a block chain user, and displaying selectable block chains in the access authority information, selectable intelligent contracts in each selectable block chain, selectable methods in each selectable intelligent contract and calling parameters in each selectable method in a visual interface for the user to select and input calling parameter information;
generating contract invocation transaction information in response to contract invocation information input by the blockchain user through a visual interface, wherein the contract invocation transaction information comprises: a target block chain, a target intelligent contract, a target method, and a calling parameter of the target method;
signing the contract invoking transaction information by using a private key in the digital identity information of the blockchain user;
and sending the signed contract calling transaction information to the block chain cloud service platform, so that the block chain cloud service platform calls a target method in a target intelligent contract in a target block chain through a calling parameter of the target method.
2. The method of claim 1, wherein prior to the invoking server storing access rights information corresponding to digital identity information of a blockchain user, the method further comprises:
and according to the user name and the password input by the system for logging in the blockchain user, acquiring the digital identity information of the blockchain user in a blockchain cloud service platform, encrypting the digital identity information of the blockchain user and storing the encrypted digital identity information in the local, wherein the digital identity information of the blockchain user comprises a certificate and a private key.
3. The method of claim 1, further comprising:
when contract calling transaction information pushed by a block chain cloud service platform is received, displaying a target block chain, a target intelligent contract, a target method and calling parameters of the target method in the contract calling transaction information in a visual interface;
responding to a confirmation instruction input by the blockchain user through a visual interface, and executing the signing of the contract invoking transaction information by using a private key in the digital identity information of the blockchain user.
4. An intelligent contract calling method based on a visual interface is applied to a block chain cloud service platform and comprises the following steps:
receiving an access authority information calling request which is sent by a user terminal and carries digital identity information of a block chain user;
according to the pre-stored corresponding relation between the digital identity information and the access authority information of different blockchain users, feeding back the access authority information corresponding to the digital identity information of the blockchain users to a user terminal, and enabling the user terminal to display the access authority information in a visual interface, wherein the access authority information comprises selectable blockchains of the blockchain users, selectable intelligent contracts in each selectable blockchain, selectable methods in each selectable intelligent contract and calling parameters in each selectable method;
receiving contract calling transaction information sent by a user terminal, wherein the contract calling transaction information comprises a signature of a private key of the blockchain user on the contract calling transaction information, and calling parameters of a target blockchain, a target intelligent contract, a target method and a target method, which are input by the blockchain user through a visual interface;
verifying the signature, and extracting a target block chain, a target intelligent contract, a target method and a calling parameter of the target method from the contract calling transaction information after the signature passes the verification;
and calling the target method in the target intelligent contract in the target block chain through the calling parameter of the target method.
5. The method of claim 4, further comprising:
and creating a block chain user, distributing a user name and a password for logging in a system for the block chain user, and generating digital identity information of the block chain user.
6. The method of claim 5, wherein after said creating a blockchain user, the method further comprises:
and setting and storing access authority information corresponding to the digital identity information of the blockchain user according to the identity information of the blockchain user.
7. The method of claim 4, further comprising:
and when detecting that the contract calling transaction information needs to be confirmed by the blockchain user, pushing the contract calling transaction information needing to be confirmed to the user terminal.
8. An intelligent contract calling device based on a visual interface is applied to a user terminal, and comprises:
the access authority information calling unit is used for calling access authority information which is stored by a block chain cloud service platform and corresponds to digital identity information of a block chain user, and displaying selectable block chains in the access authority information, selectable intelligent contracts in each selectable block chain, selectable methods in each selectable intelligent contract and calling parameters in each selectable method in a visual interface for the block chain user to select and input calling parameter information;
the contract invoking transaction information generating unit is used for responding to contract invoking information input by the blockchain user through a visual interface and generating contract invoking transaction information, and the contract invoking transaction information comprises: a target block chain, a target intelligent contract, a target method, and a calling parameter of the target method;
the signature unit is used for signing the contract invoking transaction information by using a private key in the digital identity information of the block chain user;
and the contract calling transaction information sending unit is used for sending the signed contract calling transaction information to the block chain cloud service platform, so that the block chain cloud service platform calls the target method in the target intelligent contract in the target block chain through the calling parameter of the target method.
9. An intelligent contract calling device based on a visual interface is applied to a block chain cloud service platform and comprises:
the system comprises a calling request receiving unit, a calling request sending unit and a calling unit, wherein the calling request receiving unit is used for receiving an access authority information calling request which is sent by a user terminal and carries digital identity information of a block chain user;
the access authority information feedback unit is used for feeding back access authority information corresponding to the digital identity information of the users of the block chain to the user terminal according to the corresponding relation between the digital identity information and the access authority information of the users of different pre-stored block chains, so that the user terminal displays the access authority information in a visual interface, and the access authority information comprises the selectable block chains of the users of the block chain, the selectable intelligent contracts in each selectable block chain, the selectable methods in each selectable intelligent contract and the calling parameters in each selectable method;
the contract calling transaction information receiving unit is used for receiving contract calling transaction information sent by a user terminal, wherein the contract calling transaction information comprises a signature of a private key of the block chain user on the contract calling transaction information and calling parameters of a target block chain, a target intelligent contract, a target method and a target method, which are input by the block chain user through a visual interface;
the signature verification unit is used for verifying the signature, and extracting a target block chain, a target intelligent contract, a target method and a calling parameter of the target method from the contract calling transaction information after the signature passes the verification;
and the intelligent contract calling unit is used for calling the target method in the target intelligent contract in the target block chain through the calling parameter of the target method.
10. An intelligent contract calling system based on a visual interface, which is characterized by comprising:
at least one user terminal comprising the intelligent contract invoking device based on visual interface of claim 8;
a blockchain cloud service platform comprising the intelligent contract invoking device based on the visual interface of claim 9;
at least one blockchain, wherein at least one intelligent contract is deployed in each blockchain, each intelligent contract comprises at least one method, and each method comprises at least one calling parameter.
CN201910074994.4A 2019-01-25 2019-01-25 Intelligent contract calling method, device and system based on visual interface Active CN109818957B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910074994.4A CN109818957B (en) 2019-01-25 2019-01-25 Intelligent contract calling method, device and system based on visual interface

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910074994.4A CN109818957B (en) 2019-01-25 2019-01-25 Intelligent contract calling method, device and system based on visual interface

Publications (2)

Publication Number Publication Date
CN109818957A CN109818957A (en) 2019-05-28
CN109818957B true CN109818957B (en) 2020-12-22

Family

ID=66605213

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910074994.4A Active CN109818957B (en) 2019-01-25 2019-01-25 Intelligent contract calling method, device and system based on visual interface

Country Status (1)

Country Link
CN (1) CN109818957B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11443326B2 (en) * 2019-06-05 2022-09-13 International Business Machines Corporation Geo-location compliance
CN110827037A (en) * 2019-11-07 2020-02-21 北京海益同展信息科技有限公司 Data interaction method and device based on block chain
CN111865936A (en) * 2020-06-30 2020-10-30 深圳前海益链网络科技有限公司 Intelligent contract implementation method and device, computer equipment and storage medium
CN116743729A (en) * 2023-08-14 2023-09-12 四川万流数据服务有限责任公司 Intelligent contract calling device, system and method

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP3451608B1 (en) * 2017-09-04 2019-11-06 Siemens Aktiengesellschaft Filter unit based data communication system including a blockchain platform
CN108768988B (en) * 2018-05-17 2021-01-05 深圳前海微众银行股份有限公司 Block chain access control method, block chain access control equipment and computer readable storage medium
CN108960825A (en) * 2018-06-26 2018-12-07 阿里巴巴集团控股有限公司 Electric endorsement method and device, electronic equipment based on block chain
CN109033406B (en) * 2018-08-03 2020-06-05 上海点融信息科技有限责任公司 Method, apparatus and storage medium for searching blockchain data
CN109067759B (en) * 2018-08-27 2020-11-03 深圳前海益链网络科技有限公司 Intelligent contract calling single-point execution system

Also Published As

Publication number Publication date
CN109818957A (en) 2019-05-28

Similar Documents

Publication Publication Date Title
CN109818957B (en) Intelligent contract calling method, device and system based on visual interface
CN110428257B (en) Password cracking task processing method, equipment and storage medium
CN107249004B (en) Identity authentication method, device and client
CN108269062B (en) Electronic contract making method, device, equipment and medium based on H5
CN109460966A (en) Contract signing method, apparatus and terminal device based on requesting party's classification
CN103636166A (en) Dynamic data-protection policies associated with a request-reply message queuing environment
CN104767613A (en) Signature verification method, device and system
CN108038388B (en) Method for realizing Web page seal, client and server
CN104091140A (en) Information processing method and electronic device
CN108390848B (en) Information witness method and device
CN105740670A (en) Application encryption method and device, and application startup method and device
CN114598671B (en) Session message processing method, device, storage medium and electronic equipment
CN108092947B (en) Method and device for identity authentication of third-party application
CN104158856A (en) Local API calling method dispense with preset of secure session
CN108200075B (en) Identity authentication method, system, terminal and storage medium
CN111050326B (en) Block chain-based short message verification method, device, equipment and medium
CN105592446B (en) Information interaction method and platform
CN111443976A (en) Application program generation method and device, electronic equipment and storage medium
CN110263563A (en) By means of the ad click data cochain method and its equipment of block chain
CN113420133B (en) Session processing method, device, equipment and storage medium
CN112995357B (en) Domain name management method, device, medium and electronic equipment based on cloud hosting service
CN113852621B (en) License information determining method and device based on Jenkins server and storage medium
CN110661789B (en) Address resetting method, device, equipment and computer readable storage medium
CN114677138A (en) Data processing method, data processing equipment and computer readable storage medium
CN111049654A (en) Tamper-proof protection method and system for bank USBKey certificate application

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