CN113761078A - Prediction machine based on block chain relational database and implementation method thereof - Google Patents

Prediction machine based on block chain relational database and implementation method thereof Download PDF

Info

Publication number
CN113761078A
CN113761078A CN202110038622.3A CN202110038622A CN113761078A CN 113761078 A CN113761078 A CN 113761078A CN 202110038622 A CN202110038622 A CN 202110038622A CN 113761078 A CN113761078 A CN 113761078A
Authority
CN
China
Prior art keywords
verification
data
writing
information
external
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202110038622.3A
Other languages
Chinese (zh)
Other versions
CN113761078B (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.)
Shenzhen Great China Blockchain Technology Co ltd
Original Assignee
Shenzhen Kulian 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 Shenzhen Kulian Technology Co ltd filed Critical Shenzhen Kulian Technology Co ltd
Priority to CN202110038622.3A priority Critical patent/CN113761078B/en
Priority claimed from CN202110038622.3A external-priority patent/CN113761078B/en
Publication of CN113761078A publication Critical patent/CN113761078A/en
Application granted granted Critical
Publication of CN113761078B publication Critical patent/CN113761078B/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/28Databases characterised by their database models, e.g. relational or object models
    • G06F16/284Relational databases
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/30Authentication, i.e. establishing the identity or authorisation of security principals
    • G06F21/31User authentication

Abstract

The invention discloses a prediction machine based on a block chain relational database, which comprises a verification configuration module, a prediction module and a prediction module, wherein the verification configuration module is used for acquiring external verification API information and selecting an external verification API to carry out associated verification configuration; the verification request module is used for acquiring and sending verification data of a user, and generating and sending an external verification request to an external verification API; the verification writing module is used for acquiring verification information of an external verification API and writing verification data which is verified into a specific database; the data matching module is used for matching the verification data of the user to be written into the application database with the verification data in the specific database, and generating and sending a matching result; and the data writing module is used for writing the verification data of the user into the application database to finish data writing. The invention also discloses a realization method of the prediction machine based on the block chain relational database. The invention can verify the external data and ensure the authenticity and accuracy of verification.

Description

Prediction machine based on block chain relational database and implementation method thereof
Technical Field
The invention relates to the technical field of block chain prediction machines, in particular to a prediction machine based on a block chain relational database and an implementation method thereof.
Background
Block chains are currently widely used in the fields of finance, internet of things, supply chains and the like. The core innovation of the method is to solve the trust problem in a decentralization way without trusting and relying on a third-party mechanism to carry out value transfer. However, the blockchain cannot actively acquire real-world data, and usually needs a decentralized prediction machine to read information. The blockchain predictor establishes a connection between the blockchain and the real world event. The block chain prediction machine connected with the block chain is a data acquisition node which triggers the intelligent contract by acquiring data outside the block chain.
The existing prediction machine obtains information from the outside and directly returns the information to the intelligent contract. For scenarios such as external data verification (identity verification), it is difficult to accurately express the reliability of the verification in such a manner, and the intelligent contract may ignore the returned result of the prediction machine.
Disclosure of Invention
In order to overcome the above problems or at least partially solve the above problems, embodiments of the present invention provide a block chain relational database-based talker and an implementation method thereof, which can verify external data, so that a library chain can reliably verify a user identity, and at the same time, ensure that verification data of all nodes are consistent.
The embodiment of the invention is realized by the following steps:
in a first aspect, an embodiment of the present invention provides a prediction machine based on a block chain relational database, including a verification configuration module, a verification request module, a verification write module, a data matching module, and a data write module, where:
the verification configuration module is used for acquiring external verification API information and selecting an external verification API to carry out associated verification configuration according to the external verification API information;
the verification request module is used for acquiring and sending verification data of the user, and generating and sending an external verification request to an external verification API according to the verification data of the user;
the verification writing module is used for acquiring verification information of the external verification API and writing verification data in the verification request after verification into a specific database according to the verification information;
the data matching module is used for matching the verification data of the user to be written into the application database with the verification data in the specific database, and generating and sending a matching result;
and the data writing module is used for writing the verification data of the user into the application database according to the matching result to finish data writing.
For the condition that verification data needs to be provided outside the block chain, the prediction machine is used for conducting external verification firstly, and then sending the data to the block chain, and therefore accuracy and effectiveness of data verification are guaranteed. Firstly, obtaining external verification API information through a verification configuration module, selecting an external verification API according to the external verification API information to carry out associated verification configuration, and configuring the external verification API for external verification in advance so as to carry out identity verification on data to be verified of a user in the following process; when a client sends a verification request to the dialer, the verification request module acquires and sends verification data of a user, an external verification request is generated and sent to an external verification API according to the verification data of the user, the verification data of the user is verified through the external verification API, verification information is generated after verification is completed, the verification information of the external verification API is acquired through a verification writing-in module, the verification data in the verification request which is completed through verification is written into a specific database according to the verification information, and the verification information comprises user identity data, an identity verification result, verification data and a data verification result; if the external verification is passed, writing the successful verification data into a specific table in a specific database in the library chain so as to carry out verification judgment again when a subsequent user writes the same data into the application database, thereby ensuring the accuracy of data verification; in the process that the user writes the same data into the application database, the verification data of the user to be written into the application database is matched with the verification data in the specific database through the data matching module to generate and send a matching result, and if the matching result is displayed to be passed, the verification data of the user is written into the application database through the data writing module according to the matching result to finish data writing; in the writing process, if the data to be written is matched with the data written by the prediction machine in the specific table of the specific database, the writing is successful; otherwise the write fails.
The prediction machine can verify external data of the block chain, so that the library chain can reliably verify the identity of the user, and meanwhile, the verification data of all nodes are ensured to be consistent, and the verification authenticity and accuracy are ensured.
Based on the first aspect, in some embodiments of the present invention, the verification writing module includes a deposit establishing submodule and a deposit writing submodule, where:
the storage establishing submodule is used for establishing a specific database used for storing external verification data in the block chain relational database and establishing a specific table in the specific database;
and the storage writing-in submodule is used for acquiring the verification information of the external verification API and writing the verification data in the verification request after verification into a specific table in a specific database according to the verification information.
Based on the first aspect, in some embodiments of the present invention, the verification writing module includes a verification judgment sub-module, configured to judge whether the verification data of the user passes verification according to the verification information, and if yes, write the verification data in the verification request that passes verification into the specific database; and if not, generating and sending verification failure prompt information.
Based on the first aspect, in some embodiments of the present invention, the data writing module includes a matching judgment sub-module, configured to judge whether data matching is successful according to a matching result, and if so, write verification data of a user into an application database to complete data writing; and if not, generating and sending write failure information.
Based on the first aspect, in some embodiments of the present invention, the authentication information includes authentication information, an authentication result, data authentication information, and a data authentication result.
In a second aspect, an embodiment of the present invention provides a method for implementing a prediction machine based on a blockchain relational database, including the following steps:
obtaining external verification API information, and selecting an external verification API to perform associated verification configuration according to the external verification API information;
acquiring and sending verification data of a user, and generating and sending an external verification request to an external verification API according to the verification data of the user;
acquiring verification information of an external verification API, and writing verification data in a verification request which is verified into a specific database according to the verification information;
matching the verification data of the user to be written into the application database with the verification data in the specific database, and generating and sending a matching result;
and writing the verification data of the user into the application database according to the matching result to finish data writing.
For the condition that verification data needs to be provided outside the block chain, external verification is firstly carried out, and then the data is sent to the block chain, so that the accuracy and the validity of data verification are ensured. Firstly, obtaining external verification API information, selecting an external verification API according to the external verification API information to carry out associated verification configuration, and configuring the external verification API for external verification in advance so as to carry out identity verification on data to be verified of a user in the following process; when a client sends a verification request to the dialer, obtaining and sending verification data of the user, generating and sending an external verification request to an external verification API according to the verification data of the user, verifying the verification data of the user through the external verification API, generating verification information after the verification is finished, obtaining the verification information of the external verification API, writing the verification data in the verification request after the verification is finished into a specific database according to the verification information, wherein the verification information comprises user identity data, an identity verification result, verification data and a data verification result; if the external verification is passed, writing the successful verification data into a specific table in a specific database in the library chain so as to carry out verification judgment again when a subsequent user writes the same data into the application database, thereby ensuring the accuracy of data verification; in the process that the user writes the same data into the application database, matching the verification data of the user to be written into the application database with the verification data in the specific database, generating and sending a matching result, and if the matching result is displayed to be passed, writing the verification data of the user into the application database according to the matching result to finish data writing; in the writing process, if the data to be written is matched with the data written by the prediction machine in the specific table of the specific database, the writing is successful; otherwise the write fails.
The method can verify the external data of the block chain, so that the library chain can reliably verify the identity of the user, and simultaneously, the verification data of all nodes are ensured to be consistent, and the verification authenticity and the verification accuracy are ensured.
Based on the second aspect, in some embodiments of the present invention, the above method for obtaining the verification information of the external verification API, and writing the verification data in the verification request with verification completed into the specific database according to the verification information includes the following steps:
establishing a specific database used for storing external verification data in a block chain relational database, and establishing a specific table in the specific database;
and acquiring the verification information of the external verification API, and writing the verification data in the verification request after verification into a specific table in a specific database according to the verification information.
Based on the second aspect, in some embodiments of the present invention, the method for writing the verification data in the verification request with verification completed according to the verification information into the specific database includes the following steps:
judging whether the verification data of the user passes the verification according to the verification information, and if so, writing the verification data in the verification request passing the verification into a specific database; and if not, generating and sending verification failure prompt information.
Based on the second aspect, in some embodiments of the present invention, the method for writing the verification data of the user into the application database according to the matching result includes the following steps:
judging whether the data matching is successful according to the matching result, if so, writing the verification data of the user into an application database, and finishing the data writing; and if not, generating and sending write failure information.
Based on the second aspect, in some embodiments of the invention, the authentication information includes authentication information, an authentication result, data authentication information, and a data authentication result.
The embodiment of the invention at least has the following advantages or beneficial effects:
the embodiment of the invention provides a block chain relation database-based prediction machine, which obtains external verification API information through a verification configuration module, selects an external verification API according to the external verification API information to carry out associated verification configuration, and pre-configures the external verification API for external verification so as to carry out identity verification on data to be verified of a user in the following process; when a client sends a verification request to the prediction machine, the verification request module acquires and sends verification data of a user, an external verification request is generated and sent to an external verification API according to the verification data of the user, the verification data of the user is verified through the external verification API, verification information is generated after verification is completed, the verification information of the external verification API is acquired through a verification writing-in module, and the verification data in the verification request after verification is completed is written into a specific database according to the verification information; if the external verification passes, writing the successful verification data into a specific table in a specific database in the library chain; and in the process that the user writes the same data into the application database, matching the verification data of the user to be written into the application database with the verification data in the specific database through the data matching module to generate and send a matching result, and if the matching result is displayed to be passed, writing the verification data of the user into the application database through the data writing module according to the matching result to finish data writing. For the condition that verification data needs to be provided outside the block chain, the prediction machine is used for conducting external verification firstly, and then sending the data to the block chain, and therefore accuracy and effectiveness of data verification are guaranteed.
The embodiment of the invention also provides a realization method of the prediction machine based on the block chain relational database, which comprises the steps of obtaining the external verification API information, selecting the external verification API according to the external verification API information to carry out associated verification configuration, and configuring the external verification API for external verification in advance so as to carry out identity verification on the data to be verified of the user in the following process; when a client sends a verification request to the prediction machine, obtaining and sending verification data of a user, generating and sending an external verification request to an external verification API according to the verification data of the user, verifying the verification data of the user through the external verification API, generating verification information after the verification is finished, obtaining the verification information of the external verification API, and writing the verification data in the verification request after the verification is finished into a specific database according to the verification information; if the external verification is passed, writing the successful verification data into a specific table in a specific database in the library chain so as to carry out verification judgment again when a subsequent user writes the same data into the application database, thereby ensuring the accuracy of data verification; and in the process that the user writes the same data into the application database, matching the verification data of the user to be written into the application database with the verification data in the specific database, generating and sending a matching result, and if the matching result is displayed to be passed, writing the verification data of the user into the application database according to the matching result to finish data writing. The method can verify the external data of the block chain, so that the library chain can reliably verify the identity of the user, and simultaneously, the verification data of all nodes are ensured to be consistent, and the verification authenticity and the verification accuracy are ensured.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present invention and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained according to the drawings without inventive efforts.
FIG. 1 is a schematic block diagram of a prediction machine based on a blockchain relational database according to an embodiment of the present invention;
fig. 2 is a flowchart of a method for implementing a prediction machine based on a block chain relational database according to an embodiment of the present invention.
Icon: 100. verifying the configuration module; 200. a verification request module; 300. verifying the write module; 310. a storage establishing submodule; 320. storing the writing submodule; 330. a verification judgment submodule; 400. a data matching module; 500. a data writing module; 510. and a matching judgment submodule.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. The components of embodiments of the present invention generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations.
Thus, the following detailed description of the embodiments of the present invention, presented in the figures, is not intended to limit the scope of the invention, as claimed, but is merely representative of selected embodiments of the 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.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
Examples
As shown in fig. 1, in a first aspect, an embodiment of the present invention provides a prediction machine based on a blockchain relational database, including a verification configuration module 100, a verification request module 200, a verification write module 300, a data matching module 400, and a data write module 500, where:
the verification configuration module 100 is configured to obtain external verification API information, and select an external verification API according to the external verification API information to perform associated verification configuration;
the verification request module 200 is configured to acquire and send verification data of a user, and generate and send an external verification request to an external verification API according to the verification data of the user;
a verification write-in module 300, configured to obtain verification information of an external verification API, and write verification data in a verification request that is completed by verification into a specific database according to the verification information;
the data matching module 400 is configured to match the verification data of the user to be written into the application database with the verification data in the specific database, and generate and send a matching result;
and a data writing module 500, configured to write the verification data of the user into the application database according to the matching result, so as to complete data writing.
For the condition that verification data needs to be provided outside the block chain, the prediction machine is used for conducting external verification firstly, and then sending the data to the block chain, and therefore accuracy and effectiveness of data verification are guaranteed. Firstly, obtaining external verification API information through a verification configuration module 100, selecting an external verification API according to the external verification API information to carry out associated verification configuration, and configuring the external verification API for external verification in advance so as to carry out identity verification on data to be verified of a user in the following process; when a client sends a verification request to the dialer, the verification request module 200 acquires and sends verification data of a user, generates and sends an external verification request to an external verification API according to the verification data of the user, verifies the verification data of the user through the external verification API, generates verification information after the verification is finished, acquires the verification information of the external verification API through the verification writing module 300, and writes the verification data in the verification request after the verification is finished into a specific database according to the verification information, wherein the verification information comprises identity verification information, an identity verification result, data verification information and a data verification result; if the external verification is passed, writing the successful verification data into a specific table in a specific database in the library chain so as to carry out verification judgment again when a subsequent user writes the same data into the application database, thereby ensuring the accuracy of data verification; in the process that the user writes the same data into the application database, the data matching module 400 matches the verification data of the user to be written into the application database with the verification data in the specific database to generate and send a matching result, and if the matching result is displayed to be passed, the data writing module 500 writes the verification data of the user into the application database according to the matching result to complete data writing; in the writing process, if the data to be written is matched with the data written by the prediction machine in the specific table of the specific database, the writing is successful; otherwise the write fails.
The prediction machine can verify external data of the block chain, so that the library chain can reliably verify the identity of the user, and meanwhile, the verification data of all nodes are ensured to be consistent, and the verification authenticity and accuracy are ensured.
Based on the first aspect, as shown in fig. 1, in some embodiments of the present invention, the verification write module 300 includes a deposit establishing submodule 310 and a deposit write submodule 320, where:
the storage establishing sub-module 310 is configured to establish a specific database for storing the external verification data in the blockchain relational database, and establish a specific table in the specific database;
the storage write-in sub-module 320 is configured to obtain the verification information of the external verification API, and write the verification data in the verification request after verification into a specific table in a specific database according to the verification information.
In order to facilitate the matching of the subsequent user with the data in the specific database when writing the data into the application database, the accuracy of data verification is ensured, and the validity of user identity verification is further ensured. The specific database for storing the external verification data in the block chain relational database is established through the storage establishing sub-module 310, and the specific table in the specific database is established, after the specific table is established, the verification information of the external verification API is acquired through the storage writing sub-module 320, and the verification data in the verification request after the verification is completed is written into the specific table in the specific database according to the verification information, so as to verify the subsequent written data. The specific database is a database storing specific verification data of a specific table, and the application database is a database storing user-written data.
Based on the first aspect, as shown in fig. 1, in some embodiments of the present invention, the verification writing module 300 includes a verification judging sub-module 330, configured to judge whether the verification data of the user passes verification according to the verification information, and if so, write the verification data in the verification request that passes verification into a specific database; and if not, generating and sending verification failure prompt information.
When the verification data is written into the specific database, the verification judgment sub-module 330 judges whether the verification data of the user passes the verification according to the verification result in the verification information, if so, the verification data in the verification request passing the verification is written into a specific table in the specific database, so as to provide a verification data basis for the subsequent data written by the user; if the verification fails through the verification of the external verification API, generating and sending verification failure prompt information to the user, prompting the user that the verification fails, and carrying out the verification again.
Based on the first aspect, as shown in fig. 1, in some embodiments of the present invention, the data writing module 500 includes a matching judgment sub-module 510, configured to judge whether data matching is successful according to a matching result, and if yes, write verification data of a user into an application database to complete data writing; and if not, generating and sending write failure information.
When the user data is written into the application database, the matching judgment sub-module 510 judges whether the verification data of the user is matched with the data in the specific database according to the matching result, and if the verification data of the user is matched with the data in the specific database, the verification data of the user is written into the application database to complete data writing; and if not, generating and sending write failure information to prompt the user to rewrite the data. Only after the matching is successful, the data of the user is written into the application database, so that the verification data written by the user is ensured to be verified externally, meanwhile, the data can be successfully written into all the nodes, and the verification data of all the nodes are ensured to be consistent.
As shown in fig. 2, in a second aspect, an embodiment of the present invention provides a method for implementing a prediction machine based on a blockchain relational database, including the following steps:
s1, obtaining external verification API information, and selecting an external verification API to carry out associated verification configuration according to the external verification API information;
s2, acquiring and sending the verification data of the user, and generating and sending an external verification request to an external verification API according to the verification data of the user;
s3, obtaining the verification information of the external verification API, and writing the verification data in the verification request after verification into a specific database according to the verification information;
s4, matching the verification data of the user to be written into the application database with the verification data in the specific database, generating and sending a matching result;
and S5, writing the verification data of the user into the application database according to the matching result, and finishing data writing.
For the condition that verification data needs to be provided outside the block chain, external verification is firstly carried out, and then the data is sent to the block chain, so that the accuracy and the validity of data verification are ensured. Firstly, obtaining external verification API information, selecting an external verification API according to the external verification API information to carry out associated verification configuration, and configuring the external verification API for external verification in advance so as to carry out identity verification on data to be verified of a user in the following process; when a client sends a verification request to the dialer, obtaining and sending verification data of the user, generating and sending an external verification request to an external verification API according to the verification data of the user, verifying the verification data of the user through the external verification API, generating verification information after the verification is finished, obtaining the verification information of the external verification API, writing the verification data in the verification request after the verification is finished into a specific database according to the verification information, wherein the verification information comprises identity verification information, an identity verification result, data verification information and a data verification result; if the external verification is passed, writing the successful verification data into a specific table in a specific database in the library chain so as to carry out verification judgment again when a subsequent user writes the same data into the application database, thereby ensuring the accuracy of data verification; in the process that the user writes the same data into the application database, matching the verification data of the user to be written into the application database with the verification data in the specific database, generating and sending a matching result, and if the matching result is displayed to be passed, writing the verification data of the user into the application database according to the matching result to finish data writing; in the writing process, if the data to be written is matched with the data written by the prediction machine in the specific table of the specific database, the writing is successful; otherwise the write fails.
The method can verify the external data of the block chain, so that the library chain can reliably verify the identity of the user, and simultaneously, the verification data of all nodes are ensured to be consistent, and the verification authenticity and the verification accuracy are ensured.
Based on the second aspect, in some embodiments of the present invention, the above method for obtaining the verification information of the external verification API, and writing the verification data in the verification request with verification completed into the specific database according to the verification information includes the following steps:
establishing a specific database used for storing external verification data in a block chain relational database, and establishing a specific table in the specific database;
and acquiring the verification information of the external verification API, and writing the verification data in the verification request after verification into a specific table in a specific database according to the verification information.
In order to facilitate the matching of the subsequent user with the data in the specific database when writing the data into the application database, the accuracy of data verification is ensured, and the validity of user identity verification is further ensured. Firstly, a specific database used for storing external verification data in a block chain relational database is established, a specific table in the specific database is established, after the specific table is established, verification information of an external verification API is obtained, and verification data in a verification request after verification is completed is written into the specific table in the specific database according to the verification information so as to verify subsequent written data. The specific database is a database storing specific verification data of a specific table, and the application database is a database storing user-written data.
Based on the second aspect, in some embodiments of the present invention, the method for writing the verification data in the verification request with verification completed according to the verification information into the specific database includes the following steps:
judging whether the verification data of the user passes the verification according to the verification information, and if so, writing the verification data in the verification request passing the verification into a specific database; and if not, generating and sending verification failure prompt information.
When the verification data is written into the specific database, whether the verification data of the user passes the verification is judged according to the verification result in the verification information, if the verification data passes the verification result, the verification data in the verification request passing the verification is written into a specific table in the specific database, and a verification data basis is provided for the subsequent data written by the user; if the verification fails through the verification of the external verification API, generating and sending verification failure prompt information to the user, prompting the user that the verification fails, and carrying out the verification again.
Based on the second aspect, in some embodiments of the present invention, the method for writing the verification data of the user into the application database according to the matching result includes the following steps:
judging whether the data matching is successful according to the matching result, if so, writing the verification data of the user into an application database, and finishing the data writing; and if not, generating and sending write failure information.
When the data of the user is written into the application database, judging whether the verification data of the user is matched with the data in the specific database or not, if so, writing the verification data of the user into the application database, and finishing data writing; and if not, generating and sending write failure information to prompt the user to rewrite the data. Only after the matching is successful, the data of the user is written into the application database, so that the verification data written by the user is ensured to be verified externally, meanwhile, the data can be successfully written into all the nodes, and the verification data of all the nodes are ensured to be consistent.
The above is only a preferred embodiment of the present invention, and is not intended to limit the present invention, and various modifications and changes will occur to those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
It will be evident to those skilled in the art that the present application is not limited to the details of the foregoing illustrative embodiments, and that the present application may be embodied in other specific forms without departing from the spirit or essential attributes thereof. The present embodiments are therefore to be considered in all respects as illustrative and not restrictive, the scope of the application being indicated by the appended claims rather than by the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein. Any reference sign in a claim should not be construed as limiting the claim concerned.

Claims (10)

1. A prediction machine based on a block chain relational database is characterized by comprising a verification configuration module, a verification request module, a verification writing module, a data matching module and a data writing module, wherein:
the verification configuration module is used for acquiring external verification API information and selecting an external verification API to carry out associated verification configuration according to the external verification API information;
the verification request module is used for acquiring and sending verification data of the user, and generating and sending an external verification request to an external verification API according to the verification data of the user;
the verification writing module is used for acquiring verification information of the external verification API and writing verification data in the verification request after verification into a specific database according to the verification information;
the data matching module is used for matching the verification data of the user to be written into the application database with the verification data in the specific database, and generating and sending a matching result;
and the data writing module is used for writing the verification data of the user into the application database according to the matching result to finish data writing.
2. The block chain relational database-based prediction machine according to claim 1, wherein the verification writing module comprises a deposit establishing submodule and a deposit writing submodule, wherein:
the storage establishing submodule is used for establishing a specific database used for storing external verification data in the block chain relational database and establishing a specific table in the specific database;
and the storage writing-in submodule is used for acquiring the verification information of the external verification API and writing the verification data in the verification request after verification into a specific table in a specific database according to the verification information.
3. The block chain relational database-based prediction machine according to claim 1, wherein the verification writing module comprises a verification judging sub-module, configured to judge whether the verification data of the user passes verification according to the verification information, and if so, write the verification data in the verification request that passes verification into the specific database; and if not, generating and sending verification failure prompt information.
4. The prediction machine based on the blockchain relational database according to claim 1, wherein the data writing module comprises a matching judgment sub-module, which is used for judging whether the data matching is successful according to the matching result, and if so, the verification data of the user is written into the application database to complete the data writing; and if not, generating and sending write failure information.
5. The blockchain relational database-based language prediction machine according to claim 1, wherein the verification information comprises authentication information, an authentication result, data verification information and a data verification result.
6. A realization method of a prediction machine based on a block chain relational database is characterized by comprising the following steps:
obtaining external verification API information, and selecting an external verification API to perform associated verification configuration according to the external verification API information;
acquiring and sending verification data of a user, and generating and sending an external verification request to an external verification API according to the verification data of the user;
acquiring verification information of an external verification API, and writing verification data in a verification request which is verified into a specific database according to the verification information;
matching the verification data of the user to be written into the application database with the verification data in the specific database, and generating and sending a matching result;
and writing the verification data of the user into the application database according to the matching result to finish data writing.
7. The method for implementing the block chain relational database-based prediction machine according to claim 6, wherein the method for obtaining the verification information of the external verification API and writing the verification data in the verification request after verification into the specific database according to the verification information comprises the following steps:
establishing a specific database used for storing external verification data in a block chain relational database, and establishing a specific table in the specific database;
and acquiring the verification information of the external verification API, and writing the verification data in the verification request after verification into a specific table in a specific database according to the verification information.
8. The method for implementing a block chain relational database-based language pretector according to claim 6, wherein the method for writing the verification data in the verification request after completion of verification into a specific database according to the verification information comprises the following steps:
judging whether the verification data of the user passes the verification according to the verification information, and if so, writing the verification data in the verification request passing the verification into a specific database; and if not, generating and sending verification failure prompt information.
9. The method for implementing a block chain relational database-based language prediction machine according to claim 6, wherein the method for writing the verification data of the user into the application database according to the matching result comprises the following steps:
judging whether the data matching is successful according to the matching result, if so, writing the verification data of the user into an application database, and finishing the data writing; and if not, generating and sending write failure information.
10. The method as claimed in claim 6, wherein the verification information includes authentication information, authentication result, data verification information, and data verification result.
CN202110038622.3A 2021-01-12 Predictors based on block chain relational database and implementation method thereof Active CN113761078B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110038622.3A CN113761078B (en) 2021-01-12 Predictors based on block chain relational database and implementation method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110038622.3A CN113761078B (en) 2021-01-12 Predictors based on block chain relational database and implementation method thereof

Publications (2)

Publication Number Publication Date
CN113761078A true CN113761078A (en) 2021-12-07
CN113761078B CN113761078B (en) 2024-05-10

Family

ID=

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109995776A (en) * 2019-03-26 2019-07-09 西安纸贵互联网科技有限公司 A kind of internet data verification method and system
US20200244460A1 (en) * 2019-08-01 2020-07-30 Alibaba Group Holding Limited Blockchain-based identity authentication method, apparatus, and device
CN111488616A (en) * 2020-04-08 2020-08-04 北京瑞策科技有限公司 Method and device for realizing preplan machine of service data block chain
CN111801910A (en) * 2017-12-15 2020-10-20 区块链控股有限公司 System and method for authenticating off-chain data based on proof verification

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111801910A (en) * 2017-12-15 2020-10-20 区块链控股有限公司 System and method for authenticating off-chain data based on proof verification
CN109995776A (en) * 2019-03-26 2019-07-09 西安纸贵互联网科技有限公司 A kind of internet data verification method and system
US20200244460A1 (en) * 2019-08-01 2020-07-30 Alibaba Group Holding Limited Blockchain-based identity authentication method, apparatus, and device
CN111488616A (en) * 2020-04-08 2020-08-04 北京瑞策科技有限公司 Method and device for realizing preplan machine of service data block chain

Similar Documents

Publication Publication Date Title
US9483386B2 (en) Information interaction test device and method based on automatic generation of associated test cases
CN109598518A (en) Method for anti-counterfeit and device, electronic equipment based on block chain
CN110597730B (en) Automatic test case generation method and system based on scene method
CN108154439A (en) Asset data processing unit and method
TW201032157A (en) Multifactor authentication with changing unique values
CN104361119B (en) A kind of method and system of data scrubbing
CN101572696A (en) Method and device for validating data on webpage form
CN110995703B (en) Service processing request processing method and device, and electronic device
CN109559136B (en) Information management system and method
KR101839346B1 (en) Cloud payment system
CN112905459B (en) Service interface testing method and device, electronic equipment and storage medium
CN108829838A (en) A kind of account information batch processing method and server
CN113269565B (en) Anti-counterfeiting identification method and device for preventing identification code from being reused and electronic equipment
CN111274307A (en) Product information display method, device and system and related equipment
CN114510425A (en) Test case generation method and device
CN113778878A (en) Interface testing method and device, electronic equipment and storage medium
CN113761078A (en) Prediction machine based on block chain relational database and implementation method thereof
CN113761078B (en) Predictors based on block chain relational database and implementation method thereof
Jacob et al. An Analytical approach on DFD to UML model transformation techniques
CN111047322A (en) Intelligent contract deployment method and device based on block chain and hardware equipment
CN112256595B (en) Heterogeneous system testing method and device and electronic equipment
CN109635552A (en) Electronic equipment identity information verification method and device
CN112256978B (en) Data processing method, device and medium based on data model
CN109815145B (en) Batch measurement order testing method and device
CN110610343A (en) Business process generation method and 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
TA01 Transfer of patent application right

Effective date of registration: 20240413

Address after: 3235, 3rd Floor, No. 39 Queshan New Village, Gaofeng Community, Dalang Street, Longhua District, Shenzhen City, Guangdong Province, 518000

Applicant after: Shenzhen Great China blockchain Technology Co.,Ltd.

Country or region after: China

Address before: 518000 3a, 32 / F, Shenzhen Greater China International Trading Plaza, No. 1, Fuhua 1st Road, Fu'an community, Futian street, Futian District, Shenzhen, Guangdong

Applicant before: Shenzhen Kulian Technology Co.,Ltd.

Country or region before: China

GR01 Patent grant