CN112035143B - Block chain-based interface information updating method, node and system - Google Patents

Block chain-based interface information updating method, node and system Download PDF

Info

Publication number
CN112035143B
CN112035143B CN202010905002.0A CN202010905002A CN112035143B CN 112035143 B CN112035143 B CN 112035143B CN 202010905002 A CN202010905002 A CN 202010905002A CN 112035143 B CN112035143 B CN 112035143B
Authority
CN
China
Prior art keywords
interface
information
interface information
application system
target application
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
CN202010905002.0A
Other languages
Chinese (zh)
Other versions
CN112035143A (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.)
Bank of China Ltd
Original Assignee
Bank of China 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 Bank of China Ltd filed Critical Bank of China Ltd
Priority to CN202010905002.0A priority Critical patent/CN112035143B/en
Publication of CN112035143A publication Critical patent/CN112035143A/en
Application granted granted Critical
Publication of CN112035143B publication Critical patent/CN112035143B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management
    • 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 invention provides a block chain-based interface information updating method, a node and a system, wherein the method comprises the following steps: receiving updated interface information and broadcasting the updated interface information to all nodes of a blockchain so that each node forms an interface information block according to the interface information, wherein the interface information block comprises new version interface information, new version interface description information and corresponding old version interface description information; determining a target application system subscribing to the interface information according to the old version interface description information of the interface information block in the interface information block; the invention can solve the problem of service processing frequently occurring after the application system is put into operation because the interface information can not be synchronized in time.

Description

Block chain-based interface information updating method, node and system
Technical Field
The present invention relates to the field of internet technologies, and in particular, to a method, a node, and a system for updating interface information based on a blockchain.
Background
In the field of internet service processing, implementing a service scenario often requires linking of multiple application systems (e.g., banking financial systems) in a production environment, service data needs to flow through the multiple application systems, and data linking needs to be implemented between different application systems through interfaces. Because each application system is independently developed, interfaces which are tested at one time often appear in an environment that the updating of functions and versions is continuously accelerated, and the interfaces are changed after production. Therefore, because the interface information cannot be synchronized in time, the problem of service processing of the application system after the application system is put into production can be caused frequently.
Disclosure of Invention
The invention aims to provide a block chain-based interface information updating method, which solves the problem of service processing of an application system after production due to the fact that interface information cannot be synchronized in time. It is another object of the present invention to provide an interface information update node. It is yet another object of the present invention to provide a blockchain-based interface information update system. It is a further object of the invention to provide a computer device. It is a further object of the invention to provide a readable medium.
In order to achieve the above object, an aspect of the present invention discloses a method for updating interface information based on a blockchain, including:
receiving updated interface information and broadcasting the updated interface information to all nodes of a blockchain so that each node forms an interface information block according to the interface information, wherein the interface information block comprises new version interface information, new version interface description information and corresponding old version interface description information;
determining a target application system subscribing to the interface information according to the old version interface description information of the interface information block in the interface information block;
and transmitting the new version of interface information to the target application system to update the interface information.
Preferably, the interface information block further includes an authentication code, and the method further includes:
and transmitting the verification code to the target application system so that the target application system carries out version verification on the new version interface information through the verification code.
Preferably, the target application system for determining the subscription interface information according to the old version interface description information of the interface information block in the interface information block specifically includes:
determining an application system subscribed to an old version interface as a target application system according to the old version interface description information and a preset interface subscription information block, wherein the interface subscription information block comprises the old version interface description information and the corresponding application system as the target application system.
Preferably, the transmitting the new version of interface information to the target application system to implement interface information update specifically includes:
forming interface update prompt information according to the received update interface information;
determining target application system information according to the target application system, and transmitting the interface update prompt information to the target application system according to the target application system information;
and receiving a subscription updating request transmitted by the target application system based on the interface updating prompt information, and transmitting the new version interface information to the target application system.
The invention also discloses a method for updating the interface information based on the block chain, which comprises the following steps:
and transmitting updated interface information to interface information updating nodes of the block chain so that the interface information updating nodes broadcast the updated interface information to all nodes of the block chain to enable all nodes to form an interface information block according to the interface information, wherein the interface information block comprises new version interface information, new version interface description information and corresponding old version interface description information, a target application system subscribed to the interface information is determined according to the interface information block old version interface description information in the interface information block, and the new version interface information is transmitted to the target application system to realize the updating of the interface information.
Preferably, the method further comprises:
and sending a preset verification code to interface information updating nodes of the blockchain so that the interface information updating nodes broadcast the verification code to all nodes of the blockchain, and sending the verification code to a corresponding target application system so that the target application system carries out version verification on the new version interface information through the verification code.
The invention also discloses a method for updating the interface information based on the block chain, which comprises the following steps:
Receiving new version interface information sent by an interface information updating node of a block chain, wherein the new version interface information is obtained by receiving updated interface information by the interface information updating node of the block chain, broadcasting the updated interface information to all nodes of the block chain so that each node forms an interface information block according to the interface information, determining a target application system subscribing the interface information according to old version interface description information of the interface information block in the interface information block, and transmitting the new version interface information to the target application system, wherein the interface information block comprises the new version interface information, the new version interface description information and the corresponding old version interface description information;
and updating the interface information according to the new version interface information.
Preferably, the new version interface information sent by the interface information update node of the receiving blockchain specifically includes:
receiving interface update prompt information sent by an interface information update node of a block chain, wherein the interface update prompt information is formed by the interface information update node according to the received update interface information;
and transmitting a subscription update request to the interface information update node based on the interface update prompt information, and receiving new version interface information transmitted by the interface information update node.
The invention also discloses an interface information updating node, which comprises:
the information processing module is used for receiving the updated interface information and broadcasting the updated interface information to all nodes of the block chain so that each node forms an interface information block according to the interface information, wherein the interface information block comprises new version interface information, new version interface description information and corresponding old version interface description information;
the application system determining module is used for determining a target application system subscribing to the interface information according to the old version interface description information of the interface information block in the interface information block;
and the information pushing module is used for transmitting the new version interface information to the target application system so as to update the interface information.
The invention also discloses an interface information updating system based on the block chain, which comprises terminal equipment, the block chain and at least one application system, wherein the block chain comprises a plurality of interface information updating nodes;
the terminal equipment sends updated interface information to an interface information updating node of the block chain;
the interface information updating node of the block chain broadcasts updated interface information to all nodes of the block chain so that each node forms an interface information block according to the interface information, the interface information block comprises new version interface information, new version interface description information and corresponding old version interface description information, a target application system subscribing the interface information is determined according to the interface information block old version interface description information in the interface information block, and the new version interface information is transmitted to the target application system;
And the target application system is used for realizing the updating of the interface information according to the new version interface information.
The invention also discloses a computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor,
the processor, when executing the program, implements the method as described above.
The invention also discloses a computer readable medium, on which a computer program is stored,
the program, when executed by a processor, implements the method as described above.
The invention receives the updated interface information through the block link, stores the updated interface information on all nodes of the block link through the broadcast of the block link, forms an interface information block according to the updated interface information, and associates the new version interface information with the old version interface information, thereby determining a target application system subscribed to the old version interface information according to the subscribed interface information of the old version interface information, further transmitting the new version interface information to the target application system, realizing the automatic pushing of the new version of the interface information based on subscription, enabling the application system to update the interface information in time, and preventing the service processing problem caused by the asynchronous interface information among the application systems. The invention realizes the update of the version of the interface information through the block chain, can also prevent the interface information of the new version from being tampered, and ensures the uniqueness of the release of the interface information.
Drawings
In order to more clearly illustrate the embodiments of the invention or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described, it being obvious that the drawings in the following description are only some embodiments of the invention, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flow chart of one embodiment of a blockchain-based interface information update method of the present invention;
FIG. 2 is a flowchart of one embodiment S000 of the blockchain-based interface information update method of the present invention;
FIG. 3 is a flowchart of a block chain based interface information update method of one embodiment S300 of the present invention;
FIG. 4 is a flow diagram illustrating one embodiment of an interface information update node of a blockchain of the present invention;
fig. 5 shows a schematic diagram of a computer device suitable for use in implementing embodiments of the invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
It should be noted that in one or more embodiments of the present invention, the operation and maintenance engineer is responsible for maintaining and ensuring high availability of the entire service while continuously optimizing the system.
It should be noted that, in one or more embodiments of the present invention, a production environment refers to an environment running real business data.
It should be noted that, in one or more embodiments of the present invention, an operation terminal refers to a device that may access the background of an application server.
It should be noted that, in one or more embodiments of the present invention, data caching refers to a temporary data file that is updated continuously.
It should be noted that, in one or more embodiments of the present invention, a log refers to a record that a computer program will output to a file during operation, and this output record is called a log.
It should be noted that, in one or more embodiments of the present invention, a version refers to a set of applications, parameter files, etc. to be updated.
It should be noted that, in one or more embodiments of the present invention, an application system refers to a system composed of a plurality of application modules that can implement a specific transaction function.
It should be noted that, in one or more embodiments of the present invention, an application program interface refers to a convention for joining different components of a software system, and specifies interface information such as an input data format and an output data format.
In one or more embodiments of the present invention, commissioning refers to an act of deploying a compiled application program into a production environment.
In the current banking process, a plurality of application systems of a banking and finance system are required to jointly realize the business process. Therefore, in the service processing process, service data interaction among a plurality of application systems is needed to enable a plurality of different application systems to be mutually connected to complete a service processing flow, namely, after one application system completes partial service processing to obtain service data, one or more other application systems are needed to be input, so that the application system receiving the service data can carry out subsequent service processing based on the service data.
In this process, data interaction between the application system and the external application system is typically achieved through an application program interface. The external application system can interact data with the application system according to the interface information. However, as the functions and version update speed of the application system are continuously improved, and each application system is generally independently developed, interface information of the application system may be changed. At this time, because the acquisition channels of the interface information are various and different, the versions of the interface information which may be obtained are different, so that the interface information of one application system is not synchronous with the interface information received in the application system which interacts with the data of the application system, and further, the problem of data interaction among a plurality of application systems may be caused, and the service cannot be normally processed. In addition, after the interface information of the application system is changed, since it is not determined which application system needs the interface information, the application system using the interface cannot be actively notified to update the interface information. Finally, since the interface information is described in the form of a document, developers of different application systems may understand the interface information differently, and forming an application program interface based on the understanding deviation may also cause a problem of data interaction between different application systems.
Based on the above, the invention also provides an interface information updating system for realizing the interface information updating method based on the blockchain, the interface information updating system can be respectively in communication connection with the terminal equipment and the application system, the terminal equipment can comprise an internet banking system and a mobile terminal which can be accessed by an operation and maintenance engineer, and the interface information updating system and the banking system can be accessed by respective application servers.
It is understood that the terminal device may include a smart phone, a tablet electronic device, a network set top box, a portable computer, a desktop computer, a Personal Digital Assistant (PDA), a vehicle-mounted device, a smart wearable device, etc. Wherein, intelligent wearing equipment can include intelligent glasses, intelligent wrist-watch, intelligent bracelet etc..
The communication between the above system and the terminal device and the application system may be performed using any suitable network protocol, including one that has not been developed on the filing date of the present invention. The network protocols may include, for example, TCP/IP protocol, UDP/IP protocol, HTTP protocol, HTTPS protocol, etc. Of course, the network protocol may also include, for example, RPC protocol (Remote Procedure Call Protocol ), REST protocol (Representational State Transfer, representational state transfer protocol), etc. used above the above-described protocol.
Based on this, the interface information updating system for executing the blockchain-based interface information updating method of the present embodiment is a blockchain system including a plurality of interface information updating nodes. The specific system architecture of the blockchain system may refer to the existing blockchain architecture, and the present invention is not described herein. The invention utilizes the characteristics of distributed data storage, point-to-point transmission, consensus mechanism and the like of the block chain decentralization, updates the interface information through the block chain, ensures that the version modification of the new version interface information released by the block chain is traceable, and the new version interface information in the block chain is not tamperable.
In order to realize the updating of interface information through the blockchain system, the embodiment discloses a blockchain-based interface information updating method which can be applied to at least one interface information updating node of a blockchain. As shown in fig. 1, in this embodiment, the method includes:
s100: and receiving updated interface information and broadcasting the updated interface information to all nodes of the blockchain so that each node forms an interface information block according to the interface information, wherein the interface information block comprises new version interface information, new version interface description information and corresponding old version interface description information. According to the invention, the historical traceability of the update of the interface information version can be realized by forming the interface information block according to the old version interface description information and the new version interface description information.
S200: and determining a target application system subscribing the interface information according to the old version interface description information of the interface information block in the interface information block.
S300: and transmitting the new version of interface information to the target application system to update the interface information. Preferably, one interface information updating node in the blockchain can determine the target application system and push new version interface information to the target application system, and the interface information updating efficiency can be improved by adopting a mode of pushing the new version interface information by the fixed node.
The invention receives the updated interface information through the block link, stores the updated interface information on all nodes of the block link through the broadcast of the block link, forms an interface information block according to the updated interface information, and associates the new version interface information with the old version interface information, thereby determining a target application system subscribed to the old version interface information according to the subscribed interface information of the old version interface information, further transmitting the new version interface information to the target application system, realizing the automatic pushing of the new version of the interface information based on subscription, enabling the application system to update the interface information in time, and preventing the service processing problem caused by the asynchronous interface information among the application systems. The invention realizes the update of the version of the interface information through the block chain, can also prevent the interface information of the new version from being tampered, and ensures the uniqueness of the release of the interface information.
In a preferred embodiment, the interface information block further comprises an authentication code, the method further comprising:
s400: and transmitting the verification code to the target application system so that the target application system carries out version verification on the new version interface information through the verification code.
Specifically, the operation and maintenance engineer may transmit updated interface information to the interface information update node of the blockchain through the equipment terminal. The update interface information can comprise new version interface information, new version interface description information and corresponding old version interface description information, after receiving the update interface information, the node can extract the new version interface information, the new version interface description information and corresponding old version interface description information from the update interface information and form corresponding interface information blocks, so that the new and old version interface information can be stored in a distributed mode on a blockchain in an associated mode, and the corresponding new version interface information can be conveniently acquired through the old version interface information and sent to an application system to update the interface information.
Further, in order to further ensure the standardization and accuracy of the new version interface information and prevent the new version interface information from being tampered during the transmission process, in the preferred embodiment, a verification code for performing version verification on the new version interface information may be preset. And packaging the verification code, the new version interface information, the new version interface description information and the corresponding old version interface description information together to form an interface information block, and sending the verification code and the new version interface information together to the target application system, so that the target application system can carry out version verification on the received new version interface information through the verification code, and if the verification is passed, the new version interface information is not tampered.
It should be noted that the interface information may include key information such as a data input format and a data output format, the verification code may be formed based on a principle of checking the key information, and a person skilled in the art may form the verification code according to actual requirements, which is not limited in the present invention and will not be described herein.
In practical application, the operation and maintenance engineer can develop and form new version interface information and corresponding verification codes in advance, set the verification codes in the updated interface information, and send the updated interface information to the interface information updating nodes through the terminal equipment to realize the uplink storage of the verification codes on each node of the blockchain. In other embodiments, the verification code may be stored in a separate uplink by other forms and other devices, which the present invention is not limited to.
For example, in one specific example, 1-10 digits in the text of the interface information are the identification number, 11-13 digits of the mail address, and 15-21 digits are the postal code. And forming a verification code according to the identification card number, the mail address and the key information of the postal code in the interface information, inputting the interface information into the verification code as parameters, and enabling the verification code to feed back whether the interface information meets the format requirement or not and verifying whether the interface information is accurate or not. Therefore, the interface information is verified through configuration verification codes, developers are facilitated, testers integrate the interface information in projects, unified standards are ensured to be observed in data flowing of each application system, and the problem of inconsistent interface development caused by understanding deviation of different developers on the interface information is avoided.
In a preferred embodiment, the step S200 may specifically include:
s210: determining an application system subscribed to an old version interface as a target application system according to the old version interface description information and a preset interface subscription information block, wherein the interface subscription information block comprises the old version interface description information and the corresponding application system as the target application system.
Specifically, by forming the interface subscription information block in advance, after the interface information is updated, the target application system subscribed to the old version of the interface information can be determined according to the interface subscription information block. In the preferred embodiment, the new version interface information is transmitted to the target application systems in an active pushing mode, so that developers of each target application system can be timely notified of the interface update, compatibility problems caused by different versions of the interface information are avoided, and the reliability of the application systems is improved.
In a preferred embodiment, as shown in fig. 2, the method may further include a step S000 of pre-forming the interface subscription information block:
s010: a subscription request of an application system is received.
S020: and determining corresponding interface description information according to the subscription request.
S030: and transmitting the interface information corresponding to the interface description information to the application system, and correspondingly associating the interface description information with the application system sending the subscription request to form the interface subscription information block.
In particular, it is to be appreciated that the application system can effect subscription of the interface information in the form of sending a subscription request to the block link. The subscription request may include application system information and interface description information to be acquired. The application information may include information such as application names and contact addresses. An interface subscription information block may be formed and stored on each node of the blockchain when the application system first subscribes to interface information. The application system subscribed to the interface information can be obtained through screening the interface description information (old version interface description information) in the interface subscription information block.
Preferably, the new version interface description information and the old version interface description information may be hash values of the new version interface information and the old version interface information, respectively. In other embodiments, the interface description information may be obtained by other calculation methods according to the new version interface information and the old version interface information, which is not limited by the present invention.
In a preferred embodiment, as shown in fig. 3, the step S300 of transmitting the new version of interface information to the target application system to implement the update of the interface information may specifically include:
s310: and forming interface update prompt information according to the received update interface information.
S320: and determining target application system information according to the target application system, and transmitting the interface update prompt information to the target application system according to the target application system information.
S330: and receiving a subscription updating request transmitted by the target application system based on the interface updating prompt information, and transmitting the new version interface information to the target application system.
It can be understood that after the interface information is updated, an interface update prompt message can be formed, and the prompt message is sent to the target system. The target application system can determine whether the interface information needs to be updated according to the prompt, namely whether new version interface information needs to be acquired. After confirming subscription, the application system can send a subscription update request to the node, the node sends new version interface information to the application system, and the interface information in the interface subscription information block is replaced by the description information of the new version interface information to update the interface subscription information block.
Based on the same principle, the embodiment also discloses an interface information updating method based on the block chain. In this embodiment, the method includes:
and transmitting updated interface information to interface information updating nodes of the block chain so that the interface information updating nodes broadcast the updated interface information to all nodes of the block chain to enable all nodes to form an interface information block according to the interface information, wherein the interface information block comprises new version interface information, new version interface description information and corresponding old version interface description information, a target application system subscribed to the interface information is determined according to the interface information block old version interface description information in the interface information block, and the new version interface information is transmitted to the target application system to realize the updating of the interface information.
In a preferred embodiment, the method further comprises:
and sending a preset verification code to interface information updating nodes of the blockchain so that the interface information updating nodes broadcast the verification code to all nodes of the blockchain, and sending the verification code to a corresponding target application system so that the target application system carries out version verification on the new version interface information through the verification code.
Since the principle of solving the problem by the method is similar to that of the above method, the implementation of the method can be referred to the implementation of the method, and the description is omitted herein.
Based on the same principle, the embodiment also discloses an interface information updating method based on the block chain. In this embodiment, the method includes:
receiving new version interface information sent by an interface information updating node of a block chain, wherein the new version interface information is obtained by receiving updated interface information by the interface information updating node of the block chain, broadcasting the updated interface information to all nodes of the block chain so that each node forms an interface information block according to the interface information, determining a target application system subscribing the interface information according to old version interface description information of the interface information block in the interface information block, and transmitting the new version interface information to the target application system, wherein the interface information block comprises the new version interface information, the new version interface description information and the corresponding old version interface description information;
And updating the interface information according to the new version interface information.
In a preferred embodiment, the new version interface information sent by the interface information update node of the receiving blockchain specifically includes:
receiving interface update prompt information sent by an interface information update node of a block chain, wherein the interface update prompt information is formed by the interface information update node according to the received update interface information;
and transmitting a subscription update request to the interface information update node based on the interface update prompt information, and receiving new version interface information transmitted by the interface information update node.
Since the principle of solving the problem by the method is similar to that of the above method, the implementation of the method can be referred to the implementation of the method, and the description is omitted herein.
Based on the same principle, the embodiment also discloses an interface information updating node. As shown in fig. 4, in this embodiment, the node includes an information processing module 11, an application system determining module 12, and an information pushing module 13.
The information processing module 11 is configured to receive updated interface information and broadcast the updated interface information to all nodes of the blockchain, so that each node forms an interface information block according to the interface information, where the interface information block includes new version interface information, new version interface description information and corresponding old version interface description information.
The application system determining module 12 is configured to determine a target application system subscribed to the interface information according to the old version of interface description information of the interface information block in the interface information block.
The information pushing module 13 is configured to transmit the new version of interface information to the target application system to implement updating of the interface information.
Since the principle of the node for solving the problem is similar to that of the above method, the implementation of the node can be referred to the implementation of the method, and will not be described herein.
Based on the same principle, the embodiment also discloses an interface information updating system based on the block chain. In this embodiment, the system includes a terminal device, a blockchain, and at least one application system, where the blockchain includes a plurality of interface information update nodes.
And the terminal equipment sends updated interface information to the interface information updating node of the blockchain.
The interface information updating node of the block chain broadcasts updating interface information to all nodes of the block chain so that each node forms an interface information block according to the interface information, the interface information block comprises new version interface information, new version interface description information and corresponding old version interface description information, a target application system subscribing the interface information is determined according to the interface information block old version interface description information in the interface information block, and the new version interface information is transmitted to the target application system.
And the target application system is used for realizing the updating of the interface information according to the new version interface information.
Since the principle of solving the problem of the system is similar to that of the above method, the implementation of the system can be referred to the implementation of the method, and will not be repeated here.
The system, apparatus, module or unit set forth in the above embodiments may be implemented in particular by a computer chip or entity, or by a product having a certain function. A typical implementation device is a computer device, which may be, for example, a personal computer, a laptop computer, a cellular telephone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.
In a typical example, the computer apparatus includes a memory, a processor, and a computer program stored on the memory and executable on the processor, where the processor executes the program to implement a method performed by a client as described above, or where the processor executes the program to implement a method performed by a server as described above.
Referring now to FIG. 5, there is illustrated a schematic diagram of a computer device 600 suitable for use in implementing embodiments of the present application.
As shown in fig. 5, the computer apparatus 600 includes a Central Processing Unit (CPU) 601, which can perform various appropriate works and processes according to a program stored in a Read Only Memory (ROM) 602 or a program loaded from a storage section 608 into a Random Access Memory (RAM)) 603. In the RAM603, various programs and data required for the operation of the system 600 are also stored. The CPU601, ROM602, and RAM603 are connected to each other through a bus 604. An input/output (I/O) interface 605 is also connected to bus 604.
The following components are connected to the I/O interface 605: an input portion 606 including a keyboard, mouse, etc.; an output portion 607 including a Cathode Ray Tube (CRT), a liquid crystal feedback device (LCD), and the like, and a speaker, and the like; a storage section 608 including a hard disk and the like; and a communication section 609 including a network interface card such as a LAN card, a modem, or the like. The communication section 609 performs communication processing via a network such as the internet. The drive 610 is also connected to the I/O interface 605 as needed. Removable media 611 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on drive 610 as needed, so that a computer program read therefrom is mounted as needed as storage section 608.
In particular, according to embodiments of the present invention, the processes described above with reference to flowcharts may be implemented as computer software programs. For example, embodiments of the present invention include a computer program product comprising a computer program tangibly embodied on a machine-readable medium, the computer program comprising program code for performing the method shown in the flowchart. In such an embodiment, the computer program may be downloaded and installed from a network through the communication portion 609, and/or installed from the removable medium 611.
Computer readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of storage media for a computer include, but are not limited to, phase change memory (PRAM), static Random Access Memory (SRAM), dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium, which can be used to store information that can be accessed by a computing device. Computer-readable media, as defined herein, does not include transitory computer-readable media (transmission media), such as modulated data signals and carrier waves.
For convenience of description, the above devices are described as being functionally divided into various units, respectively. Of course, the functions of each element may be implemented in the same piece or pieces of software and/or hardware when implementing the present application.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus 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, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article or apparatus that comprises the element.
It will be appreciated by those skilled in the art that embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The application may be described in the general context of computer-executable instructions, such as program modules, being executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform particular tasks or implement particular abstract data types. The application may also be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules may be located in both local and remote computer storage media including memory storage devices.
In this specification, each embodiment is described in a progressive manner, and identical and similar parts of each embodiment are all referred to each other, and each embodiment mainly describes differences from other embodiments. In particular, for system embodiments, since they are substantially similar to method embodiments, the description is relatively simple, as relevant to see a section of the description of method embodiments.
The foregoing is merely exemplary of the present application and is not intended to limit the present application. Various modifications and variations of the present application will be apparent to those skilled in the art. Any modification, equivalent replacement, improvement, etc. which come within the spirit and principles of the application are to be included in the scope of the claims of the present application.

Claims (11)

1. A blockchain-based interface information updating method, comprising:
receiving updated interface information and broadcasting the updated interface information to all nodes of a blockchain so that each node forms an interface information block according to the interface information, wherein the interface information block comprises new version interface information, new version interface description information and corresponding old version interface description information;
determining a target application system subscribing to the interface information according to the old version interface description information of the interface information block in the interface information block; the target application system for determining the subscription interface information according to the old version interface description information of the interface information block in the interface information block specifically comprises the following steps: determining an application system subscribed to an old version interface as a target application system according to the old version interface description information and a preset interface subscription information block, wherein the interface subscription information block comprises the old version interface description information and the corresponding application system as the target application system;
and transmitting the new version of interface information to the target application system to update the interface information.
2. The blockchain-based interface information updating method of claim 1, wherein the interface information block further includes an authentication code, the method further comprising:
And transmitting the verification code to the target application system so that the target application system carries out version verification on the new version interface information through the verification code.
3. The method for updating the interface information based on the blockchain of claim 1, wherein the transmitting the new version of the interface information to the target application system to implement the updating of the interface information specifically includes:
forming interface update prompt information according to the received update interface information;
determining target application system information according to the target application system, and transmitting the interface update prompt information to the target application system according to the target application system information;
and receiving a subscription updating request transmitted by the target application system based on the interface updating prompt information, and transmitting the new version interface information to the target application system.
4. A blockchain-based interface information updating method, comprising:
the method comprises the steps that updated interface information is sent to interface information updating nodes of a block chain, so that the interface information updating nodes broadcast the updated interface information to all nodes of the block chain, each node forms an interface information block according to the interface information, the interface information block comprises new version interface information, new version interface description information and corresponding old version interface description information, a target application system subscribing the interface information is determined according to the interface information block old version interface description information in the interface information block, and the new version interface information is transmitted to the target application system to achieve interface information updating;
The target application system for determining the subscription interface information according to the old version interface description information of the interface information block in the interface information block specifically comprises the following steps: determining an application system subscribed to an old version interface as a target application system according to the old version interface description information and a preset interface subscription information block, wherein the interface subscription information block comprises the old version interface description information and the corresponding application system as the target application system.
5. The blockchain-based interface information updating method of claim 4, further comprising:
and sending a preset verification code to interface information updating nodes of the blockchain so that the interface information updating nodes broadcast the verification code to all nodes of the blockchain, and sending the verification code to a corresponding target application system so that the target application system carries out version verification on the new version interface information through the verification code.
6. A blockchain-based interface information updating method, comprising:
receiving new version interface information sent by an interface information updating node of a block chain, wherein the new version interface information is obtained by receiving updated interface information by the interface information updating node of the block chain, broadcasting the updated interface information to all nodes of the block chain so that each node forms an interface information block according to the interface information, determining a target application system subscribing the interface information according to old version interface description information of the interface information block in the interface information block, and transmitting the new version interface information to the target application system, wherein the interface information block comprises the new version interface information, the new version interface description information and the corresponding old version interface description information;
The target application system for determining the subscription interface information according to the old version interface description information of the interface information block in the interface information block specifically comprises the following steps: determining an application system subscribed to an old version interface as a target application system according to the old version interface description information and a preset interface subscription information block, wherein the interface subscription information block comprises the old version interface description information and the corresponding application system as the target application system;
and updating the interface information according to the new version interface information.
7. The method for updating blockchain-based interface information of claim 6, wherein the new version of the interface information sent by the receiving blockchain-based interface information updating node specifically includes:
receiving interface update prompt information sent by an interface information update node of a block chain, wherein the interface update prompt information is formed by the interface information update node according to the received update interface information;
and transmitting a subscription update request to the interface information update node based on the interface update prompt information, and receiving new version interface information transmitted by the interface information update node.
8. An interface information update node, comprising:
The information processing module is used for receiving the updated interface information and broadcasting the updated interface information to all nodes of the block chain so that each node forms an interface information block according to the interface information, wherein the interface information block comprises new version interface information, new version interface description information and corresponding old version interface description information;
the application system determining module is used for determining a target application system subscribing to the interface information according to the old version interface description information of the interface information block in the interface information block; the target application system for determining the subscription interface information according to the old version interface description information of the interface information block in the interface information block specifically comprises the following steps: determining an application system subscribed to an old version interface as a target application system according to the old version interface description information and a preset interface subscription information block, wherein the interface subscription information block comprises the old version interface description information and the corresponding application system as the target application system;
and the information pushing module is used for transmitting the new version interface information to the target application system so as to update the interface information.
9. The system is characterized by comprising terminal equipment, a blockchain and at least one application system, wherein the blockchain comprises a plurality of interface information updating nodes;
The terminal equipment sends updated interface information to an interface information updating node of the block chain;
the interface information updating node of the block chain broadcasts updated interface information to all nodes of the block chain so that each node forms an interface information block according to the interface information, the interface information block comprises new version interface information, new version interface description information and corresponding old version interface description information, a target application system subscribing the interface information is determined according to the interface information block old version interface description information in the interface information block, and the new version interface information is transmitted to the target application system; the target application system for determining the subscription interface information according to the old version interface description information of the interface information block in the interface information block specifically comprises the following steps: determining an application system subscribed to an old version interface as a target application system according to the old version interface description information and a preset interface subscription information block, wherein the interface subscription information block comprises the old version interface description information and the corresponding application system as the target application system;
and the target application system is used for realizing the updating of the interface information according to the new version interface information.
10. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that,
the processor implementing the method according to any of claims 1-7 when executing the program.
11. A computer readable medium having a computer program stored thereon, characterized in that,
the program, when executed by a processor, implements the method of any of claims 1-7.
CN202010905002.0A 2020-09-01 2020-09-01 Block chain-based interface information updating method, node and system Active CN112035143B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010905002.0A CN112035143B (en) 2020-09-01 2020-09-01 Block chain-based interface information updating method, node and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010905002.0A CN112035143B (en) 2020-09-01 2020-09-01 Block chain-based interface information updating method, node and system

Publications (2)

Publication Number Publication Date
CN112035143A CN112035143A (en) 2020-12-04
CN112035143B true CN112035143B (en) 2023-08-18

Family

ID=73590849

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010905002.0A Active CN112035143B (en) 2020-09-01 2020-09-01 Block chain-based interface information updating method, node and system

Country Status (1)

Country Link
CN (1) CN112035143B (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110597541A (en) * 2019-09-16 2019-12-20 腾讯科技(深圳)有限公司 Interface updating processing method, device, equipment and storage medium based on block chain

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10579368B2 (en) * 2017-03-10 2020-03-03 Salesforce.Com, Inc. Blockchain version control systems

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110597541A (en) * 2019-09-16 2019-12-20 腾讯科技(深圳)有限公司 Interface updating processing method, device, equipment and storage medium based on block chain

Also Published As

Publication number Publication date
CN112035143A (en) 2020-12-04

Similar Documents

Publication Publication Date Title
US11088854B2 (en) Securing blockchain access through a gateway on behalf of a communication device
CN110430162B (en) Method and device for sending authenticable message in cross-link mode
US9009243B2 (en) Tracking usage of and sharing data between mobile device applications
CN100527080C (en) Method for software program synchronization
US8868786B1 (en) Apparatus, systems and methods for transformation services
CN111163129A (en) Resource processing method and device based on cross-link network
CN108512821B (en) Data transmission method, device and system, network gate and transaction data storage method
CN109815107B (en) Method and device for automatic testing
CN109104368B (en) Connection request method, device, server and computer readable storage medium
CN110659053A (en) Program updating method, device, storage medium and electronic equipment
CN104852971B (en) Plug-in protocol device and data communication method based on plug-in protocol
CN113472807B (en) Private communication method and device between users
CN105516246A (en) Method for preventing application program downloading hijacking and server
CN111460129A (en) Method and device for generating identification, electronic equipment and storage medium
CN114448719B (en) Message interaction method, device and system
CN113095825B (en) Asset management method and device based on block chain and electronic equipment
CN112035143B (en) Block chain-based interface information updating method, node and system
CN111327680B (en) Authentication data synchronization method, device, system, computer equipment and storage medium
CN111787041A (en) Method and apparatus for processing data
CN111626802A (en) Method and apparatus for processing information
CN113283891A (en) Information processing method and device and electronic equipment
CN113656050A (en) Method and device for generating version number
US20240152504A1 (en) Data interaction method, apparatus, and electronic device
CN111629395B (en) Multi-mode communication antenna unit, system and method
CN114331447B (en) Cross-link message submitting method and device

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