CN112565211A - Block chain network service platform, information processing method, equipment and storage medium - Google Patents

Block chain network service platform, information processing method, equipment and storage medium Download PDF

Info

Publication number
CN112565211A
CN112565211A CN202011334128.3A CN202011334128A CN112565211A CN 112565211 A CN112565211 A CN 112565211A CN 202011334128 A CN202011334128 A CN 202011334128A CN 112565211 A CN112565211 A CN 112565211A
Authority
CN
China
Prior art keywords
information
public key
target
equipment
service 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.)
Granted
Application number
CN202011334128.3A
Other languages
Chinese (zh)
Other versions
CN112565211B (en
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.)
Beijing Jingdong Century Trading Co Ltd
Beijing Wodong Tianjun Information Technology Co Ltd
Original Assignee
Beijing Jingdong Century Trading Co Ltd
Beijing Wodong Tianjun Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Jingdong Century Trading Co Ltd, Beijing Wodong Tianjun Information Technology Co Ltd filed Critical Beijing Jingdong Century Trading Co Ltd
Priority to CN202011334128.3A priority Critical patent/CN112565211B/en
Publication of CN112565211A publication Critical patent/CN112565211A/en
Application granted granted Critical
Publication of CN112565211B publication Critical patent/CN112565211B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/04Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks
    • H04L63/0428Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0805Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
    • H04L43/0811Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability by checking connectivity
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/06Network architectures or network communication protocols for network security for supporting key management in a packet data network
    • H04L63/062Network architectures or network communication protocols for network security for supporting key management in a packet data network for key distribution, e.g. centrally by trusted party
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/141Setup of application sessions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Hardware Design (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Environmental & Geological Engineering (AREA)
  • Computer And Data Communications (AREA)

Abstract

The embodiment of the invention discloses a block chain network service platform, an information processing method, equipment and a storage medium, wherein the block chain network service platform comprises the following steps: sending a first connection request to a block chain network service platform; receiving a public key set sent by the block chain network service platform according to the first connection request; the public key set is a set obtained by the block chain network service platform according to the public key information of the equipment successfully networked; analyzing the encrypted information set by using the public key set, and determining target encrypted information from the public key set; the encryption information set is a set obtained by the block chain network service platform according to the encryption information corresponding to the successfully networked equipment; taking the equipment corresponding to the target encryption information as target equipment, and establishing network connection with the target equipment; the target device is a device in the same network as the transmitting device.

Description

Block chain network service platform, information processing method, equipment and storage medium
Technical Field
The invention relates to the technical field of software development, in particular to a block chain network service platform, an information processing method, equipment and a storage medium.
Background
With the development of big data and internet of things, intelligent equipment and the like have entered the lives of families, and the intelligent equipment such as doors and windows, refrigerators, televisions and the like can be controlled through the internet of things, so that the lives of people are more convenient and faster.
In the remote control system of the intelligent devices in the prior art, each intelligent device must be in the same local area network, a control device is arranged in the local area network, and under the condition that the control device receives a connection request with a target device, public key information of each device in the local area network is acquired from a memory of the control device, the target device is determined according to the public key information, and network connection is established between the target device and the control device.
Disclosure of Invention
In order to solve the foregoing technical problems, embodiments of the present invention are directed to providing a blockchain network service platform, an information processing method, an information processing device, and a storage medium, which can improve security when connecting with a target device.
The technical scheme of the invention is realized as follows:
the embodiment of the application provides an information processing method, which is applied to sending equipment and comprises the following steps:
sending a first connection request to a block chain network service platform;
receiving a public key set sent by the block chain network service platform according to the first connection request; the public key set is a set obtained by the block chain network service platform according to public key information of equipment successfully networked;
analyzing an encryption information set by using the public key set, and determining target encryption information from the public key set; the encryption information set is a set obtained by the block chain network service platform according to encryption information corresponding to successfully networked equipment;
taking the device corresponding to the target encryption information as a target device, and establishing network connection with the target device; the target device is a device in the same network as the sending device.
The embodiment of the application provides an information processing method of a block chain network service platform, which is applied to the block chain network service platform and comprises the following steps:
under the condition of receiving a first connection request sent by sending equipment, acquiring a public key set from a public key storage block of a block chain; the public key set is a set obtained according to public key information of the equipment which successfully networks;
sending the public key set to the sending equipment based on the first connection request, so that the sending equipment searches target equipment corresponding to target encryption information in the same network with the sending equipment in an encryption information set according to the public key set and establishes connection with the target equipment; the encryption information set is a set obtained according to the encryption information corresponding to the successfully networked equipment.
An embodiment of the present application provides a sending device, where the sending device includes:
the first sending unit is used for sending a first connection request to the block chain network service platform;
a receiving unit, configured to receive a public key set sent by the blockchain network service platform according to the first connection request; the public key set is a set obtained by the block chain network service platform according to public key information of equipment successfully networked;
the analysis unit is used for analyzing the encrypted information set by using the public key set and determining target encrypted information from the public key set; the encryption information set is a set obtained by the block chain network service platform according to encryption information corresponding to successfully networked equipment; taking the device corresponding to the target encryption information as a target device;
a connection unit, configured to establish a network connection with the target device; the target device is a device in the same network as the sending device.
The embodiment of the application provides a block chain network service platform, wherein the block chain network service platform comprises:
the device comprises an acquisition unit, a first connection unit and a second connection unit, wherein the acquisition unit is used for acquiring a public key set from a public key storage block of a block chain under the condition of receiving a first connection request sent by a sending device; the public key set is a set obtained according to public key information of the equipment which successfully networks;
a second sending unit, configured to send the public key set to the sending device based on the first connection request, so that the sending device searches, according to the public key set, for a target device corresponding to target encryption information in the same network as the sending device in an encryption information set, and establishes a connection with the target device; the encryption information set is a set obtained according to the encryption information corresponding to the successfully networked equipment.
The embodiment of the present application provides a blockchain network service platform, where the blockchain network service platform includes:
an embodiment of the present application provides a sending apparatus, where the sending apparatus includes:
at least one first memory for storing executable instructions;
and the at least one first processor is used for executing the executable instructions stored in the at least one first memory to realize the information processing method.
The embodiment of the present application provides a blockchain network service platform, where the blockchain network service platform includes:
at least one memory for storing executable instructions;
and the at least one processor is used for executing the executable instructions stored in the at least one memory to realize the information processing method of the block chain network service platform.
The embodiment of the application provides a storage medium, which stores executable instructions, and when the executable instructions are executed, the executable instructions are used for causing a processor to execute the information processing method.
The embodiment of the application provides a storage medium, which stores executable instructions, and when the executable instructions are executed, the storage medium is used for causing a processor to execute the information processing method of the block chain network service platform.
The embodiment of the invention provides a block chain network service platform and an information processing method, equipment and a storage medium, wherein the block chain network service platform and the information processing method comprise the following steps: sending a first connection request to a block chain network service platform; receiving a public key set sent by the block chain network service platform according to the first connection request; the public key set is a set obtained by the block chain network service platform according to the public key information of the equipment successfully networked; analyzing an encryption information set by using a public key set, and determining target encryption information from the public key set; the encryption information set is a set obtained by the block chain network service platform according to the encryption information corresponding to the successfully networked equipment; taking the equipment corresponding to the target encryption information as target equipment, and establishing network connection with the target equipment; the target device is a device in the same network as the transmitting device. By adopting the method, under the condition that the sending equipment receives the public key set sent by the block chain network service platform according to the first connection request, the sending equipment can analyze the encrypted information set by using the public key set and determine the target encrypted information from the public key set, so that the sending equipment can be connected with the target equipment corresponding to the target encrypted information, and the safety of the sending equipment and the target equipment in connection is improved.
Drawings
Fig. 1 is a functional architecture diagram of a blockchain network service platform according to an embodiment of the present disclosure;
fig. 2 is a schematic structural diagram of a resource layer constructed as a container cluster 200 by deploying a containerization management system according to an embodiment of the present application;
fig. 3 is a schematic diagram of a block chain network service platform 100 accessed by a developer through a terminal 300 according to an embodiment of the present application;
fig. 4A to 4Q are schematic diagrams illustrating various function management pages of a blockchain network service platform according to an embodiment of the present disclosure;
fig. 5 is a schematic structural diagram of an exemplary blockchain network deployed using a blockchain network service platform according to an embodiment of the present application;
fig. 6 is a flowchart illustrating an exemplary transaction using a blockchain network service platform according to an embodiment of the present disclosure;
fig. 7 is a flowchart of a first information processing method of a blockchain network service platform according to an embodiment of the present disclosure;
fig. 8 is a flowchart of a second information processing method according to an embodiment of the present application;
fig. 9 is a schematic diagram of exemplary determination of encryption information according to an embodiment of the present application;
fig. 10 is a schematic diagram illustrating an information processing method of an exemplary regional blockchain network service platform according to an embodiment of the present application;
fig. 11 is a first schematic structural diagram of a sending device according to an embodiment of the present application;
fig. 12 is a schematic structural diagram of a sending device according to an embodiment of the present application;
fig. 13 is a first schematic structural diagram of a blockchain network service platform according to an embodiment of the present application;
fig. 14 is a schematic structural diagram of a block chain network service platform according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer, the present invention will be further described in detail with reference to the accompanying drawings, the described embodiments should not be construed as limiting the present invention, and all other embodiments obtained by a person of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. The terminology used herein is for the purpose of describing embodiments of the invention only and is not intended to be limiting of the invention.
Before further detailed description of the embodiments of the present invention, terms and expressions mentioned in the embodiments of the present invention are explained, and the terms and expressions mentioned in the embodiments of the present invention are applied to the following explanations.
1) A Block (Block) recording a data structure of the ledger data updated by the exchange within a period of time, marked with a timestamp and a unique mark (e.g. a digital fingerprint) of a previous Block, and after the Block is subjected to consensus verification by nodes in the Block chain network, the Block is appended to the end of the Block chain to become a new Block.
2) A chain of blocks (Blockchain), a chain of data structures in which blocks are assembled in a sequentially contiguous manner, in each block referencing a hash value of a previous block or a subset thereof, thereby cryptographically securing the recorded transaction as being non-tamperable and non-forgeable.
3) The account book (Legger) is the sum of data recorded by taking an account as a dimension in a block chain network, and comprises the elements of the account book data, the state of the account book, the state certification of the account book, a block index and the like.
4) Consensus (Consensus), a process in a blockchain network, is used to agree on transaction results among multiple nodes involved, and the mechanisms for achieving Consensus include Proof of workload (PoW), Proof of rights and interests (PoS, Proof of stamp), Proof of equity authority (DPoS), Proof of Elapsed Time (PoET, Proof of Elapsed Time), and so on.
5) Intelligent Contracts (Smart Contracts), also known as chain codes (chainodes), trigger execution of programs deployed in blockchain networks according to conditions, run in a secure container to initialize and manage ledger data and ledger states.
An exemplary functional architecture of a block chain network for implementing the embodiment of the present invention is described below, and referring to fig. 1, fig. 1 is a schematic functional architecture diagram of a block chain network provided in the embodiment of the present invention, which includes an application layer 101, a consensus layer 102, a network layer 103, a data layer 104, and a resource layer 105, which are described below respectively.
The resource layer 105 encapsulates various available computing and storage resources, such as those in computers, servers/clusters, and clouds, abstracts and provides a uniform interface to the data layer 104 to mask the variability of the underlying hardware implementing the resource layer 105.
The computing resources include various forms of processors such as a Central Processing Unit (CPU), an Application Specific Integrated Circuit (ASIC), and a Field-Programmable Gate Array (FPGA).
The storage resources include various types of storage media such as various volatile memories and nonvolatile memories. The nonvolatile Memory may be a Read Only Memory (ROM) or a Programmable Read-Only Memory (PROM). Volatile Memory can be Random Access Memory (RAM), which acts as external cache Memory.
The computing resources and storage resources of the resource layer 105 may be mapped to various types of nodes in a blockchain network, and the storage medium implementing an embodiment of the present invention stores executable instructions for implementing the blockchain network deployment method of an embodiment of the present invention, and once the executable instructions deployed to the nodes are executed, the underlying resources (e.g., various types of processors) implementing the nodes will implement the deployment of various types of nodes in the blockchain network and perform the functions of the various types of nodes, thereby implementing ledgers for transactions in business processes and various applications based on the ledgers.
By way of example, executable instructions may be written in any form of programming language, including compiled or interpreted languages, or declarative or procedural languages, in the form of software (including system programs and applications), software modules, scripts, plug-ins, and the like, and may be deployed in any form, including as a stand-alone program or as a module, component, or other unit suitable for use in a computing environment.
Data layer 104 encapsulates various data structures that implement the ledger, including ledger data implemented in a file system, ledger state and presence proofs implemented in a database form.
Network layer 103 encapsulates point-to-point (P2P) network protocols, data propagation and verification mechanisms, access and authentication mechanisms, and service agent identities. The P2P network protocol realizes communication among nodes in the blockchain network, a data propagation mechanism ensures the propagation of transaction/transaction results in the blockchain network, and a data verification mechanism is used for realizing the reliability of data transmission among the nodes based on an encryption method (such as a digital certificate, a digital signature and a public/private key pair); the access and authentication mechanism is used for managing the access and authentication of the terminal based on the identity of the service subject.
The consensus layer 102 encapsulates mechanisms for achieving consistency of transaction results propagated in the block chain, including POS, POW, DPOS, etc., and supports pluggable consensus mechanisms.
The application layer 101 encapsulates various services that the blockchain network can implement, including transaction settlement, tracing, and evidence storage.
Referring to fig. 2, it is a schematic structural diagram of a resource layer constructed as a container cluster 200 by deploying a containerization management system, where two types of nodes, namely a management Node (Master Server)200 and a service Node 300(Node), are formed by deploying corresponding components of the containerization management system in a machine providing resources to the resource layer, the management Node is used to manage scheduling and running of containers in the service Node, the service Node is mainly used to run various containers, and provide an isolated running environment for various applications in a block chain network, for example, a chain code container for running a chain code, a Node container for running a code of a Node (i.e., a code of various types of nodes in the block chain network), and the following description is separately given.
The management node (Master Server)200 is responsible for managing the cluster, providing access to the cluster's resource data externally in the form of a Service (Service), and includes several exemplary components.
1) A state component (etcd) for saving the state of the entire cluster.
2) An application program interface service (API Server) component for providing a unique entry for resource operations and providing mechanisms for authentication, authorization, access control, API registration and discovery, and the like.
3) And the scheduling (Scheduler) component is used for being responsible for scheduling the resources and scheduling the containers to the appropriate nodes to run according to a preset scheduling strategy. For an application of a blockchain network, the container group (Pod) of the same group of resources in a shared machine (that is, a machine on which a service node component is deployed) in a container run by a service node is a minimum unit of invocation, and can be implemented by one or more container groups, where the resources shared by the containers in the container group include: application namespace, network namespace, hostname, and storage Volume (Volume).
Taking the shared storage volume as an example, when a shared File System component is deployed on a node, such as a Network File System (NFS), a cluster File System (GlusterFS), or a ceph File System (Cephfs), the scheduling component can easily schedule (mount) a container group mounted on the storage volume to a storage volume of another machine (node).
4) And the control management (Controller Manager) component is used for monitoring/maintaining the state of the cluster, monitoring the current state of each resource object of the whole cluster in real time through an interface provided by the application program interface service component, and restoring the current state to the expected state when the system state changes due to various faults.
5) A copy Controller (RC) component for controlling the running of a certain number of Pod copies in a certain time; for example, if the running Pod copy exceeds the set value, closing part of Pod copies; if the Pod copy is less than the set value, a new Pod copy is created.
6) And the Deployment Controller (Deployment Controller) component is used for managing and maintaining a resource object-Deployment (Deployment) object in the container cluster finding, associating the Deployment object with the replica Controller, and providing declarative updates for the container group and the replica Controller in the Deployment object, so as to declare the target states of the container group and the replica Controller, and thus when the Deployment object is updated, the replication Controller and the container group are controlled to be updated.
Service node 300 includes the following exemplary components.
1) And the container engine (noted as Docker) is used for taking charge of all specific image downloading and container operation.
2) The daemon component (denoted as Kubelet) is responsible for maintaining the life cycle of the container (creation, start and stop), and also for the management of the storage volume and the Container Network Interface (CNI).
Taking management of a storage volume as an example, a daemon component mounts each container in a container group to the same storage volume through a component of a shared File System deployed in a node, such as a Network File System (NFS), a cluster File System (GlusterFS), and a ceph File System (Cephfs), so that each container uses the same storage volume to store data produced in the operation process, and the data in the storage volume can be accessed by any container in the same container group.
3) And the load balancing component (denoted as Proxy) is responsible for providing Service with Service discovery and load balancing inside the cluster.
Based on the cluster shown in fig. 2, an exemplary process in which an image of an application deploying one blockchain network is encapsulated into a container group (referred to as a target Pod in the following example) and runs on a Node (referred to as a target Node in the following example) is as follows.
First, the management tool (Kubectl) of the container cluster 200 submits a request for creating a copy Controller (RC), which includes the definition of the target Pod; the number of copies that the target Pod needs to run; target Pod label (label) to be monitored, and the like.
Then, the request is written into the etcd through the API Server, and at this time, the Controller Manager monitors the RC event through the interface of the API Server for monitoring resource change, finds that there is no Pod instance corresponding to the RC in the current cluster, generates a Pod object according to the Pod template definition in the RC, and writes into the etcd through the API Server.
Immediately after the RC event is discovered by the Scheduler, it immediately executes a scheduling procedure: and selecting a Node of the drop for the new Pod, writing the result into the etcd through the API Server, monitoring the new Pod through the API Server by a Kubelet process running on the target Node, and starting the new Pod according to the definition of the new Pod until the life of the Pod is finished.
Subsequently, Kubectl submits a new Service creation request mapped to the target Pod, Controller Manager queries the associated Pod instance through Label, then generates endpoint (Endpoints) information (including addresses and ports) of Service, and writes the endpoint information into etcd through API Server; and Proxy processes running on all nodes in the container cluster inquire through an API (application program interface) Server, monitor the Service object and the corresponding endpoint information, and establish a load balancer in a software mode to realize the flow forwarding function from the Service access to the backend Pod.
In combination with the above, the blockchain network service platform implementing the embodiment of the present invention is implemented by deploying a container cluster in a resource layer and running a container encapsulated with a blockchain network application, and thus, the blockchain network implementing the embodiment of the present invention may be provided in the form of a memory and a processor, where executable instructions are stored in the memory, and when the executable instructions are executed by the processor, the container cluster is established on a plurality of nodes running the processor and the memory, and the chain code installation method in the blockchain network service platform implementing the embodiment of the present invention is implemented by running the encapsulated application in the container.
The blockchain network platform implementing the embodiment of the present invention is connected to a developer in various ways, and provides various graphical ways to deploy and manage the blockchain network, which is described below.
Referring to fig. 3, fig. 3 is a schematic diagram of a developer accessing a blockchain network service platform 100 through a terminal 300 according to an embodiment of the present invention, an SDK/Web 320 interface of the developer terminal 300 is connected to an SDE/Web interface corresponding to a data layer 104 in the blockchain network service platform 100, a blockchain network supporting a specific service is deployed locally and remotely on the developer terminal 300, and a management page of various functions of the blockchain network service platform 100 is displayed in a graphical interface 310 of the terminal 300, including creation of a container cluster and access of a new container cluster, management of storage resources, one-key deployment of the blockchain network, chain code management (running state view), application store management, and the like.
Referring to fig. 4A to 4Q, which are schematic display diagrams of various function management pages of the blockchain network service platform according to an embodiment of the present invention, the function management pages displayed in the graphical interface 310 of the developer terminal 300 in fig. 3 will be exemplarily described with reference to fig. 4A to 4Q.
Fig. 4A shows a status view page of the blockchain network service platform 100, in which the running status of the blockchain network, such as CPU usage, memory usage, and resource (node) usage, is shown.
Fig. 4B shows a console page of one-key deployment of the blockchain network service platform 100, which supports developers to set basic information (including blockchain domain name, version number) and organization (including organization name, node number, user number, etc.) of the blockchain network, and to set advanced options with default values, including sorting node type, channel name, and chain code name, etc.
Fig. 4C illustrates a console page of resource management of the resource layer 105 of the blockchain web services platform 100, wherein related information of the cluster that can be deployed by the developer through the blockchain web services platform 100, including the status of whether to connect, the CPU/memory usage, and the like, is displayed.
Adding a container cluster for supporting a de-blocking chain network is supported in the step 4D, and a cluster name is recorded; the create page will be entered after the create cluster functionality option is triggered.
Fig. 4E shows a console page of the query cluster of the blockchain network service platform 100, and when a function button of the query cluster is triggered, the query cluster will enter a cluster list page to support operations of adding a cluster, querying a cluster, deleting a cluster, and editing a cluster.
In fig. 4F, a console page of storage management of the blockchain network service platform 100 is shown, and when a function button of storage management is triggered, a storage management list page is entered to display the created storage items in the cluster, including the storage query and delete function.
A console page of the blockchain network services platform 100 is shown in fig. 4G for storing details, which are shown in fig. 4H and support dynamic storage space expansion for storage.
A console page of the blockchain network service platform 100 for adding storage is shown in fig. 4I, supporting setting of storage name and node for adding, adding a node to a container cluster according to the setting, and displaying detailed information after adding storage, including a list of nodes of the container cluster, in fig. 4J.
A console page of the super ledger of blockchain network services platform 100 is shown in fig. 4K, showing information of the name, network version, status and creation time of the super ledger used to deploy the blockchain network.
In fig. 4L, a console page of one-touch deployment of a super ledger of the blockchain network service platform 100 is shown, which provides configuration items of basic information for super ledger deployment, and advanced configuration items adopting default values, such as sorting node type, channel, default chain code, and initialization parameters.
In fig. 4M/N, a console page of upload/installation of a chain code of the blockchain network service platform 100 is shown, in which setting items of a chain code name and a version number are provided; chain code versions, initialization parameters, configuration items for the organization and nodes are provided in the installed console page.
Fig. 4O shows a console page of the network details of the blockchain network service platform 100, which supports viewing of information such as organization members, height of a block, transaction amount, and contract amount of different channels, and may also display information such as organization names, intra-channel node names, and intra-channel chain code names of the viewed channels.
Fig. 4P shows a console page for chain code query of the blockchain network service platform 100, which supports matching query of chain codes by using network names, chain code parameters, account book names, and chain code functions, and the query dimensions include states, messages, and data.
In fig. 4Q, a console page of an application store of the blockchain network service platform 100 is shown, which enables a developer to select an application to be deployed, and once an application is determined to be deployed to the blockchain network, rapid deployment of a container cluster to the resource layer 105 is completed by multiplexing images of the application.
Referring to fig. 5, for one exemplary architecture of a blockchain network deployed using a blockchain network services platform, an application obtains a legitimate identity certificate from a CA to join an application channel within the network. Before the formal transaction is initiated, a transaction Proposal (promosal) needs to be constructed and submitted to endorsement nodes in the organization 1 and the organization 2 for endorsement; after the client collects enough endorsement support (the number is determined according to the endorsement policy), a legal transaction request (endorsement carrying endorsement nodes) can be constructed by using the endorsement, and the legal transaction request is sent to a sequencing node (order) in the sequencing service for sequencing so as to package transactions to form a block.
Referring to fig. 6, a transaction flow of an application and a blockchain network is shown, where functions of a client and each node in the transaction flow are as follows:
client (application): the SDK is used to interact with the blockchain network. First, the client obtains a legitimate identity certificate from the CA to join the application channel within the network. Before the formal transaction is initiated, a transaction Proposal (promosal) needs to be constructed and submitted to an endorsement node for endorsement; after the client collects enough endorsement support (the number is determined according to the endorsement policy), a legal transaction request (endorsement carrying endorsement nodes) can be constructed by using the endorsement, and the legal transaction request is sent to a sequencing node (Orderer) for sequencing so as to package transactions to form a block. The client can also monitor messages in the network through an event mechanism to know whether the transaction is successfully received.
Endorsement node (Endorser): the method is mainly provided for the client to call and complete endorsement (signature) processing of a transaction proposal. After receiving a transaction proposal from a client, firstly, checking the validity and ACL authority, simulating the operation transaction (the chain code name and parameters required to be executed can be executed in the transaction, the transaction is executed, and the chain code specified in the transaction is executed essentially), endorsing (namely, digitally signing) the state change caused by the transaction (recorded in a read-write set form, including a read state key and a read state version, and a written state key value) and returning the result whether the client supports the transaction or not.
Sort node (Orderer): and receiving the transaction containing the endorsement signature, sequencing the unpacked transactions to generate a block, and broadcasting the block to the Peer node.
Master node (Leader Peer): and a node in communication with the sequencing node, responsible for obtaining the latest tiles from the sequencing node and synchronizing internally in the blockchain network.
Accounting node (commit): the structure of the block chain and the ledger (including the status DB, history DB, index DB, etc.) is maintained. The node periodically obtains the sorted batch transaction block structure from the sorting node and checks the transactions (including transaction message structure, signature integrity, whether duplication occurs, whether the read-write set versions match, etc.). And executing legal transaction after the check is passed, writing the result into an account book, and constructing a new block.
It should be noted that all Peer nodes are accounting nodes and are responsible for verifying transactions in the block of the sequencing node and maintaining state data and copies of the account book. Some Peer nodes will perform transactions and sign endorsements to the results, acting as endorsement nodes. The endorsement node is a dynamic role and is bound with a specific chain code. Each chain code in the chain code container sets an endorsement policy when being instantiated, and specifies which nodes are valid after the transaction endorsement. And the endorsement node is only when the application program initiates a transaction endorsement request to the endorsement node, and is a common accounting node at other times, and the endorsement node is only responsible for verifying the transaction and accounting.
Example one
An information processing method provided in an embodiment of the present application is applied to a sending device, and fig. 7 is a first flowchart of the information processing method provided in the embodiment of the present application, and as shown in fig. 7, the information processing method may include:
s101, sending a first connection request to a block chain network service platform.
The information processing method provided by the embodiment of the invention is suitable for a scene that the sending equipment establishes network connection with the target equipment according to the first connection request by utilizing the block chain network service platform.
In the embodiment of the present application, the transmitting apparatus may be implemented in various forms. For example, the transmitting device described in the present application may include devices such as a mobile phone, a smart home, a watch, a tablet computer, a notebook computer, a palmtop computer, a Personal Digital Assistant (PDA), a Portable Media Player (PMP), a navigation device, a wearable device, a smart band, a pedometer, and the like, as well as devices such as a Digital TV, a desktop computer, and the like.
In this embodiment of the present application, the sending device may be a mobile phone, and the sending device may also be a television or other devices, which may be determined specifically according to an actual situation, and this is not limited in this embodiment of the present application.
In this embodiment, the first connection request may be a request sent by the sending device to establish a network connection with the target device.
S102, receiving a public key set sent by the block chain network service platform according to the first connection request; the public key set is a set obtained by the blockchain network service platform according to the public key information of the equipment successfully networked.
In this embodiment, after the sending device sends the first connection request to the blockchain network service platform, the sending device is in a state of receiving a signal until receiving a public key set sent by the blockchain network service platform according to the first connection request.
In the embodiment of the present application, the public key set includes at least two pieces of public key information.
It should be noted that each device has a public key information, the public key set is a set obtained by the blockchain network service platform according to the public key information of the device that successfully networks, and when the blockchain network service platform receives a networking application sent by a device that is not connected, the blockchain network service platform obtains the public key information of the corresponding device from the networking application and adds the public key information to the public key set.
In this embodiment of the present application, the public key set includes not only the public key information of the device, but also the ID information of the device and the name of the device, which may be determined specifically according to the actual situation, and this is not limited in this embodiment of the present application.
S103, analyzing the encrypted information set by using the public key set, and determining target encrypted information from the public key set; the encryption information set is a set obtained by the blockchain network service platform according to the encryption information corresponding to the successfully networked equipment.
In the embodiment of the application, after the sending device receives the public key set sent by the blockchain network service platform according to the first connection request, the sending device analyzes the encrypted information set by using the public key set, and determines the target encrypted information from the public key set.
It should be noted that the encryption information set is a set obtained by the blockchain network service platform according to the encryption information corresponding to the successfully networked device.
In this embodiment of the present application, a process in which a sending device analyzes an encrypted information set by using a public key set and determines target encrypted information from the public key set includes: the sending equipment acquires first public key information from the public key set and analyzes each piece of encryption information in the sequentially encrypted information set by using the first public key information; until the sending equipment utilizes each piece of public key information in the public key set to analyze each piece of encryption information in the encryption set in sequence to obtain a plurality of analysis results; the sending equipment searches for a target analysis result which is successfully analyzed from the plurality of analysis results; and the sending equipment takes the analysis encryption information corresponding to the target analysis result as target encryption information.
It should be noted that the first public key information is any public key information in the public key set; the public key set comprises at least two pieces of public key information.
It should be noted that the encryption information set includes at least two pieces of encryption information.
In this embodiment of the application, in the process of analyzing each piece of encryption information in the sequential encryption information set by the sending device using the first public key information, the sending device may analyze first piece of encryption information in the encryption set using the first public key information, and then analyze … a second piece of encryption information in the encryption set using the first public key information until each piece of encryption information in the encryption set is analyzed using the first public key information.
In this embodiment, after the sending device sequentially analyzes each piece of encrypted information in the set of encrypted information by using the first public key information, the sending device further sequentially analyzes … each piece of encrypted information in the set of encrypted information by using the second public key information until the sending device sequentially analyzes each piece of encrypted information in the set of encrypted information by using each piece of public key information, so as to obtain a plurality of analysis results.
S104, taking the equipment corresponding to the target encryption information as target equipment, and establishing network connection with the target equipment; the target device is a device in the same network as the transmitting device.
In the embodiment of the application, the sending device analyzes the encrypted information set by using the public key set, and after the target encrypted information is determined from the public key set, the sending device takes the device corresponding to the target encrypted information as the target device and establishes network connection with the target device.
The target device is a device in the same network as the transmitting device.
In the embodiment of the application, before the sending device establishes network connection with the target device, the sending device also sends a connection detection instruction to the target device; and under the condition that the sending equipment receives the connection response information sent by the target equipment according to the connection detection instruction, the sending equipment establishes network connection with the target equipment.
In this embodiment of the present application, the connection detection instruction may be a detection instruction for detecting connectivity between the target device and the power supply, or a detection instruction for detecting whether the target device can normally operate, or may be another detection instruction, which may be specifically determined according to an actual situation, and this is not limited in this embodiment of the present application.
In this embodiment, when the sending device receives the connectivity response information sent by the target device according to the connectivity detection instruction, the sending device may consider the connectivity of the target device to be connectivity, and then the sending device may establish network connection with the target device.
In the embodiment of the application, before sending the connection detection instruction to the target device, the sending device adds the target encryption information to the connection detection instruction to obtain the target connection detection instruction; then, the sending device sends a target connectivity detection instruction to the target device.
In the embodiment of the present application, the target encryption information is encryption information of the target device. The sending device may add the target encryption information to the connectivity detection instruction, and when the target device receives the connectivity detection instruction added with the target encryption information, the target device decrypts the target encryption information by using the private key, and when the target device successfully decrypts the target encryption information, the target device performs connectivity detection.
In this embodiment of the present application, after the sending device establishes a network connection with the target device, the sending device sends a control instruction to the target device when the sending device receives the control instruction for the target device.
In this embodiment of the application, the control instruction is an instruction for controlling a target device, the target device may be a vacuum cleaner, the target device may also be a washing machine, the target device may also be a refrigerator, and the specific determination may be performed according to an actual situation, which is not limited in this embodiment of the application.
In the embodiment of the present application, the control instruction includes: system switch commands, forward commands, reverse commands and the like. The system switching instruction is an instruction for controlling the starting or the dormancy of the target equipment; the forward instruction is an instruction for controlling the temperature rise, the sound increase and the like of the air conditioner of the target equipment; the reverse command is a command for temperature drop, sound reduction, or the like.
In the embodiment of the application, the control command can be a command for controlling the dust collector to start working; the control instruction can also be an instruction for controlling the temperature adjustment of the refrigerator; the control command may also be a command for adjusting and controlling the operation mode of the washing machine, and may be determined specifically according to an actual situation, which is not limited in the embodiment of the present application.
It can be understood that, when the sending device receives the public key set sent by the blockchain network service platform according to the first connection request, the sending device may analyze the encrypted information set by using the public key set, and determine the target encrypted information from the public key set, so that the sending device may connect with the target device corresponding to the target encrypted information, thereby improving the security when the sending device connects with the target device.
Example two
An embodiment of the present application provides an information processing method for a blockchain network service platform, where fig. 8 is a first flowchart of the information processing method for a blockchain network service platform provided in the embodiment of the present application, and as shown in fig. 8, the information processing method may include:
s201, under the condition that a first connection request sent by sending equipment is received, acquiring a public key set from a public key storage block of a block chain; the public key set is a set obtained according to the public key information of the successfully networked equipment.
The information processing method of the block chain network service platform provided by the embodiment of the invention is suitable for a scene that a sending device establishes network connection with a target device according to a first connection request by using the block chain network service platform.
In this embodiment of the present application, the sending device may be a mobile phone, and the sending device may also be a television or other devices, which may be determined specifically according to an actual situation, and this is not limited in this embodiment of the present application.
In this embodiment, the first connection request may be a request that is sent by the sending device and that expects to establish a network connection with the target device.
In an embodiment of the present application, the set of public keys is stored in a public key storage block of the block chain.
In the embodiment of the application, before the blockchain network service platform acquires the public key set from the public key storage block of the blockchain when receiving the first connection request sent by the sending device, the blockchain network service platform acquires the device public key information of the sending device from the networking request when receiving the networking request sent by the sending device; and the blockchain network service platform adds the equipment public key information to the public key set.
It should be noted that the public key set includes at least two pieces of public key information.
In the embodiment of the application, the process that the blockchain network service platform acquires the public key information of the device from the networking request further comprises the step that the blockchain network service platform acquires the private key information of the sending device from the networking request; the block chain network service platform takes the private key information and the equipment public key information as secret key information; the block chain network service platform encrypts the preset identification information by using the key information to obtain equipment encryption information; the block chain network service platform adds the equipment encryption information to the encryption information set; and the blockchain network service platform sends the encryption information set to the sending equipment.
It should be noted that the encryption information set includes at least two pieces of encryption information.
In this embodiment of the application, the preset identification information may be mobile phone number information of the user, ID information of the mobile phone of the user, mobile phone number information and ID information, or other preset information, and may be specifically determined according to the actual situation, which is not limited in this embodiment of the application.
In this embodiment of the application, the key information includes public key information and private key information, and the sending device may encrypt the preset identification information by using the public key information and the private key information, respectively, so as to obtain encrypted information.
In this embodiment of the present application, after the blockchain network service platform adds the device encryption information to the encryption information set, the blockchain network service platform sends the encryption information set to the sending device; the block chain network service platform can also send an encryption information set to the sending equipment at preset time intervals; the blockchain network service platform may also send the once encrypted information set to all devices corresponding to all encrypted information in the encrypted information set under the condition that the once encrypted information is added to the encrypted information set, which may be specifically determined according to actual conditions, and this is not limited in this embodiment of the present application.
In this embodiment of the present application, the process of encrypting the preset identification information by using the key information by the blockchain network service platform to obtain the device encryption information includes: the block chain network service platform encrypts the preset identification information by using the equipment public key information to obtain first information; the block chain network service platform encrypts the preset identification information by using the private key information to obtain second information; and the block chain network service platform takes the first information and the second information as equipment encryption information.
In this embodiment of the application, the preset identification information may be information obtained by the blockchain network service platform, or may also be information generated by the blockchain network service platform according to the identification information, and may specifically be determined according to an actual situation, which is not limited in this embodiment of the application.
It should be noted that the identification information may be a mobile phone number and ID information of the mobile phone.
In this embodiment of the present application, the identification information may be character string information or digital information, which may be determined specifically according to an actual situation, and this is not limited in this embodiment of the present application.
In the embodiment of the application, if the sending device is the first device initiating the networking application, the blockchain network service platform generates the character string information according to the identification information, and then encrypts the character string information by using the device public key information to obtain the first information; the block chain network service platform encrypts the character string information by using the private key information so as to obtain second information; and then the block chain network service platform takes the first information and the second information as equipment encryption information.
In this embodiment, a unified communication standard written in the blockchain by using the intelligent contract interface is further set in the blockchain network service platform, and the unified communication standard includes a communication detection instruction, a system switch instruction, a forward instruction, and a reverse instruction. The forward command includes temperature rise of an air conditioner, sound increase and the like, which are collectively called as a forward command, and the reverse command mainly includes temperature drop, sound decrease and the like.
In this embodiment of the present application, if the sending device is not the first device initiating the networking application, the blockchain network service platform may directly obtain the character string information, and use the device public key information and the private key information to respectively encrypt the character string information, thereby obtaining the device encryption information.
For example, as shown in fig. 9, the blockchain network service platform generates character string information according to the identification information, and then encrypts the character string information by using a public key, so as to obtain first information; the block chain network service platform encrypts the information by using a private key so as to obtain second information; the blockchain network service platform takes the first information and the second information as encryption information, and adds the encryption information to the encryption information set, so as to obtain a plurality of pieces of encryption information (encryption information 1, encryption information 2, encryption information 3 …, encryption information n).
In this embodiment of the present application, the networking application may be an application for setting different devices in the same local area network.
In this embodiment of the application, before the sending device sends the networking application, the sending device may first obtain key information of the sending device, add the key information to the networking application, and then send the networking application added with the key information to the blockchain network service platform.
S202, a public key set is sent to sending equipment based on the first connection request, so that the sending equipment searches target equipment corresponding to target encryption information in the same network with the sending equipment in the encryption information set according to the public key set, and establishes connection with the target equipment; the encryption information set is a set obtained according to the encryption information corresponding to the successfully networked equipment.
In this embodiment, after the blockchain network service platform obtains the public key set from the public key storage block of the blockchain, the blockchain network service platform sends the public key set to the sending device based on the first connection request.
For example, as shown in fig. 10, a user triggers a networking application operation for a device a to provide a networking application for the device a to a blockchain network service platform, where the blockchain network service platform acquires public key information and private key information of the device a from the networking application for the device a based on a protocol, encrypts preset identification information by using the public key information and private key information of the device a to obtain encrypted information of the device a, adds the encrypted information of the device a to an encrypted information set, and then returns the encrypted information of the device a to the device a. The user triggers networking application operation aiming at the equipment B to provide networking application aiming at the equipment B for the block chain network service platform, the block chain network service platform acquires public key information and private key information of the equipment B from the networking application aiming at the equipment B on the basis of a protocol, preset identification information is encrypted by utilizing the public key information and the private key information of the equipment B to obtain encrypted information of the equipment B, the encrypted information of the equipment B is added into an encrypted information set, and then the encrypted information of the equipment B is returned to the equipment B. Under the condition that the blockchain network service platform obtains the first connection request sent by the device A, the blockchain network service platform sends a public key set to the device A, the device A establishes connection with the device B under the condition that the device A determines that the target device is the device B according to the public key set and the encryption information set, and sends a control instruction to the device B under the condition that the blockchain network service platform receives the control instruction to the device B so as to control the device B according to the control instruction.
It can be understood that, when the blockchain network service platform receives the first connection request sent by the sending device, the blockchain network service platform directly obtains the public key set from the public key storage block of the blockchain, and sends the public key set to the sending device, so that the sending device can analyze the encrypted information set by using the public key set, and determine the target encrypted information from the public key set, and thus, the sending device can be connected with the target device corresponding to the target encrypted information, and the security when the sending device is connected with the target device is improved.
EXAMPLE III
Based on the inventive concept together with the embodiments, the present application provides a sending apparatus 1, as shown in fig. 11, where the sending apparatus 1 includes:
a first sending unit 11, configured to send a first connection request to a blockchain network service platform;
a receiving unit 12, configured to receive a public key set sent by the blockchain network service platform according to the first connection request; the public key set is a set obtained by the block chain network service platform according to public key information of equipment successfully networked
The analysis unit 13 is configured to analyze an encryption information set by using the public key set, and determine target encryption information from the public key set; the encryption information set is a set obtained by the block chain network service platform according to encryption information corresponding to successfully networked equipment; taking the device corresponding to the target encryption information as a target device;
a connection unit 14, configured to establish a network connection with the target device; the target device is a device in the same network as the sending device.
Optionally, the apparatus further comprises an obtaining unit and a searching unit,
the acquiring unit is configured to acquire first public key information from the public key set, where the first public key information is any one of the public key information in the public key set; the public key set comprises at least two pieces of public key information;
the analysis unit 13 is configured to analyze each piece of encryption information in the encryption information set in sequence by using the first public key information until each piece of encryption information in the encryption set is analyzed in sequence by using each piece of public key information in the public key set, so as to obtain a plurality of analysis results; the encryption information set comprises at least two pieces of encryption information;
the searching unit is used for searching a target analysis result which is successfully analyzed from the plurality of analysis results; and taking analysis encryption information corresponding to the target analysis result as the target encryption information.
Optionally, the first sending unit 11 is configured to send a connectivity detection instruction to the target device;
correspondingly, the receiving unit 12 is configured to establish a network connection with the target device when receiving the connection response information sent by the target device according to the connection detection instruction.
Optionally, the apparatus further comprises a first adding unit,
the second adding unit is used for adding the target encryption information into the connection detection instruction to obtain a target connection detection instruction;
correspondingly, the first sending unit 11 is configured to send the target connectivity detection instruction to the target device.
Optionally, the first sending unit 11 is configured to send the control instruction to the target device when receiving the control instruction to the target device.
Based on the same inventive concept of the first embodiment, an embodiment of the present application provides a sending apparatus 1, as shown in fig. 12, fig. 12 is a schematic diagram of a composition structure of a sending apparatus provided in the embodiment of the present application, where the sending apparatus 1 of the embodiment of the present application includes: at least one first processor 16, at least one first memory 15 and at least one first communication bus 17. In a Specific embodiment, the at least one first Processor 16 may be at least one of an Application Specific Integrated Circuit (ASIC), a Digital Signal Processor (DSP), a Digital Signal Processing terminal (DSPD), a Programmable Logic terminal (PLD), a Field Programmable Gate Array (FPGA), a CPU, a controller, a microcontroller, and a microprocessor. It is understood that the electronic devices for implementing the above processor functions may be other devices, and the embodiments of the present application are not limited in particular.
In the embodiment of the present application, the at least one first communication bus 17 is used for realizing connection communication between the at least one first processor 16 and the at least one first memory 15; at least one first memory 15 for storing executable instructions;
at least one first processor 16, configured to execute the executable instructions stored in the at least one first memory 15, to implement the information processing method according to the first embodiment.
The embodiment of the present application provides a storage medium, where the storage medium stores one or more programs, the one or more programs are executable by one or more processors and applied to a transmitting device, and when the program is executed by at least one processor, the information processing method according to the first embodiment is implemented.
It can be understood that, when the sending device receives the public key set sent by the blockchain network service platform according to the first connection request, the sending device may analyze the encrypted information set by using the public key set, and determine the target encrypted information from the public key set, so that the sending device may connect with the target device corresponding to the target encrypted information, thereby improving the security when the sending device connects with the target device.
Example four
Based on the same inventive concept of the second embodiment, an embodiment of the present application provides a block chain network service platform 100, and as shown in fig. 13, the block chain network service platform 100 includes:
an obtaining unit 21, configured to obtain, when a first connection request sent by a sending device is received, a public key set from a public key storage block of a block chain; the public key set is a set obtained according to public key information of the equipment which successfully networks;
a second sending unit 22, configured to send the public key set to the sending device based on the first connection request, so that the sending device searches, according to the public key set, for a target device corresponding to target encryption information in the same network as the sending device in an encryption information set, and establishes a connection with the target device; the encryption information set is a set obtained according to the encryption information corresponding to the successfully networked equipment.
Optionally, the blockchain network service platform further includes a second adding unit;
the obtaining unit 21 is configured to obtain, from the networking request, device public key information of the sending device in the case of receiving the networking request sent by the sending device;
the second adding unit is configured to add the device public key information to the public key set, where the public key set includes at least two pieces of public key information.
Optionally, the blockchain network service platform further includes an encryption unit;
the obtaining unit 21 is configured to obtain private key information of the sending device from the networking request; taking the private key information and the equipment public key information as key information;
the encryption unit is used for encrypting the preset identification information by using the key information to obtain equipment encryption information;
the second adding unit is used for adding the equipment encryption information to an encryption information set, and the encryption information set comprises at least two pieces of encryption information;
the second sending unit 22 is configured to send the set of encrypted information to the sending device.
Optionally, the encrypting unit is configured to encrypt the preset identification information by using the device public key information to obtain first information;
encrypting the preset identification information by using the private key information to obtain second information;
and using the first information and the second information as the equipment encryption information.
Based on the same inventive concept of the second embodiment, an embodiment of the present application provides a blockchain network service platform, as shown in fig. 14, where fig. 14 is a schematic structural diagram of a composition of the blockchain network service platform provided in the embodiment of the present application, and the blockchain network service platform 100 in the embodiment of the present application includes: at least one second processor 24, at least one second memory 23, and at least one second communication bus 25. In a Specific embodiment, the at least one second Processor 24 may be at least one of an Application Specific Integrated Circuit (ASIC), a Digital Signal Processor (DSP), a Digital Signal Processing terminal (DSPD), a Programmable Logic terminal (PLD), a Field Programmable Gate Array (FPGA), a CPU, a controller, a microcontroller, and a microprocessor. It is understood that the electronic devices for implementing the above processor functions may be other devices, and the embodiments of the present application are not limited in particular.
In the embodiment of the present application, the at least one second communication bus 25 is used for implementing connection communication between the at least one second processor 24 and the at least one second memory 23; at least one second memory 23 for storing executable instructions;
at least one second processor 24, configured to execute the executable instructions stored in the at least one second memory 23, to implement the information processing method according to the first embodiment.
The embodiment of the present application provides a storage medium, where the storage medium stores one or more programs, the one or more programs are executable by one or more processors and applied to a blockchain network service platform, and when the program is executed by at least one processor, the information processing method according to the first embodiment is implemented.
It can be understood that, when the blockchain network service platform receives the first connection request sent by the sending device, the blockchain network service platform directly obtains the public key set from the public key storage block of the blockchain, and sends the public key set to the sending device, so that the sending device can analyze the encrypted information set by using the public key set, and determine the target encrypted information from the public key set, and thus, the sending device can be connected with the target device corresponding to the target encrypted information, and the security when the sending device is connected with the target device is improved.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of a hardware embodiment, a software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The above description is only a preferred embodiment of the present invention, and is not intended to limit the scope of the present invention.

Claims (15)

1. An information processing method applied to a transmission apparatus, the method comprising:
sending a first connection request to a block chain network service platform;
receiving a public key set sent by the block chain network service platform according to the first connection request; the public key set is a set obtained by the block chain network service platform according to public key information of equipment successfully networked;
analyzing an encryption information set by using the public key set, and determining target encryption information from the public key set; the encryption information set is a set obtained by the block chain network service platform according to encryption information corresponding to successfully networked equipment;
taking the device corresponding to the target encryption information as a target device, and establishing network connection with the target device; the target device is a device in the same network as the sending device.
2. The method of claim 1, wherein parsing the set of encrypted information using the set of public keys, and determining target encrypted information from the set of public keys comprises:
acquiring first public key information from the public key set, and analyzing each piece of encryption information in the encryption information set in sequence by using the first public key information; the first public key information is any one of the public key information in the public key set; the public key set comprises at least two pieces of public key information; the encryption information set comprises at least two pieces of encryption information;
analyzing each piece of encryption information in the encryption set in sequence by using each piece of public key information in the public key set to obtain a plurality of analysis results;
searching for a target analysis result which is successfully analyzed from the plurality of analysis results;
and taking analysis encryption information corresponding to the target analysis result as the target encryption information.
3. The method of claim 1, wherein prior to establishing the network connection with the target device, the method further comprises:
sending a communication detection instruction to the target equipment;
correspondingly, the establishing of the network connection with the target device includes:
and under the condition of receiving the connection response information sent by the target equipment according to the connection detection instruction, establishing network connection with the target equipment.
4. The method of claim 3, wherein prior to sending the connectivity detection instruction to the target device, the method further comprises:
adding the target encryption information to the connection detection instruction to obtain a target connection detection instruction;
correspondingly, the sending the connection detection instruction to the target device includes:
and sending the target connection detection instruction to the target equipment.
5. The method of claim 1, wherein after establishing the network connection with the target device, the method further comprises:
and sending the control instruction to the target equipment under the condition of receiving the control instruction to the target equipment.
6. An information processing method of a blockchain network service platform is applied to the blockchain network service platform, and the method comprises the following steps:
under the condition of receiving a first connection request sent by sending equipment, acquiring a public key set from a public key storage block of a block chain; the public key set is a set obtained according to public key information of the equipment which successfully networks;
sending the public key set to the sending equipment based on the first connection request, so that the sending equipment searches target equipment corresponding to target encryption information in the same network with the sending equipment in an encryption information set according to the public key set and establishes connection with the target equipment; the encryption information set is a set obtained according to the encryption information corresponding to the successfully networked equipment.
7. The method according to claim 6, wherein before obtaining the set of public keys from the public key storage block of the blockchain upon receiving the first connection request sent by the sending device, the method further comprises:
under the condition of receiving a networking request sent by the sending equipment, acquiring equipment public key information of the sending equipment from the networking request;
and adding the equipment public key information to the public key set, wherein the public key set comprises at least two pieces of public key information.
8. The method of claim 7, wherein obtaining the device public key information of the sending device from the networking request further comprises:
obtaining private key information of the sending equipment from the networking request;
taking the private key information and the equipment public key information as key information;
encrypting preset identification information by using the key information to obtain equipment encryption information;
adding the device encryption information to an encryption information set, wherein the encryption information set comprises at least two pieces of encryption information;
transmitting the set of encrypted information to the transmitting device.
9. The method according to claim 8, wherein the encrypting the preset identification information by using the key information to obtain device encryption information comprises:
encrypting the preset identification information by using the equipment public key information to obtain first information;
encrypting the preset identification information by using the private key information to obtain second information;
and using the first information and the second information as the equipment encryption information.
10. A transmitting device, comprising:
the first sending unit is used for sending a first connection request to the block chain network service platform;
a receiving unit, configured to receive a public key set sent by the blockchain network service platform according to the first connection request; the public key set is a set obtained by the block chain network service platform according to public key information of equipment successfully networked;
the analysis unit is used for analyzing the encrypted information set by using the public key set and determining target encrypted information from the public key set; the encryption information set is a set obtained by the block chain network service platform according to encryption information corresponding to successfully networked equipment; taking the device corresponding to the target encryption information as a target device;
a connection unit, configured to establish a network connection with the target device; the target device is a device in the same network as the sending device.
11. A blockchain network service platform, the blockchain network service platform comprising:
the device comprises an acquisition unit, a first connection unit and a second connection unit, wherein the acquisition unit is used for acquiring a public key set from a public key storage block of a block chain under the condition of receiving a first connection request sent by a sending device; the public key set is a set obtained according to public key information of the equipment which successfully networks;
a second sending unit, configured to send the public key set to the sending device based on the first connection request, so that the sending device searches, according to the public key set, for a target device corresponding to target encryption information in the same network as the sending device in an encryption information set, and establishes a connection with the target device; the encryption information set is a set obtained according to the encryption information corresponding to the successfully networked equipment.
12. A transmitting device, characterized in that the transmitting device comprises:
at least one first memory for storing executable instructions;
at least one first processor for executing executable instructions stored in said at least one first memory, implementing the information processing method according to claims 1-5.
13. A blockchain network service platform, the blockchain network service platform comprising:
at least one second memory for storing executable instructions;
at least one second processor, configured to execute the executable instructions stored in the at least one second memory, to implement the information processing method of the blockchain network service platform according to claims 6 to 9.
14. A storage medium having stored thereon executable instructions for causing a processor to perform the method of claims 1-5 when the executable instructions are executed.
15. A storage medium having stored thereon executable instructions for causing a processor to perform the method of claims 6-9 when the executable instructions are executed.
CN202011334128.3A 2020-11-24 2020-11-24 Block chain network service platform, information processing method, equipment and storage medium Active CN112565211B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011334128.3A CN112565211B (en) 2020-11-24 2020-11-24 Block chain network service platform, information processing method, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011334128.3A CN112565211B (en) 2020-11-24 2020-11-24 Block chain network service platform, information processing method, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN112565211A true CN112565211A (en) 2021-03-26
CN112565211B CN112565211B (en) 2022-12-02

Family

ID=75043479

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011334128.3A Active CN112565211B (en) 2020-11-24 2020-11-24 Block chain network service platform, information processing method, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112565211B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107483446A (en) * 2017-08-23 2017-12-15 上海点融信息科技有限责任公司 Encryption method, equipment and system for block chain
CN108768630A (en) * 2018-05-25 2018-11-06 全链通有限公司 The encryption communication method and system of block chain node
WO2019052286A1 (en) * 2017-09-12 2019-03-21 广州广电运通金融电子股份有限公司 User identity verification method, apparatus and system based on blockchain
US20190386990A1 (en) * 2018-06-15 2019-12-19 Hon Hai Precision Industry Co., Ltd. Global unique device identification code distribution method
CN111680312A (en) * 2020-06-05 2020-09-18 宗陈星 Information processing method based on big data and block chain and network security cloud server

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107483446A (en) * 2017-08-23 2017-12-15 上海点融信息科技有限责任公司 Encryption method, equipment and system for block chain
WO2019052286A1 (en) * 2017-09-12 2019-03-21 广州广电运通金融电子股份有限公司 User identity verification method, apparatus and system based on blockchain
CN108768630A (en) * 2018-05-25 2018-11-06 全链通有限公司 The encryption communication method and system of block chain node
US20190386990A1 (en) * 2018-06-15 2019-12-19 Hon Hai Precision Industry Co., Ltd. Global unique device identification code distribution method
CN111680312A (en) * 2020-06-05 2020-09-18 宗陈星 Information processing method based on big data and block chain and network security cloud server

Also Published As

Publication number Publication date
CN112565211B (en) 2022-12-02

Similar Documents

Publication Publication Date Title
EP4047487A1 (en) File storage method, terminal, and storage medium
CN108965468B (en) Block chain network service platform, chain code installation method thereof and storage medium
US11770381B2 (en) Managing security groups for data instances
JP6581717B2 (en) Peer-to-peer synchronization protocol for multi-premises hosting of digital content items
Dykstra et al. Design and implementation of FROST: Digital forensic tools for the OpenStack cloud computing platform
Xu et al. Blockchain-based decentralized content trust for docker images
CN111294379B (en) Block chain network service platform, authority hosting method thereof and storage medium
CN111274268B (en) Internet of things data transmission method and device, medium and electronic equipment
US11122411B2 (en) Distributed, crowdsourced internet of things (IoT) discovery and identification using block chain
CN111737104A (en) Block chain network service platform, test case sharing method thereof and storage medium
JP2024505692A (en) Data processing methods, devices and computer equipment based on blockchain networks
WO2019184775A1 (en) Management data storage method and device, and storage medium
CN111694743A (en) Service system detection method and device
Aiftimiei et al. Towards next generations of software for distributed infrastructures: the European Middleware Initiative
Zhang et al. TEO: Ephemeral ownership for iot devices to provide granular data control
CN115694699A (en) Time delay parameter acquisition method and device, electronic equipment and storage medium
CN113011960A (en) Block chain-based data access method, device, medium and electronic equipment
CN112565211B (en) Block chain network service platform, information processing method, equipment and storage medium
Quamara et al. An In-depth Security and Performance Investigation in Hyperledger Fabric-configured Distributed Computing Systems
Schmieders et al. Architectural runtime models for privacy checks of cloud applications
Zhang Secure and Practical Splitting of IoT Device Functionalities
CN114579354A (en) Block chain network service platform, data storage method and storage medium
US10235678B1 (en) System and method for managing distributed offerings
CN115694802A (en) Random number generation method and device for block chain network service platform and storage medium
Skyttä Lightweight Machine to Machine Protocol as Part of Multiprotocol Device Management System

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
GR01 Patent grant
GR01 Patent grant