Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Alliance chain multi-language external chain code offline compiling method and system

A compilation method and multi-language technology, which is applied in the field of offline compilation of multi-language external chain codes of alliance chains, which can solve problems such as poor adaptability and scalability, inability to customize chain codes in specific languages, and services that prevent chain codes from running for a long time. , to achieve the effect of strong adaptability and scalability

Pending Publication Date: 2021-11-30
HANGZHOU YUNXIANG NETWORK TECH
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

This method limits the implementation of the chain code to a few languages, cannot customize the specific language chain code, has poor adaptability and scalability, and prevents the chain code from being a long-running service.

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
  • Alliance chain multi-language external chain code offline compiling method and system
  • Alliance chain multi-language external chain code offline compiling method and system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0037] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions of the present invention will be clearly and completely described below in conjunction with the accompanying drawings. Obviously, the described embodiments are part of the embodiments of the present invention, not all of them. the embodiment. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

[0038] In the description of this specification, descriptions referring to the terms "an embodiment", "a specific embodiment", "an embodiment mode" and "for example" mean specific features, structures or characteristics described in conjunction with the embodiment or example Included in at least one embodiment or example of the present application. In this specification, schematic r...

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 invention provides an alliance chain multi-language external chain code offline compiling method and system, and the method specifically comprises the steps: responding to an external chain code offline compiling request, obtaining a chain code language definition in the request, selecting an external builder type of a chain code packet according to the chain code language definition, calling a detect component to select an external builder from the corresponding external builder type, enabling the external builder to build a chain code packet according to the request information; calling a build component to compile the chain code packet to obtain a chain code, and starting the chain code; verifying a certificate, a private key and a root CA certificate of the Peer node, and starting a TLS protocol between an external chain code server and the Peer after verification is passed; calling a release component to provide metadata, wherein the metadata comprises a CouchDB state database index definition and connection information of an external chain code service; connecting the Peer node with the external chain code server according to the connection information of the external chain code service in the metadata, and calling the created external chain code after the connection is completed.

Description

technical field [0001] The invention relates to the technical field of block chains, in particular to a method and system for off-line compiling of alliance chain multilingual external chain codes. Background technique [0002] In the consortium chain, the compilation and startup process of the chain code is part of the peer implementation, which is not easy to customize. All chaincodes installed on a peer are created using language-specific logic hard-coded in the peer. This process will generate a Docker container image that starts and executes the chain code as a client to connect to the peer. This method limits the implementation of chaincode to a few languages, cannot customize chaincode for specific languages, has poor adaptability and scalability, and prevents chaincode from being a long-running service. External builders and launchers address these limitations by allowing operators to extend peers with programs that can build, launch, and discover chaincode. Cont...

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): G06F8/41G06F8/30G06F21/33
CPCG06F8/41G06F21/33G06F8/31
Inventor 黄步添刘强石印鸿梁逸敏刘振广何钦铭
Owner HANGZHOU YUNXIANG NETWORK TECH
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products