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

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

Info

Publication number
CN111641715A
CN111641715A CN202010481999.1A CN202010481999A CN111641715A CN 111641715 A CN111641715 A CN 111641715A CN 202010481999 A CN202010481999 A CN 202010481999A CN 111641715 A CN111641715 A CN 111641715A
Authority
CN
China
Prior art keywords
service
block chain
namely
service platform
platform
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
CN202010481999.1A
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.)
OneConnect Smart Technology Co Ltd
OneConnect Financial Technology Co Ltd Shanghai
Original Assignee
OneConnect Financial Technology Co Ltd Shanghai
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 OneConnect Financial Technology Co Ltd Shanghai filed Critical OneConnect Financial Technology Co Ltd Shanghai
Priority to CN202010481999.1A priority Critical patent/CN111641715A/en
Publication of CN111641715A publication Critical patent/CN111641715A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/51Discovery or management thereof, e.g. service location protocol [SLP] or web services
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The embodiment of the application discloses a data processing method, a device, equipment and a storage medium based on a block chain, wherein the method comprises the following steps: the electronic equipment displays a plurality of candidate block chains, namely service platforms, and attribute information of each candidate block chain, namely service platform on a block chain service interface, receives a candidate block chain, namely service platform selected from the candidate block chains, namely service platforms, according to the attribute information, and takes the candidate block chain, namely service platform as a target block chain, namely service platform to be installed; acquiring system information of electronic equipment from a configuration file of the electronic equipment; if the system information of the electronic equipment meets the installation condition of the target block chain, namely the service platform, acquiring an installation file of the target block chain, namely the service platform; and installing the target block chain, namely the service platform, according to the installation file of the target block chain, namely the service platform. By the method and the device, the reliability of the block chain can be improved by locally deploying the block chain, namely a service platform.

Description

Data processing method, device, equipment and medium based on block chain
Technical Field
The present application relates to the field of blockchain technologies, and in particular, to a method, an apparatus, a device, and a medium for processing data based on a blockchain.
Background
As blockchain technology evolves and more blockchain items fall into the ground, the service demand for blockchains increases. In order to better and more quickly meet the requirement of block chain Service, a large-scale cloud computing manufacturer successively provides a block chain as a Service platform (BaaS). The BaaS platform is a product of combining a block chain technology and a cloud computing technology, and provides services including one-key building of a block chain network, browsing of blocks and transaction information, online monitoring of the block chain network and the like for a user on the basis of the block chain technology. In practice, it is found that the current block chain, i.e., a service platform, is deployed in the cloud and is controlled by a third-party organization, and the third-party organization has the problem of opaque control, so that the reliability of the block chain is low.
Disclosure of Invention
The embodiment of the application provides a data processing method, a data processing device, data processing equipment and a data processing medium, and improves the reliability of a block chain.
In a first aspect, an embodiment of the present application provides a data processing method based on a block chain, where the method includes:
the electronic equipment displays a plurality of candidate blockchain service platforms and attribute information of each candidate blockchain service platform on a blockchain service interface, wherein the attribute information comprises one or more of the following items: each candidate block chain is an application scene, a rating grade and the number of times of installation of the service platform;
receiving a candidate block chain, namely a service platform, selected from the plurality of candidate block chains, namely the service platforms according to the attribute information, and using the candidate block chain, namely the service platform, as a target block chain, namely the service platform to be installed;
acquiring system information of the electronic equipment, wherein the system information of the electronic equipment comprises one or more of the following items: a system type of the electronic device, a system version of the electronic device, and a remaining storage size of the electronic device;
if the system information of the electronic equipment meets the installation condition of the target block chain, namely the service platform, acquiring an installation file of the target block chain, namely the service platform;
and installing the target block chain, namely the service platform, according to the installation file of the target block chain, namely the service platform.
In a second aspect, an embodiment of the present application provides a data processing apparatus based on a block chain, where the apparatus includes:
a presentation module, configured to present, on a blockchain service interface, a plurality of candidate blockchain service platforms and attribute information of each candidate blockchain service platform, where the attribute information includes one or more of the following items: each candidate block chain is an application scene, a rating grade and the number of times of installation of the service platform;
a receiving module, configured to receive a candidate block chain, i.e., a service platform, selected from the multiple candidate block chains, i.e., the service platforms, according to the attribute information, as a target block chain, i.e., the service platform, to be installed;
an obtaining module, configured to obtain system information of the electronic device, where the system information of the electronic device includes one or more of the following: a system type of the electronic device, a system version of the electronic device, and a remaining storage size of the electronic device; if the system information of the electronic equipment meets the installation condition of the target block chain, namely the service platform, acquiring an installation file of the target block chain, namely the service platform;
and the installation module is used for installing the target block chain, namely the service platform, according to the installation file of the target block chain, namely the service platform.
In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor adapted to implement one or more instructions; and the number of the first and second groups,
a computer storage medium storing one or more instructions adapted to be loaded by the processor and to perform the steps of:
the electronic equipment displays a plurality of candidate blockchain service platforms and attribute information of each candidate blockchain service platform on a blockchain service interface, wherein the attribute information comprises one or more of the following items: each candidate block chain is an application scene, a rating grade and the number of times of installation of the service platform;
receiving a candidate block chain, namely a service platform, selected from the plurality of candidate block chains, namely the service platforms according to the attribute information, and using the candidate block chain, namely the service platform, as a target block chain, namely the service platform to be installed;
acquiring system information of the electronic equipment, wherein the system information of the electronic equipment comprises one or more of the following items: a system type of the electronic device, a system version of the electronic device, and a remaining storage size of the electronic device;
if the system information of the electronic equipment meets the installation condition of the target block chain, namely the service platform, acquiring an installation file of the target block chain, namely the service platform;
and installing the target block chain, namely the service platform, according to the installation file of the target block chain, namely the service platform.
In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, including: the computer storage medium stores one or more instructions adapted to be loaded by a processor and to perform the steps of:
the electronic equipment displays a plurality of candidate blockchain service platforms and attribute information of each candidate blockchain service platform on a blockchain service interface, wherein the attribute information comprises one or more of the following items: each candidate block chain is an application scene, a rating grade and the number of times of installation of the service platform;
receiving a candidate block chain, namely a service platform, selected from the plurality of candidate block chains, namely the service platforms according to the attribute information, and using the candidate block chain, namely the service platform, as a target block chain, namely the service platform to be installed;
acquiring system information of the electronic equipment, wherein the system information of the electronic equipment comprises one or more of the following items: a system type of the electronic device, a system version of the electronic device, and a remaining storage size of the electronic device;
if the system information of the electronic equipment meets the installation condition of the target block chain, namely the service platform, acquiring an installation file of the target block chain, namely the service platform;
and installing the target block chain, namely the service platform, according to the installation file of the target block chain, namely the service platform.
In the application, a plurality of candidate block chains, namely service platforms, and attribute information of each block chain, namely service platform, are displayed on a block chain service interface, so that a user can select the block chain, namely the service platform, which needs to be installed, and the openness and expandability of the block chain, namely the service platform, are improved. Therefore, the electronic device may receive a candidate block chain, i.e., a service platform, selected from the candidate block chains, i.e., the service platforms, according to the attribute information, serve as a target block chain, i.e., a service platform to be installed, acquire system information of the electronic device from a configuration file of the electronic device, acquire an installation file of the target block chain, i.e., the service platform, if the system information of the electronic device satisfies an installation condition of the target block chain, i.e., the service platform, and install the target block chain, i.e., the service platform, according to the installation file. The local deployment of the block chain, namely the service platform, can be realized, and the reliability and the safety of the block chain are improved. In addition, the system information of the electronic equipment meets the installation condition of the target block chain, namely the service platform, the installation file of the target block chain, namely the service platform, is obtained, the acquisition (namely, downloading) of the installation file of the block chain, namely the service platform can be avoided, and the network resources of the electronic equipment can be saved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1a is a block diagram of a data processing system according to an embodiment of the present application;
FIG. 1b is a block diagram of a data processing system according to an embodiment of the present application;
fig. 2 is a schematic flowchart of a data processing method based on a block chain according to an embodiment of the present application;
fig. 3 is a schematic flowchart of a data processing method based on a block chain according to an embodiment of the present application;
FIG. 4 is a block chain service interface according to an embodiment of the present disclosure;
fig. 5 is a schematic structural diagram of a data processing apparatus based on a block chain according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of an electronic device according to another embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Based on the current block chain, namely a service platform, the service platform is deployed in a cloud and is controlled by a third party mechanism, the third party mechanism has the problem of opaque control, and further the reliability of the block chain is low. The method includes the steps that under the condition that system information of electronic equipment meets the installation condition of a target block chain, namely a service platform, installation files of the target block chain, namely the service platform, are obtained, and the target block chain, namely the service platform, is installed in the electronic equipment according to the installation files of the target block chain, namely the service platform; the block chain, namely the localized deployment of the service platform, can be realized, and the reliability of the block chain is improved.
The block chain is a novel application mode of computer technologies such as distributed data storage, point-to-point transmission (P2P transmission), a consensus mechanism, an encryption algorithm and the like, and is a decentralized and highly transparent database in essence; the blockchain can be composed of a plurality of serial transaction records (also called blocks) which are connected in series by cryptography and protect the contents, and the distributed accounts connected in series by the blockchain can effectively record the transactions by multiple parties and can permanently check the transactions (can not be tampered). The consensus mechanism is a mathematical algorithm for establishing trust and obtaining rights and interests among different nodes in the block chain network; that is, the consensus mechanism is a mathematical algorithm commonly recognized by network nodes in the blockchain.
The above data processing method based on block chain can be applied to the data processing system architecture shown in fig. 1a and 1b, where in fig. 1a, the system architecture is a single-layer data processing system, the system architecture includes a plurality of nodes, each node includes one or more node devices, and a node may refer to a region, a machine room, or an organization. The node devices have a peer-to-peer relationship, each node device can be used for installing a block chain, namely a service platform, and providing various block chain services for users through the block chain, namely the service platform; for example, building block chains, chaining transaction data into block chains, implementing electronic resource management through block chains, implementing personal tax deductions through block chains, invoice reimbursement, and so forth. Electronic resources herein refer to funds for purchasing digital assets, which may include at least french currency, electronic currency, and the like; the legal currency is a currency which is given to the legal currency for forced circulation, such as RMB, USD and the like; electronic money is money that is stored in electronic form in an electronic wallet held by a user.
Optionally, the system architecture in fig. 1b includes a data processing system with two layers, one layer being a console 10 and the other layer being a plurality of nodes.
Each node in the system in fig. 1b includes one or more node devices, and each node device includes a block chain, i.e., a proxy of a service platform (BNaaS Agent, referred to as a proxy for short); the node equipment performs management interaction with the console through the agent. The management interaction may include the following two processes: (1) installation process for blockchain as service platform. In the process, the console acquires the block chain, namely the service platform, and the installation files, the attribute information and the like of the block chain, namely the service platform, from a supplier of the block chain, namely the service platform; and installing the blockchain, namely the service platform, locally according to the installation file. And sending the installation file of the block chain, namely the service platform, to each node, and installing the block chain, namely the service platform, locally by the node equipment in each node according to the installation file. (2) And monitoring the operation of the node equipment. The process is as follows: the console detects the working state and safety of the blockchain of each node device, namely the service platform, through the blockchain, namely the service platform.
Optionally, the blockchain service platform may include a service sub-platform and a control sub-platform, where the control sub-platform is installed in the console and is used to control the working state and security of the blockchain service platform of the node device of each node. The service sub-platform is installed in the node device and is used for performing service processing, such as electronic resource transfer, building a block chain, storing transaction data to the block chain and the like. The node devices form an end-to-end decentralized block chain network, and each node device can receive transaction data during normal work and maintain a block chain based on the received transaction data. In order to ensure information intercommunication in the blockchain network, communication connection may exist between each node device in the blockchain network, and data transmission may be performed between the node devices through the communication connection. For example, when any node device in the blockchain network receives transaction data, other node devices verify the transaction data, and when the verification is passed, the transaction data is stored as data in the blockchain, so that the data stored in all the node devices in the blockchain network are consistent.
The node device and the control device may be computer devices, and specifically may be an independent server, a server cluster including a plurality of servers, a cloud computing center, a tablet computer, a notebook computer, a palm computer, an intelligent sound, a Mobile Internet Device (MID), and the like.
Please refer to fig. 2, which is a flowchart illustrating a data processing method based on a blockchain according to an embodiment of the present application, where an electronic device according to an embodiment of the present application is executed, and the electronic device may refer to a node device in fig. 1a, or a control device in a console or a node device in a node in fig. 1 b; the block chain-based data processing method includes the following steps S101 to S105.
S101, the electronic device displays a plurality of candidate blockchain service platforms and attribute information of each candidate blockchain service platform on a blockchain service interface, where the attribute information includes one or more of the following items: the each candidate blockchain is the application scenario, rating, and number of times installed of the service platform.
The blockchain service interface may refer to a web page, a page of an application of the blockchain, and so on; a candidate blockchain as a service platform may refer to a blockchain as a service platform that is available for installation. The electronic equipment can display a plurality of candidate block chains, namely service platforms, and attribute information of each candidate block chain, namely service platform on a block chain service interface; specifically, a plurality of candidate blockchains, i.e., service platforms, may be displayed on the blockchain service interface according to a preset sequence, where the preset sequence may refer to a random sequence, a sequence in which scores of the candidate blockchains, i.e., service platforms, are changed from high to low, a sequence in which the candidate blockchain service platforms are installed is changed from many times to few, and a sequence in which importance of application scenarios of the candidate blockchains, i.e., service platforms, is changed from high to low. The score of the candidate blockchain, i.e., the service platform, may be determined according to feedback information of the user to the candidate blockchain, i.e., the service platform. Wherein the attribute information includes one or more of the following items: the application scenario, rating level and number of times of installation of each candidate blockchain, i.e. service platform, may include: an electronic resource management scenario, an electronic authentication scenario, and the like. In an electronic resource management scenario, a blockchain, i.e., a service platform, is used by a bank to perform electronic resource transfer and record electronic resources of users, and so on. In the electronic authentication scene, a block chain, namely a service platform, can be used for providing electronic authentication service, evidence storage service, judicial appraisal service, one-key arbitration service, online litigation service and the like in the fields of electronic contracts, intellectual property rights and the like.
And S102, receiving a candidate block chain, namely a service platform, selected from the candidate block chains, namely the service platforms according to the attribute information, and using the candidate block chain, namely the service platform, as a target block chain, namely the service platform to be installed.
After the electronic equipment displays a plurality of candidate block chains, namely service platforms, and attribute information of each candidate block chain, namely service platform on a block chain service interface, a user can select the candidate block chains, namely the service platforms, from the block chain service interface according to the attribute information to serve as target block chains, namely the service platforms to be installed; here, selecting may refer to selecting by voice or touch, including clicking, sliding, pressing, and the like. Accordingly, the electronic device may receive a candidate blockchain service platform selected from the plurality of candidate blockchain service platforms according to the attribute information, as a target blockchain service platform to be installed, that is, the target blockchain service platform is a blockchain service platform that a user wants to install.
S103, acquiring system information of the electronic equipment from a configuration file of the electronic equipment, wherein the system information of the electronic equipment comprises one or more of the following items: a system type of the electronic device, a system version of the electronic device, and a remaining storage size of the electronic device.
The electronic equipment can acquire system information of the electronic equipment from a configuration file of the electronic equipment; the system information of the electronic device includes one or more of: the system type of the electronic device, the system version of the electronic device, and the remaining storage size of the electronic device, the configuration file of the electronic device may include configuration parameters of the electronic file, and the configuration parameters may include system information of the electronic device or a model of the electronic device. The system types of the electronic device may include: windows systems, Mac OS systems or android, etc. After the electronic equipment acquires the system information of the electronic equipment, whether the system information of the electronic equipment meets the target, namely the installation condition of the block chain service platform can be verified; if yes, indicating that the target block chain, namely the service platform, can be installed in the electronic equipment, executing step S104; if the system information of the electronic equipment meets the installation condition of the target block chain, namely the service platform, the target block chain, namely the service platform can be reselected.
And S104, if the system information of the electronic equipment meets the installation condition of the target block chain, namely the service platform, acquiring an installation file of the target block chain, namely the service platform.
If the system information of the electronic equipment meets the installation condition of the target block chain, namely the service platform, can be installed in the electronic equipment; therefore, when the electronic device is the node device in fig. 1a or the control device in the console in fig. 1b, the electronic device may obtain the installation file of the target block chain, i.e. the service platform, from the service device of the provider of the target block chain, i.e. the service platform; or, when the electronic device is the node device in fig. 1b, the electronic device may obtain the target blockchain, that is, the installation file of the service platform, from the control device in the console. The installation file may be composed of one file, or the installation file may include a plurality of sub-installation files.
And S105, installing the target block chain, namely the service platform according to the installation file of the target block chain, namely the service platform.
After the electronic equipment acquires the target block chain, namely the service platform, the target block chain, namely the service platform can be installed according to the installation file of the target block chain, namely the service platform, so that the block chain, namely the service platform can be locally deployed on the electronic equipment, and the safety and the reliability of the block chain are improved.
In the application, a plurality of candidate block chains, namely service platforms, and attribute information of each block chain, namely service platform, are displayed on a block chain service interface, so that a user can select the block chain, namely the service platform, which needs to be installed, and the openness and expandability of the block chain, namely the service platform, are improved. Therefore, the electronic device may receive a candidate block chain, i.e., a service platform, selected from the candidate block chains, i.e., the service platforms, according to the attribute information, serve as a target block chain, i.e., a service platform to be installed, acquire system information of the electronic device from a configuration file of the electronic device, acquire an installation file of the target block chain, i.e., the service platform, if the system information of the electronic device satisfies an installation condition of the target block chain, i.e., the service platform, and install the target block chain, i.e., the service platform, according to the installation file. The local deployment of the block chain, namely the service platform, can be realized, and the reliability and the safety of the block chain are improved. In addition, the system information of the electronic equipment meets the installation condition of the target block chain, namely the service platform, the installation file of the target block chain, namely the service platform, is obtained, the acquisition (namely, downloading) of the installation file of the block chain, namely the service platform can be avoided, and the network resources of the electronic equipment can be saved.
Please refer to fig. 3, which is a flowchart illustrating a data processing method based on a block chain according to an embodiment of the present application, where an electronic device according to an embodiment of the present application is executed, and the electronic device is a control device of the target block chain, i.e., a service platform, that is, the electronic device may be a control device in a console in fig. 1 b. The target block chain, namely the service platform, comprises a control sub-platform and a service sub-platform, and the data processing method based on the block chain comprises the following steps.
S201, the electronic device displays a plurality of candidate blockchain service platforms and attribute information of each candidate blockchain service platform on a blockchain service interface, where the attribute information includes one or more of the following items: the each candidate blockchain is the application scenario, rating, and number of times installed of the service platform.
In one embodiment, step S201 may include steps S11-S14 as follows.
s11, obtaining the business data processed by the electronic device in the first preset time period from the log data of the electronic device.
s12, predicting the mechanism to which the electronic device belongs according to the business data processed by the electronic device in the first preset time period.
s13, obtaining a matching degree between the application scenario of each candidate block chain, i.e. the service platform, in the multiple candidate block chains, i.e. the service platforms, and the organization to which the electronic device belongs.
s14, displaying the candidate blockchains as service platforms on the blockchain service interface according to the sequence of the matching degree from high to low.
In steps s11 to s14, the electronic device may display a plurality of candidate blockchain service platforms on the blockchain service interface according to a matching degree between an application scenario of each of the candidate blockchain service platforms and an organization to which the electronic device belongs. Specifically, the electronic device may obtain, from log data of the electronic device, service data processed by the electronic device within a first preset time period; the first preset time period may be within a week or a month. Furthermore, according to the business data processed by the electronic device within the first preset time period, the mechanism to which the electronic device belongs is predicted, and the mechanism to which the electronic device belongs includes the ministry of public security, the ministry of civility, the ministry of justice, or a common enterprise (such as a mobile phone manufacturer, a bank), and the like. After the electronic equipment acquires the mechanism to which the electronic equipment belongs, the electronic equipment can acquire the matching degree between the application scene of each candidate block chain, namely the service platform, in the multiple candidate block chains, namely the service platforms, and the mechanism to which the electronic equipment belongs; the mechanism corresponding to the application scene of each candidate block chain, namely the service platform, in the candidate block chains, namely the service platforms can be obtained, and according to the similarity between the mechanism corresponding to the application scene of each candidate block chain, namely the service platform, and the mechanism to which the electronic equipment belongs; determining the matching degree between the application scene of each candidate block chain, namely the service platform, in the multiple candidate block chains, namely the service platforms and the mechanism to which the electronic equipment belongs according to the similarity; and displaying the candidate block chains or service platforms on the block chain service interface according to the sequence of the matching degree from high to low. By visualizing the candidate block chains, namely the service platforms, from high matching degree to low matching degree, a user can quickly query the suitable block chains, namely the service platforms, and the efficiency of searching the block chains, namely the service platforms, by the user is improved.
For example, assuming that the multiple candidate blockchain as service platforms include a candidate blockchain as service platform a and a candidate blockchain as service platform B, the application scenarios of the candidate blockchain as service platform a and the candidate blockchain as service platform B are: an electronic resource management scenario and an electronic authentication scenario. The electronic device may obtain the service data processed in the last week from the log data of the electronic device, and if the number of times of processing the service data in the last week of the electronic device is 8, the service data processed in 6 times is an electronic resource transfer service. Therefore, the institution to which the electronic device belongs can be determined to be a bank according to the business data processed in the last week. The electronic device may obtain a match between the candidate block chain, i.e., the service platform a, and the candidate block chain, i.e., the service platform B, and an organization to which the electronic device belongs, respectively. Therefore, the matching degree between the mechanism to which the electronic device belongs and the application scene of the candidate block chain, namely the service platform a, is greater than the matching degree between the mechanism to which the electronic device belongs and the application scene of the candidate block chain, namely the service platform B; thus, candidate blockchain service platform a may be displayed in front of candidate blockchain service platform B.
S202, receiving a candidate block chain, i.e. a service platform, selected from the multiple candidate block chains, i.e. the service platforms, according to the attribute information, as a target block chain, i.e. a service platform, to be installed.
Optionally, the block chain service interface further includes an access interface of a candidate block chain, i.e., a service platform; the step S202 may include the following steps S21-S22.
s21, receiving a selection operation for an access interface of any one of the candidate blockchain service platforms according to the attribute information;
s22, determining the candidate block chain, i.e. the service platform, corresponding to the selected access interface as the target block chain, i.e. the service platform, to be installed.
In steps s21 to s22, the electronic device may display, on the blockchain service interface, each candidate blockchain, that is, an access interface of the service platform, where the access interface may be presented in the form of a key, an icon, a character, or the like; and receiving a selection operation for an access interface of any one of the candidate block chains, i.e. the service platform, according to the attribute information, where the selection operation may be a touch operation, a cursor operation, a key operation, a voice operation, or the like. The touch operation can be touch click operation, touch press operation or touch slide operation, and the touch operation can be single-point touch operation or multi-point touch operation; the cursor operation can be an operation of controlling a cursor to click or an operation of controlling the cursor to press; the key operation may be a virtual key operation or a physical key operation, etc. Further, the candidate block chain, i.e., the service platform, corresponding to the selected access interface may be determined as the target block chain, i.e., the service platform, to be installed.
For example, as shown in fig. 4, the blockchain service interface includes a blockchain service platform a (labeled 23 in fig. 4) and a blockchain service platform B (labeled 26 in fig. 4). The blockchain service interface includes attribute information 25 of the blockchain, i.e., service platform a, and an access interface 24 (i.e., application for joining). According to the attribute information 26, it is known that the blockchain service platform can be used in the electronic authentication scenario, and of course, the attribute information 26 may further include the number of times the blockchain service platform is downloaded, a rating level, and the like (not shown in fig. 4). The blockchain service interface also comprises attribute information 29 of the blockchain service platform B, an access interface 27 and an access interface 28; wherein, according to the attribute information 29, it is known that the application scenario of the blockchain, i.e. the service platform, is an electronic resource management scenario, and the access interface 27 is an access interface of an enterprise end of the blockchain, i.e. the service platform B; the access interface 28 refers to an access interface of a bank end of the block chain, i.e. the service platform B. When the selection operation of the user on the access interface 24 of the block chain service platform A is detected, determining the block chain service platform A as a target block chain service platform; when the user's selection operation on the access interface 27 or the access interface 28 of the blockchain service platform B is detected, the blockchain service platform B is determined as the target blockchain service platform.
In one embodiment, the blockchain service platform combines the respective features of the public chain and the alliance chain, and provides a distributable blockchain network for users. Namely, the user can view the blockchain, namely the service platform, in the state of being published in the blockchain service interface, and can select the suitably joined blockchain, namely the service platform. The creator (e.g. console or provider) of the blockchain, i.e. service platform, will perform an audit, approve or reject the user's joining after receiving the user's "joining application". For example, the electronic device may receive a join request for a target block chain, that is, a service platform, where the join request carries attribute information (such as a user account number) of a user, verify the attribute information of the user, and allow the user to join the target block chain, that is, the service platform, if the verification passes; and if the verification is not passed, prohibiting the user from joining the target block chain, namely the service platform.
S203, obtaining system information of the electronic device from the configuration file of the node device, where the system information of the electronic device includes one or more of the following items: a system type of the electronic device, a system version of the electronic device, and a remaining storage size of the electronic device.
Optionally, the system information of the electronic device includes a remaining storage size of the electronic device, and after step S203, steps S31 to S34 may be included as follows.
And s31, obtaining the stored service data volume of the electronic equipment in the second preset time period from the log data of the electronic equipment.
s32, predicting a first storage size to be reserved for storing the service data according to the amount of the service data stored in the electronic device in the second preset time period.
And s33, determining a second storage size occupied by installing the target block chain, namely the service platform, according to the size of the installation file.
s34, if the remaining storage size of the electronic device is larger than the sum of the first storage size and the second storage size, determining that the system information of the electronic device satisfies the installation condition of the target block chain, i.e. the service platform.
In steps s 31-s 34, the electronic device may verify whether the system information of the electronic device satisfies the installation condition of the target block chain, i.e., the service platform, according to the remaining storage size of the electronic device. Specifically, the electronic device may obtain, from log data of the electronic device, a service data volume stored in the electronic device within a second preset time period; the second time period may be within the last week, within the last year, or within the last month. Further, a first storage size that needs to be reserved for storing the service data is predicted according to the service data amount stored by the electronic device in the second preset time period, for example, the second time period is a last week, the electronic device may predict the service data amount stored by the electronic device in three years according to the service data amount stored by the electronic device in the last week, and determine the first storage size that needs to be reserved for storing the service data according to the service data amount stored in three years. Determining a second storage size occupied by installing the target block chain, namely the service platform, according to the size of the installation file, wherein the second storage size can be larger than or equal to the size of the installation file of the target block chain, namely the service platform; if the remaining storage size of the electronic device is equal to or smaller than the sum of the first storage size and the second storage size, it indicates that the target block chain, i.e., the service platform, cannot be installed, or it cannot be ensured that the service of the target block chain, i.e., the service platform, is normally operated; determining that the system information of the electronic device does not satisfy the installation condition of the target block chain, i.e. the service platform. If the remaining storage size of the electronic device is larger than the sum of the first storage size and the second storage size, it indicates that the target block chain, i.e., the service platform, can be installed, and it can be ensured that the service of the target block chain, i.e., the service platform, is normally operated; it is determined that the system information of the electronic device satisfies the target blockchain, i.e., the installation condition of the service platform.
Optionally, the system information of the electronic device includes a system type of the electronic device and a system version of the electronic device, and after step S203, the following steps S41 to S42 may be included.
s41, obtaining the running system information of the target block chain, namely the service platform, from the configuration file of the target block chain, namely the service platform; the running system information includes the type and version of the system that the target blockchain, i.e., the service platform, runs.
s42, if the system type included in the operating system information is the same as the system type included in the system information of the electronic device, and the system version included in the operating system information matches the system version included in the system information of the electronic device, determining that the system information of the electronic device satisfies the installation condition of the target block chain, i.e., the service platform.
In steps s41 to s42, the electronic device may verify whether the system information of the electronic device satisfies the installation condition of the target block chain, i.e., the service platform, with the system type of the electronic device and the system version of the electronic device. Specifically, the electronic device may obtain the operating system information of the target block chain, i.e., the service platform, from the configuration file of the target block chain, i.e., the service platform; if the system type included in the operating system information is different from the system type included in the system information of the electronic device, or the system version included in the operating system information is not matched with the system version included in the system information of the electronic device, indicating that the system of the electronic device does not have compatibility with the target block chain, i.e., the service platform, determining that the system information of the electronic device does not satisfy the installation condition of the target block chain, i.e., the service platform. If the system type included in the operating system information is the same as the system type included in the system information of the electronic device, and the system version included in the operating system information is matched with the system version included in the system information of the electronic device, indicating that the system of the electronic device has compatibility with the target block chain, i.e., the service platform, it is determined that the system information of the electronic device satisfies the installation condition of the target block chain, i.e., the service platform. Wherein, the matching of the system version included in the operating system information and the system version included in the system information of the electronic device may refer to: the system version included in the operating system information is lower than the system version included in the system information of the electronic device, or the system version included in the operating system information is the same as the system version included in the system information of the electronic device. The system type included in the operating system information and the system type included in the system information of the electronic device may be the same as: the operating system information includes a system type of the electronic device.
And S204, if the system information of the electronic equipment meets the installation condition of the target block chain, namely the service platform, acquiring an installation file of the target block chain, namely the service platform.
S205, splitting the installation file according to the characteristic information of the installation file to obtain an installation subfile corresponding to the control sub-platform and an installation subfile corresponding to the service sub-platform, wherein the characteristic information includes one or more of the following: the field in the installation file, the size of the installation subfile included in the installation file, and the name of the installation subfile included in the installation file.
If the installation file consists of one file, the electronic equipment can split the installation file according to the field in the installation file to obtain an installation subfile corresponding to the control sub-platform and an installation subfile corresponding to the service sub-platform; if the installation file is composed of a plurality of installation subfiles, the electronic device can split the installation file according to the size of the installation subfile or the name of the installation subfile to obtain the installation subfile corresponding to the control sub-platform and the installation subfile corresponding to the service sub-platform. Here, the control sub-platform is a platform for managing and controlling the service sub-platform, and the service sub-platform is a platform for performing service processing.
S206, operating the installation sub-file corresponding to the control sub-platform, and installing the control sub-platform in the electronic equipment.
The electronic device can run the installation sub-file corresponding to the control sub-platform, and the control sub-platform is installed in the electronic device.
And S207, sending the installation subfile corresponding to the service sub-platform to a plurality of node devices connected with the electronic device, so that the plurality of node devices operate the installation subfile corresponding to the service sub-platform, and installing the service sub-platform in the plurality of node devices.
The electronic device may send the installation subfile corresponding to the service sub-platform to a plurality of node devices connected to the electronic device, so that the plurality of node devices run the installation subfile corresponding to the service sub-platform and install the service sub-platform in the plurality of node devices. Alternatively, the node device may display a plurality of candidate blockchains, i.e., service platforms, on the blockchain service interface, and the node device may autonomously select a blockchain, i.e., service platform, that needs to be accessed.
Optionally, after step S207, the following steps S51 to S52 may be included.
s51, receiving a request for adding a target service logic to the target block chain, i.e. the service platform, where the request carries the service type of the target service logic and the configuration parameters of the target service logic.
s52, obtaining the target business logic template matched with the business type of the target business logic from the target block chain, namely the template library corresponding to the service platform.
And s53, updating the target service logic template by adopting the configuration parameters of the target service logic to obtain an updated target service logic template.
s54, sending the updated target service logic template to the plurality of node devices, so that the plurality of node devices add the updated target service logic template to the service sub-platform.
In steps s51 to s52, the electronic device may receive a request for adding a target service logic to the target block chain, i.e., the service platform, where the target service logic may be a service processing logic function added to the target block chain, i.e., the service platform; and acquiring a target business logic template matched with the business type of the target business logic from a template library corresponding to the target block chain, namely the service platform, wherein the template library can comprise a plurality of business logic templates, each business logic template corresponds to one business type, the business logic templates are configured for processing the business, and the business logic templates can be reused. After the electronic device obtains the target service logic template, the target service logic template is updated by adopting the configuration parameters of the target service logic to obtain an updated target service logic template, and the updated target service logic template is sent to the plurality of node devices, so that the plurality of node devices add the updated target service logic template to the service sub-platform to obtain an updated service sub-platform, and the updated service sub-platform has the target service logic. By introducing configuration parameters into the service logic template and adding functions into the service sub-platform, the personalized configuration of service processing logic can be realized, codes do not need to be rewritten, and the efficiency of adding functions into the service sub-platform can be improved.
Optionally, after the electronic device is equipped with the control sub-platform, the control sub-platform may be used to monitor the service sub-platform of the node device, so as to obtain the state information of the service sub-platform, and verify whether the service sub-platform of the node device is in an abnormal state according to the state information. And if the node equipment is in the abnormal state, repairing the service sub-platform of the node equipment. For example, the electronic device may monitor the service sub-platform of the node device by using the control sub-platform to obtain state information of the service sub-platform, where the state information may include a block generation total number and a block generation speed in a block chain of the service sub-platform, a transaction total number and a change trend of the transaction number of the service sub-platform, a network connection status of the node device, and a storage space allocated by the node device to the service sub-platform. After the electronic equipment acquires the state information, the electronic equipment can control the node equipment to display the state information to a user in the forms of a Portal and a block chain browser; if the abnormal condition of the state information is detected, the electronic equipment can repair the service sub-platform of the node equipment. The abnormal condition of the state information can mean that the block generation speed is slowed down, the network connection of the node equipment is interrupted, the growth speed of the transaction data of the service sub-platform is slowed down, and the like.
Optionally, the electronic device detects that the remaining storage space of the node device is insufficient, that is, detects that the remaining storage size of the node device is smaller than a preset storage size threshold, may control the node device according to attribute information of the service data, where the service data refers to data stored in a block chain of the service sub-platform; and migrating the service data in the node equipment to the standby node equipment corresponding to the node equipment according to the attribute information of the service data. The attribute information of the service data may include the number of times the service data is accessed, the privacy of the service data, and the like. For example, the service data accessed more than or equal to the preset number threshold may refer to: hot spot data, i.e. business data concerned by most users; the service data with the access times smaller than the preset time threshold may be: and non-hotspot data, namely service data with low attention. Therefore, if the electronic device detects that the remaining storage size of the node device is smaller than the preset storage size threshold, the service data, which is accessed less than the preset number threshold in the node device, can be migrated to the standby node device corresponding to the node device, which is beneficial for the user to quickly query the service data concerned by the user in the node device. For another example, the security of the service data can be ensured by storing the service data locally in the node device; and the service data is stored to the standby node equipment, so that the safety of the service data is lower. Therefore, if the electronic device detects that the remaining storage size of the node device is smaller than the preset storage size threshold, the service data with the privacy level smaller than the preset level threshold in the node device can be migrated to the standby node device, and the security of the privacy data can be ensured. The privacy level of the service data may be determined according to an organization to which the service data belongs, for example, the service data belongs to the ministry of civil affairs, the ministry of public security, and the like, and the privacy level of the service data is higher; if the business data belongs to the data such as product introduction of the enterprise, the privacy level of the business data is lower.
It should be noted that, the service data is migrated to the standby node device: specifically, the method may refer to migrating the block where the service data is located to the standby node device, so that the service data of the node device and the standby node device can be ensured to be stored in the same block chain, and the structure of the block chain is not changed. For example, the service data in the block 1002 in the block chain in the node device 1 needs to be migrated to the standby node device 1, the electronic device may migrate the block 1002 to the standby node device, delete the block 1002 from the node device, and the block 1002 in the standby node device and the block chain in the node device 1 are in a connected state, that is, the block 1002 in the standby node device is connected to the blocks 1001 and 1003 in the block chain, respectively.
In the application, a plurality of candidate block chains, namely service platforms, and attribute information of each block chain, namely service platform, are displayed on a block chain service interface, so that a user can select the block chain, namely the service platform, which needs to be installed, and the openness and expandability of the block chain, namely the service platform, are improved. Therefore, the electronic device may receive a candidate block chain, i.e., a service platform, selected from the candidate block chains, i.e., the service platforms, according to the attribute information, serve as a target block chain, i.e., a service platform to be installed, acquire system information of the electronic device from a configuration file of the electronic device, acquire an installation file of the target block chain, i.e., the service platform, if the system information of the electronic device satisfies an installation condition of the target block chain, i.e., the service platform, and install the target block chain, i.e., the service platform, according to the installation file. The local deployment of the block chain, namely the service platform, can be realized, and the reliability and the safety of the block chain are improved. In addition, the system information of the electronic equipment meets the installation condition of the target block chain, namely the service platform, the installation file of the target block chain, namely the service platform, is obtained, the acquisition (namely, downloading) of the installation file of the block chain, namely the service platform can be avoided, and the network resources of the electronic equipment can be saved.
Please refer to fig. 5, which is a schematic structural diagram of a data processing apparatus based on a block chain according to an embodiment of the present application, where the apparatus according to the embodiment of the present application may be implemented in the above mentioned electronic device. In this embodiment, the data processing apparatus based on a block chain includes:
a presentation module 501, configured to present, on a blockchain service interface, a plurality of candidate blockchain service platforms and attribute information of each candidate blockchain service platform, where the attribute information includes one or more of the following items: each candidate block chain is an application scene, a rating grade and the number of times of installation of the service platform;
a receiving module 502, configured to receive a candidate block chain, i.e., a service platform, selected from the multiple candidate block chains, i.e., the service platforms, according to the attribute information, as a target block chain, i.e., the service platform to be installed;
an obtaining module 503, configured to obtain system information of the electronic device, where the system information of the electronic device includes one or more of the following items: a system type of the electronic device, a system version of the electronic device, and a remaining storage size of the electronic device; if the system information of the electronic equipment meets the installation condition of the target block chain, namely the service platform, acquiring an installation file of the target block chain, namely the service platform;
an installation module 504, configured to install the target block chain, i.e., the service platform, according to the installation file of the target block chain, i.e., the service platform.
Optionally, the electronic device is a control device of the target block chain, i.e. a service platform; the target block chain, namely the service platform, comprises a control sub-platform and a service sub-platform;
the installation module 504 is specifically configured to split the installation file according to the feature information of the installation file to obtain an installation subfile corresponding to the control sub-platform and an installation subfile corresponding to the service sub-platform, where the feature information includes one or more of the following: a field in the installation file, the size of an installation subfile included in the installation file, and the name of the installation subfile included in the installation file; operating an installation sub-file corresponding to the control sub-platform, and installing the control sub-platform in the electronic equipment; and sending the installation subfiles corresponding to the service sub-platform to a plurality of node devices connected with the electronic device, so that the node devices operate the installation subfiles corresponding to the service sub-platform, and installing the service sub-platform in the node devices.
Optionally, the receiving module 502 is further configured to receive a request for adding a target service logic to the target block chain, that is, the service platform, where the request carries a service type of the target service logic and a configuration parameter of the target service logic;
optionally, the obtaining module 503 is further configured to obtain a target service logic template matched with the service type of the target service logic from the target block chain, that is, a template library corresponding to the service platform;
an updating module 505, configured to update the target service logic template with the configuration parameter of the target service logic, so as to obtain an updated target service logic template;
a sending module 506, configured to send the updated target service logic template to the plurality of node devices, so that the plurality of node devices add the updated target service logic template to the service sub-platform.
The display module 501 is specifically configured to obtain service data processed by the electronic device within a first preset time period from log data of the electronic device; predicting a mechanism to which the electronic equipment belongs according to the service data processed by the electronic equipment in the first preset time period; acquiring the matching degree between the application scene of each candidate block chain, namely the service platform, in the plurality of candidate block chains, namely the service platforms and the mechanism to which the electronic equipment belongs; and displaying the candidate block chains, namely the service platforms, on the block chain service interface according to the sequence from high matching degree to low matching degree.
Optionally, the system information of the electronic device includes a remaining storage size of the electronic device, and the apparatus further includes:
a determining module 507, configured to obtain, from log data of the electronic device, a service data amount stored in a second preset time period by the electronic device; predicting a first storage size required to be reserved for storing the service data according to the service data volume stored in the electronic equipment in the second preset time period; determining a second storage size occupied by installing the target block chain, namely the service platform, according to the size of the installation file; and if the remaining storage size of the electronic equipment is larger than the sum of the first storage size and the second storage size, determining that the system information of the electronic equipment meets the installation condition of the target block chain, namely the service platform.
Optionally, the system information of the electronic device includes a system type of the electronic device and a system version of the electronic device, and the determining module 507 is further configured to obtain, from a configuration file of the target block chain, i.e., a service platform, operating system information of the target block chain, i.e., the service platform; the running system information comprises a system type and a system version which are run by the target block chain, namely the service platform; and if the system type included in the operating system information is the same as the system type included in the system information of the electronic device, and the system version included in the operating system information is matched with the system version included in the system information of the electronic device, determining that the system information of the electronic device meets the installation condition of the target block chain, namely the service platform.
Optionally, the blockchain service interface further includes an access interface of a candidate blockchain service platform;
a receiving module 502, configured to receive a selection operation for an access interface of any one of the candidate blockchain service platforms according to the attribute information; and determining the candidate block chain, namely the service platform, corresponding to the selected access interface as the target block chain, namely the service platform to be installed.
In the application, a plurality of candidate block chains, namely service platforms, and attribute information of each block chain, namely service platform, are displayed on a block chain service interface, so that a user can select the block chain, namely the service platform, which needs to be installed, and the openness and expandability of the block chain, namely the service platform, are improved. Therefore, the electronic device may receive a candidate block chain, i.e., a service platform, selected from the candidate block chains, i.e., the service platforms, according to the attribute information, serve as a target block chain, i.e., a service platform to be installed, acquire system information of the electronic device from a configuration file of the electronic device, acquire an installation file of the target block chain, i.e., the service platform, if the system information of the electronic device satisfies an installation condition of the target block chain, i.e., the service platform, and install the target block chain, i.e., the service platform, according to the installation file. The local deployment of the block chain, namely the service platform, can be realized, and the reliability and the safety of the block chain are improved. In addition, the system information of the electronic equipment meets the installation condition of the target block chain, namely the service platform, the installation file of the target block chain, namely the service platform, is obtained, the acquisition (namely, downloading) of the installation file of the block chain, namely the service platform can be avoided, and the network resources of the electronic equipment can be saved.
Please refer to fig. 6, which is a schematic structural diagram of an electronic device provided in an embodiment of the present application, where the electronic device in the embodiment shown in the figure may include: one or more processors 601; one or more input devices 602, one or more output devices 603, and memory 604. The processor 601, the input device 602, the output device 603, and the memory 604 are connected by a bus 605.
The Processor 601 may be a Central Processing Unit (CPU), and may be other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, discrete hardware components, and so on. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The input device 602 may include a touch pad, a fingerprint sensor (for collecting fingerprint information of a user and direction information of a fingerprint), a microphone, etc., the output device 603 may include a display (LCD, etc.), a speaker, etc., and the output device 603 may output the data table after the correction process.
The memory 604 may include both read-only memory and random access memory, and provides instructions and data to the processor 601. A portion of the memory 604 may also include a non-volatile random access memory, the memory 604 being for storing a computer program comprising program instructions, the processor 601 being for executing the program instructions stored by the memory 604 for performing a data processing method for performing the following operations:
the electronic equipment displays a plurality of candidate blockchain service platforms and attribute information of each candidate blockchain service platform on a blockchain service interface, wherein the attribute information comprises one or more of the following items: each candidate block chain is an application scene, a rating grade and the number of times of installation of the service platform;
receiving a candidate block chain, namely a service platform, selected from the plurality of candidate block chains, namely the service platforms according to the attribute information, and using the candidate block chain, namely the service platform, as a target block chain, namely the service platform to be installed;
acquiring system information of the electronic equipment, wherein the system information of the electronic equipment comprises one or more of the following items: a system type of the electronic device, a system version of the electronic device, and a remaining storage size of the electronic device;
if the system information of the electronic equipment meets the installation condition of the target block chain, namely the service platform, acquiring an installation file of the target block chain, namely the service platform;
and installing the target block chain, namely the service platform, according to the installation file of the target block chain, namely the service platform.
Optionally, the processor 601 is configured to execute the program instructions stored in the memory 604, and is configured to perform the following operations:
splitting the installation file according to the characteristic information of the installation file to obtain an installation subfile corresponding to the control sub-platform and an installation subfile corresponding to the service sub-platform, wherein the characteristic information includes one or more of the following: a field in the installation file, the size of an installation subfile included in the installation file, and the name of the installation subfile included in the installation file;
operating an installation sub-file corresponding to the control sub-platform, and installing the control sub-platform in the electronic equipment;
and sending the installation subfiles corresponding to the service sub-platform to a plurality of node devices connected with the electronic device, so that the node devices operate the installation subfiles corresponding to the service sub-platform, and installing the service sub-platform in the node devices.
Optionally, the processor 601 is configured to execute the program instructions stored in the memory 604, and is configured to perform the following operations:
receiving a request for adding a target service logic to the target block chain, namely a service platform, wherein the request carries a service type of the target service logic and a configuration parameter of the target service logic;
acquiring a target business logic template matched with the business type of the target business logic from the target block chain, namely a template library corresponding to a service platform;
updating the target service logic template by adopting the configuration parameters of the target service logic to obtain an updated target service logic template;
and sending the updated target service logic template to the plurality of node devices, so that the plurality of node devices add the updated target service logic template to the service sub-platform.
Optionally, the processor 601 is configured to execute the program instructions stored in the memory 604, and is configured to perform the following operations:
acquiring service data processed by the electronic equipment within a first preset time period from log data of the electronic equipment;
predicting a mechanism to which the electronic equipment belongs according to the service data processed by the electronic equipment in the first preset time period;
acquiring the matching degree between the application scene of each candidate block chain, namely the service platform, in the plurality of candidate block chains, namely the service platforms and the mechanism to which the electronic equipment belongs;
and displaying the candidate block chains, namely the service platforms, on the block chain service interface according to the sequence from high matching degree to low matching degree.
Optionally, the processor 601 is configured to execute the program instructions stored in the memory 604, and is configured to perform the following operations:
acquiring the service data volume stored in the electronic equipment within a second preset time period from the log data of the electronic equipment;
predicting a first storage size required to be reserved for storing the service data according to the service data volume stored in the electronic equipment in the second preset time period;
determining a second storage size occupied by installing the target block chain, namely the service platform, according to the size of the installation file;
and if the remaining storage size of the electronic equipment is larger than the sum of the first storage size and the second storage size, determining that the system information of the electronic equipment meets the installation condition of the target block chain, namely the service platform.
Optionally, the processor 601 is configured to execute the program instructions stored in the memory 604, and is configured to perform the following operations:
acquiring running system information of the target block chain, namely the service platform, from a configuration file of the target block chain, namely the service platform; the running system information comprises a system type and a system version which are run by the target block chain, namely the service platform;
and if the system type included in the operating system information is the same as the system type included in the system information of the electronic device, and the system version included in the operating system information is matched with the system version included in the system information of the electronic device, determining that the system information of the electronic device meets the installation condition of the target block chain, namely the service platform.
Optionally, the processor 601 is configured to execute the program instructions stored in the memory 604, and is configured to perform the following operations:
the receiving, as a target block chain, i.e. service platform to be installed, a candidate block chain, i.e. service platform selected from the plurality of candidate block chain, i.e. service platforms according to the attribute information includes:
receiving a selection operation aiming at an access interface of any one of the candidate block chains, namely the service platform, according to the attribute information;
and determining the candidate block chain, namely the service platform, corresponding to the selected access interface as the target block chain, namely the service platform to be installed.
The processor 601, the input device 602, and the output device 603 described in this embodiment of the present application may execute the implementation manners described in the first embodiment and the second embodiment of the block chain-based data processing method provided in this embodiment of the present application, and may also execute the implementation manners of the electronic device described in this embodiment of the present application, which is not described herein again.
In the application, a plurality of candidate block chains, namely service platforms, and attribute information of each block chain, namely service platform, are displayed on a block chain service interface, so that a user can select the block chain, namely the service platform, which needs to be installed, and the openness and expandability of the block chain, namely the service platform, are improved. Therefore, the electronic device may receive a candidate block chain, i.e., a service platform, selected from the candidate block chains, i.e., the service platforms, according to the attribute information, serve as a target block chain, i.e., a service platform to be installed, acquire system information of the electronic device from a configuration file of the electronic device, acquire an installation file of the target block chain, i.e., the service platform, if the system information of the electronic device satisfies an installation condition of the target block chain, i.e., the service platform, and install the target block chain, i.e., the service platform, according to the installation file. The local deployment of the block chain, namely the service platform, can be realized, and the reliability and the safety of the block chain are improved. In addition, the system information of the electronic equipment meets the installation condition of the target block chain, namely the service platform, the installation file of the target block chain, namely the service platform, is obtained, the acquisition (namely, downloading) of the installation file of the block chain, namely the service platform can be avoided, and the network resources of the electronic equipment can be saved.
A computer-readable storage medium is further provided in the embodiments of the present application, and the computer-readable storage medium stores a computer program, where the computer program includes program instructions, and the program instructions, when executed by a processor, implement the data processing method based on the blockchain as shown in the embodiments of fig. 2 and fig. 3.
The computer readable storage medium may be an internal storage unit of the electronic device according to any of the foregoing embodiments, for example, a hard disk or a memory of the control device. The computer-readable storage medium may also be an external storage device of the control device, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), or the like provided on the control device. Further, the computer-readable storage medium may also include both an internal storage unit and an external storage device of the control device. The computer-readable storage medium is used to store the computer program and other programs and data required by the control device. The computer readable storage medium may also be used to temporarily store data that has been output or is to be output.
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. It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the control device and the unit described above may refer to corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, it should be understood that the disclosed control device and method may be implemented in other ways. For example, the above-described apparatus embodiments are illustrative, and for example, the division of the units may be a logical division, and in actual implementation, there may be another division, for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not executed.
While the invention has been described with reference to specific embodiments, the scope of the invention is not limited thereto, and those skilled in the art can easily conceive various equivalent modifications or substitutions within the technical scope of the invention. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (10)

1. A data processing method based on a block chain is characterized by comprising the following steps:
the electronic equipment displays a plurality of candidate blockchain service platforms and attribute information of each candidate blockchain service platform on a blockchain service interface, wherein the attribute information comprises one or more of the following items: each candidate block chain is an application scene, a rating grade and the number of times of installation of the service platform;
receiving a candidate block chain, namely a service platform, selected from the plurality of candidate block chains, namely the service platforms according to the attribute information, and using the candidate block chain, namely the service platform, as a target block chain, namely the service platform to be installed;
acquiring system information of the electronic equipment from a configuration file of the electronic equipment, wherein the system information of the electronic equipment comprises one or more of the following items: a system type of the electronic device, a system version of the electronic device, and a remaining storage size of the electronic device;
if the system information of the electronic equipment meets the installation condition of the target block chain, namely the service platform, acquiring an installation file of the target block chain, namely the service platform;
and installing the target block chain, namely the service platform, according to the installation file of the target block chain, namely the service platform.
2. The method of claim 1, wherein the electronic device is a control device of the target blockchain as a service platform; the target block chain, namely the service platform, comprises a control sub-platform and a service sub-platform;
the installing the target block chain, i.e. the service platform, according to the installation file of the target block chain, i.e. the service platform, includes:
splitting the installation file according to the characteristic information of the installation file to obtain an installation subfile corresponding to the control sub-platform and an installation subfile corresponding to the service sub-platform, wherein the characteristic information includes one or more of the following: a field in the installation file, the size of an installation subfile included in the installation file, and the name of the installation subfile included in the installation file;
operating an installation sub-file corresponding to the control sub-platform, and installing the control sub-platform in the electronic equipment;
and sending the installation subfiles corresponding to the service sub-platform to a plurality of node devices connected with the electronic device, so that the node devices operate the installation subfiles corresponding to the service sub-platform, and installing the service sub-platform in the node devices.
3. The method of claim 2, further comprising:
receiving a request for adding a target service logic to the target block chain, namely a service platform, wherein the request carries a service type of the target service logic and a configuration parameter of the target service logic;
acquiring a target business logic template matched with the business type of the target business logic from the target block chain, namely a template library corresponding to a service platform;
updating the target service logic template by adopting the configuration parameters of the target service logic to obtain an updated target service logic template;
and sending the updated target service logic template to the plurality of node devices, so that the plurality of node devices add the updated target service logic template to the service sub-platform.
4. The method of claim 1, wherein the electronic device exposes a plurality of candidate blockchain as-a-service platforms on a blockchain service interface, comprising:
acquiring service data processed by the electronic equipment within a first preset time period from log data of the electronic equipment;
predicting a mechanism to which the electronic equipment belongs according to the service data processed by the electronic equipment in the first preset time period;
acquiring the matching degree between the application scene of each candidate block chain, namely the service platform, in the plurality of candidate block chains, namely the service platforms and the mechanism to which the electronic equipment belongs;
and displaying the candidate block chains, namely the service platforms, on the block chain service interface according to the sequence from high matching degree to low matching degree.
5. The method of any of claims 1-4, wherein the system information of the electronic device includes a remaining memory size of the electronic device, the method further comprising:
acquiring the service data volume stored in the electronic equipment within a second preset time period from the log data of the electronic equipment;
predicting a first storage size required to be reserved for storing the service data according to the service data volume stored in the electronic equipment in the second preset time period;
determining a second storage size occupied by installing the target block chain, namely the service platform, according to the size of the installation file;
and if the remaining storage size of the electronic equipment is larger than the sum of the first storage size and the second storage size, determining that the system information of the electronic equipment meets the installation condition of the target block chain, namely the service platform.
6. The method of any of claims 1-4, wherein the system information of the electronic device includes a system type of the electronic device and a system version of the electronic device, the method further comprising:
acquiring running system information of the target block chain, namely the service platform, from a configuration file of the target block chain, namely the service platform; the running system information comprises a system type and a system version which are run by the target block chain, namely the service platform;
and if the system type included in the operating system information is the same as the system type included in the system information of the electronic device, and the system version included in the operating system information is matched with the system version included in the system information of the electronic device, determining that the system information of the electronic device meets the installation condition of the target block chain, namely the service platform.
7. The method of claim 1, wherein the blockchain service interface further comprises an access interface of a candidate blockchain as service platform;
the receiving, as a target block chain, i.e. service platform to be installed, a candidate block chain, i.e. service platform selected from the plurality of candidate block chain, i.e. service platforms according to the attribute information includes:
receiving a selection operation aiming at an access interface of any one of the candidate block chains, namely the service platform, according to the attribute information;
and determining the candidate block chain, namely the service platform, corresponding to the selected access interface as the target block chain, namely the service platform to be installed.
8. A blockchain-based data processing apparatus, comprising:
a presentation module, configured to present, on a blockchain service interface, a plurality of candidate blockchain service platforms and attribute information of each candidate blockchain service platform, where the attribute information includes one or more of the following items: each candidate block chain is an application scene, a rating grade and the number of times of installation of the service platform;
a receiving module, configured to receive a candidate block chain, i.e., a service platform, selected from the multiple candidate block chains, i.e., the service platforms, according to the attribute information, as a target block chain, i.e., the service platform, to be installed;
an obtaining module, configured to obtain system information of the electronic device, where the system information of the electronic device includes one or more of the following: a system type of the electronic device, a system version of the electronic device, and a remaining storage size of the electronic device; if the system information of the electronic equipment meets the installation condition of the target block chain, namely the service platform, acquiring an installation file of the target block chain, namely the service platform;
and the installation module is used for installing the target block chain, namely the service platform, according to the installation file of the target block chain, namely the service platform.
9. An electronic device, comprising:
a processor adapted to implement one or more instructions; and the number of the first and second groups,
a computer-readable storage medium having stored thereon one or more instructions adapted to be loaded by the processor and to perform the method of blockchain-based data processing according to any one of claims 1 to 7.
10. A computer-readable storage medium having stored thereon one or more instructions adapted to be loaded by a processor and to perform the method of blockchain-based data processing according to any one of claims 1 to 7.
CN202010481999.1A 2020-05-29 2020-05-29 Data processing method, device, equipment and medium based on block chain Pending CN111641715A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010481999.1A CN111641715A (en) 2020-05-29 2020-05-29 Data processing method, device, equipment and medium based on block chain

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010481999.1A CN111641715A (en) 2020-05-29 2020-05-29 Data processing method, device, equipment and medium based on block chain

Publications (1)

Publication Number Publication Date
CN111641715A true CN111641715A (en) 2020-09-08

Family

ID=72331457

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010481999.1A Pending CN111641715A (en) 2020-05-29 2020-05-29 Data processing method, device, equipment and medium based on block chain

Country Status (1)

Country Link
CN (1) CN111641715A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112784251A (en) * 2021-01-29 2021-05-11 北京明略昭辉科技有限公司 Intelligent integrated cabinet platform, deployment method, computer equipment and storage medium
CN117041264A (en) * 2023-10-08 2023-11-10 广东省科技基础条件平台中心 Block chain resource management system and method based on data processing

Citations (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106101242A (en) * 2016-06-24 2016-11-09 深圳前海微众银行股份有限公司 The construction method of block chain cloud service platform and device
CN107579931A (en) * 2017-09-08 2018-01-12 杭州云象网络技术有限公司 A kind of block chain based on Kubernetes is Service Source adaptation method
CN107707410A (en) * 2017-10-26 2018-02-16 上海点融信息科技有限责任公司 Configure method, information processor and the readable storage medium storing program for executing of system audit service
CN107911421A (en) * 2017-10-30 2018-04-13 上海点融信息科技有限责任公司 For configuring the method for internetwork communication, equipment and computer-readable storage medium in block chain
CN109063138A (en) * 2018-08-03 2018-12-21 上海点融信息科技有限责任公司 For in block chain, that is, service platform search data method, equipment and storage medium
CN109194506A (en) * 2018-08-16 2019-01-11 北京京东尚科信息技术有限公司 Block chain network dispositions method, platform and computer storage medium
CN109344000A (en) * 2018-08-16 2019-02-15 北京京东尚科信息技术有限公司 Block chain network service platform restores tool and its fault handling method, storage medium
CN109376275A (en) * 2018-10-29 2019-02-22 上海点融信息科技有限责任公司 For monitoring the method, apparatus and medium of the operational indicator on block chain
US20190102761A1 (en) * 2017-09-29 2019-04-04 Oracle Financial Services Software Limited Computerized messaging module for blockchain networks
CN110138586A (en) * 2019-04-04 2019-08-16 平安科技(深圳)有限公司 Block chain node administration method, electronic device, system and readable storage medium storing program for executing
WO2019192119A1 (en) * 2018-04-03 2019-10-10 平安科技(深圳)有限公司 Blockchain-based financing method and system, and storage medium
CN110601896A (en) * 2019-09-20 2019-12-20 腾讯科技(深圳)有限公司 Data processing method and equipment based on block chain nodes
CN110602241A (en) * 2019-09-20 2019-12-20 腾讯科技(深圳)有限公司 Service installation method, device, server and storage medium
CN110855688A (en) * 2019-11-18 2020-02-28 腾讯科技(深圳)有限公司 Block chain information processing method and related equipment
CN110995480A (en) * 2019-11-25 2020-04-10 百度在线网络技术(北京)有限公司 Block chain network deployment method, device, electronic equipment and medium
US20200119906A1 (en) * 2018-10-15 2020-04-16 Salesforce.Com, Inc. Systems, methods, and apparatuses for information isolation using a distributed ledger accessible by a cloud based computing environment
CN111045690A (en) * 2018-10-12 2020-04-21 阿里巴巴集团控股有限公司 Block chain node service deployment method, device, system, computing equipment and medium

Patent Citations (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106101242A (en) * 2016-06-24 2016-11-09 深圳前海微众银行股份有限公司 The construction method of block chain cloud service platform and device
CN107579931A (en) * 2017-09-08 2018-01-12 杭州云象网络技术有限公司 A kind of block chain based on Kubernetes is Service Source adaptation method
US20190102761A1 (en) * 2017-09-29 2019-04-04 Oracle Financial Services Software Limited Computerized messaging module for blockchain networks
CN107707410A (en) * 2017-10-26 2018-02-16 上海点融信息科技有限责任公司 Configure method, information processor and the readable storage medium storing program for executing of system audit service
CN107911421A (en) * 2017-10-30 2018-04-13 上海点融信息科技有限责任公司 For configuring the method for internetwork communication, equipment and computer-readable storage medium in block chain
WO2019192119A1 (en) * 2018-04-03 2019-10-10 平安科技(深圳)有限公司 Blockchain-based financing method and system, and storage medium
CN109063138A (en) * 2018-08-03 2018-12-21 上海点融信息科技有限责任公司 For in block chain, that is, service platform search data method, equipment and storage medium
CN109344000A (en) * 2018-08-16 2019-02-15 北京京东尚科信息技术有限公司 Block chain network service platform restores tool and its fault handling method, storage medium
CN109194506A (en) * 2018-08-16 2019-01-11 北京京东尚科信息技术有限公司 Block chain network dispositions method, platform and computer storage medium
CN111045690A (en) * 2018-10-12 2020-04-21 阿里巴巴集团控股有限公司 Block chain node service deployment method, device, system, computing equipment and medium
US20200119906A1 (en) * 2018-10-15 2020-04-16 Salesforce.Com, Inc. Systems, methods, and apparatuses for information isolation using a distributed ledger accessible by a cloud based computing environment
CN109376275A (en) * 2018-10-29 2019-02-22 上海点融信息科技有限责任公司 For monitoring the method, apparatus and medium of the operational indicator on block chain
CN110138586A (en) * 2019-04-04 2019-08-16 平安科技(深圳)有限公司 Block chain node administration method, electronic device, system and readable storage medium storing program for executing
CN110601896A (en) * 2019-09-20 2019-12-20 腾讯科技(深圳)有限公司 Data processing method and equipment based on block chain nodes
CN110602241A (en) * 2019-09-20 2019-12-20 腾讯科技(深圳)有限公司 Service installation method, device, server and storage medium
CN110855688A (en) * 2019-11-18 2020-02-28 腾讯科技(深圳)有限公司 Block chain information processing method and related equipment
CN110995480A (en) * 2019-11-25 2020-04-10 百度在线网络技术(北京)有限公司 Block chain network deployment method, device, electronic equipment and medium

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112784251A (en) * 2021-01-29 2021-05-11 北京明略昭辉科技有限公司 Intelligent integrated cabinet platform, deployment method, computer equipment and storage medium
CN117041264A (en) * 2023-10-08 2023-11-10 广东省科技基础条件平台中心 Block chain resource management system and method based on data processing
CN117041264B (en) * 2023-10-08 2024-01-12 广东省科技基础条件平台中心 Block chain resource management system and method based on data processing

Similar Documents

Publication Publication Date Title
CN110495132B (en) System and method for generating, uploading and executing code blocks within distributed network nodes
CN110633323A (en) Business data storage method, device, storage medium and computer equipment
CN110599331B (en) Liability collection system, method, equipment and storage medium based on blockchain
CN112396521B (en) Method and system for reducing risk of intelligent contracts in blockchain
CN111523890A (en) Data processing method and device based on block chain, storage medium and equipment
CN110084600B (en) Processing and verifying method, device, equipment and medium for resolution transaction request
CN110400217B (en) Rule change processing method and device for intelligent contract
CN109995523B (en) Activation code management method and device and activation code generation method and device
US11615074B2 (en) System and methods for intelligent path selection of enhanced distributed processors
US20220067125A1 (en) Method for distributing certificate of right to use digital content, and computer program stored in medium in order to carry out method
CN110597916A (en) Data processing method and device based on block chain, storage medium and terminal
CN111598575A (en) Business process control method and device, electronic equipment and readable storage medium
CN111641715A (en) Data processing method, device, equipment and medium based on block chain
US10586295B2 (en) Updateable electronic digital assets will or trust method and systems with real time access for updated designated will or trust elements
CN112150113A (en) Method, device and system for borrowing file data and method for borrowing data
US11645067B2 (en) System and method using natural language processing to synthesize and build infrastructure platforms
CN111210190B (en) File signing method, device, computer equipment and storage medium
CN112035350A (en) Test method and device for block chain system and computer equipment
JP2022517042A (en) Preventing erroneous copies of data records from being sent to distributed ledger systems
CN113508570A (en) Method for sharing and verifying blocks and electronic documents among nodes in block chain
KR20200095900A (en) Method for providing blockchain based reward service using resource rent of node in blockchain network
CN111259411B (en) Block chain management method, device, electronic equipment and readable storage medium
CN111177099A (en) Data processing method and device of business system, electronic equipment and storage medium
CN116997895A (en) Reducing transaction aborts in an execution ordering validation blockchain model
CN111506784B (en) Asset creditor matching method, device, computer equipment and storage medium

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