CN115145976A - Data processing method and device based on block chain, computer equipment and medium - Google Patents

Data processing method and device based on block chain, computer equipment and medium Download PDF

Info

Publication number
CN115145976A
CN115145976A CN202110350572.2A CN202110350572A CN115145976A CN 115145976 A CN115145976 A CN 115145976A CN 202110350572 A CN202110350572 A CN 202110350572A CN 115145976 A CN115145976 A CN 115145976A
Authority
CN
China
Prior art keywords
service
data
block chain
interface
node
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
CN202110350572.2A
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.)
Tencent Cloud Computing Changsha Co Ltd
Original Assignee
Tencent Cloud Computing Changsha Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Cloud Computing Changsha Co Ltd filed Critical Tencent Cloud Computing Changsha Co Ltd
Priority to CN202110350572.2A priority Critical patent/CN115145976A/en
Publication of CN115145976A publication Critical patent/CN115145976A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2458Special types of queries, e.g. statistical queries, fuzzy queries or distributed queries
    • G06F16/2471Distributed queries
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • General Physics & Mathematics (AREA)
  • Marketing (AREA)
  • Software Systems (AREA)
  • Strategic Management (AREA)
  • General Business, Economics & Management (AREA)
  • Economics (AREA)
  • Development Economics (AREA)
  • Fuzzy Systems (AREA)
  • Mathematical Physics (AREA)
  • Probability & Statistics with Applications (AREA)
  • Technology Law (AREA)
  • Computational Linguistics (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The application discloses a data processing method, a device, computer equipment and a medium based on a block chain, wherein the method comprises the following steps: displaying a first service interface of the block chain system; the block chain system comprises N accessed system nodes; n is a positive integer; selecting M system nodes from the N system nodes on a first service interface, and acquiring node configuration information aiming at the M system nodes; m is a positive integer less than or equal to N; and constructing service block chains to which the M system nodes belong according to the node configuration information. By adopting the method and the device, the efficiency of constructing the service block chain can be improved.

Description

Data processing method and device based on block chain, computer equipment and medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a data processing method and apparatus based on a block chain, a computer device, and a medium.
Background
With the continuous development of computer networks, the related technology of block chains is more mature. The block chain is a novel application mode of computer technologies such as distributed data storage, point-to-point transmission, a consensus mechanism and an encryption algorithm.
In the prior art, an open source blockchain platform is usually used to construct a blockchain, and the specific way is that a user can obtain a basic blockchain construction code in the open source blockchain platform, and then can modify the code, so as to construct a blockchain through the modified code. Therefore, in the prior art, when a block chain is constructed, the codes in the active block chain platform need to be reconstructed again, and the difficulty of reconstructing the codes is very high, so that the efficiency of constructing the block chain is low.
Disclosure of Invention
The application provides a data processing method, a data processing device, computer equipment and a data processing medium based on a block chain, which can improve the efficiency of constructing a service block chain.
One aspect of the present application provides a data processing method based on a block chain, where the method includes:
displaying a first service interface of the block chain system; the block chain system comprises N accessed system nodes; n is a positive integer;
selecting M system nodes from the N system nodes on a first service interface, and acquiring node configuration information aiming at the M system nodes; m is a positive integer less than or equal to N;
and constructing service block chains to which the M system nodes belong according to the node configuration information.
One aspect of the present application provides a data processing method based on a block chain, including:
sending service information of the blockchain system to the terminal equipment so that the terminal equipment displays a first service interface of the blockchain system according to the service information; the block chain system comprises N accessed system nodes; n is a positive integer;
receiving M system nodes returned by the terminal equipment and node configuration information of the M system nodes; the M system nodes are selected from the N system nodes on the first service interface by the terminal equipment; m is a positive integer less than or equal to N;
and constructing service block chains to which the M system nodes belong according to the node configuration information, and operating the constructed service block chains.
One aspect of the present application provides a data processing apparatus based on a block chain, the apparatus including:
the page display module is used for displaying a first service interface of the block chain system; the block chain system comprises N accessed system nodes; n is a positive integer;
the node selection module is used for selecting M system nodes from the N system nodes on the first service interface and acquiring node configuration information aiming at the M system nodes; m is a positive integer less than or equal to N;
and the block chain building module is used for building the service block chains of the M system nodes according to the node configuration information.
Optionally, the block chain system includes the constructed service federation chain;
the mode of the page display module displaying the first service interface of the block chain system comprises the following steps:
displaying a second service interface of the block chain system, and acquiring alliance chain identification information of the business alliance chain input in the second service interface;
determining system nodes included in a service alliance chain in the N system nodes according to the alliance chain identification information;
displaying a first service interface according to node identification information of system nodes included in the service alliance chain;
the constructed service block chain belongs to a service subchain of a service alliance chain.
Optionally, the mode for the node selection module to obtain the node configuration information for the M system nodes includes:
acquiring a shared data type for carrying out data sharing on the service block chain on a first service interface;
acquiring Z data fields included in data of a shared data type; z is a positive integer;
and acquiring node configuration information according to the Z data fields.
Optionally, the mode that the node selection module obtains the node configuration information according to the Z data fields includes:
acquiring a data uplink format of each data field in Z data fields on a first service interface, and acquiring field combination strategies corresponding to the Z data fields;
and determining the data uplink format and the field combination strategy of each data field as the node configuration information.
Optionally, the apparatus further comprises:
the query field acquisition module is used for displaying a third service interface of the block chain system and acquiring a service query field aiming at the service block chain on the third service interface;
the data query module is used for querying the service data associated with the service query field in the service block chain;
and the data display module is used for displaying the inquired business data associated with the business inquiry field on the third service interface.
Optionally, the apparatus further comprises:
the uplink data acquisition module is used for displaying a fourth service interface of the block chain system, acquiring target service data in the fourth service interface and importing the target service data into the service block chain;
the data export module is used for exporting the abnormal import data of the target service data from the service block chain if the target service data is detected to be in the abnormal import state in the service block chain;
and the re-import module is used for re-importing the target service data into the service block chain according to the abnormal import data.
One aspect of the present application provides a data processing apparatus based on a block chain, the apparatus including:
the service information sending module is used for sending service information of the block chain system to the terminal equipment so that the terminal equipment displays a first service interface of the block chain system according to the service information; the block chain system comprises N accessed system nodes; n is a positive integer;
the configuration information receiving module is used for receiving the M system nodes returned by the terminal equipment and the node configuration information of the M system nodes; the M system nodes are selected from the N system nodes on the first service interface by the terminal equipment; m is a positive integer less than or equal to N;
and the block chain operation module is used for constructing service block chains to which the M system nodes belong according to the node configuration information and operating the constructed service block chains.
Optionally, the block chain system includes the constructed service alliance chain;
the mode for sending the service information of the block chain system to the terminal equipment by the service information sending module comprises the following steps:
acquiring alliance chain identification information of a service alliance chain sent by terminal equipment; the alliance chain identification information is obtained by the terminal equipment on a second service interface of the block chain system;
determining a system node included in a service alliance chain in the N system nodes according to the alliance chain identification information, and acquiring the node identification information of the system node included in the service alliance chain;
and generating service information according to the node identification information, and sending the service information to the terminal equipment.
Optionally, the node configuration information includes a data uplink format of each of the Z data fields and a field combination policy of the Z data fields; z data fields are data fields contained in the data of the target data type; the target data type is a shared data type for carrying out data sharing on the service block chain; z is a positive integer;
the method for constructing the service block chain to which the M system nodes belong by the block chain operation module according to the node configuration information comprises the following steps:
generating a data uplink contract according to the data uplink format of each data field in the node configuration information and the field combination strategy of the Z data fields;
and deploying a data uplink contract for each system node in the M system nodes to obtain the constructed service block chain.
Optionally, the manner in which the block chain operation module deploys the data uplink contract for each system node in the M system nodes to obtain the constructed service block chain includes:
deploying a data uplink contract for each system node to obtain an initial service block chain;
establishing a service access channel of an initial service block chain, and determining the initial service block chain with the service access channel as a service block chain;
the M system nodes are used for calling a data uplink contract in the service block chain through the service access channel.
Optionally, the apparatus is applied to a target system node among N system nodes; the target system node belongs to M system nodes; the M system nodes are provided with associated service systems;
the above-mentioned device still includes:
the first system determination module is used for determining a service system associated with the target system node as a target service system;
the first data acquisition module is used for acquiring L data to be uplink in the target service system according to a contract interface between the target service system and the service subchain; l data to be uplinked have the same data format type, and L is a positive integer;
and the template uplink module is used for acquiring the data uplink templates aiming at the L data to be uplink, and calling the data uplink contract through the contract interface to introduce the L data to be uplink into the service block chain in batches by adopting the data uplink templates.
Optionally, the apparatus is applied to a target system node among N system nodes; the target system node belongs to M system nodes; the M system nodes are provided with associated service systems;
the above-mentioned device still includes:
a second system determination module for determining a business system associated with the target system node as a target business system;
the second data acquisition module is used for acquiring incremental data in the target service system according to a contract interface between the target service system and the service block chain;
and the interface uplink module is used for acquiring a data import interface aiming at the incremental data and invoking a data uplink contract through the contract interface to import the incremental data into the service block chain by adopting the data import interface.
An aspect of the application provides a computer device comprising a memory and a processor, the memory storing a computer program which, when executed by the processor, causes the processor to perform the method of an aspect of the application.
An aspect of the application provides a computer-readable storage medium having stored thereon a computer program comprising program instructions which, when executed by a processor, cause the processor to perform the method of the above-mentioned aspect.
According to an aspect of the application, there is provided a computer program product or computer program comprising computer instructions stored in a computer readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions to cause the computer device to perform the method provided in the various alternatives of the above aspect and the like.
The method can display a first service interface of the block chain system; the block chain system comprises N accessed system nodes; n is a positive integer; selecting M system nodes from N system nodes on a first service interface, and acquiring node configuration information aiming at the M system nodes; m is a positive integer less than or equal to N; and constructing service block chains to which the M system nodes belong according to the node configuration information. Therefore, the method provided by the application can acquire the M system nodes and the node configuration information aiming at the M system nodes on the first service interface, and further can quickly construct the service block chain to which the M system nodes belong directly through the node configuration information, so that the construction difficulty of the service block chain is reduced, and the construction efficiency of the service block chain is improved.
Drawings
In order to more clearly illustrate the technical solutions in the present application or prior art, the drawings used in the embodiments or prior art descriptions will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and other drawings can be obtained by those skilled in the art without inventive efforts.
Fig. 1 is a network architecture diagram of a block chain system according to an embodiment of the present application;
FIG. 2 is a block chain system according to the present application;
fig. 3 is a schematic flowchart of a data processing method based on a blockchain according to the present application;
4a-4d are interface diagrams of a service interface for creating a blockchain as provided herein;
FIG. 5 is a schematic interface diagram of a service interface for data query provided herein;
FIG. 6 is an interface schematic diagram of a service interface for contract queries provided herein;
fig. 7 is a schematic flowchart of a data processing method based on a blockchain according to the present application;
FIG. 8 is an interface schematic of a service interface of a publish contract interface provided herein;
FIG. 9 is an interface schematic of a contract interface authorization service interface provided by the present application;
FIG. 10 is an interface diagram of a service interface for importing a data template provided in the present application;
FIG. 11 is an interface diagram of a service interface for importing a data template provided by the present application;
FIG. 12 is a flowchart illustrating a federation chain creation method provided herein;
FIG. 13 is a flowchart illustrating a data uplink method according to the present application;
FIG. 14 is a schematic flow chart diagram of a data usage method provided herein;
FIG. 15 is a block chain-based data processing apparatus according to the present application;
FIG. 16 is a block chain-based data processing apparatus according to the present application;
fig. 17 is a schematic structural diagram of a computer device provided in the present application.
Detailed Description
The technical solutions in the present application will be described clearly and completely with reference to the accompanying drawings in the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments in the present application without making any creative effort belong to the protection scope of the present application.
The present application relates to the field of block chaining. The block chain is a novel application mode of computer technologies such as distributed data storage, point-to-point transmission, a consensus mechanism and an encryption algorithm. A block chain (Blockchain), which is essentially a decentralized database, is a series of data blocks associated by using a cryptographic method, and each data block contains information of a batch of network transactions, so as to verify the validity (anti-counterfeiting) of the information and generate a next block. The blockchain may include a blockchain underlying platform, a platform product services layer, and an application services layer. The Block chain comprises a series of blocks (blocks) which are mutually connected according to the generated chronological order, once a new Block is added into the Block chain, the new Block cannot be removed any more, and the blocks record the record data submitted by the nodes in the Block chain system. In the application, the service block chain can be quickly constructed on the block chain platform, and the service related to the service block chain can be conveniently operated through the block chain platform.
More particularly, the present application relates to intelligent contracts in blockchains. The intelligent contract is contract code automatically executed on the blockchain hub, and generally comprises contents such as a contract owner, a contract object, contract terms, a contract algorithm, a contract trigger condition and the like. For the blockchain application scenario of the electronic certificate, after the data sharing rules are converted into intelligent contracts and deployed on blockchains, the conventional sharing terms and default processing terms can be automatically fulfilled, the execution process is completely recorded by the blockchain, and the execution state can be checked and audited at any time, so that a fair, fair and open contract execution environment is provided. In the application, various intelligent contracts can be created on the service block chain according to the service requirements, so that corresponding service operation can be realized through the created intelligent contracts.
The application also relates to cloud technology. The Cloud Technology (Cloud Technology) is a hosting Technology for unifying series resources such as hardware, software, network and the like in a wide area network or a local area network to realize calculation, storage, processing and sharing of data.
The cloud technology is based on the general names of network technology, information technology, integration technology, management platform technology, application technology and the like applied in the cloud computing business model, can form a resource pool, is used as required, and is flexible and convenient. Cloud computing technology will become an important support. Background services of technical network systems require a large amount of computing and storage resources, such as video websites, picture-like websites and more portal websites. With the high development and application of the internet industry, each article may have its own identification mark and needs to be transmitted to a background system for logic processing, data in different levels are processed separately, and various industrial data need strong system background support and can only be realized through cloud computing.
The cloud technology referred to in the present application mainly means that data interaction can be performed between the terminal device and the block chain node through "cloud", and the block chain node in the present application may be formed by a cloud device (e.g., a cloud server).
Referring to fig. 1, fig. 1 is a network architecture diagram of a block chain system according to an embodiment of the present disclosure. As shown in fig. 1, the business system may include a police office system of a police office, a human-social office system of a human-social office, a municipality system of a municipality office, a fiscal office system of a fiscal office, and the like in the block 100 a. The service system belongs to the original system of each office (such as a human-computer agency, a public security agency and the like), and the service system does not belong to a block chain. Therefore, there is traffic between the service systems in the block 100a, and therefore, a service block chain corresponding to the service system in the block 100a can be constructed. Please see the description below.
First, corresponding block link points may be configured for each service system in a block chain system, and the block link points corresponding to each service system may be referred to as system nodes corresponding to each service system. As shown in fig. 1, a system node 101a corresponding to a public security bureau system, a system node 102a corresponding to a human-social bureau system, a system node 103a corresponding to a city supervision bureau, a system node 104a corresponding to a financial bureau system, and the like may be arranged in the block chain system. The system nodes, such as the system node 101a, the system node 102a, the system node 103a, and the system node 104a, may form a service federation chain in the block chain system.
Each system node in the block chain system can be an independent physical server, can also be a server cluster or distributed system formed by a plurality of physical servers, and can also be a cloud server for providing basic cloud computing services such as cloud service, a cloud database, cloud computing, cloud functions, cloud storage, network service, cloud communication, middleware service, domain name service, security service, CDN (content distribution network), big data and artificial intelligence platforms and the like. The terminal device may be: the intelligent terminal comprises intelligent terminals such as a smart phone, a tablet computer, a notebook computer, a desktop computer and an intelligent television.
Further, one or more block subchains (which may be referred to as service subchains) may be created in the service federation chain, for example, a service subchain may be created among the system node 101a of the public security bureau, the system node 102a of the human society bureau, and the system node 103a of the city supervision bureau, and the service subchain including the system node 101a, the system node 102a, and the system node 103a may be referred to as a service subchain y1. For example, a service sub-chain may be created among the system node 102a of the human society office, the system node 103a of the municipality and the system node 104a of the fiscal office, and the service sub-chain including the system node 102a, the system node 103a and the system node 104a may be referred to as a service sub-chain y2. And, the service federation chain can be understood as the largest one of the service sub-chains.
More, service access channels can be created for each block chain (including service federation chain and service sub-chain). As shown in fig. 1, the service access channel of the service federation chain may be a common channel, and all system nodes in the service federation chain join the common channel; the service access channel of the service sub-chain y1 may be an identity card channel, and the system node 101a, the system node 102a and the system node 103a join the identity card channel; the traffic access channel of the traffic sub-chain y2 may be a social security card channel that the system node 102a, the system node 103a, and the system node 104a join.
Each block chain may also be deployed with an intelligent contract, for example, the intelligent contract deployed on the service alliance chain may include a certificate directory contract (a directory for generating an uploaded certificate) and a batch uplink contract (for performing batch uplink on data); the intelligent contract deployed on the business sub-chain y1 may include an identity card contract (for performing identity card related business); the smart contracts deployed on the business sub-chain y1 may include social security card contracts (for performing social security card related business). Each system node can call the intelligent contract in the corresponding block chain through the added service access channel.
Moreover, encrypted communication can be performed between the service system and the blockchain system, for example, communication is performed through an encryption interface, so that data in the service system can be imported onto the blockchain of the blockchain system. In addition, the blockchain system of the present application further includes a blockchain platform, which can be borne in the terminal device, so that a user is supported to perform related service operations on the blockchain in the blockchain system on the blockchain platform of the terminal device, such as an operation of creating an intelligent contract, a data uplink operation, an uplink data query operation, and the like. Data interaction between the blockchain platform and the blockchain in the background of the blockchain system can be carried out through an API (application program interface).
Referring to fig. 2, fig. 2 is a schematic structural diagram of a block chain system according to the present application. As shown in fig. 2, the blockchain system 100b may include a blockchain platform 101b and a blockchain background 102b. The block chain platform 101b may be understood as a front end of a block chain system, and the block chain platform may be borne in the terminal device, and supports a user to issue a relevant service instruction on the block chain platform of the terminal device to a block chain background, and the block chain background may provide technical support for the block chain platform, so as to implement a service operation related to the service instruction issued by the user through the block chain platform.
By the method provided by the application, a service alliance chain can be established for a plurality of (at least two) service organizations (organizations to which service systems belong, such as a human-computer agency, a public security bureau, a government office and the like) with service calls, so that data in the service systems of the service organizations can be led into the service alliance chain (including being led into a service subchain of the service alliance chain), and therefore the service organizations can quickly acquire data in the service system of the other side in the service alliance chain without accessing other service organizations respectively to acquire data in the service systems of other service organizations, and therefore data interaction efficiency among the service systems is improved. Moreover, the block chain platform is used for realizing the construction of the block chain (including the business alliance chain and the business subchain in the business alliance chain), the application of the constructed block chain and other business operations, and the difficulty of the business operations can be reduced, so that the business processing efficiency is improved.
Referring to fig. 3, fig. 3 is a schematic flowchart of a data processing method based on a block chain according to the present application. The execution subject in the embodiment of the present application may be one computer device or a computer device cluster formed by a plurality of computer devices. The computer equipment can be a server or terminal equipment. Therefore, the execution subject in the embodiment of the present application may be a server, or may be a terminal device, or may be formed by the server and the terminal device together. The following description will be given taking an execution subject in the embodiment of the present application as an example of a terminal device. As shown in fig. 3, the method may include:
step S101, displaying a first service interface of a block chain system; the block chain system comprises N accessed system nodes; n is a positive integer;
in this application, the blockchain system may include a blockchain platform, which may be understood as a front-end client of the blockchain system, and the blockchain platform may be run in the terminal device, so that a user may quickly implement operations such as blockchain construction, data uplink, and uplink data query through the blockchain platform running in the terminal device, please refer to the following description.
The service interface of the blockchain system is an interface on a blockchain platform in the terminal device, and operations that are responded and executed by the terminal device in the following processes can be implemented by the blockchain platform, so that some processes in the following description can omit the blockchain platform and directly use the terminal device to execute corresponding operations for illustration, but it is understood that the operations executed by the terminal device can be implemented by the blockchain platform.
N block link nodes can be created in advance in the block link system, and can be called as system nodes, where N is a positive integer, and a specific value of N is determined according to an actual application scenario. A service blockchain may be constructed from N blockchain link points in a blockchain system. It should be noted that, the constructed service blockchain may be a service federation chain constructed in a blockchain system (which may be referred to as a federation chain for short), or in a case that a service federation chain has already been constructed in the blockchain system, the constructed service blockchain may be a service sublink in the service federation chain, a system node in the service sublink is smaller than or equal to a system node in the service federation chain, and the service federation chain may be understood as the largest one of the service sublinks.
It is understood that when there is a service interaction between a plurality of (at least two) service systems, a service block chain may be constructed for the plurality of service systems, but the plurality of service systems do not belong to the constructed service block chain. In this case, system nodes may be additionally created for the service systems in the blockchain system in advance, and the system nodes created for the service systems may be the N system nodes. A system node may be formed by one or more computer devices.
For example, if there is a business transaction between the human-social office, the public security office, the financial office, and the certificate office, and a business block chain between them needs to be constructed, the N system nodes may include a system node corresponding to the human-social office, a system node corresponding to the public security office, a system node corresponding to the financial office, and a system node corresponding to the certificate office.
According to the block chain system, three levels of administrator accounts can be established, all the three levels of administrator accounts can log in the block chain platform, and the three levels of administrator accounts respectively comprise a union administrator account, a chain administrator account and a node administrator account. The alliance administrator account may have a right to construct a business alliance chain, the chain administrator account may have a right to manage a business sub-chain in the business alliance chain, and the node administrator account may have a right to manage a system node to which the node administrator account belongs. Each system node can have its own node administrator account, and the number of the node administrator accounts can be one or more.
Each administrator account can also create more administrator accounts, and the administrator account creating the administrator account can manage the created administrator account. For example, the node administrator account initially created in the blockchain system may also create more node administrator accounts, and the node administrator account initially created may manage the node administrator account created by itself.
It should be noted that a service sub-chain in a service federation chain is usually created by a node administrator account of a certain system node, and the node administrator account that creates the service sub-chain is the chain administrator account in the service sub-chain. Or, the service sub-chain in the service federation chain may also be created by a federation administrator account, so that the federation administrator account also belongs to the chain administrator account in the created service sub-chain. The federation administrator account belongs to the administrator account at the highest level, so that the authority of the federation administrator account can be set according to an actual application scene, for example, the federation administrator account also has the authority of managing the service sub-chain and the system node. The federation administrator account may also be an administrator account belonging to a system node in the blockchain system.
If the service block chain to be created is a service alliance chain, the administrator account logged in the terminal device may be an alliance administrator account, the service alliance chain may be created through the logged alliance administrator account, and at this time, the first service interface may be a service interface in a block chain platform where the alliance administrator account is logged in.
If the service block chain to be created is a service sub-chain in a created service federation chain, the administrator account logged in the terminal device may be a node administrator account of a system node or an account of a federation administrator, the service sub-chain may be created through the logged node administrator account or the account of the federation administrator, and at this time, the first service interface may be a service interface in a block chain platform where the node administrator account or the account of the federation administrator is logged in.
Optionally, the block chain platform may further include a trigger control for creating the service block chain, and the terminal device may respond to a trigger operation (e.g., a click operation or a sliding operation) of the user for the trigger control, and display a first service interface, where the first service interface is an interface for guiding the user to create the service block chain.
Step S102, selecting M system nodes from N system nodes on a first service interface, and acquiring node configuration information aiming at the M system nodes; m is a positive integer less than or equal to N;
in this application, the manner in which the terminal device selects M system nodes from the N system nodes in the first service interface may be: each system node has node identification information, which may include information such as a node name or a node identification (node ID) of the system node. Therefore, if the service block chain to be created is a service alliance chain, the terminal device may acquire the node identification information entered by the user at the first service interface, and use the system node to which the node identification information entered by the user at the first service node belongs as M system nodes selected from the N system nodes. Or, the first service interface may also include node identification information of the N system nodes, and the node identification information of the N system nodes in the first service interface may have a control function, so that the terminal device may respond to a selection operation of the user for the N node identification information in the first service interface, and take the system node to which the node identification information selected by the user belongs as the selected M system nodes.
Similarly, if the service block chain to be created is a service sub-chain in the service alliance chain, the terminal device may obtain, at the first service interface, node identification information of the system node included in the service alliance chain entered by the user, and use the system node to which the node identification information entered by the user at the first service interface belongs as M system nodes selected from the N system nodes.
Or, the first service interface may further display node identification information of the system node included in the service federation chain, and an obtaining manner of the node identification information displayed in the first service interface may be: the terminal device may further display a second service interface before displaying the first service interface, where the second service interface is an interface for acquiring the N system nodes. The service federation chain also has federation chain identification information, which may be information such as a node name or a node identification (node ID) of the service federation chain. Therefore, the terminal device may obtain the alliance chain identifier entered by the user in the second service interface, and may obtain the corresponding service alliance chain through the alliance chain identifier, so that the system node included in the service alliance chain may be determined from the N system nodes. Therefore, the terminal device may further obtain the node identification information of the system node included in the service alliance chain, and the terminal device may display the first service interface according to the node identification information of the system node included in the service alliance chain, where the first service interface includes the node identification information of the system node included in the service alliance chain. The node identification information of the system nodes included in the service federation chain may have a control function in the node identification information in the first service interface, and therefore, the terminal device may respond to a selection operation of the user for the node identification information in the first service interface, and take the system node to which the node identification information selected by the user belongs as the selected M system nodes, in which case, the M system nodes belong to the service federation chain.
Since the administrator account logged in on the blockchain platform of the terminal device may be an administrator account belonging to a certain system node in the blockchain system, data (for example) acquired by the terminal device may be acquired by the system node to which the logged administrator account belongs.
The selected M system nodes are system nodes for constructing the service block chain, and M is a positive integer less than or equal to N.
More, the terminal device may obtain not only M system nodes in the first service interface, but also the name of the service block chain to be created, the application scenario of the service block chain to be created, and the related description information about the service block chain, which are entered by the user in the first service interface. The name of the service block chain, the application scenario, and the related description information about the service block chain, which are entered by the user in the first service interface and acquired by the terminal device, may be used as configuration information for the service block chain to be created, where the configuration information is, for M system nodes of the service block chain, node configuration information for the M system nodes.
In addition, since the services in the constructed service block chain can all be executed by the intelligent contract, the node configuration information for the M system nodes may further include related information for creating the intelligent contract.
Please refer to the following description:
the terminal device may further obtain, on the first service interface, a data type (which may be referred to as a shared data type) of data that can be used for performing data sharing on the service block chain that needs to be created. The shared data type is a type of data that needs to be imported on the service block chain, and there may be one or more (at least two) shared data types. For example, if the service block chain is a block chain for storing an electronic certificate, which may include certificates such as identification cards, student cards, and passports, the shared data type may include the type of identification card, the type of student card, and the type of passport.
The terminal device may further obtain Z data fields included in the data of the shared data type, and for different shared data types, the value of Z may be different, where Z is a positive integer, and the value of Z is determined according to an actual application scenario. For example, if the shared data type is the type of an identification card, the Z data fields may include a name data field, a gender data field, a birth date data field, an address data field, and the like.
The terminal device may obtain node configuration information for the M system nodes through the Z data fields: the first service interface further supports the user to set a uplink format (which may be referred to as a data uplink format) for each data field of the data to be uplink, for example, the data uplink format may include a plaintext uplink format, a ciphertext uplink format, and a hash value uplink format. Specifically, the first service interface may include an option for setting a data uplink format for each data field, and the terminal device may determine the data uplink formats corresponding to the data fields respectively through a selection operation of the user on the option for the data uplink format of each data field in the first service interface. Therefore, the terminal device may obtain the data uplink format of each of the Z data fields on the first service interface.
In addition, the terminal device may further acquire a field combination policy for the Z data fields on the first service interface, where the field combination policy may include policies such as a combination order for the Z data fields and layout information between the Z data fields (for example, what layout position each data field is in). It is to be understood that the field combination policy may be set by the user at his or her own discretion in the first service interface.
Therefore, the terminal device may also use the obtained field combination policy for the Z data fields and the data uplink format of each data field in the Z data fields as node configuration information for the M system nodes.
Step S103, constructing service block chains to which M system nodes belong according to the node configuration information;
in this application, the terminal device may construct a service block chain to which M system nodes belong according to the node configuration information, where the service block chain may be a newly established service alliance chain, or may also be a service sublink of an existing service alliance chain in the block chain system. The block chain name, the application scenario, and the related description information of the service block chain are the name, the application scenario, and the related description information acquired through the first service interface in the node configuration information.
And, through the field combination policy for the Z data fields in the node configuration information and the data uplink format of each data field in the Z data fields, an intelligent contract for uplink of data of a shared data type may be created, and the intelligent contract may be referred to as a data uplink contract. Thus, the data chaining contract may be configured (i.e., deployed) for each of the M system nodes to obtain the service block chain.
It is to be understood that the data uplink contract is only an example, and in fact, the node configuration information may not necessarily include the field combination policy of the Z data fields and the data uplink format of each of the Z data fields, and the node configuration information may further include information related to creating an intelligent contract for any service type that needs to be performed, so that the intelligent contract for any service type may be configured for M system nodes through the information related to creating an intelligent contract for any service type in the node configuration information. The type and number of the intelligent contracts are determined according to the actual application scenario, and are not limited thereto.
In addition, not only can intelligent contracts be configured for each system node in the service block chain when the service block chain is created, but also the terminal device can configure new intelligent contracts for each system node in the service block chain according to some configuration operations of the user in the block chain platform after the service block chain is created.
A plurality of service sub-chains can be created in one service alliance chain according to service requirements, and different service sub-chains may or may not include the same system node. Data in one service subchain can only be uplinked, accessed or viewed by a system node in the service subchain, and data between different service subchains can be isolated from each other. It can be understood that the service federation chain is a large group, multiple subgroups can be created in the service federation chain, and an ad-hoc group can be understood as a service subgroup. Therefore, when there is a traffic exchange between a plurality of system nodes, a service federation chain to which the plurality of system nodes belong can be established first, and then when some system nodes in the plurality of system nodes have other traffic demands, a service sub-chain can be established for the some system nodes in the service federation chain.
For example, each system node in a service federation chain may also be a system node corresponding to each department of an enterprise, and a service sub-chain may be re-established for each department according to different service requirements between each department.
Referring to fig. 4a-4d, fig. 4a-4d are schematic interface diagrams of a service interface for creating a blockchain according to the present application. As shown in fig. 4a, the interface 100c may be the first service interface, and the service block chain created through the interface 100c is a service federation chain. Specifically, the node configuration information that is the basis for creating a service federation chain (referred to as a federation chain for short) can be obtained through step (1) on the interface 100c, and the node configuration information may include a federation type, a federation name, a federation description, and the like.
Adding a member to join the federation in the interface 100c through the step (2), where adding a member to join the federation refers to selecting M system nodes from N system nodes of the blockchain system to construct a business federation chain, where the M system nodes are members joining the federation.
As shown in fig. 4b, the interface 101c may also be the first service interface, and the service block chain created through the interface 101c is a service sub-chain in the service federation chain. Specifically, the node configuration information for creating the basis of the service sub-chain may be obtained through step (1) on the interface 101c, and the node configuration information may include information such as a block chain network (such as which service alliance chain) to which the service sub-chain belongs, a service type, a sub-chain name, and a sub-chain description.
The node configuration may be performed through the step (2) on the interface 101c, that is, configuring which system nodes (e.g., the above M system nodes) in the service federation chain need to be added to the service sublink, it may be understood that the service sublink may include some or all system nodes in the service federation chain, and if the service sublink includes all system nodes in the service federation chain, the service sublink is the service federation chain.
As shown in fig. 4c, the interface 102c also belongs to the first service interface, and the interface 102c is actually the interface in step (3) of the interface 101 c. The type of data to be shared in the service sub-chain (i.e., the above-mentioned shared data type) can be obtained in the interface 102c, and the shared data type is here the type of the construction license of the construction project. The plurality of data fields (corresponding to the Z data fields) of the construction license for the construction project may be obtained at the interface 102c, where the plurality of data fields may include the certificate name, the number, and the data field of the construction unit, and the plurality of data fields may not include the data field of the remark because the data field of the remark is not selected by "√". As shown in the interface 102c, a data uplink format may be set for the plurality of data fields, where the data uplink format set for the data field of the certificate name is a plaintext, the data uplink format set for the data field of the number is a plaintext, and the data uplink format set for the data field of the construction unit is also a plaintext, where the plaintext indicates that the original data uplink corresponding to the data field passes through the plaintext uplink without being encrypted.
Furthermore, a key value may be defined in the interface 102c, where the key value includes field combination orders set by the user for the selected data fields, and the field combination orders here are numbered data fields in sequence. The data field of the license name and the data field of the construction unit. This field combination order may be used as the field combination policy described above. Therefore, the ul format and the field grouping policy of the plurality of data fields obtained at the interface 102c can also be used as node configuration information for the system node.
An intelligent contract (such as the data uplink contract described above) may be created through the data uplink format of the plurality of data fields and the field combination policy, and a contract name of the created intelligent contract may also be set in the interface 102 c.
As shown in fig. 4d, the interface 103c is actually the interface of step (4) of the interface 102 c. The created intelligent contract (such as the intelligent contract created in the interface 102 c) can be displayed in the interface, a button of "install and instantiate contract" is included in the interface 103c, a user is supported to select the intelligent contract to be installed and instantiated (that is, select the intelligent contract to be actually deployed and put into use) from the created intelligent contracts in the interface 103c, the terminal device can respond to the user's trigger operation on the button of "install and instantiate contract", create a service subchain (if the service subchain is a service federation chain, the creation does not need to be performed again here), and deploy the selected intelligent contract to be installed and instantiated on the service subchain, so as to obtain the finally created service subchain.
After the service block chain is constructed, each system node in the service block chain can import the data to be uplink on the service block chain through the data uplink contract, and can perform data management on the uplink data through the created related intelligent contract. Subsequently, on the blockchain platform, the uplink data in the service blockchain may be queried, and the contract execution state of the service (such as the data uplink service) executed by the intelligent contract in the service blockchain may also be queried.
For example, the terminal device may further display a third service interface of the blockchain system, where the third service interface may be a service interface for performing a data query or a contract execution status query. The terminal device may obtain a service query field entered in the third service interface by the user, where the service query field is a related field of data that the user wants to query.
The service inquiry field may be a field for inquiring data of uplink on the service block chain, or the service inquiry field may be a field for inquiring the execution state of the contract. The intelligent contracts in the service block chain can be customized or automatically set corresponding contract names, for example, the name of a contract for data uplink can be a data uplink contract; and the account book to which the uplink data in the service block chain belongs may also set a corresponding account book name, for example, the name of the account book to which the identity card belongs may be a resident identity card or the like. Therefore, the user is supported to query the data indicated by the service query field linked in the service blockchain by using the book name, the intelligent contract name, the time period and related fields of the participants (such as system nodes participating in data uplink) as the service query field on the blockchain platform.
Moreover, the method also supports the situation that the user uses the intelligent contract name, the intelligent contract calling situation, the system for calling the intelligent contract (such as a business system corresponding to a certain system node), a data source and other related fields as business query fields on the blockchain platform to query the execution situation of the intelligent contract related to the business query fields in the business blockchain, such as the name of the executed intelligent contract, the time for executing the intelligent contract, the execution result of the intelligent contract (such as the result of execution failure or the result of execution success), and the like.
The data queried on the service block chain according to the service query field can be referred to as service data associated with the service query field, and the queried service data can be displayed on a third service interface so that a user can browse and view the service data.
Referring to fig. 5, fig. 5 is an interface schematic diagram of a service interface for data query provided in the present application. As shown in fig. 5, the interface 104c may be the third service interface, the interface 104c is an interface for supporting the user to query the data on the service blockchain, and the queried data may be in the formal environment or in the test environment, and the user may select which type of data (e.g., type of the formal environment or type of the test environment) is to be viewed by himself.
The user is supported to enter information such as an account book name (which may be understood as a name of data of a shared data type, such as an identification card), a business system name, a federation name (i.e., a name of a federation chain), and/or a business sub-chain name as the business query field in the interface 104 c. Or the region selected by the user in the interface 104c (e.g., regions such as guangzhou city, shenzhen city, and/or heaven region) may also be used as the business query field, and thus there may be one or more business query fields. The service data queried by the user, such as 2 pieces of service data shown in the interface 104c, including service data of an id card and a license on a service block chain, can be screened out for the user through the service query field entered in the interface 104c by the user.
Referring to fig. 6, fig. 6 is a schematic interface diagram of a service interface for contract query provided in the present application. As shown in fig. 6, the interface 105c may be the third service interface, the interface 105c is an interface for enabling a user to query the execution state of the intelligent contract on the business blockchain, and the queried intelligent contract may be in a formal environment or in a testing environment, and the user may select which type of intelligent contract (e.g., type of the formal environment or type of the testing environment) is to be viewed by the user.
The support user enters information such as a contract name (i.e., the name of the intelligent contract), a calling organization (i.e., which business organization, such as a human society, calls the intelligent contract), a federation name and/or a business sub-chain name in the interface 105c as the business query field. The execution state (such as the calling condition) of the intelligent contract inquired by the user can be screened out for the user through the service inquiry field entered by the user in the interface 105c, such as 2 intelligent contract calling conditions shown in the interface 105c, including the calling condition (such as success) of the intelligent contract for the identity card and the calling condition (such as failure) of the license.
Furthermore, the terminal device may further display a fourth service interface of the blockchain system, where the fourth service interface may be a service interface for performing data uplink. The terminal device may obtain target service data that is input by the user in the fourth service interface, where the target service data is data that the user needs to import into the service block chain. The target service data may be obtained by the user from the storage data of the terminal device, or the target service data may be obtained from a certain service system.
The terminal device may import the target service data into the service blockchain in the blockchain platform. For example, a data import control may be included on the blockchain platform, and the terminal device may import the target service data into the service blockchain according to a trigger operation (such as a click operation, a voice control operation, or a sliding operation) of the user for the data import control. It can be understood that a system node may be understood as a background device of a blockchain platform, so that the service blockchain also belongs to a background of the blockchain platform, and an administrator account logged in on the blockchain platform may be an account belonging to a certain system node. Therefore, the terminal device imports the target service data into the service block chain through the block chain platform, and actually requests the system node belonging to the background to import the target service data into the service block chain.
When the target service data is imported into the service block chain, the terminal device may further display an import state of the target service data import service block chain in the fourth service interface, where the import state may include an abnormal import state and a normal import state. If the target service data is in the abnormal import state, the target service data is not successfully imported on the service block chain, and only partial data of the target service data or error data of the target service data may be imported. And if the target service data is in the normal import state, the target service data is successfully imported on the service block chain.
Therefore, when the terminal device detects that the target service data is in an abnormal import state on the service block chain, the terminal device may automatically export the abnormal import data of the target service data from the service block chain, or the terminal device may respond to an abnormal data export operation of the user to export the abnormal import data of the target service data from the service block chain. The abnormal import data is the data imported on the service block chain when the target service data is imported into the service block chain, but the target service data is in an abnormal import state, which indicates that the abnormal import data is not the same as the target service data, and the abnormal import data may be partial data of the target service data or error data (such as scrambling data) of the target service data.
After the terminal device exports the abnormal import data from the service block chain, it may retry to import the target service data into the service block chain until the target service data is successfully imported into the service block chain.
Data interaction can be carried out between the blockchain platform and the node equipment through an API (application program interface) service. Through the blockchain platform provided by the application, the blockchain platform can exist in the terminal device in the form of app (software), or the blockchain platform can also exist in the terminal device in the form of a webpage, so that a user is supported to perform some simple user operations (such as triggering operation on a control) on the blockchain platform, that is, operations such as data uplink on the service blockchain, inquiry of uplink data on the service blockchain, creation of an intelligent contract, inquiry of an execution condition of the intelligent contract and the like can be realized, the execution difficulty of the user for related operations of the service blockchain is reduced, the user does not need to have deep underlying technology of the blockchain, and the user does not need to operate related source codes of the blockchain. Therefore, the convenience of the service block chain and the related service operation executed on the service block chain are improved, and the efficiency of creating the service block chain and the related service operation executed on the service block chain are improved. Meanwhile, the problem of compatibility between the operating system and the service system of the terminal can be solved by constructing the service block chains corresponding to the service systems, the data of the service systems can be accessed through the service block chains, and the universality of data access is improved.
The method can display a first service interface of the block chain system; the block chain system comprises N accessed system nodes; n is a positive integer; selecting M system nodes from the N system nodes on a first service interface, and acquiring node configuration information aiming at the M system nodes; m is a positive integer less than or equal to N; and constructing service block chains to which the M system nodes belong according to the node configuration information. Therefore, the method provided by the application can acquire the M system nodes and the node configuration information aiming at the M system nodes on the first service interface, and further can quickly construct the service block chain to which the M system nodes belong directly through the node configuration information, so that the construction difficulty of the service block chain is reduced, and the construction efficiency of the service block chain is improved.
Referring to fig. 7, fig. 7 is a schematic flowchart of a data processing method based on a blockchain according to the present application. Here, the execution subject in the embodiment of the present application is taken as an example of a server. As shown in fig. 7, the method may include:
step S201, sending service information of the block chain system to the terminal equipment so that the terminal equipment displays a first service interface of the block chain system according to the service information; the block chain system comprises N accessed system nodes; n is a positive integer;
the method described in the embodiment of the present application is substantially the same as the method described in the corresponding embodiment of fig. 3, except that the corresponding embodiment of fig. 3 describes the front-end operation of the method, and the embodiment of the present application describes the background implementation of the method. Therefore, it is understood that all the contents described in the corresponding embodiment of fig. 3 may be combined with the contents described in the present embodiment. Accordingly, the execution subject in this embodiment may be a system node to which the administrator account registered in the blockchain platform in the corresponding embodiment of fig. 3 belongs. The execution subject in this embodiment may be referred to as a node device, where the node device is a device that forms a system node to which an administrator account registered in the blockchain platform belongs, and for example, the node device may be one or more computer devices.
It can be understood that, when the terminal device in the embodiment corresponding to fig. 3 needs to display the first service interface (for example, the terminal device obtains a display operation performed by a user for the first service interface), the terminal device may send a page display request for the first service interface to the node device, and then the node device may send service information of the block chain system to the terminal device according to the page display request, where the service information may include information that needs to be displayed in the first service interface, for example, the service information may include information that needs to be displayed in the first service interface, such as a text, an icon, a control, and the like, and the service information may further include composition information among the information that needs to be displayed, such as the text, the icon, the control, and the like. Therefore, after the terminal device acquires the service information, the first service interface can be rendered and displayed according to the service information. The first service interface is used for selecting a system node for constructing the service blockchain from N system nodes of the blockchain system.
For example, if the service block chain to be constructed is a service sub-chain in a service alliance chain, the node device may obtain alliance chain identification information of the service alliance chain, where the alliance chain identification information is sent by the terminal device and is obtained by the terminal device on the second service interface.
Therefore, the node device may determine the corresponding service federation chain according to the federation chain identifier, so as to determine which system nodes of the N system nodes are included in the service federation chain. The node device may generate the service information according to the node identification information of the system node included in the service federation chain, where the service information may include the node identification information of the system node included in the service federation chain. And then the node equipment can send the generated service information to the terminal equipment, so that the terminal equipment can display the first service interface according to the obtained service information.
Step S202, receiving M system nodes returned by the terminal equipment and node configuration information of the M system nodes; the M system nodes are selected from the N system nodes on the first service interface by the terminal equipment; m is a positive integer less than or equal to N;
in this application, the node device may receive M system nodes returned by the terminal device, where the M system nodes are system nodes selected by the terminal device from the N system nodes on the first service interface and used for constructing the service block chain. The specific process how the terminal device acquires the M system nodes on the first service interface may refer to the description in the embodiment corresponding to fig. 3. When the node device acquires the M system nodes sent by the terminal device, it may also acquire a block chain construction request sent by the terminal device, where the block chain construction request is a request for requesting the node device to construct a service block chain to which the M system nodes belong by the terminal device. The blockchain construction request can be generated by the terminal device in response to a user's chain construction operation on the blockchain platform.
In addition, the node device may further obtain the node configuration information of the M system nodes returned by the terminal device, where the node configuration information may also be obtained by the terminal device on the first service interface, and a specific process of how the terminal device obtains the node configuration information on the first service interface may also refer to the description in the embodiment corresponding to fig. 3.
Step S203, constructing service block chains to which the M system nodes belong according to the node configuration information, and operating the constructed service block chains;
in the present application, the node device may construct, according to the obtained block chain construction request and using the node configuration information, the service block chain to which the M system nodes belong, and may operate the constructed service block chain. Specifically, the node device may add the M system nodes in the blockchain system to one service blockchain, and may perform node configuration on each system node on the blockchain according to the node configuration information, so as to obtain a finally constructed service blockchain.
Optionally, the node configuration information may include the uplink data format of each of the Z data fields and the field combination policy of the Z data fields, where the Z data fields may be data fields included in data of a target data type, that is, a type of data that can be data-shared with a service block chain (which may be referred to as a shared data type).
Therefore, the node device may generate a data uplink contract according to the data uplink format of each data field in the node configuration information and the field combination policy corresponding to the Z data fields, where the data uplink contract is an intelligent contract for adding data of the target data type to the service block chain. Therefore, the node device may deploy the data uplink contract for each system node in the M system nodes to obtain the constructed service block chain, and each system node in the service block chain may be deployed with the data uplink contract.
Furthermore, after the data uplink contract is established for each system node in the M system nodes, the block chain to which the M system nodes belong obtained at this time may be referred to as an initial service block chain. The node device may also create a service access channel (channel) of the initial service block chain, and may instantiate an intelligent contract in the initial service block chain on the service access channel, so as to finally obtain the service block chain with the service access channel.
The M system nodes may all be added to the service access channel, so that the M system nodes in the service block chain may access the service block chain through the created service access channel, for example, invoke an access operation such as an intelligent contract (e.g., a data uplink contract) in the service block chain. It should be noted that one blockchain may correspond to one service access channel, and a system node that does not join the service access channel usually cannot access the corresponding blockchain. For example, a service federation chain may correspond to one service access channel, and if the service federation chain further includes a plurality of service sub-chains, one service sub-chain may also correspond to one service access channel. By establishing a service access channel for each block chain, the data sharing authority among different system nodes can be quickly realized, and the minimized data isolation is realized.
Any type of intelligent contract can be deployed on each system node in the service blockchain, and the intelligent contracts can be generated according to some configuration operations of users on the blockchain platform. For example, the intelligent contract may also include an intelligent contract for resource transfer between two system nodes, such as when system node a provides a piece of material to system node b, which material is validated, and system node b may transfer a specified amount of the resource (e.g., a specified amount of money) to system node a.
Furthermore, the node device may belong to a target system node, and the target system node may be any one of the M system nodes. Because each system node corresponds to the original service system, the data interaction between each system node and the corresponding service system can be realized through the encryption interface on the premise of ensuring the minimum reconstruction of the original service system of each system node, but it needs to be understood that the service system belongs to a block chain system, and the service system and the block chain system are independent. For example, if a certain system node is a block link node corresponding to a human-computer agency, a business system corresponding to the system node is a human-computer agency system of the human-computer agency. For another example, if a certain system node is a block link point corresponding to the police station, the service system corresponding to the system node is the original police station system of the police station.
The service system with which the target system node is associated (i.e., corresponding) may be referred to as a target service system. The encryption interface between the system node and the corresponding service system may be a contract interface through which the service system may invoke an intelligent contract on the corresponding system node, and the service system may be referred to as a third-party system, and the node device may further set access rights to the contract interface, for example, the access rights may include a period of accessible time, a number of times of day accessible, and a right to access an ip (internet protocol) address.
It should be noted that, the intelligent contracts deployed on the service block chains may all set contract interfaces, where the contract interfaces invoke interfaces of the intelligent contracts for other service systems or other system nodes, and by setting interface permissions for the contract interfaces, permissions for the other service systems or other system nodes to invoke the intelligent contracts may also be limited, such as permission limitations of accessible time periods and permission limitations of accessible times.
Referring to fig. 8, fig. 8 is an interface schematic diagram of a service interface of a publishing contract interface provided in the present application. After the intelligent contract is created on the service block chain, a contract interface of the intelligent contract may be issued, so that other system nodes or a third-party system (such as a certain service system) may invoke the corresponding intelligent contract through the contract interface. As shown in FIG. 8, intelligent contracts created on a business blockchain may be displayed and queried in interface 106c, and a contract interface may be issued for the displayed or queried intelligent contracts. It can be understood that the contract interface for issuing the intelligent contracts in the service blockchain can be issued in a formal environment or in a test environment according to the requirements of service scenarios. As here, the intelligent contract whose contract name is "111" and whose ledger name is an identity card has issued a contract interface, the intelligent contract whose contract name is "222" and whose ledger name is a construction license has not issued a contract interface, and therefore, the operation of issuing a contract interface can be performed on the intelligent contract.
Referring to fig. 9, fig. 9 is an interface schematic diagram of a service interface authorized by a contract interface provided in the present application. The contract interface published as fig. 8 above may be authorized in the interface 107c, for example, the contract interface may be "configured to modify" the right of the contract interface, that is, configuring the right of the contract interface, including the right of the contract interface such as the access time period and the access times. As shown in the interface 107c, the contract interface of the intelligent contract may include the affiliated network (e.g., the affiliated service block chain), PASS ID (i.e., the identification of the contract interface), PASS TOKEN (i.e., the TOKEN of the contract interface, which may be understood as authority verification information), and a data decryption private key (e.g., a private key for decrypting PASS TOKEN), and therefore, it may be understood that the contract interface is an encryption interface, and the contract interface may be encrypted by PASS TOKEN and decrypted by the data decryption private key, so as to implement calling of the intelligent contract through the contract interface.
Therefore, the node device may obtain L pieces of data to be uplink in the target service system through the contract interface, where L is a positive integer, and the L pieces of data to be uplink have the same data format type (e.g., an id card type), and for example, the L pieces of data to be uplink may be ids of L users. The node equipment may further obtain data uplink templates for the L pieces of data to be uplink transmitted, where the data uplink templates may include a data uplink mode for uplink transmission of the L pieces of data to be uplink transmitted. The node equipment can call a data uplink contract through a contract interface and adopt the data uplink template to lead L data to be uplink into a service block chain in batch. When there are more data to be uplink, the data uplink template can be used to quickly and batch import more data to be uplink into the service block chain.
Referring to fig. 10, fig. 10 is an interface schematic diagram of a service interface for importing a data template provided by the present application. As shown in fig. 10, the supporting user imports data in the interface 108c through a template, such as fast batch uplink of a plurality of data to be uplink (e.g., the above-mentioned L data to be uplink) through the above-mentioned data uplink template. If the imported data is abnormal, the abnormal data can be exported, and the original data is imported again. The imported data as shown in interface 108c includes data having a file name abc and data having a file name efg. It is understood that the node device may obtain the data entered by the user in the interface 108c, and therefore, importing the data on the service blockchain is actually realized by the node device.
However, for a service system, the incremental data is usually less, and the incremental data can be quickly imported into the service block chain through the data import interface, and usually, the data import interface can import one incremental data at a time. For example, the incremental data may be an identification card of a user added to a business system of a public security bureau, and there may be only one incremental data per day.
Specifically, the node device may also obtain incremental data in the target service system according to a contract interface between the target service system and the service block chain, and may obtain a data import interface for the incremental data, where the data import interface may be a url (link) interface. Therefore, the node device may invoke a data uplink contract through the contract interface and import incremental data into the service blockchain using the data import interface.
Referring to fig. 11, fig. 11 is an interface schematic diagram of a service interface for importing a data template provided by the present application. As shown in fig. 11, the support user imports data in the interface 109c through a data import interface, which may be a url link, and copies the url link, and chains up the data through the copied url link. The imported data includes data with a field name aaa and data with a field name bbb as shown in interface 108 c. It can be understood that the node device may obtain data entered by the user through the data import interface, and therefore, importing data on the service blockchain is actually implemented by the node device.
As can be seen from the above, the data is imported in the interface 108c through the data chaining template, and the data is imported in units of one complete file, so that a plurality of files can be quickly chained in batches through the data chaining template. And, the data is imported in the interface 109c through the data import interface, and the data is imported in units of a plurality of fields contained in one file, so that the fast uplink can be realized through the data import interface for the increased small amount of data. According to the actual application scene, different modes can be selected to carry out data uplink.
After the service blockchain is constructed, a formal environment and a test environment for the service blockchain can be provided, where the formal environment is that the service blockchain is normally used to perform operations such as data uplink, uplink data query, and intelligent contract invocation. The testing environment is an environment for testing operations such as data uplink, uplink data query and intelligent contract calling of the service block chain. Wherein data generated in the test environment is not really added to the service block chain, but only exists in the test environment. While data generated in the formal environment is actually added to the service blockchain.
By providing the formal environment and the test environment, the related developers can apply the business block chain in the formal environment, and conveniently test the business block chain in the test environment, so that the business block chain is formally put into application when the business block chain is successfully tested.
Optionally, if the service blockchain is a blockchain applied in an electronic license (e.g., a license such as an identity card, a social security card, or a license), the intelligent contracts deployed on the service blockchain may include, but are not limited to, the following intelligent contracts:
1. the electronic certificate information links a chain storage certificate contract:
the electronic license information is linked with the chain storage intelligent contract service, the electronic license information comprises structured data and unstructured data, and the chain contract logic of the electronic license basic information is realized by connecting the commercial power sub-license library. And finishing the interface definition and the interface authority definition of the cochain evidence storage intelligent contract of the electronic certificate information, and realizing the cochain inquiry of the upper application platform (such as a block chain platform) in connection with data cochain.
2. The electronic certificate information verification contract:
the electronic certificate information verification intelligent contract service realizes the logic of verifying the basic information of the electronic certificate by butting the commercial power sub-certificate library, realizes the contract service of the electronic certificate information verification and the contract service of the electronic certificate information verification, and realizes the credibility of government affair business administration on the electronic certificate information based on the electronic certificate chain. Interface (namely contract interface) definition and interface authority (such as authorization authority of the contract interface, which can comprise accessible time period, accessible times and the like) definition for verifying the intelligent contract for the electronic license information are completed, and the data verification of the upper-layer application platform is realized.
3. The electronic certificate authorizes the contract to be used:
the method has the advantages that chain authorization is needed when the chain data of the electronic license block chain application platform are accessed, the authorization information definition contract service provides authority definition logic for data access on the electronic license chain, the authorization information is stored in the electronic license chain, and the functions of adding authorization and canceling authorization are achieved. And deploying the intelligent contract into an electronic certificate chain channel for operation, providing a related intelligent contract interface for docking an application platform, and realizing the uplink query logic of the authorization data. And interface definition and interface authority definition of an intelligent contract of a third-party application system (such as a service system) are completed, and the data authorization use of the upper-layer application platform is realized.
4. The electronic certificate information inquiry contract:
the intelligent contract service is inquired by the electronic license information, the electronic license information comprises structured data and unstructured data, and the contract logic is inquired by the electronic license information through the connection of the commercial power sub-license library, wherein the contract logic comprises inquiry based on a main key and inquiry based on an index. And finishing the interface definition and the interface authority definition of the intelligent contract inquired on the electronic license information, and realizing the uplink inquiry of the upper application platform for the butt joint data.
5. Electronic license information history inquiry contract:
aiming at the query service of the historical data of the electronic license information, the block chain service on the block chain platform can be called to access and view the historical operation records of the data chain.
6. The electronic certificate uses a chaining contract (such as the data chaining contract described above):
the electronic certificate uses the chaining intelligent contract service to realize the information chaining of the electronic certificate using process. And deploying the intelligent contract into an electronic certificate chain channel to operate, providing a related intelligent contract interface docking application platform, completing interface definition and interface permission definition for calling the intelligent contract for a third-party application system, and realizing the upper-layer application platform docking the data uplink contract.
In this application, when intelligent contract was called for the first time, need carry out consensus to this intelligent contract on the business block chain, if consensus passes through, then when follow-up this intelligent contract of recall, just can need not again to carry out consensus to this intelligent contract, and can directly call.
The method can display a first service interface of the block chain system; the block chain system comprises N accessed system nodes; n is a positive integer; selecting M system nodes from the N system nodes on a first service interface, and acquiring node configuration information aiming at the M system nodes; m is a positive integer less than or equal to N; and constructing a service block chain to which the M system nodes belong according to the node configuration information. Therefore, the method provided by the application can acquire the M system nodes and the node configuration information aiming at the M system nodes on the first service interface, and further can quickly construct the service block chain to which the M system nodes belong directly through the node configuration information, so that the construction difficulty of the service block chain is reduced, and the construction efficiency of the service block chain is improved.
Referring to fig. 12, fig. 12 is a flowchart illustrating a federation chain creation method provided by the present application. As shown in fig. 12, the method may include:
step S301, deploying a block chain alliance;
alternatively, the system nodes that need to be added to the service enterprises in the service federation chain, such as the M system nodes described above, may be deployed first in the blockchain system.
Step S302, a alliance chain network is deployed;
optionally, the deployed system nodes may then be added to a business federation chain (i.e., a federation chain network).
Step S303, establishing a basic channel;
optionally, after the system node is added to a service federation chain, the service federation chain at this time only needs to be counted as an initial service federation chain, and a service access channel of the service federation chain needs to be established, such as the universal channel in fig. 1. All system nodes in the service federation chain can join the service access channel.
Step S304, deploying a reduction contract;
optionally, an intelligent contract (i.e., a reduce contract) may be deployed for the business federation chain resulting from step S303.
Step S305, calling a standard contract to perform predefined setting;
optionally, predefined setting may be performed on the intelligent contract deployed in the service federation chain in step S304, where the predefined setting may be to set a specific execution parameter of the intelligent contract, for example, if the intelligent contract is an intelligent contract for data resource transfer, the predefined setting may be to set a specific resource amount of the data resource transferred by the data resource transfer, and the like.
And the user is supported to rapidly realize the creation of the service alliance chain by issuing a corresponding instruction in the block chain platform.
Referring to fig. 13, fig. 13 is a flowchart illustrating a data uplink method according to the present application. As shown in fig. 13, the method may include:
step S401, starting a data sharing network;
optionally, one service sub-chain in the service federation chain belongs to one data sharing network, and the service federation chain itself also belongs to one data sharing network. The data provider (which may be any business organization) may select which system nodes to share data (such as identity cards) provided by itself, so that the service subchain may be constructed by the system nodes.
Step S402, selecting a data sharing type;
alternatively, the data provider (which may be implemented on the blockchain platform through the associated administrator account) may select a data sharing type (such as an identity card type) for the data shared by the data sharing network, where the data sharing type is identical to the shared data type. Here, a list of data types may be provided in the blockchain platform, enabling the user to select a data sharing type from the list.
Step S403, adding a new data sharing type;
optionally, if the list of the data types does not include the type of the data that the data provider wants to share, the data provider is supported to add a new data sharing type by itself.
Step S404, determining uplink metadata information;
optionally, the uplink metadata information is metadata of data that needs uplink, for example, the data that needs uplink may include the Z data fields, and the uplink metadata information may include metadata information of each of the Z data fields.
Step S405, selecting an account book template;
optionally, the account template is a cochain template of data to be cochain, for example, the cochain data is an identity card, the account template may be a cochain template corresponding to the identity card, and the cochain template may include a cochain mode and composition information for data fields included in the identity card.
Step S406, selecting a contract template;
optionally, after the ledger template is selected, a contract template may be selected for the ledger template, and the contract template may be an intelligent contract for chaining data by using the ledger template.
Step S407, submit the uplink service request;
optionally, after the account template and the contract template corresponding to the uplink metadata information are selected, an uplink service request for the uplink metadata information may be submitted according to the account template and the contract template.
Step S408, data uplink;
optionally, the data (e.g., an identity card) to which the data uplink metadata information belongs may be uplinked by using the ledger template and the contract template through the uplink service request, that is, the data may be added to the data sharing network.
And the user is supported to quickly realize the uplink of the data by issuing a corresponding instruction in the block chain platform.
Referring to fig. 14, fig. 14 is a schematic flow chart of a data using method provided in the present application. As shown in fig. 14, the method may include:
step S501, adding a data sharing network;
optionally, a system node of a data consumer (which may be any service organization, and may be a service organization that needs to use data provided by a data provider in the embodiment corresponding to fig. 13) may join the data sharing network created by the data provider.
Step S502, according to the requirement of business card certificate;
optionally, the evidence requirement may be a way of access, for example, the access needs a service access channel for a data sharing network, a contract interface, and other requirements.
Step S503, join the data sharing channel;
optionally, first, the data user may join the service access channel of the data sharing network.
Step S504, obtain the data and authorize;
optionally, the data consumer may then obtain a data authorization, which is a contract interface authorized by the data provider for the data consumer, and the data consumer may verify the validity period of the contract interface.
Step S506, calling data information;
optionally, if the contract interface is within the valid period, the required data (such as an identity card) can be called through the contract interface.
Step S507, service propulsion;
optionally, after the required data is acquired, the data user may specifically use the acquired data.
The user is supported to quickly realize the acquisition of the uplink data by issuing a corresponding instruction in the block chain platform.
Referring to fig. 15, fig. 15 is a schematic structural diagram of a data processing apparatus based on a blockchain according to the present application. The blockchain based data processing apparatus may be a computer program (including program code) running in a computer device, for example, the blockchain based data processing apparatus is an application software, and the blockchain based data processing apparatus may be configured to perform the corresponding steps in the method provided by the embodiment of the present application. As shown in fig. 15, the block chain-based data processing apparatus 1 may include: a page display module 101, a node selection module 102, and a blockchain construction module 103.
The page display module 101 is configured to display a first service interface of the block chain system; the block chain system comprises N accessed system nodes; n is a positive integer;
a node selection module 102, configured to select M system nodes from the N system nodes on the first service interface, and obtain node configuration information for the M system nodes; m is a positive integer less than or equal to N;
and the block chain constructing module 103 is configured to construct service block chains to which the M system nodes belong according to the node configuration information.
Optionally, the block chain system includes the constructed service alliance chain;
the way of the page display module 101 displaying the first service interface of the blockchain system includes:
displaying a second service interface of the block chain system, and acquiring alliance chain identification information of the business alliance chain input in the second service interface;
determining system nodes included in a service alliance chain in the N system nodes according to the alliance chain identification information;
displaying a first service interface according to node identification information of system nodes included in the service alliance chain;
the constructed service block chain belongs to a service subchain of a service alliance chain.
Optionally, the manner in which the node selection module 102 obtains the node configuration information for the M system nodes includes:
acquiring a shared data type for carrying out data sharing on the service block chain on a first service interface;
acquiring Z data fields included in the data of the shared data type; z is a positive integer;
and acquiring node configuration information according to the Z data fields.
Optionally, the manner in which the node selection module 102 obtains the node configuration information according to the Z data fields includes:
acquiring a data uplink format of each data field in Z data fields on a first service interface, and acquiring field combination strategies corresponding to the Z data fields;
and determining the data uplink format and the field combination strategy of each data field as the node configuration information.
Optionally, the apparatus 1 further includes: a query field acquisition module 104, a data query module 105, and a data presentation module 106.
A query field acquiring module 104, configured to display a third service interface of the blockchain system, and acquire a service query field for the service blockchain on the third service interface;
a data query module 105, configured to query service data associated with the service query field in the service block chain;
and the data display module 106 is configured to display the queried business data associated with the business query field on the third service interface.
Optionally, the apparatus 1 further includes: an uplink data acquisition module 107, a data export module 108, and a re-import module 109.
A uplink data obtaining module 107, configured to display a fourth service interface of the blockchain system, obtain target service data in the fourth service interface, and import the target service data into the service blockchain;
a data export module 108, configured to export abnormal import data of the target service data from the service block chain if it is detected that the target service data is in an abnormal import state in the service block chain;
and the re-import module 109 is configured to re-import the target service data into the service block chain according to the abnormal import data.
According to an embodiment of the present application, the steps involved in the block chain based data processing method shown in fig. 3 may be performed by respective modules in the block chain based data processing apparatus 1 shown in fig. 15. For example, step S101 shown in fig. 3 may be performed by the page display module 101 in fig. 15, and step S102 shown in fig. 3 may be performed by the node selection module 102 in fig. 15; step S103 shown in fig. 3 may be performed by the block chain construction module 103 in fig. 15.
The method can display a first service interface of the block chain system; the block chain system comprises N accessed system nodes; n is a positive integer; selecting M system nodes from N system nodes on a first service interface, and acquiring node configuration information aiming at the M system nodes; m is a positive integer less than or equal to N; and constructing service block chains to which the M system nodes belong according to the node configuration information. Therefore, the device provided by the application can acquire the M system nodes and the node configuration information aiming at the M system nodes on the first service interface, and further can quickly construct the service block chain to which the M system nodes belong directly through the node configuration information, so that the construction difficulty of the service block chain is reduced, and the construction efficiency of the service block chain is improved.
According to an embodiment of the present application, each module in the data processing apparatus 1 based on the block chain shown in fig. 15 may be respectively or entirely combined into one or several units to form the unit, or some unit(s) therein may be further split into multiple sub-units smaller in function, which may implement the same operation without affecting implementation of technical effects of the embodiment of the present application. The modules are divided based on logic functions, and in practical applications, the functions of one module may also be implemented by multiple units, or the functions of multiple modules may also be implemented by one unit. In other embodiments of the present application, the data processing apparatus 1 based on the blockchain may also include other units, and in practical applications, these functions may also be implemented by being assisted by other units, and may be implemented by cooperation of a plurality of units.
According to an embodiment of the present application, the block chain based data processing apparatus 1 as shown in fig. 15 may be constructed by running a computer program (including program codes) capable of executing the steps involved in the corresponding method as shown in fig. 3 on a general-purpose computer device such as a computer including a Central Processing Unit (CPU), a random access storage medium (RAM), a read only storage medium (ROM), and the like, and a storage element, and the block chain based data processing method of the embodiment of the present application may be implemented. The computer program may be recorded on a computer-readable recording medium, for example, and loaded into and executed by the computing apparatus via the computer-readable recording medium.
Referring to fig. 16, fig. 16 is a schematic structural diagram of a data processing apparatus based on a blockchain according to the present application. The blockchain based data processing apparatus may be a computer program (including program code) running in a computer device, for example, the blockchain based data processing apparatus is an application software, and the blockchain based data processing apparatus may be configured to perform the corresponding steps in the method provided by the embodiment of the present application. As shown in fig. 16, the block chain-based data processing apparatus 2 may include: a service information sending module 201, a configuration information receiving module 202 and a block chain running module 203.
A service information sending module 201, configured to send service information of the blockchain system to a terminal device, so that the terminal device displays a first service interface of the blockchain system according to the service information; the block chain system comprises N accessed system nodes; n is a positive integer;
a configuration information receiving module 202, configured to receive the M system nodes returned by the terminal device and node configuration information of the M system nodes; the M system nodes are selected from the N system nodes on the first service interface by the terminal equipment; m is a positive integer less than or equal to N;
and a block chain running module 203, configured to construct service block chains to which the M system nodes belong according to the node configuration information, and run the constructed service block chains.
Optionally, the block chain system includes the constructed service federation chain;
the method for sending the service information of the block chain system to the terminal device by the service information sending module 201 includes:
acquiring alliance chain identification information of a service alliance chain sent by terminal equipment; the alliance chain identification information is obtained by the terminal equipment on a second service interface of the block chain system;
determining a system node included in a service alliance chain in the N system nodes according to the alliance chain identification information, and acquiring node identification information of the system node included in the service alliance chain;
and generating service information according to the node identification information, and sending the service information to the terminal equipment.
Optionally, the node configuration information includes a data uplink format of each of the Z data fields and a field combination policy of the Z data fields; z data fields are data fields contained in the data of the target data type; the target data type is a shared data type for carrying out data sharing on the service block chain; z is a positive integer;
the method for building the service block chain to which the M system nodes belong by the block chain running module 203 according to the node configuration information includes:
generating a data uplink contract according to the data uplink format of each data field in the node configuration information and the field combination strategy of Z data fields;
and deploying a data uplink contract for each system node in the M system nodes to obtain the constructed service block chain.
Optionally, the manner in which the block chain running module 203 deploys the data uplink contract for each system node in the M system nodes to obtain the constructed service block chain includes:
deploying a data uplink contract for each system node to obtain an initial service block chain;
establishing a service access channel of an initial service block chain, and determining the initial service block chain with the service access channel as a service block chain;
the M system nodes are used for calling a data uplink contract in the service block chain through the service access channel.
Optionally, the apparatus 2 is applied to a target system node among N system nodes; the target system node belongs to M system nodes; the M system nodes are provided with associated service systems;
the above device 2 further comprises: a first system determination module 204, a first data acquisition module 205, and a template uplink module 206.
A first system determination module 204, configured to determine a business system associated with the target system node as a target business system;
a first data obtaining module 205, configured to obtain L to-be-uplink data in a target service system according to a contract interface between the target service system and a service subchain; l data to be linked have the same data format type, and L is a positive integer;
the template uplink module 206 is configured to obtain data uplink templates for L pieces of data to be uplink transmitted, and invoke a data uplink contract through a contract interface to import the L pieces of data to be uplink transmitted into the service block chain in batch by using the data uplink templates.
Optionally, the apparatus 2 is applied to a target system node among N system nodes; the target system node belongs to M system nodes; the M system nodes are all provided with associated service systems;
the above device 2 further comprises: a second system determination module 207, a second data acquisition module 208, and an interface uplink module 209.
A second system determination module 207, configured to determine a service system associated with the target system node as a target service system;
a second data obtaining module 208, configured to obtain incremental data in the target service system according to a contract interface between the target service system and the service block chain;
the interface uplink module 209 is configured to acquire a data import interface for incremental data, and invoke a data uplink contract through a contract interface to import the incremental data into the service block chain by using the data import interface.
According to an embodiment of the present application, the steps involved in the block chain based data processing method shown in fig. 7 may be performed by respective modules in the block chain based data processing apparatus 2 shown in fig. 16. For example, step S201 shown in fig. 7 may be performed by the service information transmitting module 201 in fig. 16, and step S202 shown in fig. 7 may be performed by the configuration information receiving module 202 in fig. 16; step S203 shown in fig. 7 may be performed by the block chain running module 203 in fig. 16.
The method can display a first service interface of the block chain system; the block chain system comprises N accessed system nodes; n is a positive integer; selecting M system nodes from the N system nodes on a first service interface, and acquiring node configuration information aiming at the M system nodes; m is a positive integer less than or equal to N; and constructing service block chains to which the M system nodes belong according to the node configuration information. Therefore, the device provided by the application can acquire the M system nodes and the node configuration information aiming at the M system nodes on the first service interface, and further can quickly construct the service block chain to which the M system nodes belong directly through the node configuration information, so that the construction difficulty of the service block chain is reduced, and the construction efficiency of the service block chain is improved.
According to an embodiment of the present application, each module in the data processing apparatus 2 based on a block chain shown in fig. 16 may be respectively or completely combined into one or several units to form the unit, or some unit(s) therein may be further split into multiple sub-units smaller in function, which may implement the same operation without affecting implementation of technical effects of the embodiment of the present application. The modules are divided based on logic functions, and in practical applications, the functions of one module may also be implemented by multiple units, or the functions of multiple modules may also be implemented by one unit. In other embodiments of the present application, the data processing apparatus 2 based on the blockchain may also include other units, and in practical applications, these functions may also be implemented by being assisted by other units, and may be implemented by cooperation of a plurality of units.
According to an embodiment of the present application, the block chain based data processing apparatus 2 as shown in fig. 16 may be constructed by running a computer program (including program codes) capable of executing the steps involved in the corresponding method as shown in fig. 7 on a general-purpose computer device such as a computer including a Central Processing Unit (CPU), a random access storage medium (RAM), a read only storage medium (ROM), and the like, and a storage element, and the block chain based data processing method of the embodiment of the present application may be implemented. The computer program may be recorded on a computer-readable recording medium, for example, and loaded into and executed by the computing apparatus via the computer-readable recording medium.
Referring to fig. 17, fig. 17 is a schematic structural diagram of a computer device provided in the present application. As shown in fig. 17, the computer apparatus 1000 may include: the processor 1001, the network interface 1004, and the memory 1005, and the computer device 1000 may further include: a user interface 1003, and at least one communication bus 1002. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may include a Display screen (Display) and a Keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface and a standard wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The memory 1005 may be a high-speed RAM memory or a non-volatile memory (non-volatile memory), such as at least one disk memory. The memory 1005 may optionally be at least one memory device located remotely from the processor 1001. As shown in fig. 17, a memory 1005, which is a kind of computer storage medium, may include therein an operating system, a network communication module, a user interface module, and a device control application program.
In the computer device 1000 shown in fig. 17, the network interface 1004 may provide a network communication function; the user interface 1003 is an interface for providing a user with input; and the processor 1001 may be used to invoke a device control application stored in the memory 1005 to implement:
displaying a first service interface of the block chain system; the block chain system comprises N accessed system nodes; n is a positive integer;
selecting M system nodes from the N system nodes on a first service interface, and acquiring node configuration information aiming at the M system nodes; m is a positive integer less than or equal to N;
and constructing service block chains to which the M system nodes belong according to the node configuration information.
Alternatively, the processor 1001 may be configured to call a device control application stored in the memory 1005, and may further implement:
sending service information of the blockchain system to the terminal equipment so that the terminal equipment displays a first service interface of the blockchain system according to the service information; the block chain system comprises N accessed system nodes; n is a positive integer;
receiving M system nodes returned by the terminal equipment and node configuration information of the M system nodes; the M system nodes are selected from the N system nodes on the first service interface by the terminal equipment; m is a positive integer less than or equal to N;
and constructing service block chains to which the M system nodes belong according to the node configuration information, and operating the constructed service block chains.
It should be understood that the computer device 1000 described in this embodiment may perform the description of the data processing method based on the blockchain in the embodiment corresponding to any one of fig. 3 or fig. 7, may also perform the description of the data processing apparatus 1 based on the blockchain in the embodiment corresponding to fig. 15, and perform the description of the data processing apparatus 2 based on the blockchain in the embodiment corresponding to fig. 16, which are not described again here. In addition, the beneficial effects of the same method are not described in detail.
Further, here, it is to be noted that: the present application further provides a computer-readable storage medium, where the aforementioned computer programs executed by the data processing apparatus 1 based on the blockchain and the data processing apparatus 2 based on the blockchain are stored in the computer-readable storage medium, and the computer programs include program instructions, and when the processor executes the program instructions, the description of the data processing method based on the blockchain in the embodiment corresponding to any one of fig. 3 or fig. 7 can be performed, and therefore, details are not repeated here. In addition, the beneficial effects of the same method are not described in detail. For technical details not disclosed in the embodiments of the computer storage medium referred to in the present application, reference is made to the description of the embodiments of the method of the present application.
As an example, the program instructions described above may be executed on one computer device, or on multiple computer devices located at one site, or on multiple computer devices distributed over multiple sites and interconnected by a communication network, which may constitute a blockchain network.
The computer-readable storage medium may be the data processing apparatus based on the block chain provided in any of the foregoing embodiments or an internal storage unit of the computer device, such as a hard disk or a memory of the computer device. The computer readable storage medium may also be an external storage device of the computer device, such as a plug-in hard disk, a Smart Memory Card (SMC), a Secure Digital (SD) card, a flash card (flash card), and the like, provided on the computer device. Further, the computer-readable storage medium may also include both an internal storage unit and an external storage device of the computer device. The computer-readable storage medium is used for storing the computer program and other programs and data required by the computer device. The computer readable storage medium may also be used to temporarily store data that has been output or is to be output.
A computer program product or computer program is provided that includes computer instructions stored in a computer readable storage medium. The processor of the computer device reads the computer instruction from the computer-readable storage medium, and executes the computer instruction, so that the computer device performs the description of the above data processing method based on the block chain in the embodiment corresponding to fig. 3 or fig. 7, which will not be described herein again. In addition, the beneficial effects of the same method are not described in detail. For technical details not disclosed in embodiments of the computer-readable storage medium referred to in the present application, reference is made to the description of embodiments of the method of the present application.
The terms "first," "second," and the like in the description and claims of embodiments of the present application and in the drawings are used for distinguishing between different objects and not for describing a particular order. Furthermore, the terms "comprises" and any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, apparatus, product, or apparatus that comprises a list of steps or elements is not limited to the listed steps or modules, but may alternatively include other steps or modules not listed or inherent to such process, method, apparatus, product, or apparatus.
Those of ordinary skill in the art will appreciate that the elements and algorithm steps of the examples described in connection with the embodiments disclosed herein may be embodied in electronic hardware, computer software, or combinations of both, and that the components and steps of the examples have been described in a functional general in the foregoing description for the purpose of illustrating clearly the interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
The method and the related apparatus provided by the embodiments of the present application are described with reference to the flowchart and/or the structural diagram of the method provided by the embodiments of the present application, and each flow and/or block of the flowchart and/or the structural diagram of the method, and the combination of the flow and/or block in the flowchart and/or the block diagram can be specifically implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block or blocks of the block diagram. These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block or blocks of the block diagram. These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The above disclosure is only for the purpose of illustrating the preferred embodiments of the present application and is not to be construed as limiting the scope of the present application, so that the present application is not limited thereto, and all equivalent variations and modifications can be made to the present application.

Claims (15)

1. A method for processing data based on a blockchain, the method comprising:
displaying a first service interface of the block chain system; the block chain system comprises N accessed system nodes; n is a positive integer;
selecting M system nodes from the N system nodes on the first service interface, and acquiring node configuration information aiming at the M system nodes; m is a positive integer less than or equal to N;
and constructing service block chains to which the M system nodes belong according to the node configuration information.
2. The method of claim 1, wherein the blockchain system comprises the constructed business federation chain;
the first service interface of the display blockchain system comprises:
displaying a second service interface of the block chain system, and acquiring alliance chain identification information of the business alliance chain input in the second service interface;
determining system nodes included in the service alliance chain in the N system nodes according to the alliance chain identification information;
displaying the first service interface according to the node identification information of the system node included in the service alliance chain;
wherein the constructed service block chain belongs to a service subchain of the service alliance chain.
3. The method of claim 1, wherein obtaining node configuration information for the M system nodes comprises:
acquiring a shared data type for carrying out data sharing on the service block chain on the first service interface;
acquiring Z data fields included in the data of the shared data type; z is a positive integer;
and acquiring the node configuration information according to the Z data fields.
4. The method of claim 3, wherein said obtaining the node configuration information according to the Z data fields comprises:
acquiring a data uplink format of each data field in the Z data fields on the first service interface, and acquiring a field combination strategy corresponding to the Z data fields;
determining the data uplink format of each data field and the field combination policy as the node configuration information.
5. The method of claim 1, further comprising:
displaying a third service interface of the block chain system, and acquiring a service query field aiming at the service block chain on the third service interface;
querying service data associated with the service query field in the service block chain;
displaying the queried business data associated with the business query field on the third service interface.
6. The method of claim 1, further comprising:
displaying a fourth service interface of the block chain system, acquiring target service data in the fourth service interface, and importing the target service data into the service block chain;
if the target service data is detected to be in an abnormal import state in the service block chain, exporting abnormal import data of the target service data from the service block chain;
and according to the abnormal import data, the target service data is imported into the service block chain again.
7. A method for processing data based on a blockchain, the method comprising:
sending service information of a block chain system to terminal equipment so that the terminal equipment displays a first service interface of the block chain system according to the service information; the block chain system comprises N accessed system nodes; n is a positive integer;
receiving M system nodes returned by the terminal equipment and node configuration information of the M system nodes; the M system nodes are system nodes selected by the terminal device from the N system nodes on the first service interface; m is a positive integer less than or equal to N;
and constructing service block chains to which the M system nodes belong according to the node configuration information, and operating the constructed service block chains.
8. The method of claim 1, wherein the blockchain system comprises the constructed business federation chain;
the sending of the service information of the block chain system to the terminal device includes:
acquiring alliance chain identification information of the service alliance chain sent by the terminal equipment; the alliance chain identification information is acquired by the terminal equipment on a second service interface of the block chain system;
determining the system node included in the service alliance chain in the N system nodes according to the alliance chain identification information, and acquiring the node identification information of the system node included in the service alliance chain;
and generating the service information according to the node identification information, and sending the service information to the terminal equipment.
9. The method of claim 1, wherein the node configuration information includes a data uplink format for each of the Z data fields and a field combination policy for the Z data fields; the Z data fields are data fields contained in the data of the target data type; the target data type is a shared data type for carrying out data sharing on the service block chain; z is a positive integer;
the constructing the service block chains to which the M system nodes belong according to the node configuration information includes:
generating a data uplink contract according to the data uplink format of each data field in the node configuration information and the field combination strategy of the Z data fields;
and deploying the data uplink contract for each system node in the M system nodes to obtain the constructed service block chain.
10. The method of claim 9, wherein said deploying the data uplink contract for each of the M system nodes resulting in the constructed service block chain comprises:
deploying the data uplink contract for each system node to obtain an initial service block chain;
creating a service access channel of the initial service block chain, and determining the initial service block chain created with the service access channel as the service block chain;
wherein the M system nodes are configured to invoke the data chaining contract in the service block chain through the service access channel.
11. The method of claim 9, wherein the method is performed by a target system node of the N system nodes; the target system node belongs to the M system nodes; the M system nodes all have associated business systems;
the method further comprises the following steps:
determining a business system associated with the target system node as a target business system;
acquiring L data to be uplinked in the target service system according to a contract interface between the target service system and the service subchain; the L data to be linked have the same data format type, and L is a positive integer;
and acquiring data uplink templates aiming at the L pieces of data to be uplink transmitted, and calling the data uplink contract through the contract interface to use the data uplink templates to lead the L pieces of data to be uplink transmitted into the service block chain in batches.
12. The method of claim 9, wherein the method is performed by a target system node of the N system nodes; the target system node belongs to the M system nodes; the M system nodes are all provided with associated service systems;
the method further comprises the following steps:
determining a business system associated with the target system node as a target business system;
acquiring incremental data in the target service system according to a contract interface between the target service system and the service block chain;
and acquiring a data import interface aiming at the incremental data, calling the data uplink contract through the contract interface, and importing the incremental data into the service block chain by adopting the data import interface.
13. An apparatus for data processing based on a blockchain, the apparatus comprising:
the page display module is used for displaying a first service interface of the block chain system; the block chain system comprises N accessed system nodes; n is a positive integer;
a node selection module, configured to select M system nodes from the N system nodes on the first service interface, and obtain node configuration information for the M system nodes; m is a positive integer less than or equal to N;
and the block chain constructing module is used for constructing the service block chains to which the M system nodes belong according to the node configuration information.
14. A computer arrangement comprising a memory and a processor, the memory storing a computer program which, when executed by the processor, causes the processor to carry out the steps of the method according to any one of claims 1-12.
15. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program adapted to be loaded by a processor and to perform the method of any of claims 1-12.
CN202110350572.2A 2021-03-31 2021-03-31 Data processing method and device based on block chain, computer equipment and medium Pending CN115145976A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110350572.2A CN115145976A (en) 2021-03-31 2021-03-31 Data processing method and device based on block chain, computer equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110350572.2A CN115145976A (en) 2021-03-31 2021-03-31 Data processing method and device based on block chain, computer equipment and medium

Publications (1)

Publication Number Publication Date
CN115145976A true CN115145976A (en) 2022-10-04

Family

ID=83404368

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110350572.2A Pending CN115145976A (en) 2021-03-31 2021-03-31 Data processing method and device based on block chain, computer equipment and medium

Country Status (1)

Country Link
CN (1) CN115145976A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117521148A (en) * 2023-12-29 2024-02-06 苏州元脑智能科技有限公司 Information interaction method and device based on block chain, storage medium and electronic equipment

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117521148A (en) * 2023-12-29 2024-02-06 苏州元脑智能科技有限公司 Information interaction method and device based on block chain, storage medium and electronic equipment
CN117521148B (en) * 2023-12-29 2024-04-02 苏州元脑智能科技有限公司 Information interaction method and device based on block chain, storage medium and electronic equipment

Similar Documents

Publication Publication Date Title
US11544254B2 (en) System and method for managing a blockchain cloud service
CN111213350B (en) System and method for creating decentralized identity
CN113711536B (en) Extracting data from a blockchain network
CN108665372B (en) Information processing, inquiring and storing method and device based on block chain
CN112003858B (en) Block chain-based platform docking method, electronic device and storage medium
JP7228322B2 (en) Auto-commit transaction management in blockchain networks
CN108876669B (en) Course notarization system and method applied to multi-platform education resource sharing
JP2022504348A (en) Blockchain notification board to store blockchain resources
CN111538786B (en) Block chain data desensitization and tracing storage method and device
US11888981B2 (en) Privacy preserving auditable accounts
CN113486122A (en) Data sharing method and electronic equipment
Prusty Blockchain for Enterprise: Build scalable blockchain applications with privacy, interoperability, and permissioned features
CN114268638A (en) Block chain platform channel management method and device, computer equipment and storage medium
CN116671060A (en) Distributed broadcast encryption and key generation facility
CN115145976A (en) Data processing method and device based on block chain, computer equipment and medium
CN116975901A (en) Identity verification method, device, equipment, medium and product based on block chain
CN116997895A (en) Reducing transaction aborts in an execution ordering validation blockchain model
Furst et al. Managing access in extended enterprise networks
CN116032494B (en) Data interaction method, blockchain predictor, device and medium
US20240020299A1 (en) Api management for batch processing
WO2023134282A1 (en) Blockchain-based data processing method and apparatus, device, storage medium and program product
US20230368191A1 (en) Database representation of a public trust ledger
US20240004850A1 (en) Systems and methods for a stateless blockchain overlay layer
Kraus Architectural analysis of blockchain-based decentralized energy management systems
Wang et al. ONMCA: One-Network-Multi-Chain Architecture for Customizable Asset-Oriented Blockchain Systems

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