CN110825797A - Data exchange method and device - Google Patents

Data exchange method and device Download PDF

Info

Publication number
CN110825797A
CN110825797A CN201911028116.5A CN201911028116A CN110825797A CN 110825797 A CN110825797 A CN 110825797A CN 201911028116 A CN201911028116 A CN 201911028116A CN 110825797 A CN110825797 A CN 110825797A
Authority
CN
China
Prior art keywords
data
contract text
end processor
exchange
contract
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201911028116.5A
Other languages
Chinese (zh)
Other versions
CN110825797B (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.)
Yechain (shanghai) Technology Co Ltd
Original Assignee
Yechain (shanghai) 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 Yechain (shanghai) Technology Co Ltd filed Critical Yechain (shanghai) Technology Co Ltd
Priority to CN201911028116.5A priority Critical patent/CN110825797B/en
Publication of CN110825797A publication Critical patent/CN110825797A/en
Application granted granted Critical
Publication of CN110825797B publication Critical patent/CN110825797B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/25Integrating or interfacing systems involving database management systems
    • G06F16/252Integrating or interfacing systems involving database management systems between a Database Management System and a front-end application
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor

Abstract

The application discloses a data exchange method and device. The method comprises the following steps: acquiring a contract text appointed in an appointed block chain, and decrypting the contract text according to a private key; executing the decrypted contract text to send a channel establishment request containing the contract text to a second front-end processor specified by the contract text, so that the second front-end processor verifies the channel establishment request according to a preset verification rule corresponding to the contract text, and feeding back confirmation information for agreeing to establish the channel when the verification is passed; and establishing an authorization channel with the second front-end processor according to the received confirmation information so as to exchange data with the second front-end processor according to the contract text. The method and the device can solve the technical problem of low real-time performance when data exchange is carried out through the data exchange platform in the related technology.

Description

Data exchange method and device
Technical Field
The present application relates to the field of data exchange technologies, and in particular, to a data exchange method and apparatus.
Background
The data exchange platform is an information exchange platform which is constructed by integrating a plurality of application information systems which are constructed in a scattered way and a computer network, and enables a plurality of application subsystems to transmit and share information/data, improves the utilization rate of information resources, becomes a basic target for information construction, ensures interconnection and intercommunication among distributed heterogeneous systems, establishes a central database, completes extraction, concentration, loading and display of data, and constructs unified data processing and exchange. However, when data exchange is performed through the data exchange platform, multiple conversions of "front-end processor-exchange platform-front-end processor" are required, which results in low real-time performance of data exchange.
Aiming at the problem of low real-time performance when data exchange is carried out through a data exchange platform in the related technology, an effective solution is not provided at present.
Disclosure of Invention
The present application mainly aims to provide a data exchange method and apparatus, so as to solve the problem of low real-time performance when data exchange is performed through a data exchange platform in the related art.
In order to achieve the above object, in a first aspect, the present application provides a data exchange method, which is applied to a first front-end processor, and includes:
acquiring a contract text appointed in an appointed block chain, and decrypting the contract text according to a private key;
executing the decrypted contract text to send a channel establishment request containing the contract text to a second front-end processor specified by the contract text, so that the second front-end processor verifies the channel establishment request according to a preset verification rule corresponding to the contract text, and when the verification is passed, feeding back confirmation information for agreeing to establish a channel;
and establishing an authorization channel with the second front-end processor according to the received confirmation information so as to exchange data with the second front-end processor according to the contract text.
Optionally, the exchanging data with the second front-end processor according to the contract text includes:
receiving first request data sent by a corresponding first service end;
carrying out format conversion on the first request data according to the contract text to generate second request data;
sending the second request data to a second front-end processor, so that the second front-end processor obtains first exchange data of a second service end corresponding to the second front-end processor according to the second request data, and feeds back the first exchange data;
receiving the first exchange data;
carrying out format conversion on the first exchange data according to the contract text to generate second exchange data;
and sending the second exchange data to the first service end.
Optionally, the contract text includes an API interface used by the second front-end processor to call data of the second service end, and the data exchange with the second front-end processor according to the contract text includes:
receiving first exchange data, wherein the second service end sends third exchange data to a second front-end processor end through the API, format conversion is carried out on the third exchange data according to the contract text, first exchange data is generated, and the first exchange data is sent out;
carrying out format conversion on the first exchange data according to the contract text to generate second exchange data;
and sending the second exchange data to the first service end.
Optionally, the method further comprises:
receiving notification information which is sent by a management end and really considers that the contract text is appointed, wherein the management end monitors whether the contract text on the account of the corresponding block chain on the appointed block chain is increased or not, and confirms the increased contract text as the appointed contract text when monitoring that the contract text on the account of the corresponding block chain on the appointed block chain is increased;
and executing the step of acquiring the contract text appointed in the appointed block chain according to the notification information.
In a second aspect, the present application further provides a data exchange method, where the method is applied to a second front-end processor, and the method includes:
receiving a channel establishment request containing a specified contract text, wherein a first front-end processor end acquires the contract text in a specified block chain, decrypts the contract text according to a private key, executes the decrypted contract text, and sends the channel establishment request;
verifying the channel establishment request according to a preset verification rule corresponding to the contract text;
and when the contract is verified, feeding back confirmation information for agreeing to establish a channel so as to establish an authorized channel with the first front-end processor, and exchanging data with the first front-end processor according to the contract text.
Optionally, the exchanging data with the first front-end processor according to the contract text includes:
receiving second request data, wherein the first front-end processor receives first request data sent by a corresponding first service end, performs format conversion on the first request data according to the contract text to generate second request data, and then sends the second request data;
carrying out format conversion on the second request data according to the contract text to generate third request data;
sending the third request data to a corresponding second service end so that the second service end feeds back corresponding third exchange data according to the third request data;
receiving the third exchange data;
carrying out format conversion on the third exchange data according to the contract text to generate first exchange data;
and sending the first exchange data to the first front-end processor, so that the first front-end processor sends the first exchange data to the first service end.
Optionally, the contract text includes an API interface for invoking data of a second service end, and the data exchange with the first front-end processor according to the contract text includes:
receiving third exchange data, wherein the second service end sends out the third exchange data through the API;
carrying out format conversion on the third exchange data according to the contract text to generate first exchange data;
and sending the first exchange data to the first front-end processor, so that the first front-end processor sends the first exchange data to the first service end.
In a third aspect, the present application further provides a data exchanging apparatus, where the apparatus is applied to a first front-end processor, and the apparatus includes:
the acquisition module is used for acquiring the contract text appointed in the appointed block chain and decrypting the contract text according to a private key;
the execution module is used for executing the decrypted contract text to send a channel establishment request containing the contract text to a second front-end processor specified by the contract text, so that the second front-end processor verifies the channel establishment request according to a preset verification rule corresponding to the contract text, and when the verification is passed, the execution module feeds back confirmation information for agreeing to establish the channel;
and the channel module is used for establishing an authorization channel with the second front-end processor according to the received confirmation information so as to exchange data with the second front-end processor according to the contract text.
In a fourth aspect, the present application further provides a data exchanging apparatus, where the apparatus is applied to a second front-end processor, and the apparatus includes:
the receiving module is used for receiving a channel establishment request containing a specified contract text, wherein the first front-end processor end acquires the contract text in a specified block chain, decrypts the contract text according to a private key, executes the decrypted contract text and sends the channel establishment request;
the verification module is used for verifying the channel establishment request according to a preset verification rule corresponding to the contract text;
and the feedback module is used for feeding back confirmation information used for agreeing to establish a channel when the contract is verified so as to establish an authorized channel with the first front-end processor and exchange data with the first front-end processor according to the contract text.
In a fifth aspect, the present application also provides a computer-readable storage medium storing computer code that, when executed, performs the data exchange method described above.
In the data exchange method provided by the application, the contract text appointed in the appointed block chain is obtained, and the contract text is decrypted according to the private key; executing the decrypted contract text to send a channel establishment request containing the contract text to a second front-end processor specified by the contract text, so that the second front-end processor verifies the channel establishment request according to a preset verification rule corresponding to the contract text, and feeding back confirmation information for agreeing to establish the channel when the verification is passed; and establishing an authorization channel with the second front-end processor according to the received confirmation information so as to exchange data with the second front-end processor according to the contract text. Therefore, the end-to-end communication channel is established by adopting the block chain between the first front-end processor and the second front-end processor, and data exchange is realized based on the end-to-end communication, thereby achieving the purpose of high real-time performance of data exchange communication. And the technical problem of low real-time performance when data exchange is carried out through a data exchange platform in the related technology is solved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this application, serve to provide a further understanding of the application and to enable other features, objects, and advantages of the application to be more apparent. The drawings and their description illustrate the embodiments of the invention and do not limit it. In the drawings:
fig. 1 is a schematic structural diagram of a data exchange system based on a block chain according to an embodiment of the present application;
fig. 2 is a schematic flowchart of a data exchange method provided in an embodiment of the present application;
fig. 3 is a schematic flowchart of a data exchange method according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of a data switching fabric provided in an embodiment of the present application;
FIG. 5 is a schematic structural diagram of another data exchange structure provided in an embodiment of the present application;
fig. 6 is a schematic structural diagram of another data exchange structure provided in an embodiment of the present application.
Detailed Description
In order to make the technical solutions better understood by those skilled in the art, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only partial embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
It should be noted that the terms "first," "second," and the like in the description and claims of this application and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It should be understood that the data so used may be interchanged under appropriate circumstances such that embodiments of the application described herein may be used. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict. The present application will be described in detail below with reference to the embodiments with reference to the attached drawings.
The data exchange method provided by the present application relies on a data exchange system based on a block chain, and fig. 1 is a schematic structural diagram of a data exchange system based on a block chain provided in the present application, and as shown in fig. 1, the system architecture includes a data sharing collaborative management end, a block chain, and at least two service systems, each of the service systems may include a front-end processor and a service end, optionally, the front-end processor may adopt an SDK (Software Development Kit) and a service system integration, in the system, the front-end processor may generate a block chain account, an encrypted public key, and an encrypted private key offline, the management end may configure and customize a contract text for the block chain, and based on the contract file, a data exchange channel is established between the two service systems (service ends). The data exchange system based on the block chain is based on the data exchange process between two service systems (service ends) as shown in fig. 2.
According to an aspect of the present application, an embodiment of the present application provides a data exchange method, where the method is applied to a first front-end processor, fig. 3 is a schematic flow chart of a data processing method provided by the embodiment of the present application, and as shown in fig. 3, the method includes the following steps 110 to 130:
and 110, acquiring the contract text specified in the specified block chain, and decrypting the contract text according to the private key.
The first front-end processor obtains a contract file specified in a specified blockchain, wherein the contract file may include the following main functions: 1. end-to-end communication establishment, transmission and destruction; 2. taking original data (exchange data) from a service system of a data provider (second front-end processor); 3. if the data provider (the second front-end processor) is supported to actively push, providing an API (application programming interface) called by a service system of the data provider; 4. associating standard formats and performing format conversion; 5. an API interface for providing service system call in a data receiver (a first front-end processor); 6. when the channel is destroyed, the final result of the operation in the transmission process is written into the block chain for right confirmation, and the main scene can be used for settlement of data exchange cost.
Specifically, the first front-end processor obtains a contract text specified in the specified block chain, and calls a private key to decrypt the contract text to obtain a decrypted contract text.
And 120, executing the decrypted contract text to send a channel establishment request containing the contract text to a second front-end processor specified by the contract text, so that the second front-end processor verifies the channel establishment request according to a preset verification rule corresponding to the contract text, and when the verification is passed, feeding back confirmation information for agreeing to establish the channel.
Specifically, the first front-end processor executes the decrypted contract text, namely executes the decrypted contract text in the contract execution engine, further generating a channel establishing request containing the contract text, and sending the channel establishing request to the second front-end processor, when the second front-end computer receives the channel establishment request containing the contract text, the second front-end computer verifies the contract text, the verification process may be a preset verification rule, for example, the preset verification rule may be that the second front-end obtains the complete contract text of the contract text in the specified blockchain, compares whether the two contract texts are the same, and if the two contract texts are the same, and if the two contract texts are different, the second front-end processor does not establish an authorized channel with the first front-end processor.
And 130, establishing an authorization channel with the second front-end processor according to the received confirmation information so as to exchange data with the second front-end processor according to the contract text.
Specifically, after the first front-end processor receives the confirmation information sent by the second front-end processor, it is determined that the first front-end processor and the second front-end processor establish the authorized channel, and then the first front-end processor and the second front-end processor can exchange data according to the authorized channel and the contract text, so that the end-to-end communication channel is established by adopting a block chain between the first front-end processor and the second front-end processor, and the data exchange is realized based on the end-to-end communication, thereby achieving the purpose of high real-time performance of exchanging data communication.
In one possible embodiment, the step of exchanging data with the second front-end processor according to the contract text comprises the following steps:
receiving first request data sent by a corresponding first service end;
carrying out format conversion on the first request data according to the contract text to generate second request data;
sending the second request data to the second front-end processor, so that the second front-end processor obtains first exchange data of a second service end corresponding to the second front-end processor according to the second request data and feeds back the first exchange data;
receiving first exchange data;
carrying out format conversion on the first exchange data according to the contract text to generate second exchange data;
and sending the second exchange data to the first service end.
Wherein, after the second front-end feeds back the confirmation information agreeing to establish the channel to the first front-end, both the first front-end and the second front-end can generate a contract receiving processing module, a contract callback processing module and a contract conversion processing module corresponding to the contract text at the local end, the first front-end receives the first request data sent by the corresponding first service end through the contract receiving processing module, and then carries out format conversion on the first request data according to the contract text through the contract conversion processing module to generate second request data, and then sends the second request data to the second front-end through the authorization channel, so that the second front-end obtains the first exchange data corresponding to the second service end of the second front-end according to the second request data and feeds back the first exchange data, and then the first front-end receives the first exchange data through the authorization channel, and then, format conversion is carried out on the first exchange data according to the contract text through a contract conversion processing module to generate second exchange data, and the second exchange data is sent to the first service end through a contract callback processing module, namely, the format exchange data of the second service end (data provider) is converted into format data conforming to the first service end (data receiver) and written into the first service end. The above process is a process in which a data receiver initiates a data request to a data provider.
In a possible implementation manner, the contract text includes an API interface used by the second front-end to invoke data of the second service end, and performs data exchange with the second front-end according to the contract text, including the following steps:
receiving first exchange data, wherein a second service end sends third exchange data to a second front-end processor end through an API (application programming interface), format conversion is carried out on the third exchange data according to a contract text to generate first exchange data, and the first exchange data is sent out;
carrying out format conversion on the first exchange data according to the contract text to generate second exchange data;
and sending the second exchange data to the first service end.
Specifically, when the first front-end processor does not send request data and receives the first exchange data through the authorization channel, that is, the second front-end processor initiatively provides exchange data to the first front-end processor, after receiving the first exchange data through the authorization channel, the first front-end processor performs format conversion on the first exchange data according to a contract text through the contract conversion processing module to generate second exchange data, and then sends the second exchange data to the first service end through the contract callback processing module, that is, the format exchange data of the second service end (data provider) is converted into format data conforming to the first service end (data receiver) and written into the first service end. In this way, the procedure can realize the function that the second service end (data provider) actively provides data to the first service end (data receiver) by the way that the contract text contains the API interface used by the second front-end processor to call the data of the second service end.
Optionally, the data exchange method further includes the following steps:
receiving notification information which is sent by a management end and really considers the appointed contract text, wherein the management end monitors whether the contract text on the account of the corresponding block chain on the appointed block chain is increased or not, and when the contract text on the account of the corresponding block chain on the appointed block chain is increased, the increased contract text is confirmed as the appointed contract text;
according to the notification information, step 100 is executed to obtain the contract text specified in the specified blockchain.
Specifically, the data exchange method may adopt the management end to monitor whether the contract text on the account of the corresponding blockchain on the specified blockchain is increased or not in a unified manner on the specified blockchain, when it is monitored that the contract text on the account of the corresponding blockchain on the specified blockchain is increased, the increased contract text is confirmed to be the specified contract text, then the management end sends notification information confirming that the contract text is the specified contract text to the first front-end, and after the first front-end receives the notification information, step 100 is executed.
In the data exchange method provided by the application, through step 100, a contract text specified in a specified block chain is obtained, and the contract text is decrypted according to a private key; step 200, executing the decrypted contract text to send a channel establishment request containing the contract text to a second front-end processor specified by the contract text, so that the second front-end processor verifies the channel establishment request according to a preset verification rule corresponding to the contract text, and when the verification is passed, feeding back confirmation information for agreeing to establish the channel; and 300, establishing an authorization channel with the second front-end processor according to the received confirmation information so as to exchange data with the second front-end processor according to the contract text. Therefore, the end-to-end communication channel is established by adopting the block chain between the first front-end processor and the second front-end processor, and data exchange is realized based on the end-to-end communication, thereby achieving the purpose of high real-time performance of data exchange communication. And the technical problem of low real-time performance when data exchange is carried out through a data exchange platform in the related technology is solved.
It should be noted that the data exchange method provided by the present application has the advantage of high real-time performance of data communication exchange, and also has the following advantages: 1. communication safety is established at the account level of the block chain, so that the safety is high; 2. the centralized data exchange is removed, the cost is low, and the disaster tolerance capability is strong; 3. the method can be suitable for various block chains, so that the applicability is stronger.
Based on the same technical concept, the present application further provides a data exchange method, the method is applied to a second front-end processor, fig. 4 is a schematic flow chart of another data exchange method provided in the embodiment of the present application, and as shown in fig. 4, the method includes the following steps 210 to 230:
210, receiving a channel establishment request containing a specified contract text, wherein the first front-end processor acquires the contract text in the specified block chain, decrypts the contract text according to a private key, executes the decrypted contract text, and sends out the channel establishment request;
220, verifying the channel establishment request according to a preset verification rule corresponding to the contract text;
and 230, when the verification is passed, feeding back confirmation information for agreeing to establish the channel so as to establish an authorized channel with the first front-end computer terminal and exchange data with the first front-end computer terminal according to the contract text.
Specifically, an end-to-end communication channel is established by adopting a block chain between a first front-end processor and a second front-end processor, and data exchange is realized based on end-to-end communication, so that the aim of high real-time performance of data exchange communication is fulfilled.
Optionally, exchanging data with the first front-end processor according to the contract text, including:
receiving second request data, wherein the first front-end processor receives the first request data sent by the corresponding first service end, performs format conversion on the first request data according to the contract text to generate second request data, and then sends the second request data;
carrying out format conversion on the second request data according to the contract text to generate third request data;
sending the third request data to a corresponding second service end so that the second service end feeds back corresponding third exchange data according to the third request data;
receiving third exchange data;
carrying out format conversion on the third exchange data according to the contract text to generate first exchange data;
and sending the first exchange data to the first front-end processor, so that the first front-end processor sends the first exchange data to the first service end.
After the second front-end processor feeds back confirmation information agreeing to establish the channel to the first front-end processor, the first front-end processor and the second front-end processor can both generate a contract receiving processing module, a contract callback processing module and a contract conversion processing module corresponding to the contract text at the local end, the first front-end processor receives first request data sent by the corresponding first service end through the contract receiving processing module, carries out format conversion on the first request data according to the contract text through the contract conversion processing module to generate second request data, sends the second request data to the second front-end processor through the authorization channel so that the second front-end processor receives the second request data according to the authorization channel, carries out format conversion on the second request data through the contract conversion processing module to generate third request data, and sends the third request data to the corresponding second service end through the contract callback processing module, so that the second service end feeds back corresponding third exchange data according to the third request data, then the second front-end processor receives the third exchange data through the contract receiving and processing module, then the contract conversion processing module performs format conversion on the third exchange data to generate first exchange data, then the first exchange data is sent to the first front-end processor through the authorization channel, then the first front-end processor receives the first exchange data through the authorization channel, then the contract conversion processing module performs format conversion on the first exchange data according to the contract text to generate second exchange data, and then the contract callback processing module sends the second exchange data to the first service end, that is, the format exchange data of the second service end (data provider) is converted into the format data conforming to the first service end (data receiver) and written into the first service end. The above process is a process in which a data receiver initiates a data request to a data provider.
Optionally, the contract text includes an API interface for invoking data of the second service end, and exchanges data with the first front-end processor according to the contract text, including:
receiving third exchange data, wherein the second service end sends out the third exchange data through the API;
carrying out format conversion on the third exchange data according to the contract text to generate first exchange data;
and sending the first exchange data to the first front-end processor, so that the first front-end processor sends the first exchange data to the first service end.
Contract receiving processing module, contract callback processing module and contract conversion processing module
When the second front-end processor actively provides the exchange data to the first front-end processor, the exchange data is: the second service end sends third exchange data through an API (application programming interface), the second front-end processor end receives the third exchange data through a contract receiving and processing module, format conversion is carried out on the third exchange data through a contract conversion processing module to generate first exchange data, the first exchange data are sent to the first front-end processor end through an authorization channel, after the first front-end processor end receives the first exchange data through the authorization channel, format conversion is carried out on the first exchange data according to a contract text through the contract conversion processing module to generate second exchange data, and the second exchange data are sent to the first service end through a contract callback processing module, namely the format exchange data of the second service end (data provider) are converted into format data which are in line with the first service end (data receiver) and written into the first service end. In this way, the procedure can realize the function that the second service end (data provider) actively provides data to the first service end (data receiver) by the way that the contract text contains the API interface used by the second front-end processor to call the data of the second service end.
Based on the same technical concept, the present application further provides a data exchanging apparatus, which is applied to a first front-end processor, and fig. 5 is a schematic structural diagram of the data exchanging apparatus provided in the embodiment of the present application, and as shown in fig. 5, the apparatus includes:
the acquisition module 11 is configured to acquire a contract text specified in a specified block chain and decrypt the contract text according to a private key;
the execution module 12 is configured to execute the decrypted contract text, so as to send a channel establishment request including the contract text to a second front-end specified by the contract text, so that the second front-end verifies the channel establishment request according to a preset verification rule corresponding to the contract text, and when the second front-end passes the verification, feedback confirmation information for agreeing to establish the channel;
and the channel module 13 is configured to establish an authorized channel with the second front-end processor according to the received confirmation information, so as to perform data exchange with the second front-end processor according to the contract text.
Based on the same technical concept, the present application further provides a data exchange device, which is applied to a second front-end processor, fig. 6 is a schematic structural diagram of another data exchange device provided in this embodiment of the present application, and as shown in fig. 6, the data exchange device includes:
the receiving module 21 is configured to receive a channel establishment request including a specified contract text, where the first front-end processor obtains the contract text in the specified block chain, decrypts the contract text according to a private key, executes the decrypted contract text, and sends the channel establishment request;
the verification module 22 is used for verifying the channel establishment request according to a preset verification rule corresponding to the contract text;
and the feedback module 23 is configured to, when the verification is passed, feed back confirmation information used for agreeing to establish the channel, so as to establish an authorized channel with the first front-end processor, and perform data exchange with the first front-end processor according to the contract text.
Based on the same technical concept, the embodiment of the present application also provides a computer-readable storage medium storing computer code, and when the computer code is executed, the data exchange method is executed.
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 computer storage media 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 that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It will be apparent to those skilled in the art that the modules or steps of the present invention described above may be implemented by a general purpose computing device, they may be centralized on a single computing device or distributed across a network of multiple computing devices, and they may alternatively be implemented by program code executable by a computing device, such that they may be stored in a storage device and executed by a computing device, or fabricated separately as individual integrated circuit modules, or fabricated as a single integrated circuit module from multiple modules or steps. Thus, the present invention is not limited to any specific combination of hardware and software.
The above description is only a preferred embodiment of the present application and is not intended to limit the present application, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims (10)

1. A data exchange method, wherein the method is applied to a first front-end processor, and the method comprises:
acquiring a contract text appointed in an appointed block chain, and decrypting the contract text according to a private key;
executing the decrypted contract text to send a channel establishment request containing the contract text to a second front-end processor specified by the contract text, so that the second front-end processor verifies the channel establishment request according to a preset verification rule corresponding to the contract text, and when the verification is passed, feeding back confirmation information for agreeing to establish a channel;
and establishing an authorization channel with the second front-end processor according to the received confirmation information so as to exchange data with the second front-end processor according to the contract text.
2. The data exchange method according to claim 1, wherein the data exchange with the second front-end processor according to the contract text comprises:
receiving first request data sent by a corresponding first service end;
carrying out format conversion on the first request data according to the contract text to generate second request data;
sending the second request data to a second front-end processor, so that the second front-end processor obtains first exchange data of a second service end corresponding to the second front-end processor according to the second request data, and feeds back the first exchange data;
receiving the first exchange data;
carrying out format conversion on the first exchange data according to the contract text to generate second exchange data;
and sending the second exchange data to the first service end.
3. The data exchange method according to claim 1, wherein the contract text includes an API interface used by the second front-end processor to invoke second service-end data, and the data exchange with the second front-end processor according to the contract text includes:
receiving first exchange data, wherein the second service end sends third exchange data to a second front-end processor end through the API, format conversion is carried out on the third exchange data according to the contract text, first exchange data is generated, and the first exchange data is sent out;
carrying out format conversion on the first exchange data according to the contract text to generate second exchange data;
and sending the second exchange data to the first service end.
4. The data exchange method of claim 1, further comprising:
receiving notification information which is sent by a management end and really considers that the contract text is appointed, wherein the management end monitors whether the contract text on the account of the corresponding block chain on the appointed block chain is increased or not, and confirms the increased contract text as the appointed contract text when monitoring that the contract text on the account of the corresponding block chain on the appointed block chain is increased;
and executing the step of acquiring the contract text appointed in the appointed block chain according to the notification information.
5. A data exchange method, wherein the method is applied to a second front-end processor, and the method comprises:
receiving a channel establishment request containing a specified contract text, wherein a first front-end processor end acquires the contract text in a specified block chain, decrypts the contract text according to a private key, executes the decrypted contract text, and sends the channel establishment request;
verifying the channel establishment request according to a preset verification rule corresponding to the contract text;
and when the contract is verified, feeding back confirmation information for agreeing to establish a channel so as to establish an authorized channel with the first front-end processor, and exchanging data with the first front-end processor according to the contract text.
6. The data exchange method according to claim 5, wherein the data exchange with the first front-end processor according to the contract text comprises:
receiving second request data, wherein the first front-end processor receives first request data sent by a corresponding first service end, performs format conversion on the first request data according to the contract text to generate second request data, and then sends the second request data;
carrying out format conversion on the second request data according to the contract text to generate third request data;
sending the third request data to a corresponding second service end so that the second service end feeds back corresponding third exchange data according to the third request data;
receiving the third exchange data;
carrying out format conversion on the third exchange data according to the contract text to generate first exchange data;
and sending the first exchange data to the first front-end processor, so that the first front-end processor sends the first exchange data to the first service end.
7. The data exchange method according to claim 5, wherein the contract text includes an API interface for invoking data of a second service end, and the data exchange with the first front-end processor according to the contract text includes:
receiving third exchange data, wherein the second service end sends out the third exchange data through the API;
carrying out format conversion on the third exchange data according to the contract text to generate first exchange data;
and sending the first exchange data to the first front-end processor, so that the first front-end processor sends the first exchange data to a first service end.
8. A data exchanging apparatus, wherein the apparatus is applied to a first front-end processor, and the apparatus comprises:
the acquisition module is used for acquiring the contract text appointed in the appointed block chain and decrypting the contract text according to a private key;
the execution module is used for executing the decrypted contract text to send a channel establishment request containing the contract text to a second front-end processor specified by the contract text, so that the second front-end processor verifies the channel establishment request according to a preset verification rule corresponding to the contract text, and when the verification is passed, the execution module feeds back confirmation information for agreeing to establish the channel;
and the channel module is used for establishing an authorization channel with the second front-end processor according to the received confirmation information so as to exchange data with the second front-end processor according to the contract text.
9. A data exchanging apparatus, wherein the apparatus is applied to a second front-end processor, and the apparatus comprises:
the receiving module is used for receiving a channel establishment request containing a specified contract text, wherein the first front-end processor end acquires the contract text in a specified block chain, decrypts the contract text according to a private key, executes the decrypted contract text and sends the channel establishment request;
the verification module is used for verifying the channel establishment request according to a preset verification rule corresponding to the contract text;
and the feedback module is used for feeding back confirmation information used for agreeing to establish a channel when the contract is verified so as to establish an authorized channel with the first front-end processor and exchange data with the first front-end processor according to the contract text.
10. A computer readable storage medium storing computer code which, when executed, performs a data exchange method as claimed in any one of claims 1 to 7.
CN201911028116.5A 2019-10-25 2019-10-25 Data exchange method and device Active CN110825797B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911028116.5A CN110825797B (en) 2019-10-25 2019-10-25 Data exchange method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911028116.5A CN110825797B (en) 2019-10-25 2019-10-25 Data exchange method and device

Publications (2)

Publication Number Publication Date
CN110825797A true CN110825797A (en) 2020-02-21
CN110825797B CN110825797B (en) 2022-12-16

Family

ID=69550763

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911028116.5A Active CN110825797B (en) 2019-10-25 2019-10-25 Data exchange method and device

Country Status (1)

Country Link
CN (1) CN110825797B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111797167A (en) * 2020-07-02 2020-10-20 中国联合网络通信集团有限公司 Data synchronization system and method and data processing center
CN112398909A (en) * 2020-10-20 2021-02-23 深圳智乾区块链科技有限公司 Data exchange method, device, equipment and computer readable storage medium

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170147808A1 (en) * 2015-11-19 2017-05-25 International Business Machines Corporation Tokens for multi-tenant transaction database identity, attribute and reputation management
CN108959202A (en) * 2017-05-23 2018-12-07 莫列斯有限公司 Handle the device of non-electronic data switched data
CN109002729A (en) * 2018-07-09 2018-12-14 福建省农村信用社联合社 A kind of customer privacy data managing method based on financial block chain
CN109120398A (en) * 2018-08-03 2019-01-01 河南师范大学 A kind of privacy sharing method and apparatus based on block catenary system
US20190005469A1 (en) * 2015-07-14 2019-01-03 Fmr Llc Collateral Management With Blockchain and Smart Contracts Apparatuses, Methods and Systems
CN109191355A (en) * 2018-08-21 2019-01-11 严治 A kind of wound data shared system based on block chain
CN109493216A (en) * 2018-09-30 2019-03-19 北京小米移动软件有限公司 Model training method, device, system and storage medium
CN109729168A (en) * 2018-12-31 2019-05-07 浙江成功软件开发有限公司 A kind of data share exchange system and method based on block chain
CN110147994A (en) * 2019-04-13 2019-08-20 山东公链信息科技有限公司 A kind of instant execution method of the block chain based on homomorphic cryptography
CN110224814A (en) * 2019-06-27 2019-09-10 深圳前海微众银行股份有限公司 A kind of block chain data sharing method and device

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20190005469A1 (en) * 2015-07-14 2019-01-03 Fmr Llc Collateral Management With Blockchain and Smart Contracts Apparatuses, Methods and Systems
US20170147808A1 (en) * 2015-11-19 2017-05-25 International Business Machines Corporation Tokens for multi-tenant transaction database identity, attribute and reputation management
CN108959202A (en) * 2017-05-23 2018-12-07 莫列斯有限公司 Handle the device of non-electronic data switched data
CN109002729A (en) * 2018-07-09 2018-12-14 福建省农村信用社联合社 A kind of customer privacy data managing method based on financial block chain
CN109120398A (en) * 2018-08-03 2019-01-01 河南师范大学 A kind of privacy sharing method and apparatus based on block catenary system
CN109191355A (en) * 2018-08-21 2019-01-11 严治 A kind of wound data shared system based on block chain
CN109493216A (en) * 2018-09-30 2019-03-19 北京小米移动软件有限公司 Model training method, device, system and storage medium
CN109729168A (en) * 2018-12-31 2019-05-07 浙江成功软件开发有限公司 A kind of data share exchange system and method based on block chain
CN110147994A (en) * 2019-04-13 2019-08-20 山东公链信息科技有限公司 A kind of instant execution method of the block chain based on homomorphic cryptography
CN110224814A (en) * 2019-06-27 2019-09-10 深圳前海微众银行股份有限公司 A kind of block chain data sharing method and device

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
QI XIA等: "MeDshare:trust-less medical data sharing among cloud service providers via blockchain", 《IEEE ACCESS》 *
王洁等: "基于区块链的科技金融大数据开放共享体系研究", 《现代计算机(专业版)》 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111797167A (en) * 2020-07-02 2020-10-20 中国联合网络通信集团有限公司 Data synchronization system and method and data processing center
CN111797167B (en) * 2020-07-02 2023-05-16 中国联合网络通信集团有限公司 Data synchronization system and method and data processing center
CN112398909A (en) * 2020-10-20 2021-02-23 深圳智乾区块链科技有限公司 Data exchange method, device, equipment and computer readable storage medium
CN112398909B (en) * 2020-10-20 2023-06-27 深圳智乾区块链科技有限公司 Data exchange method, device, equipment and computer readable storage medium

Also Published As

Publication number Publication date
CN110825797B (en) 2022-12-16

Similar Documents

Publication Publication Date Title
US20170371625A1 (en) Content delivery method
CN104268025A (en) Interprocess communication method and system, and server
CN110825797B (en) Data exchange method and device
CN113453175A (en) 5G message processing method and device, computer equipment and storage medium
CN113837760B (en) Data processing method, data processing device, computer equipment and storage medium
CN111211911A (en) Collaborative signature method, device, equipment and system
CN111259356B (en) Authorization method, auxiliary authorization component, management server and computer readable medium
CN107294968B (en) Audio and video data monitoring method and system
CN111865897A (en) Cloud service management method and device
CN114866964A (en) Message transmission method and device based on proximity service, electronic equipment and medium
CN114465867A (en) Server maintenance method and device, storage medium and processor
CN115426178B (en) Calling method, calling device, electronic equipment and computer readable medium
US9723436B2 (en) Mobile device location
CN103607324B (en) Data processing method for Java message service, Java message client and server
CN113420336B (en) Distributed predictor realization method and system
US20100138650A1 (en) Secure communication system, gateway apparatus and its operating method
CN115118426A (en) Data processing method, device and equipment of block chain system and storage medium
CN111581673B (en) SAP electronic signature method and system
CN114048498A (en) Data sharing method, device, equipment and medium
CN113315758B (en) Information agent method and device
CN110457959B (en) Information transmission method and device based on Trust application
CN113014545A (en) Data processing method and device, computer equipment and storage medium
CN111752625A (en) Method and device for interface mock
KR102658615B1 (en) Method for ssp device to interoperate between bundle donwload procedure and profile donwload procedure
CN115118427A (en) Data transmission method, device and equipment of block chain system and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant