Unlock instant, AI-driven research and patent intelligence for your innovation.

Implementation method and device of blockchain gateway, gateway and medium

An implementation method and technology of blockchain, applied in the direction of network connection, etc., can solve the problems of inconvenient operation and high threshold for technical personnel

Active Publication Date: 2021-07-23
BEIJING BAIDU NETCOM SCI & TECH CO LTD
View PDF5 Cites 5 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] Therefore, the existing technology wants to call the smart contract through the Ethereum blockchain node, which requires a high threshold for technical personnel and is inconvenient to operate

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Implementation method and device of blockchain gateway, gateway and medium
  • Implementation method and device of blockchain gateway, gateway and medium
  • Implementation method and device of blockchain gateway, gateway and medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0087] Figure 1B It is a flowchart of an implementation method of a blockchain gateway in Embodiment 1 of this application, and this embodiment of this application is applicable to Figure 1A The shown gateway system 10 calls the smart contract deployed in the blockchain network. The method is executed by an implementation device of a blockchain gateway, which is implemented by software and / or hardware, and is specifically configured in an electronic device. The electronic device may be a conventional computing device, or a computing device carrying a block chain node.

[0088] Such as Figure 1B The implementation method of a block chain gateway shown includes:

[0089] S101. The contract parsing unit parses the acquired business request, and encodes the business request based on the method name and parameters of the target smart contract to be invoked, so as to generate the contract structure content.

[0090] Wherein, the service request may be a service request directl...

Embodiment 2

[0111] figure 2 It is a flow chart of a blockchain gateway implementation method in Embodiment 2 of the present application. The embodiment of the present application is optimized and improved on the basis of the technical solutions of the above-mentioned embodiments.

[0112] Further, after "the contract analysis unit transmits the contract structure content to the blockchain node through the smart contract call bridge", add "the node management unit obtains the state information of at least one blockchain node in the node pool; The node management unit determines the "block chain node" used to process the content of the current contract structure according to the state information, so as to enrich the node determination function of the gateway.

[0113] Such as figure 2 The implementation method of a block chain network shown includes:

[0114] S201. The contract parsing unit parses the acquired business request, and encodes the business request based on the method name ...

Embodiment 3

[0131] image 3 It is a flowchart of an implementation method of a blockchain gateway in Embodiment 3 of the present application. The embodiment of the present application is optimized and improved on the basis of the technical solutions of the above-mentioned embodiments.

[0132] Further, before "the contract analysis unit transmits the contract structure content to the blockchain node through the smart contract call bridge", add "the count management unit determines the current count value according to the previous count value of the initiator account , adding the current count value to the content of the contract structure; wherein, the initiator account is in one-to-one correspondence or one-to-many correspondence with the initiator of the service request; the count value is incremented in sequence", with Enrich the node count function of the gateway.

[0133] Such as image 3 The implementation method of a block chain gateway shown includes:

[0134] S301. The contrac...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The embodiment of the invention discloses an implementation method and device of a blockchain gateway, the gateway and a medium, and relates to the technical field of blockchains. The specific implementation scheme of the method comprises that a contract analysis unit analyzes an obtained service request, and encodes the service request based on a method name and parameters of a to-be-called target smart contract to generate contract structure content; a smart contract call bridge transmits the contract structure content to a blockchain node to request the blockchain node to call a target smart contract according to the contract structure content to execute a service process; the smart contract call bridge receives an execution result after the blockchain node calls the target smart contract; and the contract analysis unit analyzes the execution result and responds to the service request. According to the embodiment of the invention, the operation difficulty and technical threshold of calling the service logic deployed in the blockchain network by a technician are reduced, the calling mode of the blockchain smart contract is optimized, and the convenience of calling the smart contract is improved.

Description

technical field [0001] The embodiments of the present application relate to the field of computer computing, and specifically to block chain technology. Background technique [0002] Ethereum is currently a widely used blockchain network. As a business function provider, development users can deploy their business logic in the form of smart contracts to run on Ethereum to achieve open, transparent and non-tamperable data. Purpose. [0003] At present, it is relatively difficult for development users to manage their own business logic deployed on the blockchain through the program interface provided by Ethereum. Developers need to code and sign the smart contracts and parameters they call according to the coding rules of Ethereum, and need to go through a series of complex operations to send business transaction requests to blockchain nodes based on Ethereum. [0004] Therefore, the existing technology wants to call smart contracts through Ethereum blockchain nodes, which r...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): H04L12/66
CPCH04L12/66
Inventor 林晶晶陈浩栋毛宏斌潘思远王辉
Owner BEIJING BAIDU NETCOM SCI & TECH CO LTD