CN111935174A - Block chain service system docking method, device and equipment based on middleware gateway - Google Patents

Block chain service system docking method, device and equipment based on middleware gateway Download PDF

Info

Publication number
CN111935174A
CN111935174A CN202010911083.5A CN202010911083A CN111935174A CN 111935174 A CN111935174 A CN 111935174A CN 202010911083 A CN202010911083 A CN 202010911083A CN 111935174 A CN111935174 A CN 111935174A
Authority
CN
China
Prior art keywords
block chain
service system
certificate
middleware gateway
middleware
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010911083.5A
Other languages
Chinese (zh)
Inventor
吴森
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Saiante Technology Service Co Ltd
Original Assignee
Ping An International Smart City 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 Ping An International Smart City Technology Co Ltd filed Critical Ping An International Smart City Technology Co Ltd
Priority to CN202010911083.5A priority Critical patent/CN111935174A/en
Publication of CN111935174A publication Critical patent/CN111935174A/en
Pending legal-status Critical Current

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
    • H04L63/0823Network architectures or network communication protocols for network security for authentication of entities using certificates
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/66Arrangements for connecting between networks having differing types of switching systems, e.g. gateways
    • 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
    • H04L63/083Network architectures or network communication protocols for network security for authentication of entities using passwords
    • H04L63/0846Network architectures or network communication protocols for network security for authentication of entities using passwords using time-dependent-passwords, e.g. periodically changing passwords
    • 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/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • 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/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/562Brokering proxy services
    • 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

Abstract

The application discloses a block chain service system docking method, a device and equipment based on a middleware gateway, wherein the method comprises the following steps: a middleware gateway receives a block chain network interaction request sent by a service system through an http interface and forwards the interaction request to a block chain network, wherein the middleware gateway integrates a block chain SDK; and the middleware gateway acquires the processing result of the block chain network for the interactive request and returns the processing result to the service system through the http interface. According to the method and the system, the interface exposed in a common web form is provided for the service system in a middleware gateway form, the service system does not need to repeatedly consider how to integrate each module of the block chain, the threshold of a developer for butting the block chain is reduced, the complexity of the service system for butting the block chain is reduced, the service speed of the enterprise development block chain can be increased, the efficiency is improved, and the cost is reduced. The application is suitable for science and technology finance field.

Description

Block chain service system docking method, device and equipment based on middleware gateway
Technical Field
The present application relates to the field of blockchain, and in particular, to a method, an apparatus, a device, and a storage medium for interfacing a blockchain service system based on a middleware gateway.
Background
The block chain network is a network structure with an independent operation mechanism and is composed of a group of dynamic nodes, wherein the functions of the nodes are different, and the nodes comprise a sequencing node, an accounting node and a submitting node. The intelligent contract deployment also needs a series of operations, such as installing contracts, instantiating contracts, calling contracts, upgrading contracts and other main processes. Meanwhile, the operation mechanism of the business system is greatly different from the mechanism of the block chain network, so that the block chain cannot be directly accessed in a manner similar to web service, a certain processing needs to be performed on the certificate and the communication manner, the business system needs to manage the certificate storage by itself and establish the corresponding relationship between the common user account and the block chain certificate identity, otherwise, the block chain cannot be used for submitting data. Meanwhile, the service system needs to manage the connection information of each node of the block chain, the communication mode of the block chain is different from that of web application, and if the block chain connection information does not exist, the service system cannot accurately find the node for communication. The business system needs to integrate sdk services, otherwise the blockchain function cannot be called directly. The calling block chain function is coupled with the real service logic deeply, which is not beneficial to maintenance. These difficulties have led to the great difficulty of integrating business systems with blockchain services.
Disclosure of Invention
The present application mainly aims to provide a method, an apparatus, a device and a storage medium for interfacing a blockchain service system based on a middleware gateway, and aims to solve the problem of difficult interfacing between a blockchain service and a service system.
In order to achieve the above object, the present application provides a method for interfacing a blockchain service system based on a middleware gateway, including:
a middleware gateway receives a block chain network interaction request sent by a service system through an http interface and forwards the interaction request to a block chain network, wherein the middleware gateway integrates a block chain SDK;
and the middleware gateway acquires the processing result of the block chain network for the interactive request and returns the processing result to the service system through the http interface.
Further, the step that the middleware gateway receives the block chain network interaction request sent by the service system through the http interface and forwards the block chain network interaction request to the block chain network includes:
acquiring account information of a service system network interaction request initiator;
performing authority identification on the account information;
if the authority passes the authority identification, inquiring the certificate in an account number and certificate mapping relation database in the middleware gateway;
and if the corresponding certificate is not inquired, accessing a block chain certificate management mechanism, signing a certificate for the account and storing the mapping relation between the account and the certificate in a database.
Further, the step of performing authority authentication on the account information includes:
acquiring an identity identification code of the account information;
acquiring a first dynamic verification code input by an account operator;
inquiring a second dynamic verification code in a dynamic verification code dataset corresponding to the account information in a database according to the identity identification code;
and judging whether the first dynamic verification code is matched with the second dynamic verification code, and if so, passing the authority authentication.
Further, the step that the middleware gateway receives the block chain network interaction request sent by the service system through the http interface and forwards the request to the block chain network further includes:
identifying the type of a block chain network interaction request sent by the service system, and calling a corresponding function interface of the middleware gateway;
and sending the interaction request to a corresponding node in a block chain through the corresponding functional interface.
Further, the middleware gateway is independently deployed outside the blockchain network.
Further, the middleware gateway is integrally deployed in a blockchain network.
The embodiment of the present application further provides a device for interfacing a block chain service system based on a middleware gateway, including:
the system comprises a sending module, a middleware gateway and a service system, wherein the sending module is used for receiving a block chain network interaction request sent by the service system through an http interface by the middleware gateway and forwarding the interaction request to a block chain network, and the middleware gateway integrates a block chain SDK;
and the return module is used for acquiring the processing result of the block chain network for the interaction request by the middleware gateway and returning the processing result to the service system through the http interface.
Further, the sending module includes:
the account information acquisition module is used for acquiring the account information of a service system network interaction request initiator;
the authority identification module is used for carrying out authority identification on the account information;
the certificate inquiry module is used for inquiring the certificate in an account number and certificate mapping relation database in the middleware gateway if the certificate passes the authority identification;
and the certificate issuing module is used for accessing the block chain certificate management mechanism if the corresponding certificate is not inquired, issuing the certificate for the account and storing the mapping relation between the account and the certificate in a database.
The present application further provides a computer device comprising a memory and a processor, the memory storing a computer program, the processor implementing the steps of any of the above methods when executing the computer program.
The present application also provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, carries out the steps of the method of any of the above.
According to the block chain service system docking method, device, equipment and readable storage medium based on the middleware gateway, an interface exposed in a common web form is provided for a service system in the form of the middleware gateway, the service system does not need to repeatedly consider how to integrate each module of the block chain, and the problem of extra data management does not need to be solved, so that the threshold of developers for docking the block chain is reduced, the complexity of the service system for docking the block chain is reduced, the service speed of an enterprise development block chain can be increased, the efficiency is improved, and the cost is reduced.
Drawings
Fig. 1 is a schematic flowchart of a block chain service system docking method based on a middleware gateway according to an embodiment of the present application;
fig. 2 is a schematic block diagram illustrating a structure of a block chain service system docking device based on a middleware gateway according to an embodiment of the present application;
fig. 3 is a block diagram illustrating a structure of a computer device according to an embodiment of the present application.
The implementation, functional features and advantages of the objectives of the present application will be further explained with reference to the accompanying drawings.
Detailed Description
Before further detailed description of the embodiments of the present application, terms and expressions referred to in the embodiments of the present application will be described, and the terms and expressions referred to in the embodiments of the present application will be used for the following explanation.
1) Transactions (transactions), equivalent to the computer term "Transaction," include operations that need to be committed to a blockchain network for execution and do not refer solely to transactions in the context of commerce, which embodiments of the present application follow in view of the convention colloquially used in blockchain technology.
For example, a deployment (deployment) transaction is used to install a specified smart contract to a node in a blockchain network and prepare for being invoked; the Invoke (Invoke) transaction is used to append records of the transaction in the blockchain by invoking the smart contract and to perform operations on the state database of the blockchain, including update operations (including adding, deleting, and modifying key-value pairs in the state database) and query operations (i.e., querying key-value pairs in the state database).
2) A Block chain (Blockchain) is a storage structure for encrypted, chained transactions formed from blocks (blocks).
For example, the header of each block may include hash values of all transactions in the block, and also include hash values of all transactions in the previous block, so as to achieve tamper resistance and forgery resistance of the transactions in the block based on the hash values; newly generated transactions, after being filled into the tiles and passing through the consensus of nodes in the blockchain network, are appended to the end of the blockchain to form a chain growth.
3) A Blockchain Network (Blockchain Network) incorporates new blocks into a set of nodes of a Blockchain in a consensus manner.
4) Ledger (legger) is a general term for blockchains (also called Ledger data) and state databases synchronized with blockchains.
Wherein, the blockchain records the transaction in the form of a file in a file system; the state database records the transactions in the blockchain in the form of different types of Key (Key) Value pairs for supporting fast query of the transactions in the blockchain.
5) Intelligent Contracts (Smart Contracts), also known as chain codes (chaincodes) or application codes, are programs deployed in nodes of a blockchain network, and the nodes execute the intelligent Contracts called in received transactions to perform operations of updating or querying key-value data of the account database.
6) Consensus (Consensus), a process in a blockchain network, is used to agree on transactions in a block among a plurality of nodes involved, the agreed block is to be appended to the end of the blockchain, and the mechanisms for achieving Consensus include Proof of workload (PoW, Proof of Work), Proof of rights and interests (PoS, Proof of equity (DPoS), Proof of granted of shares (DPoS), Proof of Elapsed Time (PoET, Proof of Elapsed Time), and so on.
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
Referring to fig. 1, an embodiment of the present application provides a method for interfacing a blockchain service system based on a middleware gateway, which is applicable to the scientific and technical financial field, and includes the steps of:
s1, the middleware gateway receives a block chain network interaction request sent by a service system through an http interface, and forwards the interaction request to a block chain network, wherein the middleware gateway integrates a block chain SDK;
and S2, the middleware gateway acquires the processing result of the blockchain network for the interaction request, and returns the processing result to the service system through the http interface.
In the scheme, a block chain middleware gateway interconnected with a service system and a block chain network is provided, and an entrance for uniformly accessing a block chain is provided for the service system. By constructing web services, integrating a block chain SDK, integrating certificate storage management and integrating block chain node connection management, a middleware gateway can provide a safe and convenient access mode, the middleware gateway is started in an integrated or independent deployment mode, a service system can directly call a block chain network function, the problems of complex block chain configuration and communication do not need to be additionally processed, and the complexity of the service system for integrally calling the block chain services is greatly reduced.
As described in step S1, when the middleware gateway receives the blockchain network interaction request sent by the service system, the request is sent to the blockchain network through the middleware gateway. The block chain middleware gateway can realize the functions which need to be configured in advance by the service system, such as certificate management, mapping of the corresponding relation between the certificate and the account number of the service system, identity authentication of the account number of the service system, certificate service and the like, and reduce the operation difficulty of the service system end. The blockchain middleware gateway can also realize routing service, and expose the core functions accessed by the blockchain into interfaces, wherein the core functions comprise blockchain link point state access, intelligent contract calling, intelligent contract installation, intelligent contract instantiation, certificate application, certificate revoking, account number-certificate binding functions and the like. The routing service of the middleware gateway can improve the connection speed of a service system and a block chain network and increase the connection safety.
As described in step S2 above, when the blockchain network returns a result, the processing result is returned to the service system through the middleware gateway. The middleware gateway may operate in an integrated or stand-alone deployment manner. The middleware gateway encapsulates the related access functions of the block chains into services, and inserts a layer of middleware between the service and the block chains, thereby shielding complex integration procedures and providing a simplified docking scheme for a service system.
In an embodiment, the step of sending to the blockchain network through the middleware gateway when receiving the blockchain network interaction request sent by the service system includes:
s11, acquiring account information of a service system network interaction request initiator;
s12, authority identification is carried out on the account information;
s13, if the authority identification is passed, inquiring the certificate in the account and certificate mapping relation database in the middleware gateway;
and S14, if the corresponding certificate is not inquired, accessing a block chain certificate management mechanism, signing a certificate for the account and storing the mapping relation between the account and the certificate in a database.
Under normal circumstances, a business system needs to manage certificate storage by itself, and establish a corresponding relationship between a common user account and a block chain certificate identity, otherwise, the block chain cannot be used for submitting data. In this embodiment, functions such as certificate management, mapping of correspondence between a certificate and a service system account, authentication of service system account, and certificate service are integrated in the middleware gateway. The middleware gateway is responsible for managing the certificate data used by the blockchain by establishing a local certificate wallet function and providing an interface to the business account system mapping. The middleware gateway can provide identity authentication service, can be compatible with a third-party account management protocol, and establishes mapping between an account system of a service system and a certificate in a block chain through identity authentication. The middleware gateway provides certificate service, is responsible for operations such as certificate signing and issuing, revoking and the like of the access block chain CA, and provides a service for connecting a certificate operation interface with a business account system. As described above, many core services in the service system access block chain, for example, services related to an intelligent contract, need to perform certificate verification, and the middleware gateway in this scheme integrates functions such as certificate management, mapping of a certificate and a service system account corresponding relation, service system account identity authentication, and certificate service, so that connection verification between the service system and the block chain network can be simplified, and access speed can be increased.
In a specific embodiment, the step of performing authority authentication on the account information includes:
s121, acquiring an identity identification code of the account information;
s122, acquiring a first dynamic verification code input by an account operator;
s123, inquiring a second dynamic verification code in a dynamic verification code dataset corresponding to the account information in a database according to the identity identification code;
and S124, judging whether the first dynamic verification code is matched with the second dynamic verification code, and if so, passing the authority authentication.
As described in the above steps, when an operator of a service system initiates an interaction request with a blockchain network through a login account, the account information needs to be authenticated in order to ensure the validity of the operation. The method for verifying the dynamic verification code is adopted, and specifically, when a middleware gateway receives a block link network access request initiated by a service system, the middleware gateway initiates identity verification on account information, acquires an identity identification code of the account information, requires an account operator to input a first dynamic verification code, then queries a second dynamic verification code in a dynamic verification code data set corresponding to the account information in a database according to the identity identification code, judges whether the first dynamic verification code is matched with the second dynamic verification code, and if the first dynamic verification code is matched with the second dynamic verification code, passes authority authentication. The first dynamic verification code and the second dynamic verification code are set according to a preset rule and change synchronously after a certain preset time period, and each account corresponds to one dynamic verification code data set. The identity authentication of account number information can be realized through the steps, the legality of the operation is ensured, and the safety of block chain data is ensured.
In an embodiment, the step of sending to the blockchain network through the middleware gateway when receiving the blockchain network interaction request sent by the service system further includes:
s15, identifying the type of the block chain network interaction request sent by the service system, and calling a corresponding function interface of the middleware gateway;
and S16, sending the interaction request to a corresponding node in a block chain through the corresponding function interface.
In general, a service system needs to manage connection information of each node of a block chain, the communication mode of the block chain is different from that of web application, and if the block chain connection information does not exist, the service system cannot accurately find the node for communication. In this embodiment, the middleware gateway may provide routing services, and expose the core functions of blockchain access as an interface, where the functions include blockchain link point state access, intelligent contract invocation, intelligent contract installation, intelligent contract instantiation, certificate application, certificate revocation, account-certificate binding functions, and the like. For example, when it is recognized that the interactive request instruction of the service system is to install a new intelligent contract, the service system submits the target blockchain network configuration data/file to be operated to the middleware gateway through the http interface, and the middleware gateway can persist the configuration into the database. And the service system submits the new intelligent contract to be installed and the specified configuration information to the gateway and calls the installation function interface in the gateway. The middleware gateway sends the task to a task flow built in the gateway, when the task flow polls the installation task, configuration information and related certificate information are read, and the packaged block chain native SDK is called to execute the installation task. The routing service of the middleware gateway can improve the connection speed of a service system and a block chain network and increase the connection safety.
In one embodiment, the middleware gateway is independently deployed outside the blockchain network.
As described above, the middleware gateway can be deployed independently outside the blockchain network, which facilitates operation, maintenance and management of the middleware gateway. The independent deployment means that the independent device is deployed between a blockchain network and a service system, an http interface is provided for the service system, a blockchain SDK is integrated, and a certificate management service, a service system account service and a routing service are integrated, so that the docking between the blockchain and the service system is simplified, and meanwhile, the independent deployment is wider in applicability and convenient to upgrade and manage.
In one embodiment, the middleware gateway is integrally deployed in a blockchain network.
As described above, the middleware gateway is independently deployed in the blockchain network, and this deployment can improve the integration of the whole blockchain system. The integrated deployment means that the middleware gateway is integrated in a blockchain network system in a functional module form, provides an http interface for a service system, integrates a blockchain SDK, and integrates certificate management service, service system account service and routing service.
According to the block chain service system docking method based on the middleware gateway, the interface exposed in a common web form is provided for the service system in the form of the middleware gateway, the service system does not need to repeatedly consider how to integrate each module of the block chain, and the problem of extra data management is not needed to be solved, so that the threshold of developers for docking the block chain is reduced, the complexity of the service system for docking the block chain is reduced, the service speed of enterprises for developing the block chain can be increased, the efficiency is improved, and the cost is reduced.
Referring to fig. 2, an embodiment of the present application further provides a device for interfacing a blockchain service system based on a middleware gateway, including:
the system comprises a sending module 1, a middleware gateway and a service system, wherein the sending module 1 is used for receiving a block chain network interaction request sent by the service system through an http interface by the middleware gateway and forwarding the interaction request to a block chain network, and the middleware gateway integrates a block chain SDK;
and the return module 2 is used for the middleware gateway to acquire a processing result of the block chain network for the interaction request and return the processing result to the service system through the http interface.
In one embodiment, the sending module 1 includes:
the account information acquisition module is used for acquiring the account information of a service system network interaction request initiator;
the authority identification module is used for carrying out authority identification on the account information;
the certificate inquiry module is used for inquiring the certificate in an account number and certificate mapping relation database in the middleware gateway if the certificate passes the authority identification;
and the certificate issuing module is used for accessing the block chain certificate management mechanism if the corresponding certificate is not inquired, issuing the certificate for the account and storing the mapping relation between the account and the certificate in a database.
In a specific embodiment, the privilege identification module comprises:
the identification code acquisition module is used for acquiring the identification code of the account information;
the first dynamic verification code acquisition module is used for acquiring a first dynamic verification code input by an account operator;
the second dynamic verification code acquisition module is used for inquiring a second dynamic verification code in a dynamic verification code dataset corresponding to the account information in a database according to the identity identification code;
and the judging module is used for judging whether the first dynamic verification code is matched with the second dynamic verification code, and if so, the authority identification is passed.
In one embodiment, the sending module 1 further includes:
the identification module is used for identifying the type of the block chain network interaction request sent by the service system and calling a corresponding functional interface of the middleware gateway;
and the interactive request sending module is used for sending the interactive request to a corresponding node in the block chain through the corresponding functional interface.
As described above, it can be understood that each component of the device for interfacing a blockchain service system based on a middleware gateway provided in the present application may implement the function of any one of the above methods for interfacing a blockchain service system based on a middleware gateway, and the detailed structure is not described again.
Referring to fig. 3, a computer device, which may be a server and whose internal structure may be as shown in fig. 3, is also provided in the embodiment of the present application. The computer device includes a processor, a memory, a network interface, and a database connected by a system bus. Wherein the computer designed processor is used to provide computational and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used for data related to a block chain business system docking method based on the middleware gateway. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a middleware gateway based blockchain business system docking method.
The processor executes the above block chain service system docking method based on the middleware gateway, including: a middleware gateway receives a block chain network interaction request sent by a service system through an http interface and forwards the interaction request to a block chain network, wherein the middleware gateway integrates a block chain SDK; and the middleware gateway acquires the processing result of the block chain network for the interactive request and returns the processing result to the service system through the http interface.
In one embodiment, the step of sending to the blockchain network through the middleware gateway when receiving the blockchain network interaction request sent by the service system includes: acquiring account information of a service system network interaction request initiator; performing authority identification on the account information; if the authority passes the authority identification, inquiring the certificate in an account number and certificate mapping relation database in the middleware gateway; and if the corresponding certificate is not inquired, accessing a block chain certificate management mechanism, signing a certificate for the account and storing the mapping relation between the account and the certificate in a database.
In a specific embodiment, the step of performing authority authentication on the account information includes: acquiring an identity identification code of the account information; acquiring a first dynamic verification code input by an account operator; inquiring a second dynamic verification code in a dynamic verification code dataset corresponding to the account information in a database according to the identity identification code; and judging whether the first dynamic verification code is matched with the second dynamic verification code, and if so, passing the authority authentication.
In one embodiment, the step of sending to the blockchain network through the middleware gateway when receiving the blockchain network interaction request sent by the service system further includes: identifying the type of a block chain network interaction request sent by the service system, and calling a corresponding function interface of the middleware gateway; and sending the interaction request to a corresponding node in a block chain through the corresponding functional interface.
In a specific embodiment, the middleware gateway is deployed independently outside the blockchain network.
In one embodiment, the middleware gateway is integrally deployed in a blockchain network.
An embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements a method for interfacing a blockchain service system based on a middleware gateway, including the steps of: a middleware gateway receives a block chain network interaction request sent by a service system through an http interface and forwards the interaction request to a block chain network, wherein the middleware gateway integrates a block chain SDK; and the middleware gateway acquires the processing result of the block chain network for the interactive request and returns the processing result to the service system through the http interface.
In one embodiment, the step of sending to the blockchain network through the middleware gateway when receiving the blockchain network interaction request sent by the service system includes: acquiring account information of a service system network interaction request initiator; performing authority identification on the account information; if the authority passes the authority identification, inquiring the certificate in an account number and certificate mapping relation database in the middleware gateway; and if the corresponding certificate is not inquired, accessing a block chain certificate management mechanism, signing a certificate for the account and storing the mapping relation between the account and the certificate in a database.
In a specific embodiment, the step of performing authority authentication on the account information includes: acquiring an identity identification code of the account information; acquiring a first dynamic verification code input by an account operator; inquiring a second dynamic verification code in a dynamic verification code dataset corresponding to the account information in a database according to the identity identification code; and judging whether the first dynamic verification code is matched with the second dynamic verification code, and if so, passing the authority authentication.
In one embodiment, the step of sending to the blockchain network through the middleware gateway when receiving the blockchain network interaction request sent by the service system further includes: identifying the type of a block chain network interaction request sent by the service system, and calling a corresponding function interface of the middleware gateway; and sending the interaction request to a corresponding node in a block chain through the corresponding functional interface.
In a specific embodiment, the middleware gateway is deployed independently outside the blockchain network.
In one embodiment, the middleware gateway is integrally deployed in a blockchain network.
According to the block chain service system docking method based on the middleware gateway, the interface exposed in a common web form is provided for the service system in the form of the middleware gateway, the service system does not need to repeatedly consider how to integrate each module of the block chain, and the problem of extra data management is not needed to be solved, so that the threshold of developers for docking the block chain is reduced, the complexity of the service system for docking the block chain is reduced, the service speed of an enterprise for developing the block chain can be increased, the efficiency is improved, and the cost is reduced.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium provided herein and used in the examples may include non-volatile and/or volatile memory. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), double-rate SDRAM (SSRSDRAM), Enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and bus dynamic RAM (RDRAM).
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, apparatus, article, or method that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, apparatus, article, or method. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, apparatus, article, or method that includes the element.
The above description is only a preferred embodiment of the present application, and not intended to limit the scope of the present application, and all modifications of equivalent structures and equivalent processes, which are made by the contents of the specification and the drawings of the present application, or which are directly or indirectly applied to other related technical fields, are also included in the scope of the present application.

Claims (10)

1. A block chain service system docking method based on a middleware gateway is characterized by comprising the following steps:
a middleware gateway receives a block chain network interaction request sent by a service system through an http interface and forwards the interaction request to a block chain network, wherein the middleware gateway integrates a block chain SDK;
and the middleware gateway acquires the processing result of the block chain network for the interactive request and returns the processing result to the service system through the http interface.
2. The method for interfacing a blockchain service system based on a middleware gateway as claimed in claim 1, wherein the step of the middleware gateway receiving the blockchain network interaction request sent by the service system through an http interface and forwarding the blockchain network interaction request to the blockchain network comprises:
acquiring account information of a service system network interaction request initiator;
performing authority identification on the account information;
if the authority passes the authority identification, inquiring the certificate in an account number and certificate mapping relation database in the middleware gateway;
and if the corresponding certificate is not inquired, accessing a block chain certificate management mechanism, signing and issuing a certificate for the account, and storing the mapping relation between the account and the certificate in a database.
3. The middleware gateway-based block chain service system docking method according to claim 2, wherein the step of performing authority authentication on the account information comprises:
acquiring an identity identification code of the account information;
acquiring a first dynamic verification code input by an account operator;
inquiring a second dynamic verification code in a dynamic verification code dataset corresponding to the account information in a database according to the identity identification code;
and judging whether the first dynamic verification code is matched with the second dynamic verification code, and if so, passing the authority authentication.
4. The method for interfacing a blockchain service system based on a middleware gateway as claimed in claim 1, wherein the step of the middleware gateway receiving the blockchain network interaction request sent by the service system through an http interface and forwarding the blockchain network interaction request to the blockchain network further comprises:
identifying the type of a block chain network interaction request sent by the service system, and calling a corresponding function interface of the middleware gateway;
and sending the interaction request to a corresponding node in a block chain through the corresponding functional interface.
5. A blockchain business system docking method based on a middleware gateway as in any one of claims 1 to 4, wherein the middleware gateway is deployed outside the blockchain network independently.
6. The method for interfacing a blockchain business system based on a middleware gateway as in any one of claims 1 to 4, wherein the middleware gateway is integrally deployed in a blockchain network.
7. A block chain service system docking device based on a middleware gateway is characterized by comprising:
the system comprises a sending module, a middleware gateway and a service system, wherein the sending module is used for receiving a block chain network interaction request sent by the service system through an http interface by the middleware gateway and forwarding the interaction request to a block chain network, and the middleware gateway integrates a block chain SDK;
and the return module is used for acquiring the processing result of the block chain network for the interaction request by the middleware gateway and returning the processing result to the service system through the http interface.
8. The apparatus of claim 7, wherein the sending module comprises:
the account information acquisition module is used for acquiring the account information of a service system network interaction request initiator;
the authority identification module is used for carrying out authority identification on the account information;
the certificate inquiry module is used for inquiring the certificate in an account number and certificate mapping relation database in the middleware gateway if the certificate passes the authority identification;
and the certificate issuing module is used for accessing the block chain certificate management mechanism if the corresponding certificate is not inquired, issuing the certificate for the account and storing the mapping relation between the account and the certificate in a database.
9. A computer device comprising a memory and a processor, the memory storing a computer program, wherein the processor implements the steps of the method of any one of claims 1 to 6 when executing the computer program.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 6.
CN202010911083.5A 2020-09-02 2020-09-02 Block chain service system docking method, device and equipment based on middleware gateway Pending CN111935174A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010911083.5A CN111935174A (en) 2020-09-02 2020-09-02 Block chain service system docking method, device and equipment based on middleware gateway

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010911083.5A CN111935174A (en) 2020-09-02 2020-09-02 Block chain service system docking method, device and equipment based on middleware gateway

Publications (1)

Publication Number Publication Date
CN111935174A true CN111935174A (en) 2020-11-13

Family

ID=73310030

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010911083.5A Pending CN111935174A (en) 2020-09-02 2020-09-02 Block chain service system docking method, device and equipment based on middleware gateway

Country Status (1)

Country Link
CN (1) CN111935174A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112560109A (en) * 2020-12-09 2021-03-26 成都网信天成科技有限公司 System and method for processing middleware of web-based mail Amatrix block chain database
CN112910999A (en) * 2021-01-29 2021-06-04 四川虹微技术有限公司 Information measurement method, device and system based on block chain and measurement box

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109150621A (en) * 2018-09-10 2019-01-04 平安科技(深圳)有限公司 Method, apparatus, computer equipment and the storage medium of monitoring business flowpath
CN109151070A (en) * 2018-10-26 2019-01-04 平安科技(深圳)有限公司 Service scheduling method, the electronic device of point-to-point CDN based on block chain
CN109191124A (en) * 2018-08-16 2019-01-11 北京京东尚科信息技术有限公司 Block chain network, dispositions method and storage medium
CN109194495A (en) * 2018-06-29 2019-01-11 平安科技(深圳)有限公司 server, message processing method and computer readable storage medium
CN109344345A (en) * 2018-10-16 2019-02-15 翟红鹰 Data access system and access method, terminal and storage medium based on block chain
CN110012015A (en) * 2019-04-09 2019-07-12 中国科学院沈阳计算技术研究所有限公司 A kind of internet of things data sharing method and system based on block chain
CN110084059A (en) * 2019-03-21 2019-08-02 深圳壹账通智能科技有限公司 A kind of method, apparatus and computer equipment of banking system data configuration block chain
CN111010372A (en) * 2019-11-20 2020-04-14 国家信息中心 Block chain network identity authentication system, data processing method and gateway equipment
CN111614731A (en) * 2020-04-29 2020-09-01 深圳市芯链科技有限公司 Method and system for accessing block chain to Internet of things equipment, aggregation gateway and storage medium

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109194495A (en) * 2018-06-29 2019-01-11 平安科技(深圳)有限公司 server, message processing method and computer readable storage medium
CN109191124A (en) * 2018-08-16 2019-01-11 北京京东尚科信息技术有限公司 Block chain network, dispositions method and storage medium
CN109150621A (en) * 2018-09-10 2019-01-04 平安科技(深圳)有限公司 Method, apparatus, computer equipment and the storage medium of monitoring business flowpath
CN109344345A (en) * 2018-10-16 2019-02-15 翟红鹰 Data access system and access method, terminal and storage medium based on block chain
CN109151070A (en) * 2018-10-26 2019-01-04 平安科技(深圳)有限公司 Service scheduling method, the electronic device of point-to-point CDN based on block chain
CN110084059A (en) * 2019-03-21 2019-08-02 深圳壹账通智能科技有限公司 A kind of method, apparatus and computer equipment of banking system data configuration block chain
CN110012015A (en) * 2019-04-09 2019-07-12 中国科学院沈阳计算技术研究所有限公司 A kind of internet of things data sharing method and system based on block chain
CN111010372A (en) * 2019-11-20 2020-04-14 国家信息中心 Block chain network identity authentication system, data processing method and gateway equipment
CN111614731A (en) * 2020-04-29 2020-09-01 深圳市芯链科技有限公司 Method and system for accessing block chain to Internet of things equipment, aggregation gateway and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112560109A (en) * 2020-12-09 2021-03-26 成都网信天成科技有限公司 System and method for processing middleware of web-based mail Amatrix block chain database
CN112910999A (en) * 2021-01-29 2021-06-04 四川虹微技术有限公司 Information measurement method, device and system based on block chain and measurement box

Similar Documents

Publication Publication Date Title
CN109040029B (en) Method and apparatus for executing transactions in a blockchain
CN110727712B (en) Data processing method and device based on block chain network, electronic equipment and storage medium
CN110636492B (en) Handover of mobile service providers using blockchains
US11611560B2 (en) Systems, methods, and apparatuses for implementing consensus on read via a consensus on write smart contract trigger for a distributed ledger technology (DLT) platform
CN109981679B (en) Method and apparatus for performing transactions in a blockchain network
WO2021109735A1 (en) Cross-chain-network-based resource processing method, and device
CN110599213B (en) Article management method and device based on blockchain network and electronic equipment
CN112632575A (en) Authority management method and device of business system, computer equipment and storage medium
CN110598434B (en) House information processing method and device based on blockchain network, electronic equipment and storage medium
US11392675B2 (en) Request authorization using recipe-based service coordination
CN110912712A (en) Service operation risk authentication method and system based on block chain
CN111935174A (en) Block chain service system docking method, device and equipment based on middleware gateway
CN112559010B (en) Multi-application system data isolation implementation method and system based on micro-service
CN110851127B (en) Universal evidence-storing method based on blockchain
CN111917837A (en) Web micro application program publishing system and implementation method thereof
EP4320899A1 (en) Secure sensor data distribution
CN111222935A (en) Transportation means sharing method based on block chain network, terminal and storage medium
CN111915308A (en) Transaction processing method of blockchain network and blockchain network
US7363487B2 (en) Method and system for dynamic client authentication in support of JAAS programming model
CN113645251B (en) Data transmission method and device suitable for cross-regional service
CN113472781A (en) Service acquisition method, server and computer readable storage medium
CN113987035A (en) Block chain external data access method, device, system, equipment and medium
CN113177232A (en) Block chain and big data based security detection method and big data AI system
CN112612482A (en) Method, device, equipment and storage medium for executing intelligent contract
CN110910140A (en) Method for realizing intelligent contract, front-end server, client, equipment and medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20210129

Address after: 518000 Room 201, building A, No. 1, Qian Wan Road, Qianhai Shenzhen Hong Kong cooperation zone, Shenzhen, Guangdong (Shenzhen Qianhai business secretary Co., Ltd.)

Applicant after: Shenzhen saiante Technology Service Co.,Ltd.

Address before: 1-34 / F, Qianhai free trade building, 3048 Xinghai Avenue, Mawan, Qianhai Shenzhen Hong Kong cooperation zone, Shenzhen, Guangdong 518000

Applicant before: Ping An International Smart City Technology Co.,Ltd.

RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20201113