CN113947485A - Block chain customizable system - Google Patents

Block chain customizable system Download PDF

Info

Publication number
CN113947485A
CN113947485A CN202111243411.XA CN202111243411A CN113947485A CN 113947485 A CN113947485 A CN 113947485A CN 202111243411 A CN202111243411 A CN 202111243411A CN 113947485 A CN113947485 A CN 113947485A
Authority
CN
China
Prior art keywords
module
contract
management
block chain
layer
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111243411.XA
Other languages
Chinese (zh)
Inventor
管章双
陆逸扬
潘凤薇
王睿栋
张晨
黄韬
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Network Communication and Security Zijinshan Laboratory
Original Assignee
Network Communication and Security Zijinshan Laboratory
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 Network Communication and Security Zijinshan Laboratory filed Critical Network Communication and Security Zijinshan Laboratory
Priority to CN202111243411.XA priority Critical patent/CN113947485A/en
Publication of CN113947485A publication Critical patent/CN113947485A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • 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
    • G06Q10/00Administration; Management
    • G06Q10/06Resources, workflows, human or project management; Enterprise or organisation planning; Enterprise or organisation modelling
    • G06Q10/063Operations research, analysis or management
    • G06Q10/0631Resource planning, allocation, distributing or scheduling for enterprises or organisations
    • G06Q10/06311Scheduling, planning or task assignment for a person or group

Landscapes

  • Business, Economics & Management (AREA)
  • Human Resources & Organizations (AREA)
  • Engineering & Computer Science (AREA)
  • Economics (AREA)
  • Strategic Management (AREA)
  • General Business, Economics & Management (AREA)
  • Theoretical Computer Science (AREA)
  • Development Economics (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Physics & Mathematics (AREA)
  • Finance (AREA)
  • General Physics & Mathematics (AREA)
  • Marketing (AREA)
  • Accounting & Taxation (AREA)
  • Educational Administration (AREA)
  • Technology Law (AREA)
  • Game Theory and Decision Science (AREA)
  • Operations Research (AREA)
  • Quality & Reliability (AREA)
  • Tourism & Hospitality (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a block chain customizable system, which comprises a basic layer, a core layer, an adaptation layer and a management layer, wherein the basic layer is a basic layer; the base layer realizes customized block chain communication service and storage service, and comprises customized block chain node networking, message data transmission, synchronization, broadcasting and storage of block chain data and service data; the core layer realizes the consensus service and the contract service of the customized block chain, the consensus service is used for the block consensus agreement, and the contract service is used for the analysis execution of the customized block chain business logic; the core layer is connected with the base layer, receives and processes data of the base layer, and the data generated by the core layer is transmitted and stored through the base layer; the adaptation layer realizes middleware expansion and functional interface encapsulation; the management layer performs visual operation and maintenance management on the base layer and the core layer through the functional interface; the invention realizes the function customization of network, storage, consensus, contract and middleware in the system, and realizes the customization requirement of service clients through a management layer and an adaptation layer.

Description

Block chain customizable system
Technical Field
The invention relates to the technical field of block chains, in particular to a block chain customizable system.
Background
With the high-speed development of the information industry, the cloud and the network cannot be independent due to business requirements and technical innovation, the cloud service needs a strong network as a support, the optimization of network resources also needs the configuration of the cloud service, and the cloud network integration becomes a necessary trend. In recent years, the number of cloud network infrastructures and application scenarios thereof has increased significantly, and the cloud network infrastructures and the application scenarios thereof relate to numerous novel fields such as software defined networking and distributed cloud.
The blockchain technology is a bottom-layer technology of the bitcoin, rapidly enters the visual field of researchers since the birth of the bitcoin, integrates the technologies of decentralization of accounts, point-to-point networks (P2P networks), consensus algorithms, cryptography and the like, and provides a new idea for the development of modern internet by the characteristics of decentralization, openness, transparency, non-falsification and the like. The advent of the subsequent etherhouses introduced the concept of intelligent contracts for blockchains, which entered the programmable era. With continuous development, the application of the blockchain technology is also expanded from the original financial field to other fields.
By utilizing the block chain technology, the problem of credibility of multiple parties in a cloud network scene can be solved, the security threats such as single-point faults of a cloud network data center are effectively avoided, the calculation and the storage are more open and transparent, and the user data security can be powerfully guaranteed. However, the traditional blockchain is limited to be directly applied to a cloud network scene, on one hand, the traditional blockchain has bottlenecks such as low transaction processing efficiency and the like, on the other hand, the existing cloud network scene cannot meet performance requirements such as low delay, high communication and the like, and a series of special functions such as supporting mass users, mass data, credible scheduling, multi-party large-scale cross-regional networking and the like cannot be realized in the cloud network scene. Although each cloud network scene can be realized by independently adopting one different block chain, a situation that a plurality of heterogeneous block chains coexist can be formed, each heterogeneous block chain depends on respective underlying infrastructure resources, the maintenance cost of block chain link points is greatly increased, the operation and maintenance efficiency of a block chain system is reduced, meanwhile, the heterogeneous chains are incompatible with each other, and the problems that cross-chain interaction of data on the chains is complex, the unified expansion of block chain functions is not supported, and the like exist. Therefore, there is a need for a blockchain system that meets the requirements of different business clients.
Disclosure of Invention
The technical purpose is as follows: aiming at the defects that a blockchain system can not be directly applied to various cloud network scenes and one blockchain system can not meet the requirements of different service customers in the prior art, the invention discloses a blockchain customizing system, which realizes the function customization of networks, storage, consensus, contracts and middleware in the system and realizes the customizing requirements of the service customers.
The technical scheme is as follows: in order to achieve the technical purpose, the invention adopts the following technical scheme:
a blockchain customizable system, the system comprising a base layer, a core layer, an adaptation layer, and a management layer;
the basic layer is used for realizing customized block chain communication service and storage service, and comprises customized block chain node networking, message data transmission, synchronization, broadcasting and storage of block chain data and service data;
the core layer is used for realizing consensus service and contract service of the customized block chain, the consensus service is used for block consensus agreement, and the contract service is used for analyzing and executing customized block chain business logic; the core layer is connected with the base layer and used for receiving and processing data of the base layer, and the data generated by the core layer is transmitted and stored through the base layer;
the adaptation layer is used for realizing middleware expansion and functional interface encapsulation; the management layer is used for carrying out visual operation and maintenance management on the base layer and the core layer through a functional interface provided by the adaptation layer; the customization requirements are realized through a management layer and an adaptation layer.
Preferably, the base layer comprises a network module and a storage module, wherein the network module is used for discovery, connection and maintenance of the blockchain nodes and transmission, synchronization and broadcasting of data; the storage module is used for data organization processing and disk dropping storage; and data interaction is carried out between the network module and the storage module.
Preferably, the network module includes a block chain network system customization module and a network security module, the block chain network system customization module is used for customizing functions of realizing dynamic networking, network topology, network clustering, protocol extension, node routing and network policy setting of block chain nodes, and the network security module is used for realizing functions of block chain node security authentication, network security management and protection.
Preferably, the storage module comprises a data model customizing module, a data processing module, a storage expansion customizing module, a data security module and a multi-mode storage module; the data model customizing module is used for realizing the functions of customizing the block chain structure and the block chain account structure; the data processing module is used for realizing the functions of increasing, deleting, modifying and searching the local block chain data; the storage expansion customizing module is used for realizing the functions of saving the local storage space and supporting storage expansion; the data security module is used for realizing the storage security and the access security of data; the multimode storage module is used for constructing a multimode database in the storage module to realize the unified storage of different types of scene data; the multimode database provides a uniform access interface, so that the data processing module can be conveniently called.
Preferably, the core layer includes a consensus module and a contract module, the consensus module is used for transaction sequencing to ensure consistency of block chain state update, and the contract module is used for parsing transactions to execute contract invoking operation.
Preferably, the consensus module comprises a consensus model customizing module, a consensus engine module, a consensus algorithm customizing module and a consensus expansion customizing module, wherein the consensus model customizing module is used for realizing functions of customizing a transaction execution flow and customizing a blockchain economy model; the consensus engine module comprises a consensus algorithm general engine and a transaction parallel processing engine, the consensus algorithm general engine is used for realizing the registration and start-stop of the consensus algorithm service, and the transaction parallel processing engine is used for realizing the efficient transaction processing; the consensus algorithm customizing module is used for realizing the functions of unified management and maintenance of the block consensus algorithm; the consensus expansion customizing module is used for realizing the function of optimizing and expanding the block consensus service.
Preferably, the contract module comprises a contract engine customization module, a contract extension customization module and a contract security module; the contract engine customization module is used for realizing contract execution and verification functions; the contract extension customizing module is used for realizing the function of contract service extension; the contract security module is used for realizing the functions of contract security audit, contract security call, contract upgrade and TEE contract.
Preferably, the adaptation layer comprises a middleware module and an interface design module; the middleware module is used for managing and expanding the middleware, providing a scene service function general component and carrying out data interaction with an out-of-chain system; the interface design module is used for packaging functional interfaces of the basic layer, the core layer and the middleware module and is used by the application layer and the management layer, the interface design module is used for calling a system function and a middleware function when the application layer carries out service logic realization, and the management layer uses the interface design module for calling a block chain system function to carry out visual operation and maintenance management.
Preferably, the middleware module comprises a customizable language predictive machine module, a signing module, a scheduling module, a certificate storage module, a settlement module and a chain crossing module; the prediction machine module is used for realizing interaction between a block chain and an off-chain system; the signing module comprises a direct signing mode and an agent signing mode; the scheduling module comprises primary scheduling and multi-stage scheduling; the certificate storing module comprises a data template and a data format extension; the settlement module comprises automatic settlement and linkage settlement; and the cross-chain module is used for realizing the trusted interaction of data among the block chain systems.
Preferably, the management layer includes a system management module and an operation and maintenance management module, the system management module is used for implementing maintenance and management of the blockchain system, and the operation and maintenance management module is used for implementing development and debugging of the application layer scene service and visualization deployment and invocation of the contracts.
Preferably, the system management module is configured to implement functions of block chain user identity management, node management, contract management, asset management, and monitoring management; the system comprises a user identity management function, a node management function, a contract management function, an asset management function and a monitoring management function, wherein the user identity management function is used for realizing identity identification binding of a user in a management block chain system, the node management function is used for realizing networking nodes of a management block chain network, the contract management function is used for realizing scene service contracts deployed on a management chain, the asset management function is used for realizing management of on-chain assets of service clients, and the monitoring management function is used for realizing monitoring of abnormal behaviors of the nodes and the user.
Has the advantages that: the invention discloses a block chain customizable system, which comprises a basic layer, a core layer, an adaptation layer and a management layer, wherein the basic layer is a basic layer; the base layer realizes customized block chain communication service and storage service, and the core layer realizes consensus service and contract service of the customized block chain; the adaptation layer is used for realizing middleware expansion and functional interface encapsulation; the management layer performs visual operation and maintenance management on the base layer and the core layer through a functional interface provided by the adaptation layer; the invention can realize the function customization of network, storage, consensus, contract and middleware, and realize the customization requirement of service clients through a management layer and an adaptation layer in the system.
Drawings
FIG. 1 is a block chain customizable system architecture in accordance with an embodiment of the present invention;
FIG. 2 is a block chain customizable system application diagram according to an embodiment of the present invention;
FIG. 3 is a block diagram illustrating an exemplary base layer structure of a blockchain customizable system;
FIG. 4 is a core layer structure diagram of a blockchain customizable system according to an embodiment of the present invention;
FIG. 5 is a block diagram illustrating an adaptation layer structure in a blockchain customizable system according to an embodiment of the invention;
fig. 6 is a schematic diagram illustrating a management layer structure in a blockchain customizable system according to an embodiment of the invention.
Detailed Description
A blockchain customizable system of the present invention is further illustrated and explained with reference to the figures and examples.
Example 1: the invention is applied in a cloud network scene;
as shown in fig. 1, the present invention discloses a block chain customizable system, which comprises a base layer, a core layer, an adaptation layer and a management layer. The basic layer is used for realizing communication service and storage service of the block chain, is responsible for block chain link point networking, realizes high-speed transmission of upper layer message data, and synchronizes, broadcasts and stores block chain data and service data; the core layer is used for realizing the consensus service and the contract service of the block chain, the consensus service is responsible for the block consensus to be consistent, and the contract service is responsible for the analysis and execution of the business logic of the application layer; the adaptation layer supports middleware expansion and functional interface packaging, the middleware module is responsible for providing a service function general component, and the interface module is responsible for packaging interfaces of the functional modules of the base layer and the core layer and is used by the application layer and the management layer; the management layer performs visual operation and maintenance management on the base layer and the core layer through an interface provided by the adaptation layer.
As shown in fig. 2, in the application process, an application layer and a resource layer are further provided outside the system, the application layer is connected with a management layer and an adaptation layer, the service client uses an intelligent contract template provided by a block chain customizable system through the application layer to implement service logic, and provides service for the service client in a decentralized application manner, the application layer is used for customizing service flow through the adaptation layer, and development, operation and maintenance and system management of application are performed through the management layer, so as to implement customized requirements of the service client.
The application layer refers to applications supported by a blockchain customizable system, and the applications respectively provide application services for different business clients, for example, the application layer supports cloud network scene applications, software defined wide area network (SD-WAN) applications in a cloud network scene provide evidence storage services, scheduling services and settlement services of network traffic for the cloud network scene business clients, and the SD-WAN applications respectively provide services for business clients such as the evidence storage services, the scheduling services and the settlement services. The service clients include all clients using scene services, such as developers, users, operation and maintenance personnel and the like.
The resource layer is connected with the base layer and the core layer simultaneously to realize resource sharing, the network module of the base layer uses the network resources of the resource layer to perform data transmission, the storage module of the base layer uses the storage resources of the resource layer to perform data destaging storage, and the consensus module and the contract module of the core layer use the calculation resources of the resource layer to perform execution result calculation. The application layer is connected with the management layer and the adaptation layer at the same time, the application layer customizes the business process through a middleware interface, a network interface, a data interface and a contract interface in an interface module of the adaptation layer and sends a transaction request, operation data and contract calling, the application layer carries out application development and operation and maintenance through an operation and maintenance management module of the management layer, and carries out system management of each application participant through a system management module of the management layer.
Developers in the service clients use intelligent contracts to realize specific service logic of the cloud network scene based on the demand analysis of the cloud network scene, and provide services for the service clients in a decentralized application mode; in the process of realizing the coding of the developer, the development, debugging and other work are carried out through an operation and maintenance management module of a management layer, and contract chain deployment and block chain system management are carried out through a system management module; service clients initiate service contract invocation requests to block link points by using transactions (transactions), the transactions comprise service data depended by contract invocation, and the block link points broadcast the transactions through a network module in a basic layer; after receiving the transaction, the consensus nodes in the block chain nodes analyze and execute the transaction through the contract module to check whether the contract call is legal or not, then sequence the transaction through the consensus module and pack the transaction into a new block, then synchronize and broadcast confirm the new block by using the network module, and achieve block consistency among the consensus nodes through a block consensus algorithm; after receiving the new block, the other block link points analyze and execute each transaction in the new block through the contract module, update the latest state of the block chain, and finally perform the falling storage of the block chain data and the service data through the storage module.
1.1 base layer Structure
As shown in fig. 3, the base layer is connected to the resource layer, and is used for block link point networking, so as to implement high-speed transmission of upper layer message data, synchronization, broadcast, and storage of block link data and service data. The resource layer refers to hardware resources, servers and the like, and comprises computing resources, storage resources and network resources. Specifically, the base layer comprises a network module and a storage module, wherein the network module is used for discovery, connection and maintenance of blockchain nodes and transmission, synchronization and broadcasting of data; the storage module is mainly used for data organization processing and disk dropping storage. The following interactions exist between the network module and the storage module: (1) the newly generated block chain data of the block chain nodes can be broadcasted to other block chain nodes by using a network module, and when the other block chain nodes receive the new block chain data, the data are subjected to validity check and then are delivered to a storage module for storage in a falling disk manner; (2) the block chain nodes use the network module to send data synchronization requests to other block chain nodes, after receiving the requests, the other block chain nodes use the storage module to retrieve recently updated block chain data, then use the network module to synchronize to the block chain node initiating the request, and when receiving the synchronized block chain data, the block chain nodes carry out validity check and then deliver the data to the storage module for storage in a disk-dropping manner.
The network module comprises a block chain network system customizing module and a network safety module, the block chain network system customizing module is used for customizing and realizing the functions of fast dynamic networking, network topology, network clustering, protocol expansion, node routing and network strategy setting of block chain nodes, and the network safety module is used for realizing the functions of block chain node safety authentication, network safety management and protection.
When the block chain customizable system is initialized, node dynamic networking is carried out according to a preset fully-distributed structured network topology, and in the networking process, after the block chain nodes receive connection requests of other nodes, a network security module is used for carrying out security authentication on node identities to preliminarily form a basic block chain network; then, optimizing and adjusting the basic block chain network in a customized selection network clustering mode, wherein the customized selection network clustering mode comprises geographical position network clustering, super node network clustering and network delay (Ping delay) network clustering, for example, when the geographical position network clustering is selected, the finally formed block chain network is a fully distributed structured network topology based on the geographical position network clustering, and the block chain network is added and withdrawn from the subsequent block chain nodes according to the method; when super node network clustering is selected, the finally formed block chain network is a fully distributed structured network topology formed by network clustering based on super nodes, and the subsequent block chain nodes are added and quit from the block chain network and are directly connected with the adjacent super nodes; when the Ping delay network clustering is selected, the finally formed blockchain network is a fully distributed structured network topology formed by carrying out network clustering on the basis of the Ping delay time among the nodes, and the subsequent blockchain nodes are added and quitted from the blockchain network to select proper blockchain link points for connection according to the Ping delay time. Based on the block chain network, data screening and filtering and data directional transmission are carried out among the block chain nodes according to the network strategy, the network protocol and the node route selected by customization. For example, when a network policy such as data filtering and flow control is set in a customized manner, a transmission control protocol (TCP protocol) and a domain name resolution system (DNS) node route are selected, a blockchain node receives only message data which has not been received locally, and then forwards the message data to other connected blockchain nodes according to the flow control policy, and when forwarding, the TCP protocol and the DNS route are used for performing directional transmission of the message data, and when transmitting, encrypted transmission of a network security module is used for performing data ciphertext transmission. The transmission of redundant data is reduced through a customized network strategy, and the network transmission pressure is reduced; the method has the advantages that a fully distributed structured network topology based on geographic position network clustering is established, cross-region networking can be achieved, and the problem that wide-area networking cannot be achieved in the existing cloud network scene is solved; based on the network topology and the network strategy, data are transmitted between the nodes in a non-redundant and directional mode, and low time delay of a cloud network scene is achieved.
In addition, the whole blockchain network uses a network security module to perform security management and protection, including distributed denial of service attack (DDoS attack) protection, DNS protection and the like; if the blockchain node is a malicious node, the node is added into a blockchain network global blacklist, and when receiving a connection request of other blockchain nodes, the current blockchain node retrieves the global blacklist and uses security authentication to identify the identity of the other blockchain node, so that the node connection security is ensured. The group/channel isolation of the network security module refers to the creation of groups or channels for a blockchain network, all resources of a resource layer are shared by nodes forming the blockchain network, including computing resources, storage resources and network resources, blockchain link points are created and added into different groups according to different cloud network scene service requirements, the same blockchain node can be added into different groups, all nodes in each group independently operate the functions of a network module, a storage module, a common identification module and a contract module, and a scene service subchain is maintained together, so that the security isolation and the independent operation of application layer scene services are realized. For example, the tile link points N1, N2, N3, …, and N50 collectively form a tile link network, a global tile link main chain is maintained, the nodes N1, N2, N3, …, and N20 create and join the group/channel a to serve the scene 1, the nodes N11, N12, N13, …, and N30 create and join the group/channel B to serve the scene 2, the nodes N31, N32, N33, …, and N50 create and join the group/channel C to serve the scene 3, each scene independently operates and maintains a scene service subchain, and performs management and cross-link interaction through the main chain, and when the number of the groups/channels is greater than or equal to 2, a main chain and a plurality of subchains coexist.
The storage module comprises a data model customizing module, a data processing module, a storage expansion customizing module, a data security module and a multi-mode storage module.
The data model customizing module is used for realizing the function of setting a block chain structure and a block chain account structure, the block chain structure is set to be a single-chain multi-account structure, the block chain account structure supports a customized account model and a UTXO (un-spent Transaction Output) model, the Transaction of the core layer processing based on the UTXO model is convenient for parallelization processing so as to improve the processing performance, and the contract based on the account model is convenient for maintaining and updating the contract state.
The data processing module is used for realizing the functions of adding, deleting, modifying and checking the local block chain data, combining the prophetic machine function of the middleware module, realizing the chain uplink and downlink data cooperation to ensure the block chain and cloud network scene data intercommunication, providing a data organization function, organizing the cloud network scene data on the chain to facilitate efficient retrieval and verification, providing the functions of adding, deleting, modifying and providing a data archiving and transferring function to facilitate batch query, relational query and the like outside the chain.
The storage expansion customizing module is used for saving local storage space and supporting storage expansion, and supporting customized centralized storage and distributed storage, the centralized storage uses lossless compression and parallel expansion, the lossless compression is used for compressing data blocks, the parallel expansion is used for expanding a plurality of hard disks or mounting high-performance cloud disks, the distributed storage adopts data cutting, state fragmentation and rapid synchronization, the data cutting is used for cutting cold data which is not used for a long time and caching hot data which is frequently accessed recently, the state fragmentation is used for slicing block chain data, each node is only responsible for hosting respective fragment data, and the rapid synchronization is used for rapidly synchronizing missing data from nodes maintaining all block chain data, including the cold data and the fragment data.
The data security module is used for realizing the storage security and the access security of data, realizing the local security access of block chain data and scene service data by using access authorization and Identity authentication, and realizing the disk-dropping Encryption by using technologies such as Attribute Encryption ABE (Attribute-Based Encryption), Identity Encryption IBE (Identity-Based Encryption), searchable Encryption SE (searchable Encryption) and the like.
The multi-mode storage module is used for constructing a multi-mode database in the storage module, and simultaneously meeting the unified management requirements of a block chain on structured, semi-structured and unstructured data in the same database, and is used for realizing the unified storage of different types of cloud network scene data. Meanwhile, the multimode database provides a uniform access interface, and the data processing module is convenient to call.
The block chain customizing system sets a block chain structure and a block chain account structure as a logic structure for data storage and management by using a data model customizing module, searches associated historical data for data organization by using a data processing module to determine a specific storage position of newly-added data after a storage module receives block chain data transferred by a network module, stores the type of data into a multimode database by using the multimode storage module at a specified position, namely the specific storage position, and finally encrypts and stores the data stored in the multimode database by using a data security module. When processing the block chain data, the data security module is needed to be used for access authority identification, and then the data processing module and the multimode storage module are used for carrying out data addition, deletion, modification and check on the multimode database. And when the block chain data reaches the upper limit of the local storage space of the block chain link point, the block chain historical data is subjected to fragmentation, compression, clipping and capacity expansion by using a storage optimization function.
A preplanning machine module of a middleware module in an adaptation layer, a storage expansion customizing module of a storage module, a data processing module and a multi-mode storage module are used in a customized combination mode, and mass data chaining and storage capacity expansion of a cloud network scene are achieved; the group/channel isolation of the network module and the data model customization module of the storage module are combined for use to realize the isolation of service data transmission and storage among different cloud network scenes.
1.2 core layer Structure
As shown in fig. 4, the core layer is connected to the base layer and is responsible for processing data received by the base layer, and data newly generated by the core layer is transmitted and stored through the base layer. The core layer comprises a consensus module and a contract module, the consensus module is responsible for transaction sequencing to ensure consistency of block chain state updating, and the contract module is responsible for analyzing transactions to further execute contract calling operation. The following interactions exist between the consensus module and the contract module: (1) after the consensus node receives the transaction, the contract module analyzes and executes the transaction to check whether the contract call is legal, then the consensus module sequences the transaction and packs the transaction into a new block, then the network module synchronizes and broadcasts the new block for confirmation, and finally a block consensus algorithm is used for achieving block consistency; (2) after the block chain link point receives the new block, each transaction in the new block is analyzed and executed through the contract module, the latest state of the block chain is updated, and finally the block chain data and the service data are stored in a falling disk mode through the storage module.
The consensus module comprises a consensus model customizing module, a consensus engine module, a consensus algorithm customizing module and a consensus expansion customizing module.
The consensus model customizing module is used for realizing functions of customizing a transaction execution process and a block chain economy model, the transaction execution process comprises two processes of 'consensus-execution' and 'execution-sorting-verification', wherein 'consensus-execution' means that a transaction firstly passes through a consensus node to perform block packing consensus, then all nodes synchronize blocks and execute transaction update block chain states in the blocks, and 'execution-sorting-verification' means that the transaction firstly passes through an endorsement node to perform pre-execution to obtain an execution result, then the consensus node performs block packing sorting, and finally all nodes update the block chain states according to the execution result of the endorsement node, and block packing means that the consensus node sorts the transactions which are not processed currently and then packs the transactions into a block structure. The block chain economic model customization includes node reward punishment and transaction reward punishment, and node reward punishment is used for preventing that block chain link point from appearing malicious behavior, through node behavior and reward punishment couple, and the transaction reward punishment is used for preventing invalid transaction attack, realizes through setting up transaction fee or restriction execution time, and both can prevent block chain node and the normal stable operation of scene business flow destruction by the malicious behavior of customization combination and extension.
The consensus engine module comprises a consensus algorithm general engine and a transaction parallel processing engine which are respectively used for realizing the functions of registration, start and stop of the consensus algorithm service and efficient transaction processing. Based on the single-chain multi-account book model of the group/channel isolation and storage module of the network module, a general consensus entrance is provided for the independent operation of the node consensus modules of different groups/channels, and is used for selecting and starting a consensus algorithm to perform transaction sequencing and packaging. The transaction parallel processing engine is an entrance of the transaction parallel processing structure, and is used for transaction parallel verification, auxiliary block packaging and block verification by judging whether the transaction has dependency structure parallel transaction or not based on the UTXO model of the storage module.
The consensus algorithm customizing module is used for realizing the functions of block consensus algorithm unified management and maintenance, and can customize a mixed consensus algorithm and an expanded consensus algorithm so as to determine a consensus node to perform block consensus. Based on the group/channel isolation of the network module, all the Blockchain nodes belonging to the same group/channel determine common identification nodes by running a DPoS (certificate of authority of shares) or PoW (Proof of workload) common identification Algorithm, and then these common identification nodes run a mixed common identification Algorithm or an extended common identification Algorithm to perform block common identification, including PBFT (practical byzantine fault tolerance), RAFT (In Search of an outstanding Consensus algorithms, i.e. distributed Consensus Algorithm), HotStuff (HotStuf: BFT Consensus In the Lens of Blockchain, i.e. a master node-based byzantine replication fault tolerance Algorithm), PoET (Proof of Elapsed Time Proof), PoL (Proof of outstanding: an outstanding block Consensus Protocol, i.e. a lucky certificate), and pos (pts: a certificate of setup of session-history of certificate of rights of connections, i.e. a lucky certificate), and pos (post: a certificate of a setup of session-Proof of session-experience of consistency, i.e. a block Consensus Algorithm, i.e. a block common identification Algorithm, a block Consensus Algorithm, a block of a node, a node of a public identity, a, Block chain Consensus algorithms such as MinBFT (Efficient Byzantine Fault-tolerant algorithm), cheapBFT (CheapBFT: Resource-Efficient Byzantine Fault-tolerant algorithm), FastBFT (Resource-Efficient Byzantine Fault-tolerant algorithm), FastBFFT (Scalable Byzantine Consensory via Hardware-Assisted Resource Consensus algorithm), etc., and compatible with Hardware resources and network resources with different adaptation Resource layers, such as Consensus algorithm of business customer extension selected according to business requirements, PBFT and HotStuff Consensus algorithm selected in the case of high efficiency Consensus, and Consensus algorithms such as PoET, PoTS, MinBFT, BFT, FastBFT, and FastBFFT selected in the case of node server Hardware supporting Trusted Execution Environment (TEE).
The consensus expansion customizing module is used for realizing the functions of block consensus service optimization expansion, and comprises signature de-duplication, empty block processing, consensus upgrading and independent consensus, wherein the signature de-duplication refers to reducing the number of times of signature verification when the blocks are in consensus, the empty block processing refers to avoiding the consensus empty blocks when the blocks are in consensus, the consensus upgrading refers to the switching of a consensus algorithm, the independent consensus refers to the group/channel isolation of a network module, all block chain nodes belonging to the same group/channel are independently consensus, and the customized consensus algorithm is operated.
The block chain customizing system uses the consensus model customizing module to realize the customization of the transaction executing flow and the block chain economic model, uses the consensus algorithm customizing module to select and set the block consensus algorithm, and after the consensus node receives the transaction, the contract module analyzes and executes the transaction to check whether the contract calling is legal or not, then using the consensus engine module to start the block consensus algorithm service and the transaction efficient processing service to sort the transactions and pack the transactions into a new block, then, the network module is used to synchronize and broadcast the new block for confirmation, block consistency is achieved among the consensus nodes through the block consensus algorithm, after the other block chain nodes receive the new block, each transaction in the new block is analyzed and executed through the contract module, the latest state of the block chain is updated, and finally the block chain data is subjected to off-disk storage through the storage module. In the block consensus process, if a null block occurs, a consensus algorithm is switched or a consensus process is optimized, the block consensus process needs to be realized through a consensus expansion customization module.
Based on group/channel isolation of a network module, a single-chain multi-account book model of a storage module, a consensus engine of a consensus module and consensus expansion customization, mutual isolation and independent operation of different cloud network scenes are realized; the customizability of the consensus algorithm in the consensus module gives consideration to the node scale and the consensus efficiency, and the service deployment of the cloud network scene is realized by combining the network topology and the network clustering of the network module; based on the UTXO model of the storage module, transaction parallel processing of the consensus module and customization of the consensus algorithm solve the problem of service transaction processing efficiency of a cloud network scene; and the business execution of the cloud network scene is realized by customizing the transaction execution flow of the consensus module.
The contract module includes a contract engine customization module, a contract extension customization module, and a contract security module.
The contract engine customization module is used for realizing contract execution and verification functions, including virtual machine, parallel execution verification, contract state maintenance and contract service adaptation. The virtual machine comprises a WASM (WebAssembly, namely a binary instruction format based on a stack virtual machine) virtual machine and a novel contract virtual machine, wherein the WASM virtual machine is used for explaining and executing a contract and isolating the failure of the whole block chain system caused by the writing error of a contract code. The parallel execution verification refers to a parallel execution module of the transaction, and a transaction parallel processing engine of the consensus module encapsulates the functions of the module and is used for parallel execution and verification according to the constructed parallel transaction. The contract state maintenance refers to the unified maintenance of contract states based on an account model of a storage module, each contract has only one contract account, and all states related to the contract are stored in the account. Contract service adaptation refers to the integration of the functions of contract extension customization and contract security into the contract engine.
The contract extension customizing module is used for realizing the functions of contract service extension, including functional programming, multi-language support, a contract standard library, contract renaming, dynamic endorsement strategies and contract interoperation. The multi-language support can be realized by a WASM virtual machine, and the interpretation execution of different contract programming languages is supported. The contract standard library is used by encapsulating general functions of the service contract of the application layer as a system contract, and the related functions of the service contract of the application layer are realized by calling the contract standard library through a contract class interface of the adaptation layer. The contract renaming means renaming a contract address character string returned after successful deployment on a contract chain, and is convenient for developers and users to specify and name contract names, for example, a settlement service contract name is renamed to be a settlement service contract from 0x1414234af1g2ge31e 234123355324. The dynamic endorsement strategy is that a contract calling request is sent to an endorsement node specified in the strategy according to a given endorsement strategy, the endorsement node agent executes a contract, the dynamic endorsement strategy can be realized by adopting a threshold or threshold mode, and business modes such as government endorsement or government supervision of a cloud network scene are realized. Contract interoperation refers to a contract function and an interpretation execution function of data mutual calling between different chains, and needs to be used in combination with cross-chain of middleware modules.
The contract security module realizes functions of contract security audit, contract security call, contract upgrade and TEE contract. The main function of the trusted execution environment of the Chinese name in the TEE is to realize privacy protection of the contract, and the contract realized based on the TEE is generally called (TEE contract) confidential contract. The contract security audit refers to logic and vulnerability audit of contract codes, the contract security call refers to security detection of contract call identities and behaviors, the contract upgrade refers to code upgrade of old contracts based on original contract state data, and the TEE contract refers to privacy protection of executing intelligent contracts in a trusted execution environment TEE to achieve contract execution. The method solves the problem that the execution result is wrong or the assets are maliciously transferred by utilizing the contract loopholes through modes of contract security audit, security call and the like, and timely contract upgrading is carried out aiming at the loopholes of the linked contracts.
A programming language and a programming mode used by decentralized application (DApp) realized by a developer at an application layer need to be supported by a contract extension customizing function, before the developer deploys a contract on a block chain, the developer uses the contract security function to perform contract security audit to avoid the problems of service logic loopholes and the like, and after the contract security audit, the contract is deployed to the block chain; the DApp user uses the transaction to initiate a service contract calling request, after the consensus node receives the transaction, the contract security function is used for verifying whether the contract calling is legal, if the contract calling condition is met, the contract engine function is used for executing and verifying the transaction, and meanwhile, the latest state of the contract is updated.
1.3 Adaptation layer Structure
As shown in fig. 5, the adaptation layer includes a middleware module and an interface design module. The middleware module is responsible for management and expansion of the middleware, provides a scene service function general component, and performs data interaction with an out-of-chain system. The interface design module is responsible for packaging functional interfaces of the basic layer, the core layer and the middleware module and is used by the application layer and the management layer, the application layer can call the function of the block chain system and the function of the middleware by using the interface design module when service logic is realized, and the management layer uses the interface design module to call the function of the block chain system to carry out visual operation and maintenance management.
The middleware module comprises a prediction machine module, a signing module, a scheduling module, a certificate storage module, a settlement module and a cross-chain module. The prediction machine module is used for realizing interaction between a block chain and an off-chain system, and comprises an off-chain data credible uplink and an on-chain data credible reading, so that the problems of credible uplink of off-chain information and credible reading of on-chain information are solved. The signing module comprises a direct signing mode and an agent signing mode, wherein the direct signing mode refers to that both scene supply and demand parties sign contracts directly, and the agent signing mode refers to that both scene supply and demand parties sign contracts directly with a platform maintaining the block chain customizable system. The scheduling module comprises primary scheduling and multi-stage scheduling, wherein the primary scheduling refers to executing a scheduling algorithm according to the on-chain information to obtain a scheduling result, and the multi-stage scheduling refers to re-executing the scheduling algorithm according to each scheduling result until an optimal scheduling result is obtained. The evidence storage module comprises a data template and a data format extension, wherein the data template refers to a data type template supported by the middleware module, and the data format extension refers to a data format self-defined by a developer according to data characteristics. The settlement module comprises automatic settlement and linkage settlement, wherein the automatic settlement refers to setting a settlement triggering condition for payment settlement, and the linkage settlement refers to anchoring between the on-chain assets and the off-chain bank accounts. The cross-chain module is used for realizing data credible interaction among the blockchain systems, and comprises asset transfer and contract interoperation, wherein the asset transfer refers to asset transfer among different blockchains, the contract interoperation refers to contract function calling and data sharing among different chains, interoperation requests of other chains are received, and then contract interoperation of the contract extension customizing module is called for interpretation and execution. The module can be customized by adopting pluggable modules in the middleware module, different middleware functions can be customized according to specific cloud network scene requirements for combined use, for example, only a signing module needs to be used in a flow renting scene, a prompter module, a certificate storage module and a settlement module need to be used, the signing module is only adopted in the middleware module, the prompter module, the certificate storage module and the settlement module are used, signing of operators and tenants is completed by using the signing function, a block chain is uploaded with flow use information by using the prompter function, certificate storage is carried out on the flow information uploaded to the block chain by using the certificate storage function, and charging and settlement are carried out on the flow information according to signing contents by using the settlement function. The middleware module can support chain uplink and downlink data bidirectional interaction in a customized manner, and business processes such as trusted scheduling, transparent settlement, transparent signing and the like of a cloud network scene are realized.
The interface design module adopts a structural design and comprises a network type interface, a data type interface, a consensus type interface, a contract type interface and a middleware type interface.
The network interface is used for encapsulating the functions of the network module and providing the query of the network related information. The network interface can be used for the management layer to carry out operation and maintenance management and call so as to serve the dynamic networking deployment, node maintenance and node health state monitoring of the blockchain.
The data interface is used for packaging the functions of the storage module and providing data query of the block chain, including data query of blocks, transactions, accounts and contracts. The data interface can be used for the management layer to carry out operation and maintenance management calling so as to serve visual monitoring and intelligent query of the data on the chain.
The consensus interface is used for encapsulating the consensus module function and providing consensus inquiry of the block chain. And aiming at the consensus query interface, providing detailed information query, wherein the detailed information comprises a consensus algorithm list, a currently selected consensus algorithm, a block chain node participating in consensus, a consensus node of a currently packaged block and the like. The consensus interface is used for the management layer to perform operation and maintenance management calls to serve for monitoring the consensus efficiency and state on the chain, such as transaction processing amount per second, block output time, block broadcasting delay and the like, wherein the block output time refers to the time from the consensus node to pack out a block to the consensus node to complete block consensus, and the block broadcasting delay refers to the time from the consensus node to broadcast the consensus block to other nodes to all the block chain nodes to receive the block.
The contract interface is used for encapsulating the functions of the contract module, the contract interface provides virtual machine query and full life cycle operation of the contract, and the services provided by the contract interface comprise contract renaming, deployment, calling and upgrading. The contract interface is mainly used for developing the application layer cloud network scene service.
The middleware interface further encapsulates the functions of the middleware, including electronic signing, evidence storage and source tracing, trusted scheduling, linkage settlement, prediction machine, cross-link and the like, and provides basic functions of function calling, service inquiry and the like of each middleware.
The network module and the storage module of the basic layer, the consensus module and the contract module of the core layer and the middleware module of the adaptation layer support function expansion, the interface design module of the adaptation layer encapsulates the functions into interfaces, the problem of unified expansion of the block chain functions is solved, and due to the adoption of isomorphic cross chains, the chain-crossing interaction of data on the chains between different scenes is facilitated, including asset transfer and contract interoperation.
1.4 management layer Structure
As shown in fig. 6, the management layer performs visual operation and maintenance management on the base layer and the core layer by using an interface provided by the adaptation layer, and includes a system management module and an operation and maintenance management module, the system management module is used for implementing maintenance and management of the blockchain system, and the operation and maintenance management module is used for implementing development and debugging of application layer scene services and visual deployment and invocation of contracts. The system management module is used by a block chain system administrator, and the operation and maintenance management is used by a block chain developer and an operation and maintenance person.
The system management module provides functions of block chain user identity management, node management, contract management, asset management and monitoring management and is used for realizing maintenance and management of a block chain system.
The system comprises a user identity management function, a node management function, a contract management function, an asset management function and a monitoring management function, wherein the user identity management function is used for managing the identity of a user in a block chain system to realize identity identification binding, the node management function is used for managing networking nodes of a block chain network, the contract management function is used for managing scene service contracts deployed on a chain, the asset management function is used for managing the assets on the chain of a service client, and the monitoring management function is used for monitoring abnormal behaviors of the node and the user.
The entity on the identity management support chain creates a digital identity and associates (maps and binds) with the chain account, and the uniform identity of the entity is generally used for all cloud network scenes of an application layer. Based on the unified identity, the cloud network scene supports authority management and account management. The authority management can adopt access control based on attributes/roles, the attribute types comprise nodes, accounts, platform managers and the like, and correct individuals can access resources on a chain at correct time and for correct reasons.
The node management realizes the functions of node networking, member management, consensus election and the like. The node networking supports the dynamic access and exit visualization of the nodes and the global presentation of the current block chain network; member management, including alliance management and group management, and performing network communication authentication management through certificates, wherein the management of the certificates is realized by combining Distributed Public Key Infrastructure (DPKI); the consensus election service is used for mixed consensus, such as a DPoS + PBFT mixed consensus algorithm, supports the conversion of the node roles between consensus nodes and verification nodes, and presents the historical behaviors of the consensus candidate nodes for users by combining with an economic model.
Contract management implements contract operation services, chain contract integration, and the like. The contract operation service provides visualization operation functions such as contract renaming, contract online upgrading and dynamic endorsement. Chain contract integration refers to the management of all deployed contracts on a chain, including specifying contract quick fuzzy queries, related operation queries of specific contracts, contract classification management, supervision audit and the like.
Asset management includes two broad categories, one is a french-top asset and the other is a contractually created token/credit. The recharging type assets comprise bank account linkage and block chain system account recharging, the bank account linkage and the block chain system account recharging are performed, the bank account linkage and the block chain system account recharging need to be combined with a middleware module for linkage settlement, and the block chain system account recharging needs to be subjected to real-name authentication (KYC authentication); the contract-created tokens/points then typically need to comply with the ERC20 standard (etherhouse token standard), ERC1155 (batch transfer) may be supported for further functionality enhancement. The legal currency assets need to cut off the chain transaction among users, and the contract assets need to set transaction cost.
The monitoring management realizes node monitoring, account monitoring, consensus abnormity monitoring and the like. The monitoring management may present, in real time, information related to the current link, for example, information such as a current latest height of a block identified by consensus, a real-time Transaction Throughput (TPS), a currently waiting block identified by consensus node, an unconfirmed Transaction list, and the like, so that an operation and maintenance worker may perform optimization operations such as traffic management and control according to the current link real-time information.
The operation and maintenance management module comprises a development support module and an operation and maintenance support module, the development support module and the operation and maintenance support module are respectively used for providing development support and operation and maintenance support functions and are used for realizing development and debugging of application layer scene services and visual arrangement and calling of contracts, the development support module assists developers in agile development, and the operation and maintenance support module assists the operation and maintenance personnel in visual operation and maintenance management, so that the working efficiency of the development and operation and maintenance personnel is improved.
The development support module supports low-code/no-code development based on a contract standard library of the contract module, provides an intelligent contract template, for example, can realize settlement business based on the settlement contract template, forms decentralized application, provides an online Integrated Development Environment (IDE), a pressure measurement tool, related development components and a dependency library and the like aiming at the cloud network scene application development of an application layer, and adapts different contract programming languages in combination with multi-language support of the contract module.
The operation and maintenance support module is dedicated to the construction of operation and maintenance related functions, and surrounds the assembly of operation and maintenance system management (management of resources such as identity, node, contract, assets and the like) functions, including a one-key chaining tool, platform management, a block chain browser and the like. Based on node dynamic networking of a network module, a one-key chaining tool calls a networking function by using a scripting language to realize node deployment, in-chain user-defined configuration and quick link establishment, and is used for block link point deployment and block link network building at the early stage; the platform management carries out authority setting, user authentication registration and the like through an administrator, and presents corresponding function access and use for platform users according to roles; the block chain browser is used for displaying the running state of the chain, supporting data information inquiry of blocks, transactions and the like on the chain, and meanwhile, has a monitoring analysis function and provides condition analysis and the like for the running of a block chain network and a service application contract.
The block chain customizable system realizes the function customizable of the block chain system depending on different cloud network scenes, comprises the function customizable of a network, a storage module, a consensus module, a contract module and a middleware module, and all the function modules are combined and used to meet the requirements of wide-area networking, low time delay, high communication, mass data storage, service isolation, efficient and rapid processing of service transactions, credible scheduling/settlement/subscription and the like in different cloud network scenes, and finally realizes the block chain customizable system, shares all resources of a resource layer, and supports the mutual isolation and independent operation of services in different cloud network scenes on an upper layer. The method specifically comprises the following steps: the network module can be customized to realize low time delay, high communication and wide area networking spanning of a cloud network scene, the storage module can be customized to solve the problem of mass data storage of the cloud network scene, the customized combination of the network and the storage module realizes service isolation among different cloud network scenes, the customized combination of the network, the consensus and the contract modules realizes service deployment and service execution of the cloud network scene, the service transaction processing efficiency is improved, and the customized support chain of the middleware module carries out uplink and downlink data bidirectional interaction to realize the service processes of trusted scheduling, transparent settlement, transparent signing and the like of the cloud network scene. The block chain customizable system shares infrastructure resources at the bottom layer, different cloud network scene services at an application layer are isolated from each other and run independently, the cost of block chain node point networking and maintenance is reduced, the operation and maintenance efficiency of the block chain system is improved, the block chain function unified expansion is supported, and due to the adoption of isomorphic chain spanning, the chain data spanning interaction between different scenes is facilitated.
Example 2: in this embodiment, a use process of the block chain customization system of the present invention is given in combination with a specific cloud network scenario.
The present embodiment explains how to use a blockchain customizable system based on a Software Defined Wide Area Network (SDWAN) cloud network scenario. The SDWAN scene is a scene that each enterprise tenant selects network resources of an operator to construct an enterprise-level wide area network, and based on the SDWAN scene of a traditional block chain, the problem of mutual trust between the operator and the enterprise tenant can be solved, wherein the problem comprises the problems of signature transparency, automatic settlement and credible evidence storage, but enterprise branch companies and operator branch companies are influenced by geographic positions and face the problem of block chain node wide area networking, and meanwhile, as enterprises pay for use according to flow and need to ensure the service quality of the enterprise using the operator network, flow use information and network service quality information need to be linked up in real time, the problems of increased communication pressure of the block chain network, increased data storage pressure on the chain, reduced service processing efficiency on the chain, slow scheduling response speed and the like are caused. Through SDWAN scene demand analysis, the scene is divided into a signing service, a scheduling service, a certificate storing service and a settlement service. The signing service means that an enterprise tenant and an operator sign a contract, and the contract comprises information such as service quality parameters and prices; the dispatching service refers to a service that the SDWAN platform performs the optimal matching of enterprise requirements and operator resources according to the contract signing contract information; the evidence storing service refers to the uplink evidence storing service of the flow use information and the network service quality information; the settlement service refers to a service for enterprise tenants and operators to settle funds according to the subscription information and the certificate storage information.
In this embodiment, the blockchain customizable system described in embodiment 1 is constructed, and then the blockchain customizable system is initialized, so as to complete blockchain node networking and register related network services, and set a single-chain multi-account book model, an account model, an UTXO model, and various storage services; starting all consensus engines and contract engines, and registering all consensus and contract services; performing function encapsulation on the bottom layer service to support the calling of an upper application interface and simultaneously registering various middleware services; providing visual operation and maintenance management and system management externally; and finally, the block chain customizable system starts all block chain function modules, completes all service registration and waits for access of different cloud network scene services.
After the block link points are networked, the block link points N1, N2, N3, … and N1000 jointly form a block link network to maintain a global block link main chain, wherein the mobile operator nodes are N1, N2, N3, … and N50, the communication operator nodes are N51, N52, N53, … and N100, the telecommunication operator nodes are N101, N102, N103, … and N150, the enterprise nodes a are N151, N152, N153, … and 180, the enterprise nodes B are N181, N182, N183, … and N200, and other nodes serve other cloud network scenes. Aiming at the signing service, the scheduling service, the certificate storing service and the settlement service of an SDWAN scene, an SDWAN platform uses an operation and maintenance support tool of a management layer to respectively carry out the following customized operations:
the method comprises the steps that a group/channel G is created and added to a mobile operator node, a Unicom operator node, a telecom operator node, an enterprise node A and an enterprise node B to serve a signing service and a settlement service, a blockchain network system is used for customizing and ensuring that a blockchain network supports the functions of low delay, high communication and cross-wide area networking, a storage expansion customization is used for ensuring that an SDWAN scene supports mass data uplink and storage capacity expansion, a consensus algorithm is used for customizing and selecting a VRF + PBFT consensus algorithm to ensure that the SDWAN scene gives consideration to the node scale and service processing performance, a transaction execution flow is used for customizing and selecting 'consensus-execution' to avoid the problem that the signing service and the settlement service respectively conflict occurs, and the signing service and the settlement service are ensured to support analysis and execution of multiple languages by using contract engine customization and contract expansion. The developer uses the tool provided by the development support module of the operation and maintenance management to develop the application contract, uses the prophetic machine, the signing, the evidence storing, the settlement, the cross-chain function and other functional module interfaces provided by the adaptation layer to realize the logic of the signing service and the settlement service, and then uses the operation and maintenance support tool to deploy the contract. Taking a settlement request as an example, an operator node initiates the settlement request, wherein the settlement request comprises subscription information of an operator and an enterprise tenant and flow use information of the enterprise tenant, and the flow use information of the enterprise tenant is acquired from a certificate storage service through a cross-chain function; selecting a consensus node by all nodes in the group in a VRF mode, packaging settlement request transactions into blocks by the consensus node, and achieving block consistency by using a PBFT consensus algorithm; and synchronizing the blocks by the chain nodes of all the blocks and executing all the transactions in the blocks to obtain an execution result, finally, simultaneously updating the account balances of the supply and demand parties of the cloud network scene by all the nodes according to the execution result so as to finish service charge settlement, and if a linkage settlement mode is adopted, finishing the linkage settlement of the bank account by combining with the functions of the telepresence machine.
The method comprises the steps that a mobile operator node, a Unicom operator node, a telecom operator node and an A enterprise node create and join a group/channel A to serve scheduling services and evidence storage services of an A enterprise, a blockchain network system is used for customizing and ensuring that a blockchain network supports functions of low delay, high communication and cross-wide area networking, storage expansion is used for customizing and ensuring that an SDWAN scene supports mass data uplink and storage capacity expansion, a common identification algorithm is used for customizing and selecting DPoS + HotStuff common identification algorithm to ensure the scale and service processing performance of the SDWAN scene node, a transaction execution flow is used for customizing and selecting 'execution-sequencing-verification' to ensure that a scheduling execution result can be quickly obtained to achieve the immediate response of the scheduling services, and contract engine customization and contract expansion are used for ensuring that the scheduling services and the evidence storage services support multi-language analysis execution. The developer uses the tool provided by the development support module of the operation and maintenance management to develop the application contract, uses the prophetic machine, the scheduling, the evidence storing, the cross-chain function and other function module interfaces provided by the adaptation layer to realize the scheduling service and the evidence storing service logic, and then uses the operation and maintenance support tool to deploy the contract. Taking a scheduling request as an example, an enterprise tenant device side initiates the scheduling request through a preplan, wherein the request comprises a network service quality parameter in a signing service, flow monitoring data information of a deposit certificate service and the like, and the signing service data information is acquired through a cross-link function; the block link point connected with the equipment end uses a contract engine to start transaction parallel processing service, adopts a WASM virtual machine to carry out scheduling contract execution to obtain a scheduling result, and feeds the scheduling result back to the operator node through a prediction machine to carry out physical scheduling; selecting a consensus node by all nodes in the group in a DPoS mode, packaging scheduling requests and execution results into blocks by the consensus node, enabling the consensus node to use a HotStuff consensus algorithm to reach a consensus on the scheduling execution results and complete transaction sequencing, and verifying the scheduling execution results by other block chain link points; and finally, simultaneously updating the state of the scheduling service of the SDWAN scene by all the block chain nodes according to the execution result.
The mobile operator node, the Unicom operator node, the telecom operator node, and the B enterprise node create and join the group/channel B to serve the dispatching service and the evidence-storing service of the B enterprise, and the subsequent operation is the same as the subsequent operation of the group/channel A.
When the block chain customization system needs to access a new cloud network scene, a new group/channel is created for a new cloud network scene service according to the method, and different block chain functions are selected according to service requirements in a customized mode. Finally, mutual isolation and independent operation among different cloud network scene services are realized, meanwhile, requirements of low time delay, high communication, cross-wide area networking, massive cloud network data storage, a scene service deployment mode, a service execution mode, service transaction processing efficiency, credible scheduling/settlement/signing and the like of each cloud network scene are realized, the networking and maintenance cost of block chain link points is reduced, the operation and maintenance efficiency of a block chain system is improved, block chain function unified expansion is supported, and due to the adoption of isomorphic cross chains, data cross chain interaction on the chain among different scene services is facilitated.
For example, the block link points N1, N2, N3, …, and N50 collectively form a block link network, a global block link main chain is maintained, the nodes N1, N2, N3, …, and N20 create and join the group/channel a to serve scene 1, the nodes N11, N12, N13, …, and N30 create and join the group/channel B to serve scene 2, the nodes N31, N32, N33, …, and N50 create and join the group/channel C to serve scene 3, each scene operates independently to maintain a scene service subchain, and unified management and cross-link interaction are performed through the main chain.
The above description is only of the preferred embodiments of the present invention, and it should be noted that: it will be apparent to those skilled in the art that various modifications and adaptations can be made without departing from the principles of the invention and these are intended to be within the scope of the invention.

Claims (11)

1. A system for block chain customization, comprising: the system comprises a base layer, a core layer, an adaptation layer and a management layer;
the basic layer is used for realizing customized block chain communication service and storage service, and comprises customized block chain node networking, message data transmission, synchronization, broadcasting and storage of block chain data and service data;
the core layer is used for realizing consensus service and contract service of the customized block chain, the consensus service is used for block consensus agreement, and the contract service is used for analyzing and executing customized block chain business logic; the core layer is connected with the base layer and used for receiving and processing data of the base layer, and the data generated by the core layer is transmitted and stored through the base layer;
the adaptation layer is used for realizing middleware expansion and functional interface encapsulation;
the management layer is used for carrying out visual operation and maintenance management on the base layer and the core layer through a functional interface provided by the adaptation layer; the customization requirements are realized through a management layer and an adaptation layer.
2. The system of claim 1, wherein: the base layer comprises a network module and a storage module, wherein the network module is used for discovering, connecting and maintaining the blockchain nodes and transmitting, synchronizing and broadcasting data; the storage module is used for data organization processing and disk dropping storage; and data interaction is carried out between the network module and the storage module.
3. The system of claim 2, wherein: the network module comprises a block chain network system customizing module and a network safety module, the block chain network system customizing module is used for customizing the functions of realizing dynamic networking, network topology, network clustering, protocol expansion, node routing and network strategy setting of the block chain nodes, and the network safety module is used for realizing the functions of block chain node safety authentication, network safety management and protection.
4. The system of claim 2, wherein: the storage module comprises a data model customizing module, a data processing module, a storage expansion customizing module, a data security module and a multi-mode storage module; the data model customizing module is used for realizing the functions of customizing the block chain structure and the block chain account structure; the data processing module is used for realizing the functions of increasing, deleting, modifying and searching the local block chain data; the storage expansion customizing module is used for realizing the functions of saving the local storage space and supporting storage expansion; the data security module is used for realizing the storage security and the access security of data; the multimode storage module is used for constructing a multimode database in the storage module to realize the unified storage of different types of scene data; the multimode database provides a uniform access interface, so that the data processing module can be conveniently called.
5. The system of claim 1, wherein: the core layer comprises a consensus module and a contract module, the consensus module is used for transaction sequencing to ensure consistency of block chain state updating, and the contract module is used for analyzing transactions to further execute contract calling operation.
6. The system of claim 5, wherein: the consensus module comprises a consensus model customizing module, a consensus engine module, a consensus algorithm customizing module and a consensus expansion customizing module, and the consensus model customizing module is used for realizing functions of customizing a transaction execution process and customizing a block chain economy model; the consensus engine module comprises a consensus algorithm general engine and a transaction parallel processing engine, the consensus algorithm general engine is used for realizing the registration and start-stop of the consensus algorithm service, and the transaction parallel processing engine is used for realizing the efficient transaction processing; the consensus algorithm customizing module is used for realizing the functions of unified management and maintenance of the block consensus algorithm; the consensus expansion customizing module is used for realizing the function of optimizing and expanding the block consensus service.
7. The system of claim 5, wherein: the contract module comprises a contract engine customization module, a contract extension customization module and a contract security module; the contract engine customization module is used for realizing contract execution and verification functions; the contract extension customizing module is used for realizing the function of contract service extension; the contract security module is used for realizing the functions of contract security audit, contract security call, contract upgrade and TEE contract.
8. The system of claim 1, wherein: the adaptation layer comprises a middleware module and an interface design module; the middleware module is used for managing and expanding the middleware, providing a scene service function general component and carrying out data interaction with an out-of-chain system; the interface design module is used for packaging functional interfaces of the basic layer, the core layer and the middleware module and is used by the application layer and the management layer, the interface design module is used for calling a system function and a middleware function when the application layer carries out service logic realization, and the management layer uses the interface design module for calling a block chain system function to carry out visual operation and maintenance management.
9. The system of claim 8, wherein: the middleware module comprises a customizable language predictive machine module, a signing module, a scheduling module, a certificate storage module, a settlement module and a cross-chain module; the prediction machine module is used for realizing interaction between a block chain and an off-chain system; the signing module comprises a direct signing mode and an agent signing mode; the scheduling module comprises primary scheduling and multi-stage scheduling; the certificate storing module comprises a data template and a data format extension; the settlement module comprises automatic settlement and linkage settlement; and the cross-chain module is used for realizing the trusted interaction of data among the block chain systems.
10. The system of claim 1, wherein: the management layer comprises a system management module and an operation and maintenance management module, the system management module is used for maintaining and managing the block chain system, and the operation and maintenance management module is used for developing and debugging scene services of the application layer and visually deploying and calling contracts.
11. The system of claim 10, wherein: the system management module is used for realizing the functions of block chain user identity management, node management, contract management, asset management and monitoring management; the system comprises a user identity management function, a node management function, a contract management function, an asset management function and a monitoring management function, wherein the user identity management function is used for realizing the identity of a user in a management block chain system, the node management function is used for realizing the networking node of a management block chain network, the contract management function is used for realizing the deployed scene service contract on a management chain, the asset management function is used for realizing the management of the on-chain assets of a service client, and the monitoring management function is used for realizing the monitoring of abnormal behaviors of the node and the user.
CN202111243411.XA 2021-10-25 2021-10-25 Block chain customizable system Pending CN113947485A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111243411.XA CN113947485A (en) 2021-10-25 2021-10-25 Block chain customizable system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111243411.XA CN113947485A (en) 2021-10-25 2021-10-25 Block chain customizable system

Publications (1)

Publication Number Publication Date
CN113947485A true CN113947485A (en) 2022-01-18

Family

ID=79332593

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111243411.XA Pending CN113947485A (en) 2021-10-25 2021-10-25 Block chain customizable system

Country Status (1)

Country Link
CN (1) CN113947485A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114338536A (en) * 2022-03-15 2022-04-12 北京百度网讯科技有限公司 Scheduling method, device, equipment and medium based on block chain
CN115277734A (en) * 2022-05-23 2022-11-01 浪潮软件股份有限公司 Cross-regional government affair data sharing and business cooperation method and system based on block chain technology
CN117726344A (en) * 2024-02-06 2024-03-19 中国信息通信研究院 Method, device, equipment and medium for creating intelligent contracts in block chain

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114338536A (en) * 2022-03-15 2022-04-12 北京百度网讯科技有限公司 Scheduling method, device, equipment and medium based on block chain
CN114338536B (en) * 2022-03-15 2022-06-17 北京百度网讯科技有限公司 Scheduling method, device, equipment and medium based on block chain
CN115277734A (en) * 2022-05-23 2022-11-01 浪潮软件股份有限公司 Cross-regional government affair data sharing and business cooperation method and system based on block chain technology
CN117726344A (en) * 2024-02-06 2024-03-19 中国信息通信研究院 Method, device, equipment and medium for creating intelligent contracts in block chain

Similar Documents

Publication Publication Date Title
CN113947485A (en) Block chain customizable system
CN101018259B (en) Telecom integrated information system and method
CN111598566A (en) Network payment system based on mixed cross-chain
US8214325B2 (en) Federating business event data within an enterprise network
CN112866380B (en) Chain network architecture based on block chain
CN108134764B (en) Distributed data sharing and exchanging method and system
CN107291862A (en) Business datum storage method, device, storage medium and electronic equipment
US20220084031A1 (en) Backend architecture method and system for aggregate payment, computer device, and storage medium
CN113821564B (en) Heterogeneous parallel blockchain and method for coordinating on-chain data and under-chain contracts thereof
WO2020186807A1 (en) System and method for power data linking based on blockchain technology
CN114445010B (en) Block chain-based multi-mode intermodal system and method
CN112508733A (en) Big data intelligence service system in electric wire netting space-time based on big dipper
CN107800781A (en) A kind of configuration data processing method and device
CN112330519A (en) Data processing method and device
CN115695139A (en) Method for enhancing micro-service system architecture based on distributed robust
Vizier et al. ComChain: A blockchain with Byzantine fault‐tolerant reconfiguration
CN116489214A (en) Unified service scheduling method, device, medium and equipment based on micro service gateway
US7133913B2 (en) Information routing
Liu et al. Using blockchain technology in IoT manufacture environment for intelligence prediction
CN116827957B (en) Information processing method, device, equipment and medium based on multi-block chain
CN112565368B (en) Block chain based offshore equipment ad hoc network system, method and medium
CN113886061A (en) Industry thing networking operation and maintenance platform
Yang et al. DCAB: An Effective Data Collection and Analysis Service for Blockchain
Zhang et al. Enhanced multiset consensus protocol based on PBFT for logistics information traceability
EP2189916B1 (en) Federating business event data within an enterprise network

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