CN114331723A - Verification method and system based on block chain gateway - Google Patents

Verification method and system based on block chain gateway Download PDF

Info

Publication number
CN114331723A
CN114331723A CN202111640677.8A CN202111640677A CN114331723A CN 114331723 A CN114331723 A CN 114331723A CN 202111640677 A CN202111640677 A CN 202111640677A CN 114331723 A CN114331723 A CN 114331723A
Authority
CN
China
Prior art keywords
user
query
query request
balance
data
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.)
Pending
Application number
CN202111640677.8A
Other languages
Chinese (zh)
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.)
Jiangsu Yincheng Network Technology Co Ltd
Original Assignee
Jiangsu Yincheng Network 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 Jiangsu Yincheng Network Technology Co Ltd filed Critical Jiangsu Yincheng Network Technology Co Ltd
Priority to CN202111640677.8A priority Critical patent/CN114331723A/en
Publication of CN114331723A publication Critical patent/CN114331723A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)

Abstract

The invention provides a verification method and a system based on a block chain gateway, comprising the following steps: if receiving the query request of the user, carrying out identity recognition on the identity of the user; the query request carries an identity certificate of a user issued by an authentication center of the block chain network; if the user is identified as a legal user, determining the service authority corresponding to the user; determining an account balance of the user based on the service authority; judging whether the balance of the account book of the user and the sending frequency of the query request meet preset conditions, if so, forwarding the query request to a data platform to query the data required by the user from the data platform to obtain a query result; and performing chain charging based on the query result, and returning the charging result to the user. By using the blockchain as the on-chain open platform service gateway and applying the identity recognition and non-falsification characteristics, the identity recognition function is enhanced, the safety of the user wallet, the accuracy of data, the traceability and the auditability are ensured, and the user privacy is protected.

Description

Verification method and system based on block chain gateway
Technical Field
The present invention relates to the field of blockchain, and in particular, to a verification method and system based on a blockchain gateway.
Background
The conventional open platform provides a unified service by using HTTP (Hyper Text Transfer Protocol), and is composed of an open platform service gateway, a data statistics providing platform, and the like. The open platform service gateway provides the functions of an API gateway, intercepts incoming requests, provides the functions of authentication, routing, rate limiting, billing, monitoring, analysis, policy, alarm, security protection, and the like, and is of self-evident importance. However, due to the complexity of identity identification, fairness and fairness of charging and the like, the traditional open platform service gateway has the problems that the identity identification method is simple, user information is easy to steal, a fee scheme recorded by a database is easy to tamper, privacy of a user cannot be guaranteed and the like.
Disclosure of Invention
In view of this, the present invention aims to provide a verification method and system based on a blockchain gateway, in which a super-ledger blockchain is used as an open service platform gateway, and the characteristics of identity recognition and non-falsification are applied, so that the traditional open service platform gateway is improved, the difficulty of identity recognition is simplified, the identity recognition function is enhanced, the security of a user wallet, the accuracy, traceability and auditability of data are ensured, and the user privacy is protected.
In a first aspect, an embodiment of the present invention provides a verification method based on a blockchain gateway, including:
if receiving a query request of a user, carrying out identity recognition on the identity of the user; the query request carries the identity certificate of the user issued by the authentication center of the block chain network;
if the user is identified as a legal user, determining the service authority corresponding to the user;
determining an account balance of the user based on the service permissions;
judging whether the balance of the user account book and the sending frequency of the query request meet preset conditions, if so, forwarding the query request to a data platform to query the data required by the user from the data platform to obtain a query result;
and performing on-chain charging based on the query result, and returning the charging result to the user.
Further, the method also comprises the following steps:
integrating the users belonging to the same organization to construct a sub-network; wherein the users belonging to the same sub-network have the service authority to access the service and data corresponding to the current sub-network.
Further, if the user is identified as a legal user, the step of determining the service authority corresponding to the user includes:
if the user is identified as a legal user, judging the sub-network to which the user belongs;
and determining the service authority corresponding to the user according to the sub-network.
Further, the step of judging whether the balance of the user account book and the sending frequency of the query request both meet preset conditions, if so, forwarding the query request to a data platform to query the query data required by the user from the data platform to obtain a query result includes:
judging whether the balance of the user account book is sufficient or not and whether the sending frequency of the query request is smaller than a preset frequency threshold or not;
if the balance of the user account book is sufficient and the sending frequency of the query request is less than a preset frequency threshold, forwarding the query request to a data platform to query the data required by the user from the data platform to obtain a query result.
Further, after the step of forwarding the query request to a data platform to query the data required by the user from the data platform and obtain a query result if the balance of the user book is sufficient and the sending frequency of the query request is less than a preset frequency threshold, the method further includes:
the current query request is recorded on the blockchain.
Further, the step of performing on-chain charging based on the query result and returning the charging result to the user includes:
creating transaction information and sending the transaction information to a sequencer for sequencing;
the transaction information collected by the sequencer in the network is sequenced, packaged and distributed to all peer nodes;
executing corresponding fee deduction operation according to the verification result of the peer node on the transaction information;
and returning the charging result to the user.
Further, after the step of returning the charging result to the user, the method further comprises:
recording the transaction information and updating the balance of the account book;
recording the transaction information on a blockchain to enable the user to audit the transaction information.
In a second aspect, an embodiment of the present invention provides a verification system based on a blockchain gateway, including:
the identity authentication module is used for receiving a query request of a user and identifying the identity of the user; the query request carries the identity certificate of the user issued by the authentication center of the block chain network;
the authority judgment module is used for identifying the user as a legal user and determining the service authority corresponding to the user;
a balance inquiry module for determining the balance of the user account book based on the service authority;
the data query module is used for judging whether the balance of the user account book and the sending frequency of the query request meet preset conditions or not, if so, the query request is forwarded to a data platform so as to query the data required by the user from the data platform and obtain a query result;
and the on-chain charging module is used for carrying out on-chain charging based on the query result and returning the charging result to the user.
In a third aspect, an embodiment of the present invention provides an electronic device, including a memory and a processor, where the memory stores a computer program operable on the processor, and the processor implements the method described above when executing the computer program.
In a fourth aspect, embodiments of the invention provide a computer readable medium having non-volatile program code executable by a processor, the program code causing the processor to perform the method as described above.
The embodiment of the invention provides a verification method and a system based on a block chain gateway, comprising the following steps: if receiving the query request of the user, carrying out identity recognition on the identity of the user; the query request carries an identity certificate of a user issued by an authentication center of the block chain network; if the user is identified as a legal user, determining the service authority corresponding to the user; determining an account balance of the user based on the service authority; judging whether the balance of the account book of the user and the sending frequency of the query request meet preset conditions, if so, forwarding the query request to a data platform to query the data required by the user from the data platform to obtain a query result; and performing chain charging based on the query result, and returning the charging result to the user. According to the invention, the super account block chain is used as the on-chain open platform service gateway, so that the identity recognition function is enhanced, the safety, the data accuracy, the traceability and the auditability of the user wallet are ensured, and the user privacy is protected.
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 claims hereof as well as the appended 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.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings can be obtained by those skilled in the art without creative efforts.
Fig. 1 is a flowchart of an authentication method based on a blockchain gateway according to an embodiment of the present invention;
fig. 2 is a schematic diagram of a network structure of a super ledger board according to a second embodiment of the present invention;
fig. 3 is a flowchart of another verification method based on a blockchain gateway according to a second embodiment of the present invention;
FIG. 4 is a flowchart of the overall data interaction provided in the second embodiment of the present invention;
fig. 5 is a flowchart of cloud platform deployment according to a second embodiment of the present invention;
fig. 6 is a block diagram of a verification system based on a blockchain gateway according to a third embodiment of the present invention.
Icon: 1-identity authentication module; 2-permission judging module; 3-a balance inquiry module; 4-a data query module; 5-charging module on chain.
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.
For the understanding of the present embodiment, the following detailed description will be given of the embodiment of the present invention.
The first embodiment is as follows:
in this embodiment, an open platform service gateway based on a block chain is mainly constructed by using a hyper ledger (hyper leader Fabric), and is divided into a hyper ledger network, an intelligent contract, and an application.
Fig. 1 is a flowchart of an authentication method based on a blockchain gateway according to an embodiment of the present invention.
Referring to fig. 1, the verification method based on the blockchain gateway includes:
step S101, if receiving a query request of a user, identifying the identity of the user; the query request carries an identity certificate of a user issued by an authentication center of the block chain network;
step S102, if the user is identified as a legal user, determining the service authority corresponding to the user;
step S103, determining the account balance of the user based on the service authority;
step S104, judging whether the balance of the user account book and the sending frequency of the query request meet preset conditions, if so, forwarding the query request to a data platform to query the data required by the user from the data platform to obtain a query result;
and step S105, performing on-chain charging based on the query result, and returning the charging result to the user.
Here, the query request includes a data query and a transaction information query.
Identity recognition is carried out through a public key and a private key of the block chain, the public key is identity, unified registration and registration key authentication are carried out through an authentication center by an open platform service provider, the key has uniqueness and is difficult to attack and crack, and the identity of an open platform service user is authenticated and approved.
The identity certificate is issued by a ca (certificate authority) certificate service in the super ledger.
Further, integrating users belonging to the same organization to construct a sub-network; wherein, users belonging to the same sub-network have the service authority of accessing the service and data corresponding to the current sub-network.
Here, the constructed licensing platform is used to realize confidentiality through a channel architecture and private data characteristics, users belonging to the same organization are integrated in the aspect of channels, a sub-network, namely a node of the channel is constructed, and members in the node of the channel can see the transaction in which the members participate; therefore, the nodes participating in the channel have access to the intelligent contract (chain code) and the transaction data, so that the privacy and confidentiality are ensured; private data enables the same privacy capabilities as channels by using collections between members in the channels and without creating and maintaining separate channels.
The method comprises the steps that users in different sub-networks inquire corresponding different amounts of money, and account balance of the users is determined based on service authority, wherein the account balance comprises the amount of money inquired corresponding to user inquiry operation and the account balance of the users.
Further, step S102 includes:
if the user is identified as a legal user, judging the sub-network to which the user belongs;
and determining the service authority corresponding to the user according to the sub-network.
Here, the service authority refers to making related queries in the sub-network to which the service authority belongs, including data, account balance, transaction information, and the like.
Further, step S104 includes:
judging whether the balance of the user account book is sufficient or not and whether the sending frequency of the query request is smaller than a preset frequency threshold or not;
and if the balance of the user account book is sufficient and the sending frequency of the query request is less than a preset frequency threshold, forwarding the query request to the data platform so as to query the data required by the user from the data platform and obtain a query result.
Here, the preset balance threshold is the cost required for performing the current data query, and the preset frequency threshold is set according to the actual situation; when the balance of the account book is sufficient, the balance in the account book of the current user can meet the query; when the sending frequency of the query request is smaller than a preset frequency threshold, the current manual normal query operation is indicated, and the query request is not attacked by machine malice; when the user uses a prepaid card such as a membership card or adopts services such as monthly payment, the balance of the account book is infinite in the current service period.
If the balance of the user account book is sufficient and the sending frequency of the query request is less than the preset frequency threshold value, the block chain gateway forwards the query request to the data platform and acquires the data required to be queried by the user from the data platform.
Further, step S104 further includes:
recording a current query request on a block chain;
here, because the blockchain is not tamper-able, the current query request is recorded on the blockchain, and the open blockchain browser can be used to transparently record the query history, thereby preventing disputes.
Further, step S105 includes:
creating transaction information and sending the transaction information to a sequencer for sequencing;
the transaction information collected by the sequencer in the network is sequenced, and is packaged and distributed to all peer nodes;
executing corresponding fee deduction operation according to the verification result of the peer node on the transaction information;
and returning the charging result to the user.
Further, step S105 further includes:
recording transaction information and updating the balance of the account book;
transaction information is recorded on the blockchain to allow the user to audit the transaction information.
The charging scheme is that a wallet of a user, namely a user, on an open platform is recorded on a block chain, and fee deduction is carried out through an intelligent contract, compared with the traditional fee scheme recorded by using a database, the fee charging scheme can prevent the fee from being falsified by using the block chain, meanwhile, an open and transparent auditing function is provided, each data use transaction is recorded on the block chain, and a historical transaction record can be inquired by using an open block chain browser in a transparent mode, so that disputes are prevented.
The embodiment of the invention provides a verification method based on a block chain gateway, which comprises the following steps: if receiving the query request of the user, carrying out identity recognition on the identity of the user; the query request carries an identity certificate of a user issued by an authentication center of the block chain network; if the user is identified as a legal user, determining the service authority corresponding to the user; determining an account balance of the user based on the service authority; judging whether the balance of the account book of the user and the sending frequency of the query request meet preset conditions, if so, forwarding the query request to a data platform to query the data required by the user from the data platform to obtain a query result; and performing chain charging based on the query result, and returning the charging result to the user. According to the invention, the super account block chain is used as the on-chain open platform service gateway, and the characteristics of identity recognition and non-falsification are applied, so that the traditional open service platform gateway is improved, the difficulty of identity recognition is simplified, the identity recognition function is enhanced, the existing identity recognition difficulty is simplified, the safety, the data accuracy, the traceability and the auditability of the user wallet are ensured, and the user privacy is protected.
Example two:
the block chain technology is a technical scheme which is independent of a third party, is used for cryptographically connecting in series and protecting data contents, and is used for storing, verifying, transmitting and exchanging network data through self distributed nodes. The data content is stored in blocks, each block contains the encryption hash, the corresponding time stamp and transaction data of the previous block, and the hash value is usually represented by a Merkle tree (Merkle tree) algorithm, so that the block content has the characteristic of being difficult to tamper, the Merkle tree algorithm structure can quickly verify the validity of the data, and the time complexity can reach logN. The distributed account maintained in the block allows both parties to efficiently record the transaction and to permanently validate the transaction.
Referring to fig. 2, in this embodiment, an open platform service gateway based on a block chain is mainly constructed by using a hyper ledger (hyper edge Fabric), and is divided into a hyper ledger network, an intelligent contract, and an application.
The super ledger network is mainly divided into a CA certificate service, an orderer and a peer, wherein the CA certificate service is responsible for issuing identity certificates for organizing permissions and communication of each component; orderer is used for sorting and packaging blocks of transaction data; the peer is used for client interaction, endorsement, block verification and account book persistence.
Fig. 3 is a flowchart of another verification method based on a blockchain gateway according to a second embodiment of the present invention.
Referring to fig. 3, the invention issues identity authentication through the authorization of the CA certificate service, and the user initiates an inquiry by using the identity; after identity recognition, service authority inquiry, cost inquiry and speed limit judgment, entering a data platform to inquire corresponding data; after the inquiry is successful, the online charging is carried out through an intelligent contract of the block chain of the super account book, and meanwhile, the inquiry transaction of the changed time is recorded on the chain; and finally returning to the user.
Further, referring to fig. 4, the overall data interaction flow is as follows:
step S401, connecting an application program to a peer node;
step S402, the peer node calls an intelligent contract to generate a proposal response containing a query result or an account book update;
step S403, the application program receives the response of the proposal, if the response is the inquiry transaction, the interaction is finished;
step S404, for the updating operation, the application program creates a transaction and sends the transaction to the orderer for sorting;
s405, ordering the transactions in the orderer collecting network, packaging the transactions into blocks, and distributing the blocks to all peer nodes;
and step S406, the peer checks the transaction and submits the transaction to an account book, an event is generated and sent back to the application program, and the updating process is ended.
Further, referring to fig. 5, the network is deployed by using a cloud platform based on kubernets (ari cloud), and the main process is as follows:
step S501, a CA certificate is configured, a CA-server is issued, and a self-generated root CA is obtained;
step S502, using root ca to register and register ca of the organization administrator and user, and ca of the peer and the orderer;
step S503, configuring a configuration file core.yaml of the peer, designating an organization ID and a CA path, and using a docker (application container engine) for image distribution;
step S504, configuring orderer configuration file orderer. yaml, designating organization information and CA information, and issuing by using docker mirror image;
step S505, configuring a channel configuration file configx.yaml, specifying organization, peer and orderer information, and generating a created area by using a configx tool;
step S506, creating a channel by using the created region, wherein all required peers are added into the channel and are used for data exchange and endorsement;
step S507, deploying and endorsement intelligent contracts in the peer, wherein the intelligent contract applications all use external services, and the deployed metadata serving the intelligent contracts comprise contract names, versions, service addresses and the like;
step S508, submit the intelligent contract application, obtain the ID of the contract application, this ID is disposed in the intelligent contract application in the form of the environment variable, issue the contract application;
step S509, a docker mirror image of the client application is constructed and issued.
The embodiment of the invention provides a verification method based on a block chain gateway, which comprises the following steps: if receiving the query request of the user, carrying out identity recognition on the identity of the user; the query request carries an identity certificate of a user issued by an authentication center of the block chain network; if the user is identified as a legal user, determining the service authority corresponding to the user; determining an account balance of the user based on the service authority; judging whether the balance of the account book of the user and the sending frequency of the query request meet preset conditions, if so, forwarding the query request to a data platform to query the data required by the user from the data platform to obtain a query result; and performing chain charging based on the query result, and returning the charging result to the user. The invention uses the super account block chain as the open platform service gateway on the chain, and applies the characteristics of identity identification and non-falsification to improve the traditional open service platform gateway and simplify the difficulty of identity identification, thereby ensuring the safety of the user wallet, ensuring that all data read-write endorsements can be inquired in a block chain browser, and facilitating the audit.
Example three:
fig. 6 is a block diagram of a verification system based on a blockchain gateway according to a third embodiment of the present invention.
Referring to fig. 6, the verification system module based on the blockchain gateway includes:
the identity authentication module 1 is used for receiving a query request of a user and identifying the identity of the user; the query request carries an identity certificate of a user issued by an authentication center of the block chain network;
the authority judgment module 2 is used for identifying the user as a legal user and determining the service authority corresponding to the user;
a balance inquiry module 3, configured to determine an account balance of the user based on the service authority;
the data query module 4 is configured to determine whether the balance of the user account book and the sending frequency of the query request both satisfy preset conditions, and if so, forward the query request to the data platform to query the data required by the user from the data platform to obtain a query result;
and the chain charging module 5 is used for carrying out chain charging based on the query result and returning the charging result to the user.
The embodiment of the invention provides a verification system based on a block chain gateway, which comprises the following steps: if receiving the query request of the user, carrying out identity recognition on the identity of the user; the query request carries an identity certificate of a user issued by an authentication center of the block chain network; if the user is identified as a legal user, determining the service authority corresponding to the user; determining an account balance of the user based on the service authority; judging whether the balance of the account book of the user and the sending frequency of the query request meet preset conditions, if so, forwarding the query request to a data platform to query the data required by the user from the data platform to obtain a query result; and performing chain charging based on the query result, and returning the charging result to the user. According to the invention, the super account block chain is used as the on-chain open platform service gateway, and the characteristics of identity recognition and non-falsification are applied, so that the traditional open service platform gateway is improved, the difficulty of identity recognition is simplified, the identity recognition function is enhanced, the existing identity recognition difficulty is simplified, the safety, the data accuracy, the traceability and the auditability of the user wallet are ensured, and the user privacy is protected.
The 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 can be run on the processor, and when the processor executes the computer program, the steps of the verification method based on the blockchain gateway provided in the foregoing embodiment are implemented.
The embodiment of the present invention further provides a computer readable medium having a non-volatile program code executable by a processor, where the computer readable medium stores a computer program, and the computer program is executed by the processor to perform the steps of the verification method based on a blockchain gateway according to the above-mentioned embodiment.
The computer program product provided in the embodiment of the present invention includes 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 embodiment, and specific implementation may refer to the method embodiment, which is not 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 computer readable storage medium. 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 appended claims.

Claims (10)

1. A verification method based on a block chain gateway is characterized by comprising the following steps:
if receiving a query request of a user, carrying out identity recognition on the identity of the user; the query request carries the identity certificate of the user issued by the authentication center of the block chain network;
if the user is identified as a legal user, determining the service authority corresponding to the user;
determining an account balance of the user based on the service permissions;
judging whether the balance of the user account book and the sending frequency of the query request meet preset conditions, if so, forwarding the query request to a data platform to query the data required by the user from the data platform to obtain a query result;
and performing on-chain charging based on the query result, and returning the charging result to the user.
2. The method of claim 1, further comprising:
integrating the users belonging to the same organization to construct a sub-network; wherein the users belonging to the same sub-network have the service authority to access the service and data corresponding to the current sub-network.
3. The method according to claim 2, wherein if the user is identified as a legal user, the step of determining the service right corresponding to the user comprises:
if the user is identified as a legal user, judging the sub-network to which the user belongs;
and determining the service authority corresponding to the user according to the sub-network.
4. The method according to claim 1, wherein the step of determining whether the balance of the user account book and the sending frequency of the query request both satisfy preset conditions, and if so, forwarding the query request to a data platform to query the query data required by the user from the data platform to obtain a query result comprises:
judging whether the balance of the user account book is sufficient or not and whether the sending frequency of the query request is smaller than a preset frequency threshold or not;
if the balance of the user account book is sufficient and the sending frequency of the query request is less than a preset frequency threshold, forwarding the query request to a data platform to query the data required by the user from the data platform to obtain a query result.
5. The method of claim 4, wherein after the step of forwarding the query request to a data platform to query the data platform for the data required by the user to obtain the query result if the balance of the user book is sufficient and the sending frequency of the query request is less than a preset frequency threshold, the method further comprises:
the current query request is recorded on the blockchain.
6. The method of claim 1, wherein the step of performing an on-chain charging based on the query result and returning the charging result to the user comprises:
creating transaction information and sending the transaction information to a sequencer for sequencing;
the transaction information collected by the sequencer in the network is sequenced, packaged and distributed to all peer nodes;
executing corresponding fee deduction operation according to the verification result of the peer node on the transaction information;
and returning the charging result to the user.
7. The method of claim 6, wherein after the step of returning the billing results to the user, the method further comprises:
recording the transaction information and updating the balance of the account book;
recording the transaction information on a blockchain to enable the user to audit the transaction information.
8. A blockchain gateway based authentication system, comprising:
the identity authentication module is used for receiving a query request of a user and identifying the identity of the user; the query request carries the identity certificate of the user issued by the authentication center of the block chain network;
the authority judgment module is used for identifying the user as a legal user and determining the service authority corresponding to the user;
a balance inquiry module for determining the balance of the user account book based on the service authority;
the data query module is used for judging whether the balance of the user account book and the sending frequency of the query request meet preset conditions or not, if so, the query request is forwarded to a data platform so as to query the data required by the user from the data platform and obtain a query result;
and the on-chain charging module is used for carrying out on-chain charging based on the query result and returning the charging result to the user.
9. An electronic device comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the processor implements the method of any of claims 1 to 7 when executing the computer program.
10. A computer-readable medium having non-volatile program code executable by a processor, wherein the program code causes the processor to perform the method of any of claims 1 to 7.
CN202111640677.8A 2021-12-29 2021-12-29 Verification method and system based on block chain gateway Pending CN114331723A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111640677.8A CN114331723A (en) 2021-12-29 2021-12-29 Verification method and system based on block chain gateway

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111640677.8A CN114331723A (en) 2021-12-29 2021-12-29 Verification method and system based on block chain gateway

Publications (1)

Publication Number Publication Date
CN114331723A true CN114331723A (en) 2022-04-12

Family

ID=81017245

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111640677.8A Pending CN114331723A (en) 2021-12-29 2021-12-29 Verification method and system based on block chain gateway

Country Status (1)

Country Link
CN (1) CN114331723A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114978661A (en) * 2022-05-18 2022-08-30 保利长大工程有限公司 Data processing method and system based on block chain and big data
CN116842546A (en) * 2023-07-14 2023-10-03 临沂大学 Distributed data access authorization and data service method and device, equipment and medium

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114978661A (en) * 2022-05-18 2022-08-30 保利长大工程有限公司 Data processing method and system based on block chain and big data
CN114978661B (en) * 2022-05-18 2023-03-10 保利长大工程有限公司 Data processing method and system based on block chain and big data
CN116842546A (en) * 2023-07-14 2023-10-03 临沂大学 Distributed data access authorization and data service method and device, equipment and medium

Similar Documents

Publication Publication Date Title
US11509486B2 (en) Identity attestation system and method
US10121143B1 (en) Method and system for blockchain-based combined identity, ownership, integrity and custody management
US11487749B2 (en) Method and system for verifying and maintaining integrity of data transactions using distributed ledger
US20220200975A1 (en) Method and System for Zero-Knowledge and Identity Based Key Management for Decentralized Applications
JP7264918B2 (en) RESOURCE TRANSFER DATA MANAGEMENT METHOD AND APPARATUS, AND COMPUTER PROGRAM
US11836717B2 (en) System and method for processing payments in fiat currency using blockchain and tethered tokens
Puddu et al. $\mu $ chain: How to Forget without Hard Forks
Mukta et al. Blockchain-based verifiable credential sharing with selective disclosure
CN108769020B (en) Privacy-protecting identity attribute certification system and method
CN110537346A (en) Safe decentralization domain name system
CN108881167A (en) A kind of intelligent contract of finite field block catenary system
CN114331723A (en) Verification method and system based on block chain gateway
JP2002271312A (en) Disclosed key managing method
JPWO2006112481A1 (en) Terminal device and security device for automatically receiving electronic gift, information providing method and information server for providing electronic gift together with requested electronic information
Ahmed et al. Turning trust around: smart contract-assisted public key infrastructure
KR20200097773A (en) Blockchain-based identity system
CN109104288A (en) A kind of Authentication protocol design and its implementation based on common key cryptosystem
CN112862589B (en) Authentication method, device and system in financial scene
CN108055240B (en) A kind of user authentication method of shared automobile
CN111339036A (en) Block chain-based electronic license full life cycle management method and device
CN112733096B (en) User registration method, user login method and corresponding device
Ahmed et al. Transparency of SIM profiles for the consumer remote SIM provisioning protocol
CN115456619A (en) Virtual prepaid card issuing system and method based on block chain technology
Rexha Increasing user privacy in online transactions with X. 509 v3 certificate private extensions and smartcards
JP7398183B2 (en) Network authentication system using blockchain and authentication method using this

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