Disclosure of Invention
In view of this, the present invention provides a method, an apparatus, and an electronic device for distinguishing a block chain, so as to alleviate the above problems, reduce human involvement, and improve efficiency and accuracy of public chain distinguishing.
In a first aspect, an embodiment of the present invention provides a method for distinguishing a block chain, where the method is applied to a distinguishing server, and the method includes: acquiring a target data set of a target block chain to be distinguished, which corresponds to a preset dimension; wherein the preset dimensions comprise a plurality of dimensions of the following dimensions: a source code dimension, a node dimension, a tile browser dimension, a white paper dimension, a wallet dimension, a community dimension, and a public opinion dimension; verifying a target data set corresponding to each of a plurality of dimensions for a target blockchain; and generating a judgment result of the target block chain according to the detection result of the target data set, wherein the judgment result comprises judgment information whether the target block chain belongs to a public chain.
With reference to the first aspect, an embodiment of the present invention provides a first possible implementation manner of the first aspect, where the step of verifying the target data set of the target block chain corresponding to each of the multiple dimensions includes: acquiring a basic data set of the credible public chain corresponding to a preset dimension; the basic data set comprises a core source code set of source code dimensionality and a basic white-cover data set of white-cover dimensionality; checking a target data set of source code dimensions based on a core source code set; and/or checking the target data set of the white paper dimension based on the basic white paper data set.
With reference to the first possible implementation manner of the first aspect, an embodiment of the present invention provides a second possible implementation manner of the first aspect, where the step of checking the target data set of the source code dimension based on the core source code set includes: checking the source code similarity of a target source code corresponding to the source code dimension of the target block chain and a core source code set; and determining a detection result corresponding to the source code dimension according to the source code similarity and a preset similarity threshold.
With reference to the first possible implementation manner of the first aspect, an embodiment of the present invention provides a third possible implementation manner of the first aspect, where the basic white paper data set includes a basic white paper picture data set and a basic white paper text data set; the step of inspecting the white paper dimensionality target data set based on the basic white paper data set comprises the following steps: analyzing the target white paper data of the target block chain corresponding to the white paper dimensionality to obtain target white paper picture data and target white paper character data; checking the data of the target white paper picture based on the basic white paper picture data set; and/or detecting the target white paper character data based on the basic white paper character data set to obtain a detection result corresponding to the white paper dimension.
With reference to the first aspect, an embodiment of the present invention provides a fourth possible implementation manner of the first aspect, where the target data set includes: target node deployment data for a node of a node dimension for deploying a target blockchain and/or target wallet data for a wallet of a wallet dimension for providing a target blockchain, the verifying a target data set for a target blockchain corresponding to each of a plurality of dimensions further comprising: executing a node deployment process of the target block chain based on the target node deployment data, and determining a check result of the node dimension according to an execution result of the target node deployment data; and/or, running the wallet of the target block chain based on the target wallet data, checking the preset function of the wallet, and determining the checking result of the wallet dimension according to the checking result.
With reference to the first aspect, an embodiment of the present invention provides a fifth possible implementation manner of the first aspect, where the target data set includes target tile browser address data of tile browser dimensions, and the step of checking the target data set of a target tile chain corresponding to each of multiple dimensions further includes: acquiring preset data information in a target block chain based on the address data of the target block browser, wherein the preset data information comprises at least one of the following data: block height information, transaction total amount information, node summary information, transaction information and block output information; and checking the preset data information based on the preset reference information to obtain a checking result of the dimension of the block browser.
With reference to the first aspect, an embodiment of the present invention provides a sixth possible implementation manner of the first aspect, where the test result includes a test result of each of multiple dimensions; the detection result of each dimension also carries label information, and the label information is used for representing the authenticity information of the target block chain to the dimension; the step of generating the discrimination result of the target block chain according to the inspection result of the target data set includes: counting the total number of the label information in the test result of the target data set of each dimension as pseudo information; and generating a judgment result of the target block chain based on the ratio of the total number and the total number of the dimensions of the plurality of dimensions.
With reference to the first aspect, an embodiment of the present invention provides a seventh possible implementation manner of the first aspect, where the test result includes a test score of each of multiple dimensions, and each dimension is further configured with a weight; the step of generating the discrimination result of the target block chain according to the inspection result of the target data set includes: calculating a total inspection score according to the inspection score of the target data set of each dimension and the weight corresponding to the dimension; and generating a judgment result of the target block chain according to the total inspection score and a preset score threshold value.
With reference to the first aspect, an embodiment of the present invention provides an eighth possible implementation manner of the first aspect, where the step of checking the target data set of the target block chain corresponding to each of the multiple dimensions further includes: responding to the time setting operation of a user, and acquiring the inspection time information of the target block chain; wherein, the check time information comprises a start time and an end time; and checking the target data set of the target block chain corresponding to each dimension in the plurality of dimensions according to the checking time information.
In a second aspect, an embodiment of the present invention further provides an apparatus for determining a block chain, where the apparatus is applied to a determination server, and the apparatus includes: the target data set acquisition module is used for acquiring a target data set of a target block chain to be distinguished, which corresponds to a preset dimension; wherein the preset dimensions comprise a plurality of dimensions of the following dimensions: a source code dimension, a node dimension, a tile browser dimension, a white paper dimension, a wallet dimension, a community dimension, and a public opinion dimension; a target data set inspection module for inspecting a target data set corresponding to each of a plurality of dimensions for a target blockchain; and the judgment result generation module is used for generating a judgment result of the target block chain according to the detection result of the target data set, wherein the judgment result comprises judgment information whether the target block chain belongs to a public chain.
In a third aspect, an embodiment of the present invention further provides an electronic device, which includes a memory, a processor, and a computer program that is stored in the memory and is executable on the processor, where the processor implements the step of the method for determining a blockchain in the first aspect when executing the computer program.
In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the method for distinguishing a blockchain according to the first aspect are executed.
The embodiment of the invention has the following beneficial effects:
the embodiment of the invention provides a method and a device for distinguishing a block chain and electronic equipment, wherein the method comprises the steps of detecting a target data set with multiple dimensions of a target block chain to be distinguished, generating a distinguishing result of the target block chain according to the detection result, wherein the distinguishing result comprises distinguishing information whether the target block chain belongs to a public chain or not, and thus the authenticity distinguishing of the public chain is realized; therefore, the mode automatically judges the public link through the judgment server, reduces manual participation and improves public link judgment efficiency; and in the distinguishing process, the public link is distinguished through a plurality of dimensions, so that the truth of the public link is more comprehensively distinguished, the distinguishing accuracy of the public link is improved, and the public link distinguishing method has better practical value.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. The objectives and other advantages of the invention will be realized and attained by the structure particularly pointed out in the written description and drawings.
In order to make the aforementioned and other objects, features and advantages of the present invention comprehensible, preferred embodiments accompanied with figures are described in detail below.
Detailed Description
To make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings, and it is apparent that the described embodiments are some, but not all embodiments of the present invention. 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 invention.
Aiming at the problem that the existing public chain is manually judged to be low in judging efficiency and accuracy, the embodiment of the invention provides a method and a device for judging a block chain and electronic equipment, so that manual participation is reduced, the public chain judging efficiency and accuracy are improved, and the public chain judging method and device have good practical value.
For the convenience of understanding the present embodiment, first, a detailed description is given to a method for determining a block chain according to an embodiment of the present invention. The execution main body is a discrimination server, and as shown in fig. 1, thediscrimination server 1 mainly includes an acquisition module 10, a discrimination module 20 and an artificial module 30; in practical application, the acquisition module is mainly used for acquiring a basic data set for distinguishing a block chain, for example, acquiring the basic data set from an external platform (such as a software open source platform, a social platform and the like), and sending the acquired basic data set to the distinguishing module, so that the distinguishing module checks the block chain to be distinguished according to the basic data set and preset check logic, and a distinguishing result of the block chain to be distinguished is obtained; the manual module comprises a display unit (such as a display screen) and an operation unit (such as a keyboard, a mouse, a microphone, a touch screen and the like), wherein the display unit is used for displaying the judgment result sent by the judgment module so that an operator or a user can perform secondary manual review on the block chain to be judged according to the judgment result, the operation unit is used for the operator to enter the item original data of the block chain to be judged, such as the address of each appointed information source and the like, and send the item original data to the judgment module so that the judgment module can more comprehensively check whether the block chain to be judged belongs to the public chain according to the item original data, and if the block chain to be judged is a true public chain or a false public chain, the automatic judgment function of the public chain is realized through the judgment server, and the accuracy of the judgment result is also ensured.
Based on the above discrimination server, an embodiment of the present invention provides a method for discriminating a block chain, as shown in fig. 2, where the method includes the following steps:
step S202, acquiring a target data set of a target block chain to be distinguished, which corresponds to a preset dimension;
wherein the preset dimensions comprise a plurality of dimensions of the following dimensions: a source code dimension, a node dimension, a tile browser dimension, a white paper dimension, a wallet dimension, a community dimension, and a public opinion dimension; therefore, the target block chain is detected through multiple dimensions, the detection indexes of the target block chain are enriched on the basis of ensuring the distinguishing efficiency, the target block chain is more comprehensively distinguished, and the accuracy of the distinguishing result is improved. It should be noted that the number of dimensions in the preset dimensions may be set according to an actual situation, and the preset dimensions preferably include the 7 dimensions.
Step S204, a target data set of a target block chain corresponding to each dimension in a plurality of dimensions is checked;
specifically, before the target block chain is checked, the judgment server also firstly acquires a basic data set of the credible public chain corresponding to the preset dimensionality; the basic data set comprises a core source code set of source code dimensionality and a basic white-cover data set of white-cover dimensionality; in practical application, the discrimination server may obtain, through a network, an open-source core source code set (also referred to as a core source code set) of a trusted public link in the software open-source platform, where the core source code set includes source codes of a plurality of trusted mainstream public link core versions, such as a consensus code and a transaction code; the mainstream public link comprises a bitcoin, an ethernet, an EOS (Enterprise Operating System), a wave card and the like, so that in practical application, the source code dimensionality of most target block chains can be checked based on the core source code set, and particularly, the core source code set can be enriched by an individual target block chain before discrimination, for example, the source code of a specific information source is collected, and the mainstream public link can be specifically set according to the practical situation.
For ease of understanding, the inspection process for each dimension is described below:
(1) a source code dimension; specifically, the source code similarity of a target source code corresponding to the source code dimension of the target block chain and a core source code set is checked; and determining a detection result corresponding to the source code dimension according to the source code similarity and a preset similarity threshold. In practical application, an operator firstly inputs source codes of a target block chain into a discrimination server, then the discrimination server automatically compares the target source codes of the target block chain with a plurality of source codes in a core source code set, and discriminates whether the target source codes are plagiarism according to source code similarity, and if the source code similarity is greater than a preset similarity threshold, the target source codes are determined to be plagiarism. It should be noted that, the preset similarity threshold may be set according to actual situations, and this is not limited to be described in the embodiment of the present invention.
(2) A node dimension; wherein the target data set comprises target node deployment data of a node dimension for deploying the nodes of the target block chain; and executing a node deployment process of the target block chain based on the target node deployment data, and determining a check result of the node dimension according to an execution result of the target node deployment data. Specifically, for target node deployment data of a target block chain, the discrimination server automatically executes the target node deployment data in a virtual environment, for example, the target node deployment data is run through a preset first virtual machine, and whether the execution is successful is checked. Because the false public link does not provide the node deployment data, or the provided node deployment data cannot be executed normally, if the operation result of the target node deployment data is execution failure, the target block chain is determined to be the false public link, otherwise, if the operation result of the target node deployment data is execution success, it can be determined that the target node deployment data of the target block chain is real and available, but whether the target block chain is the true public link needs to be combined with the inspection result of the rest dimensions.
(3) A tile browser dimension; in the process of acquiring the target data set of the target block chain corresponding to the preset dimensionality, the judgment server can acquire target block browser address data of the target block chain corresponding to the block browser dimensionality, which is input by an operator; when the dimension of the block browser is checked, the judgment server acquires preset data information in a target block chain based on target block browser address data of the target block chain corresponding to the dimension of the block browser, wherein the preset data information comprises at least one of the following data: block height information, transaction total amount information, node summary information, transaction information and block output information; and checking the preset data information based on the preset reference information to obtain a checking result of the dimension of the block browser. The transaction information and the block-out information are preferably the latest transaction information and the latest block-out information, such as the latest transaction information and the latest block-out information obtained through a network, and may be specifically set according to actual situations.
Specifically, the judging server automatically accesses the address data of the target block browser, and captures content elements of a page corresponding to the address data of the target block browser to obtain preset data information in a target block chain; the method comprises the steps that preset data information is checked based on preset reference information, wherein the preset reference information comprises block height information, transaction total amount information, node summary information, transaction information, block output information and the like, if the preset data information does not contain any information in the reference information, the target block chain is judged to be a suspected false public chain, and the checking results of the rest dimensions are integrated to judge whether the target block chain is a false public chain; on the contrary, if the preset data information has one or more of the reference information, such as the block height information and the transaction total amount information, the authenticity of the target block chain cannot be judged at this time, and the target block chain is judged to be a true public chain or a false public chain by integrating the inspection results of the other dimensions; and marking information in the reference information lacking in the target block chain in the check result of the dimension of the block browser, such as marking lacking node summary information, transaction information, block output information and the like, so that an operator can conveniently and manually judge according to the check result. The reference information may further include other information, and may be specifically set according to an actual situation.
(4) Dimension of white paper; the basic white paper data set comprises a basic white paper picture data set and a basic white paper character data set; in the inspection process, firstly, analyzing the target white paper data of the target block chain corresponding to the white paper dimension to obtain target white paper picture data and target white paper character data; checking the data of the target white paper picture based on the basic white paper picture data set; and/or detecting the target white paper character data based on the basic white paper character data set to obtain a detection result corresponding to the white paper dimension.
Specifically, the discrimination server automatically analyzes the target white paper data to obtain target white paper picture data and target white paper character data, and then checks the target white paper picture data through a basic white paper picture data set; checking the target white paper character data through a basic white paper character data set, if the content completely consistent with the target white paper character data is checked in the basic white paper image data set, or the content completely consistent with the target white paper character data is checked in the basic white paper character data set, judging that the target white paper data of the target block chain is copied, namely judging that the target block chain is a suspected false male chain, and judging whether the target block chain is the false male chain or not by integrating the checking results of other dimensions; if the content completely consistent with the target white-skin book image data is not detected in the basic white-skin book image data set, and the content completely consistent with the target white-skin book image data is not detected in the basic white-skin book character data set, or a certain similarity exists, but the similarity is smaller than a preset threshold value, it can be judged that the target white-skin book data of the target block chain does not have plagiarism, but the target block chain is a true public chain, and the comprehensive judgment needs to be combined with the detection results of other dimensions. Particularly, for part of the block chains, the target white paper image data and the target white paper character data can be checked in the checking process, so that the accuracy of the checking result corresponding to the white paper dimension is ensured, and the checking result can be set according to the actual scene.
The white paper image data set and the white paper character data set in the basic white paper data set can be obtained through designated pages, such as pages of a social platform and other designated websites, and for part of block chains, the basic white paper data set may not meet actual inspection requirements.
(5) A wallet dimension; the target data set further includes target wallet data for a wallet of wallet dimensions used to provide the target blockchain, runs the wallet of the target blockchain based on the target wallet data, and checks a preset function of the wallet, and determines a check result of the wallet dimensions according to the check result. Specifically, for target wallet data of a target blockchain, the discrimination server automatically executes the target wallet data in a virtual environment to run wallets of the target blockchain, and checks preset functions of the wallets, wherein the preset functions include but are not limited to creation, collection, payment and the like of a target wallet account; conversely, if the target wallet data is executed successfully, it may be determined that the target wallet data of the target blockchain is authentic and available, but the target blockchain is a true public chain, and the check results of the remaining dimensions are also combined.
(6) A community dimension; specifically, the discrimination server automatically acquires target community data of a specified information source related to a target block chain, where the specified information source includes but is not limited to a software open source platform, a social platform, and the like, the target community data includes data such as the number of participants, the number of times codes are submitted, the frequency of code submission, the number of topics discussed, the heat of topic discussion, and the like related to the target block chain, then performs statistical analysis on the target community data, such as whether the community ecology of the target block chain is active, and determines the analysis result as a check result of the community dimension.
(7) Public opinion dimension; specifically, the judgment server automatically acquires target public opinion data of a specified public opinion source related to a target block chain, wherein the target public opinion data comprises data such as user comments, self-media analysis articles, news reports and the like related to the target block chain, searches the target public opinion data, for example, searches whether behaviors such as cheating exist in the target block chain exist in the target public opinion data, and determines a search result as a detection result of the community dimension.
In summary, in each dimension checking process, because part of the dimensions need to acquire data of the designated information source, an operator can store the required designated information source address to the discrimination server before checking the target block chain, so that the discrimination server can directly acquire page data of the designated information source in the checking process, thereby improving the discrimination efficiency.
It should be noted that the inspection results of the dimensions may not be accurate enough, and the authenticity of the target block chain cannot be determined, so in practical application, multiple dimensions may be selected according to actual conditions to simultaneously inspect the target block chain, in the embodiment of the present invention, the seven dimensions are preferably adopted to simultaneously inspect the target block chain, as shown in fig. 3, the seven dimensions are preferably inspected, and the discrimination result is generated according to the inspection result of each dimension, so that the target block chain is inspected more comprehensively, and the discrimination accuracy is improved; in the inspection process, multiple dimensions are inspected in a parallel mode, namely the multiple dimensions are used for inspecting the target block chain at the same time, so that the inspection efficiency is improved, and the discrimination efficiency is further improved.
And step S206, generating a judgment result of the target block chain according to the detection result of the target data set.
The above-mentioned discrimination result includes discrimination information whether the target block chain belongs to the public chain, for example, the discrimination information whether the target block chain belongs to the true public chain or the false public chain. Optionally, the inspection result includes an inspection result of the target data set of each of the multiple dimensions, and the inspection result of each dimension further carries tag information, where the tag information is used to represent the authenticity information of the target blockchain for the dimension. Therefore, one possible generation process of the above-mentioned discrimination result includes: counting the total number of the label information in the test result of the target data set of each dimension as pseudo information; and generating a judgment result of the target block chain based on the ratio of the total number and the total number of the dimensions of the plurality of dimensions. Specifically, according to label information carried by a detection result of each of multiple dimensions, counting the total number of pseudo information serving as the detection result in the multiple dimensions, if the preset dimensions include 7 dimensions, where the number of the detection results of pseudo information serving as the label information is 4, calculating a ratio such as 4/7 according to the total number and the total number of the dimensions of the multiple dimensions, and setting a threshold of the ratio, where when the ratio is greater than the threshold, it is indicated that the detection results of most of the multiple dimensions are pseudo information, and at this time, it may be determined that the target block chain is a pseudo public chain. In addition, the inspection results of multiple dimensions can be output to a manual module, so that an operator can perform secondary manual inspection and the like according to the inspection results of the dimensions, and the inspection result can be set according to actual conditions.
It should be noted that the tag information may include, in addition to the authenticity information of the target block chain in the dimension, result analysis information of each dimension, for example, in the dimension checking process, a problem that occurs in the target block chain, for example, a plagiarism action exists in a target source code of the target block chain, or page data corresponding to address data of the target block browser lacks transaction information and block exit information, and the tag information may be specifically set according to an actual situation.
Optionally, the test result may further include a test score of each of the multiple dimensions, each dimension is further configured with a weight, and another possible generation process of the discrimination result includes: calculating a total inspection score according to the inspection score of the target data set of each dimension and the weight corresponding to the dimension; and generating a judgment result of the target block chain according to the total inspection score and a preset score threshold value. Specifically, the weight of each dimension may be set according to an actual situation, for example, the weight of the source code dimension is higher than the weights of the other dimensions, and then the inspection score of each dimension in the multiple dimensions and the weight corresponding to the dimension are calculated, so as to obtain an inspection total score of the target block chain, and determine whether the inspection total score is higher than a preset score threshold, if so, generate a determination result that the target block chain is a true public chain; and if not, generating a judgment result that the target block chain is the false public chain. It should be noted that, if the total score is equal to the preset score threshold, the target blockchain may be determined as a true public chain, and the determination result is sent to the manual module, so that the determination is performed again through a manual inspection method, thereby improving the accuracy of public chain determination.
According to the distinguishing method of the block chain, provided by the embodiment of the invention, the public chain is automatically distinguished through the distinguishing server by checking the target data sets of multiple dimensions of the target block chain to be distinguished and generating the distinguishing result of the target block chain according to the checking result, so that the manual participation is reduced and the public chain distinguishing efficiency is improved; and in the distinguishing process, the public link is distinguished through a plurality of dimensions, so that the truth of the public link is more comprehensively distinguished, the distinguishing accuracy of the public link is improved, and the public link distinguishing method has better practical value.
On the basis of fig. 2, another method for determining a block chain is further provided in the embodiments of the present invention, where the method mainly describes a process of checking a target block chain according to checking time information set by a user or an operator, and as shown in fig. 4, the method includes the following steps:
step S402, acquiring a target data set of a target block chain to be distinguished, which corresponds to a preset dimension;
wherein the preset dimensions comprise a plurality of dimensions of the following dimensions: a source code dimension, a node dimension, a tile browser dimension, a white paper dimension, a wallet dimension, a community dimension, and a public opinion dimension; reference may be made in detail to the foregoing embodiments, which are not illustrated in detail herein.
Step S404, responding to the time setting operation of the user, and acquiring the checking time information of the target block chain; wherein, the check time information comprises a start time and an end time;
specifically, before the target block chain is determined, the user or the operator may also set the inspection time information through a manual module, for example, input the start time and the end time of the target block chain determination through a keyboard, or select a certain time period from a plurality of time periods prestored in the determination server as the inspection time information, and the like, which may be specifically set according to the actual situation.
Step S406, checking a target data set of the target block chain corresponding to each dimension in the multiple dimensions according to the checking time information;
after the setting of the inspection time information is finished, the discrimination server inspects the target data set of the target block chain corresponding to each dimensionality in the multiple dimensionalities according to the inspection time information, so that the inaccuracy of the discrimination result caused by the fact that the discrimination time of the target block chain is too short is avoided, and if the target public sentiment data of the target block chain is possibly insufficient in a short time, the inaccuracy of the inspection result of the public sentiment dimensionality is avoided, and the discrimination result of the whole target block chain is influenced; or the discrimination efficiency is too slow due to too long discrimination time, so that the actual application requirement of the target block chain is influenced, and the like. In addition, the setting mode of the inspection time information reduces the manual participation, reduces the technical requirements of operators or users, and has good practical value.
Besides, in addition to setting the inspection time information, the operator may set the monitoring time for the target block chain after the determination is finished, so as to continue monitoring the target block chain after the determination is finished, and inspect the target block chain again according to the monitoring result. For example, in the inspection process of a certain target block chain, little or no target community data and target public opinion data are acquired, the target block chain can be inspected through other dimensions at this time, after the judgment is finished, the monitoring time is set, the target block chain is continuously monitored in the monitoring time, and the judgment result of the target block chain is generated again according to the monitored target community data and the monitored target public opinion data and by combining the inspection results of the previous other dimensions, so that the judgment accuracy is ensured.
Step S408, generating a judgment result of the target block chain according to the detection result of the target data set.
The judgment result comprises the judgment information of whether the target block chain belongs to the public chain, so that the method for judging the block chain not only automatically judges the public chain through the judgment server, reduces the manual participation and improves the public chain judgment efficiency; meanwhile, in the distinguishing process, the public link is distinguished through multiple dimensions, so that the truth of the public link is more comprehensively distinguished, and the distinguishing accuracy of the public link is improved; and the technical requirements on operators are also reduced, so that the method has better practical value.
Corresponding to the method embodiment shown in fig. 2, the embodiment of the present invention further provides a device for determining a block chain, which is applied to a determination server. As shown in fig. 5, the apparatus includes a target data set acquisition module 51, a target data set verification module 52 and a discrimination result generation module 53 connected in sequence; the functions of each module are as follows:
a target data set obtaining module 51, configured to obtain a target data set of a target block chain to be distinguished, where the target block chain corresponds to a preset dimension; wherein the preset dimensions comprise a plurality of dimensions of the following dimensions: a source code dimension, a node dimension, a tile browser dimension, a white paper dimension, a wallet dimension, a community dimension, and a public opinion dimension;
a target data set verification module 52 for verifying a target data set corresponding to each of the plurality of dimensions for the target blockchain;
and a discrimination result generation module 53, configured to generate a discrimination result of the target block chain according to the inspection result of the target data set, where the discrimination result includes discrimination information whether the target block chain belongs to a public chain.
According to the distinguishing device for the block chains, provided by the embodiment of the invention, the public chains are automatically distinguished through the distinguishing server by checking the target data sets of multiple dimensions of the target block chains to be distinguished and generating the distinguishing results of the target block chains according to the checking results, so that the manual participation is reduced and the public chain distinguishing efficiency is improved; and in the distinguishing process, the public link is distinguished through a plurality of dimensions, so that the truth of the public link is more comprehensively distinguished, the distinguishing accuracy of the public link is improved, and the public link distinguishing method has better practical value.
In one possible embodiment, the target data set verification module 52 is further configured to: acquiring a basic data set of the credible public chain corresponding to a preset dimension; the basic data set comprises a core source code set of source code dimensionality and a basic white-cover data set of white-cover dimensionality; checking a target data set of source code dimensions based on a core source code set; and/or checking the target data set of the white paper dimension based on the basic white paper data set.
In another possible embodiment, the checking the target data set of the source code dimension based on the core source code set includes: checking the source code similarity of a target source code corresponding to the source code dimension of the target block chain and a core source code set; and determining a detection result corresponding to the source code dimension according to the source code similarity and a preset similarity threshold.
In another possible embodiment, the basic white paper data set includes a basic white paper picture data set and a basic white paper character data set; the checking of the white paper dimensionality target data set based on the basic white paper data set comprises the following steps: analyzing the target white paper data of the target block chain corresponding to the white paper dimensionality to obtain target white paper picture data and target white paper character data; checking the data of the target white paper picture based on the basic white paper picture data set; and/or detecting the target white paper character data based on the basic white paper character data set to obtain a detection result corresponding to the white paper dimension.
In another possible embodiment, the target data set includes: target node deployment data for a node of the node dimension for deploying the target blockchain and/or target wallet data for a wallet of the wallet dimension for providing the target blockchain; the target data set verification module 52 is further configured to: executing a node deployment process of the target block chain based on the target node deployment data, and determining a check result of the node dimension according to an execution result of the target node deployment data; and/or running the wallets of the target block chain based on the target wallet data, checking the preset functions of the wallets, and determining the checking result of the wallet dimension according to the checking result.
In another possible embodiment, the target data set includes target tile browser address data of a tile browser dimension, and the target data set verification module 52 is further configured to: acquiring preset data information in a target block chain based on the address data of the target block browser, wherein the preset data information comprises at least one of the following data: block height information, transaction total amount information, node summary information, transaction information and block output information; and checking the preset data information based on the preset reference information to obtain a checking result of the dimension of the block browser.
In another possible embodiment, the inspection result includes an inspection result for each of a plurality of dimensions; the detection result of each dimension also carries label information, and the label information is used for representing the authenticity information of the target block chain to the dimension; the discrimination result generating module 53 is further configured to: counting the total number of the label information in the test result of the target data set of each dimension as pseudo information; and generating a judgment result of the target block chain based on the ratio of the total number and the total number of the dimensions of the plurality of dimensions.
In another possible embodiment, the inspection result includes an inspection score of each of a plurality of dimensions, and each dimension is further configured with a weight; the discrimination result generating module 53 is further configured to: calculating a total inspection score according to the inspection score of the target data set of each dimension and the weight corresponding to the dimension; and generating a judgment result of the target block chain according to the total inspection score and a preset score threshold value.
In another possible embodiment, the target data set verification module 52 is further configured to: responding to the time setting operation of a user, and acquiring the inspection time information of the target block chain; wherein, the check time information comprises a start time and an end time; and checking the target data set of the target block chain corresponding to each dimension in the plurality of dimensions according to the checking time information.
The device for determining the block chain provided by the embodiment of the invention has the same technical characteristics as the method for determining the block chain provided by the embodiment, so that the same technical problems can be solved, and the same technical effects can be achieved.
The embodiment of the invention also provides electronic equipment which comprises a processor and a memory, wherein the memory stores machine executable instructions capable of being executed by the processor, and the processor executes the machine executable instructions to realize the distinguishing method of the block chain.
Referring to fig. 6, the electronic device includes aprocessor 60 and amemory 61, thememory 61 stores machine executable instructions capable of being executed by theprocessor 60, and theprocessor 60 executes the machine executable instructions to implement the above method for determining the block chain.
Further, the electronic device shown in fig. 6 further includes a bus 62 and acommunication interface 63, and theprocessor 60, thecommunication interface 63, and thememory 61 are connected by the bus 62.
TheMemory 61 may include a high-speed Random Access Memory (RAM) and may also include a non-volatile Memory (non-volatile Memory), such as at least one disk Memory. The communication connection between the network element of the system and at least one other network element is realized through at least one communication interface 63 (which may be wired or wireless), and the internet, a wide area network, a local network, a metropolitan area network, and the like can be used. The bus 62 may be an ISA (Industry Standard Architecture) bus, a PCI (Peripheral Component Interconnect) bus, an EISA (Enhanced Industry Standard Architecture) bus, or the like. The above-mentioned bus may be classified into an address bus, a data bus, a control bus, and the like. For ease of illustration, only one double-headed arrow is shown in FIG. 6, but that does not indicate only one bus or one type of bus.
Theprocessor 60 may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware or instructions in the form of software in theprocessor 60. TheProcessor 60 may be a general-purpose Processor, and includes a Central Processing Unit (CPU), a Network Processor (NP), and the like; the device can also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, a discrete Gate or transistor logic device, or a discrete hardware component. The various methods, steps and logic blocks disclosed in the embodiments of the present invention may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in connection with the embodiments of the present invention may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software module may be located in ram, flash memory, rom, prom, or eprom, registers, etc. storage media as is well known in the art. The storage medium is located in amemory 61, and theprocessor 60 reads the information in thememory 61 and, in combination with its hardware, performs the steps of the method of the previous embodiment.
The present embodiments also provide a machine-readable storage medium having stored thereon machine-executable instructions that, when invoked and executed by a processor, cause the processor to implement the above method for discrimination of blockchains.
The method and apparatus for determining a block chain and the computer program product of the electronic device provided in the embodiments of the present invention include a computer-readable storage medium storing a program code, where instructions included in the program code may be used to execute the method described in the foregoing method embodiments, and specific implementation may refer to the method embodiments, and will not be described herein again.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the system and the apparatus described above may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In addition, in the description of the embodiments of the present invention, unless otherwise explicitly specified or limited, the terms "mounted," "connected," and "connected" are to be construed broadly, e.g., as meaning either a fixed connection, a removable connection, or an integral connection; can be mechanically or electrically connected; they may be connected directly or indirectly through intervening media, or they may be interconnected between two elements. The specific meanings of the above terms in the present invention can be understood in specific cases to those skilled in the art.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a non-volatile computer-readable storage medium executable by a processor. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
In the description of the present invention, it should be noted that the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", etc., indicate orientations or positional relationships based on the orientations or positional relationships shown in the drawings, and are only for convenience of description and simplicity of description, but do not indicate or imply that the device or element being referred to must have a particular orientation, be constructed and operated in a particular orientation, and thus, should not be construed as limiting the present invention. Furthermore, the terms "first," "second," and "third" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance.
Finally, it should be noted that: the above-mentioned embodiments are only specific embodiments of the present invention, which are used for illustrating the technical solutions of the present invention and not for limiting the same, and the protection scope of the present invention is not limited thereto, although the present invention is described in detail with reference to the foregoing embodiments, those skilled in the art should understand that: any person skilled in the art can modify or easily conceive the technical solutions described in the foregoing embodiments or equivalent substitutes for some technical features within the technical scope of the present disclosure; such modifications, changes or substitutions do not depart from the spirit and scope of the embodiments of the present invention, and they should be construed as being included therein. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.