CN112333131B - Service providing method, block chain network service system and storage medium - Google Patents

Service providing method, block chain network service system and storage medium Download PDF

Info

Publication number
CN112333131B
CN112333131B CN201910718978.4A CN201910718978A CN112333131B CN 112333131 B CN112333131 B CN 112333131B CN 201910718978 A CN201910718978 A CN 201910718978A CN 112333131 B CN112333131 B CN 112333131B
Authority
CN
China
Prior art keywords
block chain
network
target
blockchain
identity information
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.)
Active
Application number
CN201910718978.4A
Other languages
Chinese (zh)
Other versions
CN112333131A (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 Zhenshi Information Technology Co Ltd
Original Assignee
Beijing Jingdong Zhenshi 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 Zhenshi Information Technology Co Ltd filed Critical Beijing Jingdong Zhenshi Information Technology Co Ltd
Priority to CN201910718978.4A priority Critical patent/CN112333131B/en
Publication of CN112333131A publication Critical patent/CN112333131A/en
Application granted granted Critical
Publication of CN112333131B publication Critical patent/CN112333131B/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/08Network architectures or network communication protocols for network security for authentication of entities
    • 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
    • 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
    • H04L67/1001Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/32Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials
    • H04L9/3247Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials involving digital signatures
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/50Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols using hash chains, e.g. blockchains or hash trees
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The embodiment of the invention provides a service providing method, which is applied to a block chain network service system, wherein the block chain service system comprises: the method comprises the following steps that a block chain service access layer, a plurality of block chain networks and a decentralized identity network are adopted, wherein the block chain service access layer comprises a block chain interaction module, and the method comprises the following steps: receiving a request message and identity information sent by an application access party through a block chain interaction module, and transmitting the request message and the identity information to corresponding target block chain networks in a plurality of block chain networks; the identity information is obtained by applying a centralized identity network application in an application access direction; requesting to a decentralized identity network to verify the validity of identity information through a target block chain network; and when the identity information passes the verification through the decentralized identity network, providing corresponding service to the application access party by using the request message through the target block chain network.

Description

Service providing method, block chain network service system and storage medium
Technical Field
The present invention relates to communications technologies, and in particular, to a service providing method, a block chain service network system, and a storage medium.
Background
Blockchain techniques and their applications are subverting existing traffic patterns. Various industries are actively exploring the implementation of their own services in block-chain networks, including financial institutions, government departments, traditional enterprises, internet companies, and so forth.
At present, a service architecture based on a single blockchain network is usually constructed, and different blockchain networks of different service architectures have respective identity information issuing and authentication mechanisms, so that the conditions of increased read-write time delay and high error rate are easily caused, the service performance of a blockchain is limited, and the identity authentication complexity is high.
Disclosure of Invention
The embodiment of the invention provides a service providing method, a block chain network service system and a storage medium, wherein the block chain network service system based on a plurality of block chain networks is constructed, and in the process of providing services by the block chain networks in the block chain network service system, the identity information of an application access party is verified based on a decentralized identity network, so that the block chain service performance is improved, and the complexity of identity authentication is reduced.
The technical scheme of the embodiment of the invention is realized as follows:
in a first aspect, an embodiment of the present invention provides a service providing method, and a service providing method, which is applied to a block chain network service system, where the block chain service system includes: a blockchain service access layer, the blockchain service access layer including a blockchain interaction module, a plurality of blockchain networks, and a decentralized identity network, the method comprising:
receiving a request message and identity information sent by an application access party through the block chain interaction module, and transmitting the request message and the identity information to corresponding target block chain networks in the plurality of block chain networks; the identity information is obtained by the application access direction applying to the decentralized identity network;
requesting the decentralized identity network to verify the validity of the identity information through the target block chain network;
and when the identity information is verified through the decentralized identity network, providing corresponding service to the application access party through the target block chain network by using the request message.
In the above method, the blockchain service access layer further includes a balanced fault tolerance module, and before transmitting the request packet and the identity information to corresponding target blockchain networks in the plurality of blockchain networks, and after receiving the request packet and the identity information sent by the application access party, the method further includes:
and when the request message is uplink data, selecting one block chain network from the plurality of block chain networks as the target block chain network through the balanced fault-tolerant module according to the load state of each block chain network in the plurality of block chain networks.
In the above method, the providing, by the target blockchain network, a corresponding service to the application access party by using the request packet includes:
when the request message is uplink data, signing and uplink the uplink data through the target block chain network;
and when the uplink is successful, executing the first feedback operation and/or the second feedback operation through the target block chain network to finish the uplink service.
In the above method, the performing a first feedback operation through the target blockchain network includes:
transmitting a successful uplink result of uplink and a target network identifier corresponding to the target block chain to the block chain interaction module through the target block chain network;
and transmitting the uplink result and the target network identifier to the application access party through the block chain interaction module to complete the first feedback operation.
In the above method, the block chain service access layer further includes a database module, and the performing a second feedback operation by the target block chain network includes:
and transmitting the uplink result, the uplink data and the target network identifier to a database of the database module for storage through the target block chain network, and finishing the second feedback operation.
In the above method, the request packet is an inquiry packet, the block chain service access layer further includes a database module, and before transmitting the request packet and the identity information to a corresponding target block chain network among the plurality of block chain networks, and after receiving the request packet and the identity information sent by the application access party, the method further includes:
when the request message is a query message, searching a target network identifier corresponding to the target blockchain network from other received information sent by the application access party through the blockchain interaction module;
when the target network identification is not found and not received through the block chain interaction module, the target network identification is found out from a stored database through the database module by using the query message;
receiving the target network identification transmitted by the database module through the block chain interaction module;
correspondingly, the transmitting the request packet and the identity information to a corresponding target blockchain network in the plurality of blockchain networks through the blockchain interaction module includes:
and transmitting the query message and the identity information to the target block chain network through the block chain interaction module according to the target network identifier.
In the above method, the providing, by the target blockchain network, a corresponding service to the application access party by using the request packet includes:
when the request message is a query message, performing query operation according to the query message through the target block chain network, and transmitting the queried target data to the block chain interaction module;
and transmitting the target data to the application access party through the block chain interaction module to finish the query service.
In a second aspect, an embodiment of the present invention provides a block chain network service system, where the system includes: a blockchain service access layer, a plurality of blockchain networks, and a decentralized identity network, the blockchain service access layer including a blockchain interaction module,
the block chain interaction module is used for receiving a request message and identity information sent by an application access party and transmitting the request message and the identity information to corresponding target block chain networks in the plurality of block chain networks; the identity information is obtained by the application access direction applying to the decentralized identity network;
the target block chain network is used for requesting the decentralized identity network to verify the validity of the identity information;
and the target block chain network is also used for providing corresponding service for the application access party by using the request message when the decentralized identity network passes the identity information verification.
In the above system, the request message is uplink data, the blockchain service access layer further comprises a balanced fault tolerance module,
and the balanced fault-tolerant module is configured to select one blockchain network from the multiple blockchain networks as the target blockchain network according to a load state of each blockchain network in the multiple blockchain networks when the request message is uplink data.
In the system, the target block chain network is specifically configured to, when the request message is uplink data, sign and uplink the uplink data; and when the uplink is successful, executing the first feedback operation and/or the second feedback operation to finish the uplink service.
In the system, the target block chain network is specifically configured to transmit a successful uplink result and a target network identifier corresponding to the target block chain to the block chain interaction module;
the block chain interaction module is further configured to transmit the uplink result and the target network identifier to the application access party, so as to complete the first feedback operation.
In the above system, the block chain service access layer further comprises a database module,
and the target block chain network is specifically configured to transmit the uplink result, the uplink data and the target network identifier to a database of the database module for storage, so as to complete the second feedback operation.
In the system, the request message is a query message, the block chain service access layer further comprises a database module,
the block chain interaction module is further configured to, when the request message is an inquiry message, search for a target network identifier corresponding to the target block chain network from other information received from the application access party;
the database module is used for searching the target network identifier from a stored database by using the query message when the target network identifier is not searched by the block chain interaction module;
the block chain interaction module is also used for receiving the target network identification transmitted by the database module;
correspondingly, the block chain interaction module is specifically configured to transmit the query packet and the identity information to the target block chain network according to the target network identifier.
In the system, the target block chain network is specifically configured to perform a query operation according to the query packet, and transmit the queried target data to the block chain interaction module;
and the block chain interaction module is also used for transmitting the target data to the application access party to develop query service.
In a third aspect, an embodiment of the present invention provides a storage medium storing executable instructions, which when executed, are configured to cause a processor to execute the service providing method.
It can be seen that, the service providing method in the embodiment of the present invention is applied to a blockchain network service system, and the blockchain service system includes: the system comprises a block chain service access layer, a plurality of block chain networks and a decentralized identity network, wherein the block chain service access layer comprises a block chain interaction module, and transmits a request message and identity information received from an application access party to corresponding target block chain networks in the plurality of block chain networks through the block chain interaction module; the identity information is obtained by applying for a centralized identity network from an application access direction; requesting to a decentralized identity network to verify the validity of identity information through a target block chain network; and when the identity information passes the verification through the decentralized identity network, providing corresponding service to the application access party by using the request message through the target block chain network.
The embodiment of the invention is applied to realize the following beneficial effects:
the block chain network service system comprises a plurality of block chain networks, so that the block chain network service system has better block chain service performance compared with a single block chain network service system, and in the process of providing service by the block chain network in the block chain network service system, the identity information of an application access party is verified based on a decentralized identity network, so that the complexity of identity authentication is reduced.
Drawings
Fig. 1 is a first structural diagram of a block chain network service system according to an embodiment of the present invention;
fig. 2 is a schematic flow chart of a service providing method according to an embodiment of the present invention;
fig. 3 is a flowchart illustrating an uplink procedure according to an embodiment of the present invention;
fig. 4 is a flowchart illustrating a query process according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a block chain network service system according to an embodiment of the present invention.
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.
The invention provides a block chain network service system. Fig. 1 is a first schematic structural diagram of a block chain network service system according to an embodiment of the present invention. As shown in fig. 1, the block chain network service system includes: a blockchain service access layer, a plurality of blockchain networks, and a decentralized identity network.
It should be noted that, in the embodiment of the present invention, the blockchain service access layer is used for performing access of the application access party, interaction with the multiple blockchain networks at the bottom, and management. The block chain service access layer may include: and the module chain interaction module, the balanced fault-tolerant module, the database module and the like are used for providing corresponding basic services. The specific block chain service access layer includes modules that can be established according to actual requirements, and the embodiment of the present invention is not limited.
It should be noted that, in the embodiment of the present invention, the blockchain network service system includes a plurality of blockchain networks, and each blockchain network has a corresponding network identifier for differentiation. In each of a plurality of blockchain networks, a multi-party peer (peer) node may be deployed. The number of the specific blockchain networks and the peer nodes deployed in each blockchain network are not limited in the embodiments of the present invention.
It should be noted that, in the embodiment of the present invention, a Decentralized Identity (DId) network is a personal autonomous digital Identity network proposed by W3C. The application access party can apply for obtaining the self identity information from the DId network, and is an open standard for realizing the identity independent management through the digital identity which can be verified. The identity information of the application access party is stored by the application access party and the DId network, but not by each block chain network in the prior art, so that the stateless of a plurality of block chain networks is realized. In addition, identity information obtained by all application access parties from the DId network can freely access any application by using autonomous identity as long as the corresponding standard protocol is followed, and the problem of information leakage or acquisition by a third party is not required to be worried about.
The service providing method provided by the embodiment of the invention is described in detail below based on the above block chain network service system.
Fig. 2 is a flowchart illustrating a service providing method according to an embodiment of the present invention. As shown in fig. 2, the method mainly comprises the following steps:
s201, receiving a request message and identity information sent by an application access party through a block chain interaction module, and transmitting the request message and the identity information to corresponding target block chain networks in a plurality of block chain networks; the identity information is obtained by applying the application access direction to centralize the identity network application.
In the embodiment of the present invention, in the blockchain network service system, the blockchain interaction module of the blockchain service access layer may receive the request message and the identity information sent by the application access party, and transmit the request message and the identity information to the corresponding target blockchain network in the plurality of blockchain networks.
It should be noted that, in the embodiment of the present invention, the block chain interaction module may first receive the request message and the identity information transmitted by the application access party, and further transmit the request message and the identity information to the target block chain network. The block chain network can provide corresponding service for the application access party by using the request message in a plurality of block chain networks in the target block chain network.
It should be noted that, in the embodiment of the present invention, before sending the request packet and the identity information to the blockchain interaction module, the application access side needs to apply for obtaining the identity information of the application access side from the decentralized identity network.
It should be noted that, in the embodiment of the present invention, the request message may be an uplink data or an inquiry message. Of course, other information related to the requested service may also be present. The specific embodiments of the present invention are not limited.
It is understood that, in the embodiment of the present invention, the blockchain interaction module needs to determine the target blockchain network from the plurality of blockchain networks before transmitting the request message and the identity information to the corresponding target blockchain network.
Specifically, in the embodiment of the present invention, before the blockchain interaction module transmits the request message and the identity information to the target blockchain network, after receiving the request message and the identity information, when the request message is uplink data, the balanced fault-tolerant module of the blockchain service access layer selects one blockchain network from the multiple blockchain networks as the target blockchain network according to the load state of each blockchain network in the multiple blockchain networks.
It is understood that, in the embodiment of the present invention, if the application access side initiates an uplink request, i.e. uplink data is transmitted to the block chain interworking module to request uplink data, a block chain network needs to be allocated for uplink data for data uplink. Therefore, the balanced fault-tolerant module can select the block chain network most suitable for the uplink from the load states of all the block chain networks to serve as the corresponding target block chain network.
It should be noted that, in the embodiment of the present invention, the load status of the blockchain network may include connectivity, processing capability, and current queuing condition of the blockchain network, and of course, may also include other related information, and the embodiment of the present invention is not limited.
Specifically, in the embodiment of the present invention, before the blockchain interaction module transmits the request message and the identity information to the target blockchain network, after receiving the request message and the identity information, when the request message is a query message, the blockchain interaction module searches for a target network identifier corresponding to the target blockchain network from other received information sent by the application access party; when the block chain interaction module does not find the target network identifier, the target network identifier is found out from a stored database by utilizing the query message through the database module; and receiving the target network identification transmitted by the database module through the block chain interaction module. Correspondingly, the transmitting the request message and the identity information to a corresponding target block chain network in a plurality of block chain networks through the block chain interaction module comprises: and transmitting the query message and the identity information to a target block chain network through a block chain interaction module according to the target network identifier.
It should be noted that, in the embodiment of the present invention, the target blc actually applies the blc to which the access-related uplink data is linked before the query, so that the query message needs to be sent to the target blc during the query process to perform the data query.
It can be understood that, in the embodiment of the present invention, when the application access side initiates the data query request, the application access side may send not only the query packet and the identity information, but also a target network identifier corresponding to the target block chain network, and the block chain interaction module may receive the target network identifier, thereby determining the target block chain network, and finally performing data query through the target block chain network. Of course, the application access side may not send the target network identifier, and at this time, the database module queries the target network identifier from the stored data by using the query message and sends the target network identifier to the block chain interaction module.
It should be noted that, in the embodiment of the present invention, if the database module does not find the target network identifier from the data stored in the database module according to the query packet, the information that is not found needs to be returned to the application access party.
S202, the validity of the identity information is requested to be verified from the decentralized identity network through the target block chain network.
In the embodiment of the invention, after receiving the request message and the identity information of the application access party forwarded by the block chain interaction module, the target block chain network can request the DId network to verify the validity of the identity information.
It should be noted that, in the embodiment of the present invention, the target block chain network includes multiple peer nodes, and the peer nodes may request the DId network to verify the validity of the identity information.
It can be understood that, in the embodiment of the present invention, the application access side applies for the corresponding identity information from the DId network, and the DId network also stores the identity information of the application access side. When the peer node of the target block chain network requests the DId network to verify the identity information, the DId network can actually perform related matching comparison and other processing on the identity information, so as to determine whether the identity information is legal or not, and send verification result information to the peer node of the target block chain network. Specifically, when the DId network determines that the identity information is legal, a verification passing message is returned to the target block chain network, when the target block chain network receives the verification passing message, the target block chain network can know that the identity information is legal, so that subsequent service operation is performed, correspondingly, when the target block chain network determines that the identity information is illegal, the DId network returns a verification failure message to the target block chain network, and when the target block chain network receives the verification failure message, the target block chain network can know that the identity information is illegal, so that the subsequent service operation is terminated.
And S203, when the identity information is verified through the decentralized identity network, providing corresponding service to the application access party through the target block chain network by using the request message.
In the embodiment of the invention, when the DId network passes the authentication of the identity information, the target blockchain network can provide corresponding services to the application access party by using the request message.
Specifically, in the embodiment of the present invention, providing a corresponding service to an application access party by using a request packet through a target blockchain network includes: when the request message is uplink data, signing and uplink data through a target block chain network; and when the uplink is successful, the first feedback operation and/or the second feedback operation are/is executed through the target block chain network, and the uplink service is completed.
It should be noted that, in the embodiment of the present invention, the request message is uplink data, and actually, the target block chain network needs to uplink the uplink data, that is, add the uplink data to the block chain of the target block chain network.
It should be noted that, in the embodiment of the present invention, when the target blockchain network fails to uplink the uplink data, the failure result may be returned to the equalization fault-tolerant module, and the equalization fault-tolerant module may continue to select one blockchain network from the multiple blockchain networks again to uplink the uplink data again. In addition, if all the blockchain networks fail to uplink the uplink data, the balanced fault-tolerant module can return the results of all the uplink failures to the application access side.
Specifically, in the embodiment of the present invention, when the uplink is successful, the first feedback operation is performed by the target block chain network, including: transmitting the uplink result and a target network identifier corresponding to the target block chain to a block chain interaction module through a target block chain network; and transmitting the uplink result and the target network identifier to the application access party through the block chain interaction module to complete the first feedback operation. When the uplink is successful, executing a second feedback operation through the target block chain network, wherein the second feedback operation comprises the following steps: and transmitting the uplink result, the uplink data and the target network identifier to a database of the database module for storage through the target block chain network, and finishing the second feedback operation.
It is understood that, in the embodiment of the present invention, after the target blk network successfully uplinks the uplink data, the target blk network may transmit the successful uplink result and the target network identifier to the blk network interworking module, and the blk network interworking module may forward the target blk network identifier to the application access party, so that the application access party knows that the uplink data is successfully uplinked and the specific blk network to which the uplink data is uplinked. Of course, the target block chain network may also transmit the uplink result, the uplink data, and the target network identifier to the database module for data storage, so as to provide support for services such as subsequent queries.
Specifically, in the embodiment of the present invention, if the request packet is an inquiry packet, the method for providing a corresponding service to the application access party by using the request packet through the target block chain network includes: performing query operation according to the query message through a target block chain network, and transmitting the queried target data to a block chain interaction module; and transmitting the target data to the application access party through the block chain interaction module.
It is understood that, in the embodiment of the present invention, the request packet is a query packet, and the target blockchain network may perform a query operation according to the query packet, so as to provide the queried target data to the application access party. The data interaction between the target block chain network and the application access party is realized by forwarding through a block chain interaction module.
Fig. 3 is a flowchart illustrating an uplink procedure according to an embodiment of the present invention. As shown in fig. 3, the application access side first applies for identity information from the DId network, and then initiates an uplink request to the block chain service access layer. The balanced fault-tolerant module of the block chain service access layer firstly selects a block chain network according to the network connectivity, the processing capacity and the current queuing condition of each block chain network in a plurality of block chain networks, and selects a target block chain network from the block chain networks. And the block chain service access layer calls the determined target block chain network and transmits the uplink data and the identity information sent by the application access party to the target block chain network. The target block chain network carries out validity verification on the identity information based on the DId network. If the identity information of the application access party is legal, the target block chain network signs and chains the chain data, and after the chain is successfully linked, the chain result and the target network identification of the target block chain network are returned to the application access party through the block chain interaction module, and/or the target block chain network directly stores the chain result, the target network identification and the chain data in a database. And if the identity information of the application access party is illegal, the target block chain network returns the information of the identity authentication failure to the application access party through the block chain interaction module. In addition, if the uplink fails, the target blockchain network returns the information of the uplink failure to the balanced fault-tolerant module through the blockchain interaction module so as to reselect a new blockchain network for uplink.
Fig. 4 is a flowchart illustrating a query process according to an embodiment of the present invention. As shown in fig. 4, when the block chain interaction module receives a target network identifier of a target block chain network sent by an application access party, the received query message and the received identity information are sent to the target block chain network according to the target network identifier. And the target block chain network carries out validity verification on the received identity information based on the DId network, and when the verification is passed, the target block chain network carries out query operation by using the received query message and returns a query result to the application access party through the block chain interaction module. When the application access side does not send the target network identification, the database module searches the target network identification from the database according to the query message, and the block chain interaction module can transmit the received query message and the identity information to the target block chain network so as to perform subsequent identity authentication and query operations. Of course, if the database module finds the target network identifier, the database module returns the information which is not found to the application access party.
The embodiment of the invention provides a service providing method, which is applied to a block chain network service system, wherein the block chain service system comprises: the system comprises a block chain service access layer, a plurality of block chain networks and a decentralized identity network, wherein the block chain service access layer comprises a block chain interaction module, receives a request message and identity information sent by an application access party through the block chain interaction module, and transmits the request message and the identity information to corresponding target block chain networks in the plurality of block chain networks; the identity information is obtained by applying a centralized identity network application in an application access direction; requesting to a decentralized identity network to verify the validity of identity information through a target block chain network; and when the identity information passes the verification through the decentralized identity network, providing corresponding service to the application access party by using the request message through the target block chain network. According to the technical scheme provided by the embodiment of the invention, the block chain network service system based on a plurality of block chain networks is constructed, and in the process that the block chain network in the block chain network service system provides services, the verification of the identity information of the application access party is carried out based on the decentralized identity network, so that the block chain service performance is improved, and the complexity of identity authentication is reduced.
The embodiment of the invention provides a block chain network service system. Fig. 5 is a schematic structural diagram of a block chain network service system according to an embodiment of the present invention. As shown in fig. 5, the system includes: a blockchain service access layer 501, a plurality of blockchain networks 502, and a decentralized identity network 503, the blockchain service access layer 501 including a blockchain interaction module 5011,
the blockchain interaction module 5011 is configured to receive a request packet and identity information sent by an application access party, and transmit the request packet and the identity information to a corresponding target blockchain network 5021 in the multiple blockchain networks 502; the identity information is applied by the application access direction to the decentralized identity network 503;
the target block chaining network 5021, configured to request the decentralized identity network 503 to verify the validity of the identity information;
the target blockchain network 5021 is further configured to provide corresponding services to the application access party by using the request message when the decentralized identity network verifies the identity information.
Optionally, the block chain service access layer 501 further includes a balanced fault tolerance module 5012,
the balanced fault tolerance module 5012 is configured to select one of the multiple blockchain networks 502 as the target blockchain network 5021 according to a load status of each blockchain network in the multiple blockchain networks 502 when the request packet is uplink data.
Optionally, the target blockchain network 5021 is specifically configured to sign and uplink the uplink data when the request message is uplink data; and when the uplink is successful, executing the first feedback operation and/or the second feedback operation to finish the uplink service.
Optionally, the target blockchain network 5021 is specifically configured to transmit an uplink result and a target network identifier corresponding to the target blockchain 5021 to the blockchain interaction module 5011;
the block chain interaction module 5011 is further configured to transmit the uplink result and the target network identifier to the application access party, so as to complete the first feedback operation.
Optionally, the block chain service access layer 501 further includes a database module 5013,
the target block chain network 5021 is specifically configured to transmit the uplink result, the uplink data and the target network identifier to the database of the database module 5013 for storage, so as to complete the second feedback operation.
Optionally, the request message is a query message, the block chain service access layer 501 further includes a database module 5013,
the blockchain interaction module 5011 is further configured to, when the request packet is a query packet, search for a target network identifier corresponding to the target blockchain network from other information sent by the application access party;
the database module 5013 is configured to, when the target network identifier is not found by the block chain interaction module 5011, find the target network identifier from a stored database by using the query packet;
the block chain interaction module 5011 is further configured to receive the target network identifier transmitted by the database module 5013;
correspondingly, the blockchain interaction module 5011 is specifically configured to transmit the query packet and the identity information to the target blockchain network 5021 according to the target network identifier.
Optionally, the target blockchain network 5021 is specifically configured to perform a query operation according to the query packet, and transmit the queried target data to the blockchain interaction module 5011;
the block chain interaction module 5011 is further configured to transmit the target data to the application access party, so as to complete a query service.
The embodiment of the invention provides a block chain network service system, which comprises: the system comprises a block chain service access layer, a plurality of block chain networks and a decentralized identity network, wherein the block chain service access layer comprises a block chain interaction module, receives a request message and identity information sent by an application access party through the block chain interaction module, and transmits the request message and the identity information to corresponding target block chain networks in the plurality of block chain networks; the identity information is obtained by applying for a centralized identity network from an application access direction; requesting to a decentralized identity network to verify the validity of identity information through a target block chain network; and when the identity information passes the verification through the decentralized identity network, providing corresponding service to the application access party by using the request message through the target block chain network. According to the technical scheme provided by the embodiment of the invention, the block chain network service system based on a plurality of block chain networks is constructed, and in the process of providing services by the block chain network in the block chain network service system, the identity information of the application access party is verified based on the decentralized identity network, so that the block chain service performance is improved, and the complexity of identity authentication is reduced.
An embodiment of the present invention further provides a storage medium storing executable instructions, which when executed, are configured to cause a processor to execute the service providing method.
The above description is only an example of the present invention, and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, and improvement made within the spirit and scope of the present invention shall fall within the protection scope of the present invention.

Claims (10)

1. A service providing method, applied to a blockchain network service system, the blockchain network service system comprising: a blockchain service access layer, the blockchain service access layer including a blockchain interaction module, a plurality of blockchain networks, and a decentralized identity network, the method comprising:
receiving a request message and identity information sent by an application access party through the block chain interaction module, and transmitting the request message and the identity information to corresponding target block chain networks in the plurality of block chain networks; the identity information is obtained by the application access direction through the decentralized identity network application;
requesting the decentralized identity network to verify the validity of the identity information through the target block chain network;
and when the identity information is verified through the decentralized identity network, providing corresponding service to the application access party through the target block chain network by using the request message.
2. The method of claim 1, wherein the blockchain service access layer further comprises a balanced fault tolerance module, and wherein before transmitting the request message and the identity information to a corresponding target blockchain network of the plurality of blockchain networks, and after receiving the request message and the identity information sent by the application access party, the method further comprises:
and when the request message is uplink data, selecting one block chain network from the plurality of block chain networks as the target block chain network through the balanced fault-tolerant module according to the load state of each block chain network in the plurality of block chain networks.
3. The method according to claim 1, wherein the providing the corresponding service to the application access party through the target blockchain network by using the request message comprises:
when the request message is uplink data, the uplink data is signed and uplink is carried out through the target block chain network;
and when the uplink is successful, executing the first feedback operation and/or the second feedback operation through the target block chain network to finish the uplink service.
4. The method of claim 3, wherein performing a first feedback operation over the target blockchain network comprises:
transmitting a successful uplink result of uplink and a target network identifier corresponding to the target block chain to the block chain interaction module through the target block chain network;
and transmitting the uplink result and the target network identifier to the application access party through the block chain interaction module to complete the first feedback operation.
5. The method of claim 4, wherein the blockchain service access layer further comprises a database module, and wherein performing a second feedback operation over the target blockchain network comprises:
and transmitting the uplink result, the uplink data and the target network identifier to a database of the database module for storage through the target block chain network, and finishing the second feedback operation.
6. The method of claim 1, wherein the blockchain service access layer further comprises a database module, and wherein before transmitting the request message and the identity information to a corresponding target blockchain network of the plurality of blockchain networks, after receiving the request message and the identity information sent by the application access party, the method further comprises:
when the request message is a query message, searching a target network identifier corresponding to the target blockchain network from other received information sent by the application access party through the blockchain interaction module;
when the target network identification is not found through the block chain interaction module, the target network identification is found out from a stored database through the database module by using the query message;
receiving the target network identification transmitted by the database module through the module chain interaction module;
correspondingly, the transmitting the request packet and the identity information to a corresponding target blockchain network in the plurality of blockchain networks through the blockchain interaction module includes:
and transmitting the query message and the identity information to the target block chain network through the block chain interaction module according to the target network identifier.
7. The method according to claim 1, wherein the providing the corresponding service to the application access party through the target blockchain network by using the request message comprises:
when the request message is a query message, performing query operation according to the query message through the target block chain network, and transmitting the queried target data to the block chain interaction module;
and transmitting the target data to the application access party through the block chain interaction module to finish query service.
8. A block chain network service system, the system comprising: a blockchain service access layer, a plurality of blockchain networks, and a decentralized identity network, the blockchain service access layer including a blockchain interaction module,
the block chain interaction module is used for receiving a request message and identity information sent by an application access party and transmitting the request message and the identity information to corresponding target block chain networks in the plurality of block chain networks; the identity information is obtained by the application access direction applying to the decentralized identity network;
the target block chain network is used for requesting the decentralized identity network to verify the validity of the identity information;
and the target block chain network is also used for providing corresponding service for the application access party by using the request message when the decentralized identity network passes the identity information verification.
9. The system of claim 8, wherein the blockchain service access layer further comprises a balanced fault tolerance module,
and the balanced fault-tolerant module is configured to select one blockchain network from the multiple blockchain networks as the target blockchain network according to a load state of each blockchain network in the multiple blockchain networks when the request message is uplink data.
10. A storage medium having stored thereon executable instructions for causing a processor to perform the method of any one of claims 1-7 when the executable instructions are executed.
CN201910718978.4A 2019-08-05 2019-08-05 Service providing method, block chain network service system and storage medium Active CN112333131B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910718978.4A CN112333131B (en) 2019-08-05 2019-08-05 Service providing method, block chain network service system and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910718978.4A CN112333131B (en) 2019-08-05 2019-08-05 Service providing method, block chain network service system and storage medium

Publications (2)

Publication Number Publication Date
CN112333131A CN112333131A (en) 2021-02-05
CN112333131B true CN112333131B (en) 2023-04-18

Family

ID=74319582

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910718978.4A Active CN112333131B (en) 2019-08-05 2019-08-05 Service providing method, block chain network service system and storage medium

Country Status (1)

Country Link
CN (1) CN112333131B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115022053A (en) * 2022-06-08 2022-09-06 京东科技控股股份有限公司 Method, device and system for accessing block chain network

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018076759A1 (en) * 2016-10-27 2018-05-03 上海亿账通区块链科技有限公司 Block chain-based multi-chain management method and system, electronic device, and storage medium
CN108512935A (en) * 2018-04-16 2018-09-07 腾讯科技(深圳)有限公司 data service system, method, server and computer readable storage medium
CN108702622A (en) * 2017-11-30 2018-10-23 深圳前海达闼云端智能科技有限公司 Mobile network's access authentication method, device, storage medium and block chain node
CN109347955A (en) * 2018-10-19 2019-02-15 北京奇艺世纪科技有限公司 A kind of block chain network system and information processing method
CN109754321A (en) * 2018-12-27 2019-05-14 石更箭数据科技(上海)有限公司 A kind of data processing method and its device, medium, terminal
CN109785136A (en) * 2019-01-30 2019-05-21 北京京东尚科信息技术有限公司 A kind of transaction processing method of block chain, client and block chain network
CN109981582A (en) * 2019-02-26 2019-07-05 重庆邮电大学 A kind of internet of things equipment identity identifying method based on block chain

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018076759A1 (en) * 2016-10-27 2018-05-03 上海亿账通区块链科技有限公司 Block chain-based multi-chain management method and system, electronic device, and storage medium
CN108702622A (en) * 2017-11-30 2018-10-23 深圳前海达闼云端智能科技有限公司 Mobile network's access authentication method, device, storage medium and block chain node
CN108512935A (en) * 2018-04-16 2018-09-07 腾讯科技(深圳)有限公司 data service system, method, server and computer readable storage medium
CN109347955A (en) * 2018-10-19 2019-02-15 北京奇艺世纪科技有限公司 A kind of block chain network system and information processing method
CN109754321A (en) * 2018-12-27 2019-05-14 石更箭数据科技(上海)有限公司 A kind of data processing method and its device, medium, terminal
CN109785136A (en) * 2019-01-30 2019-05-21 北京京东尚科信息技术有限公司 A kind of transaction processing method of block chain, client and block chain network
CN109981582A (en) * 2019-02-26 2019-07-05 重庆邮电大学 A kind of internet of things equipment identity identifying method based on block chain

Also Published As

Publication number Publication date
CN112333131A (en) 2021-02-05

Similar Documents

Publication Publication Date Title
CN107291862A (en) Business datum storage method, device, storage medium and electronic equipment
CN112953821B (en) Message transmission method and device
CN109711192B (en) Method and system for inter-node transaction of block chain system
CN101714996A (en) Authentication system and method based on peer-to-peer computing network
US20120096136A1 (en) Method and apparatus for sharing contents using information of group change in content oriented network environment
CN111245910B (en) Block chain light node multi-copy deployment method
CN112333131B (en) Service providing method, block chain network service system and storage medium
US20130318244A1 (en) System and method for assigning server to terminal and efficiently delivering messages to the terminal
US20180070401A1 (en) Method and device for associating user with group
CN106789664B (en) Route aggregation method and device
CN109525633B (en) Block chain network, message sending method and message receiving method based on block chain network
CN112651044B (en) Business transaction method, system and storage medium based on block chain technology
WO2018036521A1 (en) Resource adjustment method, apparatus, and system
CN103870471B (en) Two degree of good friend's inquiry systems, method and apparatus
CN100561912C (en) Mobile proxy safety route method based on group's signature
CN108076130B (en) Cross-platform user management method and device for mobile Internet
CN109842554A (en) Method for routing, device, equipment and the storage medium of device service
CN110198221A (en) A kind of implementation method of load balancing, apparatus and system
CN108848156B (en) Access gateway processing method, device and storage medium
CN114172958A (en) Private computing node, system, method, apparatus, and storage medium
CN116055051A (en) Data processing method based on block chain network and related equipment
US20040006622A1 (en) Optimized process for balancing load for data mirroring
US20110029770A1 (en) Radio communication system and authentication processor selection method
WO2023142997A1 (en) Constraint device in edge computing
CN114024749B (en) Industrial equipment logic cross-domain access authentication method based on inter-domain cooperation of central nodes

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