CN111010450B - Client-side chain data downloading method for FISCO BCOS platform - Google Patents
Client-side chain data downloading method for FISCO BCOS platform Download PDFInfo
- Publication number
- CN111010450B CN111010450B CN201911352843.7A CN201911352843A CN111010450B CN 111010450 B CN111010450 B CN 111010450B CN 201911352843 A CN201911352843 A CN 201911352843A CN 111010450 B CN111010450 B CN 111010450B
- Authority
- CN
- China
- Prior art keywords
- data
- chain
- platform
- client
- user transaction
- 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
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/06—Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/08—Network architectures or network communication protocols for network security for authentication of entities
- H04L63/083—Network architectures or network communication protocols for network security for authentication of entities using passwords
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/60—Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Hardware Design (AREA)
- Computer Security & Cryptography (AREA)
- Computing Systems (AREA)
- General Engineering & Computer Science (AREA)
- Storage Device Security (AREA)
Abstract
The invention relates to a client side on-chain data downloading method for a FISCO BCOS platform, which overcomes the defect that on-chain data is difficult to download from the FISCO BCOS platform compared with the prior art. The invention comprises the following steps: a request for client data acquisition; sorting the attributes of the data to be downloaded; sending a request for downloading data; downloading of data on the chain. The method can accurately and quickly download the required data from the block chain, and meets the requirements of design and high-dimensional safety protection of a parallel multi-chain architecture of a FISCO BCOS platform.
Description
Technical Field
The invention relates to the technical field of FISCO BCOS platforms, in particular to a method for downloading data on a client chain of a FISCO BCOS platform.
Background
The FISCO BCOS platform is a technical platform based on BCOS platform improvement, the performance is optimized, a Byzantine fault-tolerant consensus algorithm, a multi-chain architecture and a cross-chain interaction scheme are adopted, a network communication model is optimized, pain points such as concurrent access and hot account are solved, and the requirements of a block chain in a plurality of financial scenes are met.
The FISCO BCOS platform adopts a scheme of parallel computing and multi-chain operation, has strong practicability, simplifies the chain building process, adapts to the deployment mode of various environments, updates global configuration, provides various development interfaces and facilitates the compiling and calling of intelligent contracts by developers. The FISCO BCOS platform also provides an SDK tool which can simultaneously support java and node. On the basis of the SDK, a client program directly facing a user can be developed, and a function interface on the block chain is called, so that data of the block chain can be obtained at the client, and functions of management, execution, transaction query and the like of a service contract are realized.
However, the FISCO BCOS platform adopts a parallel multi-chain architecture, which involves multiple blockchain components, and although the problems of performance bottleneck and database pressure are solved, the client data lookup is complicated. Meanwhile, the FISCO BCOS platform has better safety, and adopts multi-dimensional safety protection to meet the high-requirement safety standard.
Therefore, how to download data on the chain of the FISCO BCOS platform from the client becomes an urgent technical problem to be solved.
Disclosure of Invention
The invention aims to solve the defect that the chain data is difficult to download from a FISCO BCOS platform in the prior art, and provides a client side chain data downloading method for the FISCO BCOS platform to solve the problems.
In order to achieve the purpose, the technical scheme of the invention is as follows:
a method for downloading data on a client chain of a FISCO BCOS platform comprises the following steps:
request for client data acquisition: a client acquires a downloading request of data on a block chain;
and (3) sorting the attributes of the data to be downloaded: the client analyzes the attribute of the data to be downloaded in the downloading request and establishes a data attribute string;
sending a request for downloading data: the client sends a downloading request of the data on the chain to the FISCO BCOS platform and passes the safety verification of the FISCO BCOS platform;
downloading of data on the chain: and the client sends the data attribute string to the FISCO BCOS platform and downloads the chained data from the FISCO BCOS platform.
The attribute arrangement of the data to be downloaded comprises the following steps:
the client analyzes the downloading request and extracts the presenter of the downloading request and the attribute of the downloaded data;
searching a corresponding user transaction chain according to a presenter of the downloading request, finding out a user transaction chain appointed by the presenter, and defining a data attribute string into the following format:
{ user transaction chain, hotspot account };
according to the attribute of the downloaded data, analyzing the data of other user transaction chains related to the downloaded data, and modifying the data attribute string into the following format:
{ user transaction chain, hotspot account, associated user transaction chain, shadow account }.
The sending of the download data request comprises the following steps:
the client sends a downloading request of the data on the chain to the FISCO BCOS platform and attaches a communication password;
after the FISCO BCOS platform verifies the communication password, a corresponding right control strategy is given to the client side according to the communication password;
the FISCO BCOS platform returns an entitlement control policy to the client, and the client attaches the entitlement control policy to the data attribute string and modifies the entitlement control policy into the following format:
the rights control policy & & { user transaction chain, hotspot account, associated user transaction chain, shadow account }.
The downloading of the data on the chain comprises the following steps:
the client sends the modified data attribute string to a FISCO BCOS platform;
the FISCO BCOS platform calls routing information and configuration from a routing chain;
the FISCO BCOS platform analyzes the right control strategy in the data attribute string;
if the right control strategy in the data attribute string meets the requirement of calling the user transaction chain grade, defining data search by taking the user transaction chain as a reference; the FISCO BCOS platform is positioned to a user transaction chain, data are called from the user transaction chain according to the hot account, and the data are returned to the client;
if the right control strategy in the data attribute string does not meet the requirement of calling the user transaction chain grade, defining data search by taking an associated user transaction chain as a reference; and the FISCO BCOS platform is positioned to the associated user transaction chain, calls data from the associated user transaction chain according to the shadow account and returns the data to the client.
Advantageous effects
Compared with the prior art, the method for downloading the data on the client side chain of the FISCO BCOS platform can accurately and quickly download the required data from the block chain, and meets the requirements of design and high-dimensional safety protection of a parallel multi-chain architecture of the FISCO BCOS platform. In the invention, a path and a direction are appointed for downloading by matching with a parallel multi-chain architecture and through the design of a data attribute string; data reading is carried out through the cooperation of the right control strategy and the shadow account, and the requirement of high-dimensional safety protection of the FISCO BCOS platform is met.
Drawings
FIG. 1 is a sequence diagram of the method of the present invention.
Detailed Description
So that the manner in which the above recited features of the present invention can be understood and readily understood, a more particular description of the invention, briefly summarized above, may be had by reference to embodiments, some of which are illustrated in the appended drawings, wherein:
as shown in fig. 1, the method for downloading data on a client chain of a FISCO BCOS platform according to the present invention includes the following steps:
the first step is a request for client data acquisition. The client collects user requirements, and when the user requirements require to call the data on the chain, the client obtains a downloading request of the data on the block chain.
And secondly, sorting the attributes of the data to be downloaded.
In a FISCO BCOS platform, data generated by a hot account can be frequently updated, problems such as performance bottleneck and database pressure are easy to occur, aiming at the problems, a plurality of parallel transaction chains are designed for the FISCO BCOS, and users are grouped according to a certain performance model. Each separate blockchain component built for a grouping of users is called a "user transaction chain". The hotspot accounts themselves may be distributed on a chain of hotspot accounts or in a group, and in order to support the transactions of other users and hotspot accounts, the hotspot accounts may set up a shadow user (shadow account) on each user transaction chain. Aiming at the technical characteristic of the FISCO BCOS, when searching data on a chain, attention needs to be paid to locating the chain where the data is located so as to search, attributes of the data to be downloaded in a downloading request are analyzed from a client, a data attribute string is established, and a block chain component where the data to be downloaded is located is determined by using the data attribute string. The method comprises the following specific steps:
(1) the client analyzes the download request, extracts the presenter of the download request and the attribute of the downloaded data, and can know which blockchain component the related data is located in through the presenter (namely, a user) of the download request, and can know which type of data of the security requirement level the related data relates to through the attribute of the downloaded data.
(2) Searching a corresponding user transaction chain according to a presenter of the downloading request, finding out a user transaction chain appointed by the presenter, and defining a data attribute string into the following format:
{ user transaction chain, hotspot account }.
(3) According to the attribute of the downloaded data, analyzing the data of other user transaction chains related to the downloaded data, and modifying the data attribute string into the following format:
{ user transaction chain, hotspot account, associated user transaction chain, shadow account }.
This analyzes the blockchain component and associated blockchain components to which the data relates.
And thirdly, sending a request for downloading data.
Because the FISCO BCOS platform adopts multi-dimensional safety protection, modules such as user data and the like perform high-strength encryption protection in the aspect of a communication layer; and in the aspect of system management, access control, authority control strategies and the like are implemented. In order to match with the high security standard of the platform, when the client sends a downloading request of the data on the chain to the FISCO BCOS platform, the client needs to pass the security verification of the FISCO BCOS platform. The method comprises the following specific steps:
(1) and the client sends a downloading request of the data on the chain to the FISCO BCOS platform and attaches a communication password.
(2) And after the FISCO BCOS platform verifies the communication password, giving a corresponding right control strategy to the client according to the communication password.
The right control strategy comprises the right design aiming at the user, and the block chain technology is only an operation publicity although being public and transparent, and is only a part of data publicity particularly applied to the financial industry. In this regard, the right control policy is to inform the user which data can be downloaded and which data cannot be downloaded (viewed). The design is directed at the users with high ground authority, and the data downloading on the chain is directly carried out through the hot account in the user transaction chain; for the users who can not reach the authority, the shadow accounts in the associated user transaction chain are used for downloading the data on the chain, and because the general branch accounts in the group are also stored in the shadow accounts, in practical application, some non-core data can be stored in the shadow accounts through the chain design, namely, after some users perform transactions, the information such as income and expenditure generated in the shadow accounts meets the application requirements in the financial field while the block chain technical idea is met.
(3) The FISCO BCOS platform returns an entitlement control policy to the client, and the client attaches the entitlement control policy to the data attribute string and modifies the entitlement control policy into the following format:
the rights control policy & & { user transaction chain, hotspot account, associated user transaction chain, shadow account }.
And fourthly, downloading the data on the chain. And the client sends the data attribute string to the FISCO BCOS platform and downloads the chained data from the FISCO BCOS platform. The method comprises the following specific steps:
(1) and the client sends the modified data attribute string to the FISCO BCOS platform.
(2) The FISCO BCOS platform retrieves routing information and configuration from the routing chain.
(3) The FISCO BCOS platform analyzes the entitlement control policy in the data attribute string.
(4) And if the right control strategy in the data attribute string meets the requirement of calling the grade of the user transaction chain, which indicates that the user transaction chain can be used for downloading data on the chain, defining data search by taking the user transaction chain as a reference. And the FISCO BCOS platform is positioned to a user transaction chain, data is called from the hot account and returned to the client, and downloading (displaying) of the data on the chain is realized.
(5) If the right control strategy in the data attribute string does not meet the requirement of calling the user transaction chain grade, which indicates that the user transaction chain can only be used for downloading the data on the chain, defining data search by taking the associated user transaction chain as a reference; and the FISCO BCOS platform is positioned to the associated user transaction chain, data is called from the associated user transaction chain according to the shadow account and returned to the client, and downloading (displaying) of the data on the chain is realized.
The foregoing shows and describes the general principles, essential features, and advantages of the invention. It will be understood by those skilled in the art that the present invention is not limited to the embodiments described above, which are merely illustrative of the principles of the invention, but that various changes and modifications may be made without departing from the spirit and scope of the invention, which fall within the scope of the invention as claimed. The scope of the invention is defined by the appended claims and equivalents thereof.
Claims (1)
1. A method for downloading data on a client chain of a FISCO BCOS platform is characterized by comprising the following steps:
11) request for client data acquisition: a client acquires a downloading request of data on a block chain;
12) and (3) sorting the attributes of the data to be downloaded: the client analyzes the attribute of the data to be downloaded in the downloading request and establishes a data attribute string; the attribute arrangement of the data to be downloaded comprises the following steps:
121) the client analyzes the downloading request and extracts the presenter of the downloading request and the attribute of the downloaded data;
122) searching a corresponding user transaction chain according to a presenter of the downloading request, finding out a user transaction chain appointed by the presenter, and defining a data attribute string into the following format:
{ user transaction chain, hotspot account };
123) according to the attribute of the downloaded data, analyzing the data of other user transaction chains related to the downloaded data, and modifying the data attribute string into the following format:
{ user transaction chain, hotspot account, associated user transaction chain, shadow account };
13) sending a request for downloading data: the client sends a downloading request of the data on the chain to the FISCO BCOS platform and passes the safety verification of the FISCO BCOS platform; the sending of the download data request comprises the following steps:
131) the client sends a downloading request of the data on the chain to the FISCO BCOS platform and attaches a communication password;
132) after the FISCO BCOS platform verifies the communication password, a corresponding right control strategy is given to the client side according to the communication password;
133) the FISCO BCOS platform returns an entitlement control policy to the client, and the client attaches the entitlement control policy to the data attribute string and modifies the entitlement control policy into the following format:
the right control policy & & { user transaction chain, hotspot account, associated user transaction chain, shadow account };
14) downloading of data on the chain: the client sends a data attribute string to the FISCO BCOS platform and downloads the linked data from the FISCO BCOS platform; the downloading of the data on the chain comprises the following steps:
141) the client sends the modified data attribute string to a FISCO BCOS platform;
142) the FISCO BCOS platform calls routing information and configuration from a routing chain;
143) the FISCO BCOS platform analyzes the right control strategy in the data attribute string;
144) if the right control strategy in the data attribute string meets the requirement of calling the user transaction chain grade, defining data search by taking the user transaction chain as a reference; the FISCO BCOS platform is positioned to a user transaction chain, data are called from the user transaction chain according to the hot account, and the data are returned to the client;
145) if the right control strategy in the data attribute string does not meet the requirement of calling the user transaction chain grade, defining data search by taking an associated user transaction chain as a reference; and the FISCO BCOS platform is positioned to the associated user transaction chain, calls data from the associated user transaction chain according to the shadow account and returns the data to the client.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911352843.7A CN111010450B (en) | 2019-12-25 | 2019-12-25 | Client-side chain data downloading method for FISCO BCOS platform |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911352843.7A CN111010450B (en) | 2019-12-25 | 2019-12-25 | Client-side chain data downloading method for FISCO BCOS platform |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111010450A CN111010450A (en) | 2020-04-14 |
CN111010450B true CN111010450B (en) | 2022-01-28 |
Family
ID=70117957
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201911352843.7A Active CN111010450B (en) | 2019-12-25 | 2019-12-25 | Client-side chain data downloading method for FISCO BCOS platform |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111010450B (en) |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108492183A (en) * | 2018-03-29 | 2018-09-04 | 深圳前海微众银行股份有限公司 | Account trading method, system and the computer readable storage medium of block chain |
CN109493229A (en) * | 2018-12-26 | 2019-03-19 | 广东技术师范学院 | A kind of cosmetics traceability system based on block chain |
CN109493224A (en) * | 2018-11-10 | 2019-03-19 | 平凡视界(深圳)科技有限公司 | A kind of block chain picture social intercourse system |
CN110012068A (en) * | 2019-03-01 | 2019-07-12 | 北京奇艺世纪科技有限公司 | A kind of download control method, device and storage medium |
CN110209381A (en) * | 2019-05-31 | 2019-09-06 | 深圳前海微众银行股份有限公司 | SDK fast integration method, apparatus, equipment and storage medium based on block chain |
CN110599181A (en) * | 2019-09-26 | 2019-12-20 | 腾讯科技(深圳)有限公司 | Data processing method, device and equipment based on block chain and storage medium |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20190172456A1 (en) * | 2017-12-05 | 2019-06-06 | Live Pictures Co.,Ltd. | Method for sharing photograph based on voice recognition, apparatus and system for the same |
-
2019
- 2019-12-25 CN CN201911352843.7A patent/CN111010450B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108492183A (en) * | 2018-03-29 | 2018-09-04 | 深圳前海微众银行股份有限公司 | Account trading method, system and the computer readable storage medium of block chain |
CN109493224A (en) * | 2018-11-10 | 2019-03-19 | 平凡视界(深圳)科技有限公司 | A kind of block chain picture social intercourse system |
CN109493229A (en) * | 2018-12-26 | 2019-03-19 | 广东技术师范学院 | A kind of cosmetics traceability system based on block chain |
CN110012068A (en) * | 2019-03-01 | 2019-07-12 | 北京奇艺世纪科技有限公司 | A kind of download control method, device and storage medium |
CN110209381A (en) * | 2019-05-31 | 2019-09-06 | 深圳前海微众银行股份有限公司 | SDK fast integration method, apparatus, equipment and storage medium based on block chain |
CN110599181A (en) * | 2019-09-26 | 2019-12-20 | 腾讯科技(深圳)有限公司 | Data processing method, device and equipment based on block chain and storage medium |
Non-Patent Citations (5)
Title |
---|
BookChain: Library-Free Book Sharing Based on Blockchain Technology;Jiajie Zeng;《IEEE》;20191213;全文 * |
企业级区块链技术综述;邵奇峰;《软件学报》;20190410;全文 * |
区块链技术及其在我国金融领域应用的策略研究;史真真;《现代商业》;20190328(第09期);全文 * |
基于区块链的仓单交易系统研究与实现;季广猛;《中国优秀硕士学位论文全文数据库信息科技辑》;20190831;全文 * |
并行计算和热点账户解决方案;FISCO BCOS;《https://www.bookstack.cn/read/fisco-bcos-v1.3/a37c3174e5c5f4f5.md》;20190621;全文 * |
Also Published As
Publication number | Publication date |
---|---|
CN111010450A (en) | 2020-04-14 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9247022B2 (en) | Method and apparatus for optimizing performance and network traffic in distributed workflow processing | |
US7426515B2 (en) | Edge deployed database proxy driver | |
US8630969B2 (en) | Systems and methods for implementing business rules designed with cloud computing | |
CN103309653A (en) | Method and apparatus for cloud-driven task execution | |
CN108876619B (en) | Processing method, device, equipment and medium based on block chain intelligent contract | |
US6978463B2 (en) | Programmatic universal policy based software component system for software component framework | |
CN104424018A (en) | Distributed calculating transaction processing method and device | |
KR20090040473A (en) | Concatenation discovery web service | |
CN110968437A (en) | Method, device, equipment and medium for parallel execution of single contract based on Java intelligent contract | |
CN101657793A (en) | Method, system and computer program for configuring firewalls | |
CN111598575A (en) | Business process control method and device, electronic equipment and readable storage medium | |
CN112035090A (en) | Intelligent contract management system and method based on containerization technology | |
CN113407997A (en) | Data desensitization method and device, computer equipment and storage medium | |
CN110737425A (en) | billing platform system application program establishing method and device | |
WO2022125451A1 (en) | Automatic smart contract analysis | |
CN112966833B (en) | Machine learning model platform based on Kubernetes cluster | |
CN111010450B (en) | Client-side chain data downloading method for FISCO BCOS platform | |
CN111338717B (en) | Interface calling method, application program upgrading method, server and client | |
CN113360210A (en) | Data reconciliation method and device, computer equipment and storage medium | |
CN112699291A (en) | Task acquisition platform implementation method based on crawler system | |
CN110908642B (en) | Policy generation execution method and device | |
US20070006121A1 (en) | Development activity recipe | |
CN100543673C (en) | A kind of reflexion type architecture self-evolvement method based on body | |
CN113741868B (en) | Service computing task processing method, device, computer equipment and storage medium | |
WO2022241947A1 (en) | Data processing method and apparatus for application program, device, 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 |