CN107330026B - Method compatible with heterogeneous block chain platform - Google Patents

Method compatible with heterogeneous block chain platform Download PDF

Info

Publication number
CN107330026B
CN107330026B CN201710483349.9A CN201710483349A CN107330026B CN 107330026 B CN107330026 B CN 107330026B CN 201710483349 A CN201710483349 A CN 201710483349A CN 107330026 B CN107330026 B CN 107330026B
Authority
CN
China
Prior art keywords
data
block chain
server
heterogeneous
supported
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
CN201710483349.9A
Other languages
Chinese (zh)
Other versions
CN107330026A (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.)
Wuchain Beijing Technology Co ltd
Original Assignee
Wuchain Beijing 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 Wuchain Beijing Technology Co ltd filed Critical Wuchain Beijing Technology Co ltd
Priority to CN201710483349.9A priority Critical patent/CN107330026B/en
Publication of CN107330026A publication Critical patent/CN107330026A/en
Application granted granted Critical
Publication of CN107330026B publication Critical patent/CN107330026B/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/258Data format conversion from or to a database
    • 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

Abstract

The invention discloses a method and a system compatible with a heterogeneous block chain platform, wherein the method comprises the following steps: accessing a heterogeneous blockchain platform to be compatible; and according to a uniform data format, performing data reading and/or data writing on the heterogeneous blockchain platform. The method can be adapted to a plurality of mature heterogeneous block chain platforms in the market, and a set of efficient and reliable application modes of the block chain in a plurality of fields is constructed.

Description

Method compatible with heterogeneous block chain platform
Technical Field
The invention relates to the technical field of block chains, in particular to a method and a system for being compatible with a heterogeneous block chain platform.
Background
The block chain is a novel application mode of computer technologies such as distributed data storage, point-to-point transmission, consensus mechanism, encryption algorithm and the like, can be applied to various social fields such as art, law, real estate, insurance and the like, has different block chain platforms aiming at different application fields, and generally adopts different block chain platforms for different enterprises aiming at the same application field. The heterogeneous block chain platforms on the market are more, the application compatibility and the universality in different scenes are poor, inconvenience is caused due to the lack of a uniform standard in use, the application efficiency is low, and the information sharing is limited.
Disclosure of Invention
Aiming at the defects in the prior art, the invention provides a method and a system for being compatible with a heterogeneous block chain platform, which can be adapted to a plurality of mature heterogeneous block chain platforms in the market and construct a set of efficient and reliable application modes of a block chain in a plurality of fields.
In a first aspect, the present invention provides a method for compatible heterogeneous blockchain platforms, where the method includes:
accessing a heterogeneous blockchain platform to be compatible;
and according to a uniform data format, performing data reading and/or data writing on the heterogeneous blockchain platform.
Further, the reading data from the heterogeneous blockchain platform specifically includes:
receiving a data reading instruction, and acquiring first data of a heterogeneous block chain platform to be compatible;
judging whether the server can support the first data or not;
and converting the first data which cannot be supported into data which can be supported by the server.
Further, the converting the first data that cannot be supported into data that can be supported by the server specifically includes:
and analyzing and identifying the communication protocol of the server, and processing the first data according to the communication protocol which can be identified by the server.
Further, the writing data to the heterogeneous blockchain platform specifically includes:
receiving a data writing instruction, and acquiring second data needing to be written into the heterogeneous block chain platform;
judging whether the server can support the second data or not;
converting the second data which cannot be supported into data which can be supported by a server;
and writing the converted second data into the heterogeneous block chain platform.
Further, the converting the second data that cannot be supported into the data that can be supported by the server specifically includes:
and analyzing and identifying the communication protocol of the server, and processing the second data according to the communication protocol which can be identified by the server.
In a second aspect, the present invention further provides a system compatible with a heterogeneous blockchain platform, where the system includes: an access module, a compatibility module; the access module is connected with the compatible module;
the access module is used for accessing a heterogeneous block chain platform to be compatible;
and the compatible module is used for reading and/or writing data to the heterogeneous block chain platform according to a uniform data format.
Further, the compatible module includes: the device comprises a data acquisition unit, a data analysis unit and a data conversion unit;
the data acquisition unit is respectively connected with the data analysis unit and the access module, and the data analysis unit is connected with the data conversion unit;
the data acquisition unit is used for receiving a data reading instruction and acquiring first data of a heterogeneous block chain platform to be compatible; and/or, the data processing device is used for receiving a data writing instruction and acquiring second data needing to be written into the heterogeneous block chain platform;
the data analysis unit is used for judging whether the server can support the first data and/or the second data;
the data conversion unit is used for converting the first data and/or the second data which cannot be supported into data which can be supported by the server.
Further, the compatible module further comprises a data execution unit, and the data execution unit is connected with the data conversion unit and the heterogeneous block chain; the data execution unit is used for reading the converted first data and/or writing the converted second data into the corresponding heterogeneous block chain platform.
Further, the data conversion unit is specifically configured to: and analyzing and identifying the communication protocol of the server, and processing the first data and/or the second data according to the communication protocol which can be identified by the server.
According to the technical scheme, the method and the system for being compatible with the heterogeneous block chain platform can be adapted to a plurality of mature heterogeneous block chain platforms in the market, and a set of efficient and reliable application modes of the block chain in a plurality of fields is constructed.
Drawings
Fig. 1 shows a flowchart of a method for compatible heterogeneous blockchain platforms according to the present invention.
Fig. 2 shows a flowchart of data reading performed by the heterogeneous blockchain platform.
Fig. 3 shows a flow chart of data writing by the heterogeneous blockchain platform.
Fig. 4 is a schematic structural diagram of a system compatible with a heterogeneous blockchain platform provided in the present invention.
Detailed Description
Embodiments of the present invention will be described in detail below with reference to the accompanying drawings. The following examples are only for illustrating the technical solutions of the present invention more clearly, and therefore are only examples, and the protection scope of the present invention is not limited thereby.
Example one
Fig. 1 is a flowchart illustrating a method for compatible heterogeneous blockchain platforms according to an embodiment of the present invention. The method comprises the following steps:
step S100, accessing a heterogeneous block chain platform to be compatible;
step S200, performing data reading and/or data writing on the heterogeneous block chain platform according to a uniform data format.
Preferably, as shown in fig. 2, the reading data from the heterogeneous block chain platform specifically includes:
step S211, receiving a data reading instruction, and acquiring first data of a heterogeneous block chain platform to be compatible;
step S212, judging whether the server can support the first data;
step S213, converting the first data that cannot be supported into data that can be supported by the server.
The data reading instruction comprises a data identifier of data to be read, and the data identifier of the data to be read comprises the name and the storage position information of the data to be read.
Further preferably, the converting the first data that cannot be supported into data that can be supported by the server specifically includes: and analyzing and identifying the communication protocol of the server, and processing the first data according to the communication protocol which can be identified by the server. Management in a unified format and creation of connections is facilitated.
Specifically, the processing of the first data includes: and splicing, deleting or converting the format of the first data. The first data can be spliced or deleted by adopting a JSON language format, or the first data can be directly converted into the JSON language format.
The JSON language format is a data exchange format, adopts a text format completely independent of a programming language to store and represent data, has a simple and clear hierarchical structure, is easy to read and write, is easy to analyze and generate by a machine, and effectively improves the network transmission efficiency. Therefore, the first data are spliced by adopting the JSON language format, the universality of the first data can be enhanced, the first data conform to the communication protocol of the server, and data transmission and data sharing are easier to perform.
Preferably, as shown in fig. 3, the writing data to the heterogeneous block chain platform specifically includes:
step S221, receiving a data writing instruction, and acquiring second data needing to be written into the heterogeneous block chain platform;
step S222, judging whether the server can support the second data;
OF17-P13156
step S223, converting the second data that cannot be supported into data that can be supported by the server;
step S224, writing the converted second data into the heterogeneous block chain platform.
The data writing instruction comprises a data identifier of data to be written, and the data identifier of the data to be written comprises a name and storage position information of the data to be written.
Further preferably, the converting the second data that cannot be supported into the data that can be supported by the server specifically includes: and analyzing and identifying the communication protocol of the server, and processing the second data according to the communication protocol which can be identified by the server. Management in a unified format and creation of connections is facilitated.
Specifically, the processing of the second data includes: and splicing, deleting or converting the format of the second data. The second data can be spliced or deleted by adopting a JSON language format, or the second data can be directly converted into the JSON language format. The first data are spliced by adopting the JSON language format, the universality of the second data can be enhanced, and the second data conform to the communication protocol of the server, so that the data transmission and the data sharing are easier to carry out.
After the data read and/or written in is converted by the method, the data can accord with the communication protocol of the server and can be identified by the server, so that the data of different block chain platforms are easy to call, the compatibility of heterogeneous block chain platforms is improved, and the condition of the monitoring platform is more convenient and feasible.
Based on the above, the first embodiment of the present invention can achieve the following technical effects: the method can be adapted to a plurality of mature heterogeneous block chain platforms in the market, provides standardized installation, deployment and calling modes for application of various scenes, realizes application independence of the block chain, and constructs a set of efficient and reliable application modes of the block chain in a plurality of fields.
Example two
Correspondingly to the embodiment of the present invention, fig. 2 shows a schematic structural diagram of a system compatible with a heterogeneous blockchain platform according to the embodiment of the present invention. The system comprises: access module 100, compatibility module 200; the access module 100 is connected to the compatible module 200. The access module 100 is configured to access a heterogeneous blockchain platform to be compatible; the compatible module 200 is configured to perform data reading and/or data writing on the heterogeneous blockchain platform according to a uniform data format.
Preferably, the compatible module 200 comprises: a data acquisition unit 201, a data analysis unit 202, a data conversion unit 203, and a data execution unit. The data acquisition unit 201 is connected to the data analysis unit 202, and the data analysis unit 202 is connected to the data conversion unit 203.
The data obtaining unit 201 is configured to receive a data reading instruction, and obtain first data of a heterogeneous block chain platform to be compatible; and/or receiving a data writing instruction, and acquiring second data needing to be written into the heterogeneous block chain platform.
The data analysis unit 202 is configured to determine whether the server can support the first data and/or the second data.
The data conversion unit 203 is configured to convert the first data and/or the second data that cannot be supported into data that can be supported by a server.
The data execution unit comprises a data reading subunit and a data writing subunit; the data reading subunit is used for reading the converted first data; and the data writing subunit is used for writing the converted second data into the corresponding heterogeneous block chain platform.
The data conversion unit 203 is specifically configured to: and analyzing and identifying the communication protocol of the server, and splicing or deleting the first data and/or the second data according to the communication protocol which can be identified by the server, so that management and connection establishment can be conveniently carried out in a uniform format.
Preferably, the data conversion unit 203 may splice the first data in a JSON language format, or directly convert the first data into the JSON language format.
The JSON language format is a data exchange format, adopts a text format completely independent of a programming language to store and represent data, has a simple and clear hierarchical structure, is easy to read and write, is easy to analyze and generate by a machine, and effectively improves the network transmission efficiency. Therefore, the first data are spliced by adopting the JSON language format, the universality of the first data can be enhanced, the first data conform to the communication protocol of the server, and data transmission and data sharing are easier to perform.
After the data read and/or written in is converted by the system, the data can accord with the communication protocol of the server and can be identified by the server, so that the data of different block chain platforms are easy to call, the compatibility of heterogeneous block chain platforms is improved, and the condition of the monitoring platform is more convenient and feasible.
Based on the above, the second embodiment of the present invention can achieve the following technical effects: the system can be adapted to a plurality of mature heterogeneous block chain platforms in the market, provides standardized installation, deployment and calling modes for application of various scenes, realizes application independence of the block chains, and constructs a set of efficient and reliable application modes of the block chains in a plurality of fields.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; such modifications and substitutions do not depart from the spirit and scope of the present invention, and they should be construed as being included in the following claims and description.

Claims (3)

1. A method for compatibility with heterogeneous blockchain platforms, the method comprising:
accessing a heterogeneous blockchain platform to be compatible;
according to a uniform data format, data reading and/or data writing are carried out on the heterogeneous block chain platform;
the reading data of the heterogeneous block chain platform specifically includes:
receiving a data reading instruction, and acquiring first data of a heterogeneous block chain platform to be compatible;
judging whether the server can support the first data or not;
converting the first data which cannot be supported into data which can be supported by a server;
the converting the first data which cannot be supported into the data which can be supported by the server specifically includes: analyzing and identifying a communication protocol of the server, and processing the first data according to the communication protocol which can be identified by the server; the processing of the first data comprises: and splicing, deleting or converting the format of the first data.
2. The method according to claim 1, wherein the writing data to the heterogeneous blockchain platform comprises:
receiving a data writing instruction, and acquiring second data needing to be written into the heterogeneous block chain platform;
judging whether the server can support the second data or not;
converting the second data which cannot be supported into data which can be supported by a server;
and writing the converted second data into the heterogeneous block chain platform.
3. The method according to claim 2, wherein the converting the second data that cannot be supported into data that can be supported by a server specifically includes:
and analyzing and identifying the communication protocol of the server, and processing the second data according to the communication protocol which can be identified by the server.
CN201710483349.9A 2017-06-22 2017-06-22 Method compatible with heterogeneous block chain platform Active CN107330026B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710483349.9A CN107330026B (en) 2017-06-22 2017-06-22 Method compatible with heterogeneous block chain platform

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710483349.9A CN107330026B (en) 2017-06-22 2017-06-22 Method compatible with heterogeneous block chain platform

Publications (2)

Publication Number Publication Date
CN107330026A CN107330026A (en) 2017-11-07
CN107330026B true CN107330026B (en) 2021-03-23

Family

ID=60195430

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710483349.9A Active CN107330026B (en) 2017-06-22 2017-06-22 Method compatible with heterogeneous block chain platform

Country Status (1)

Country Link
CN (1) CN107330026B (en)

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108765001A (en) * 2018-05-28 2018-11-06 江苏荣泽信息科技股份有限公司 Commercial real estate value analysis system and method based on block chain
CN109345159A (en) * 2018-08-21 2019-02-15 深圳市口袋网络科技有限公司 A kind of method for writing data and device, equipment, storage medium
CN111324645B (en) * 2018-12-14 2023-05-30 北京沃东天骏信息技术有限公司 Block chain data processing method and device
CN110113229A (en) * 2019-05-01 2019-08-09 中央财经大学 A kind of block chain reference performance test macro and tool
KR102173695B1 (en) * 2019-08-26 2020-11-03 단국대학교 산학협력단 Apparatus and method for excahnge between heterogeneous network and system using the same
KR102121245B1 (en) * 2019-11-19 2020-06-10 주식회사 마크애니 System and method for sharing data among a plurality of block chain networks
CN113129144A (en) * 2019-12-31 2021-07-16 航天信息股份有限公司 Transaction information processing method, device and system
CN111708820A (en) * 2020-06-17 2020-09-25 中国银行股份有限公司 Travel data query method
CN113419776B (en) * 2021-07-09 2022-09-13 杭州复杂美科技有限公司 Application compatibility method, computer device, and storage medium
CN113726822B (en) * 2021-11-02 2022-02-11 深圳大学 General block chain system of heterogeneous equipment of industry internet

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101350008A (en) * 2008-08-05 2009-01-21 深圳市蓝韵实业有限公司 Method for switching and sharing isomerization medical information data
CN102567334A (en) * 2010-12-15 2012-07-11 上海杉达学院 Office automation system based on heterogeneous data
US8583701B2 (en) * 2009-08-06 2013-11-12 Sap Ag Uniform data model and API for representation and processing of semantic data
CN105426525A (en) * 2015-12-09 2016-03-23 浪潮通用软件有限公司 Isomerous data integration method and device based on data storage
CN106383754A (en) * 2016-09-19 2017-02-08 北京众享比特科技有限公司 Database backup and recovery system based on block chain technology, and database backup method based on block chain technology, and database recovery method based on block chain technology
CN106506493A (en) * 2016-10-27 2017-03-15 摩登大道时尚电子商务有限公司 Data processing method based on block platform chain

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101350008A (en) * 2008-08-05 2009-01-21 深圳市蓝韵实业有限公司 Method for switching and sharing isomerization medical information data
US8583701B2 (en) * 2009-08-06 2013-11-12 Sap Ag Uniform data model and API for representation and processing of semantic data
CN102567334A (en) * 2010-12-15 2012-07-11 上海杉达学院 Office automation system based on heterogeneous data
CN105426525A (en) * 2015-12-09 2016-03-23 浪潮通用软件有限公司 Isomerous data integration method and device based on data storage
CN106383754A (en) * 2016-09-19 2017-02-08 北京众享比特科技有限公司 Database backup and recovery system based on block chain technology, and database backup method based on block chain technology, and database recovery method based on block chain technology
CN106506493A (en) * 2016-10-27 2017-03-15 摩登大道时尚电子商务有限公司 Data processing method based on block platform chain

Also Published As

Publication number Publication date
CN107330026A (en) 2017-11-07

Similar Documents

Publication Publication Date Title
CN107330026B (en) Method compatible with heterogeneous block chain platform
CN108924370B (en) Call center outbound voice waveform analysis method, system, equipment and storage medium
CN104135520B (en) A kind of method and device for identifying android terminal
CN107592238A (en) Automatic test approach and system, service terminal, the memory of interface
CN103605529B (en) The treating method and apparatus of application program
CN106066849A (en) A kind of template page editing system and method
US10360913B2 (en) Speech recognition method, device and system based on artificial intelligence
CN109005226A (en) The acquisition methods of sensing data, acquisition system and relevant apparatus in server
CN103200199A (en) Out of band (OOB) data collection system
CN112769802B (en) Access verification method and device based on server, electronic equipment and storage medium
CN110263222A (en) A kind of data capture method, device, equipment and medium
CN111552895B (en) Page route analysis method, system, equipment and medium in applet application
CN205281471U (en) Printing terminal and system
CN113364820A (en) Equipment control method and device of Internet of things service system
CN115840559A (en) Dynamically configured heterogeneous interface data conversion method, device, equipment and medium
CN115473837B (en) Communication test tool capable of configuring protocol and communication test method based on communication test tool
WO2019179051A1 (en) Drawing method, system, computer device, and storage medium for voice channel restoration
CN109446180A (en) A kind of method and apparatus for configuring cloud data platform
CN112579553B (en) Method and apparatus for recording information
CN220085381U (en) Device for remote reading and writing of serial port equipment
CN112600918B (en) Industrial control edge big data efficient processing method and system based on BS architecture
US11947942B2 (en) Application artifact registration
CN112350839B (en) Event recording method and device for Ethernet, computer equipment and storage medium
CN115514611B (en) Message processing method, device, equipment and storage medium
CN107171824A (en) Wifi break line treatments method, terminal and the storage device of a kind of terminal

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