CN116881355A - Query method and device for resource exchange information and computer equipment - Google Patents

Query method and device for resource exchange information and computer equipment Download PDF

Info

Publication number
CN116881355A
CN116881355A CN202310685135.5A CN202310685135A CN116881355A CN 116881355 A CN116881355 A CN 116881355A CN 202310685135 A CN202310685135 A CN 202310685135A CN 116881355 A CN116881355 A CN 116881355A
Authority
CN
China
Prior art keywords
information
account
resource exchange
user
blockchain system
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
CN202310685135.5A
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.)
Bank of China Ltd
Original Assignee
Bank of China 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 Bank of China Ltd filed Critical Bank of China Ltd
Priority to CN202310685135.5A priority Critical patent/CN116881355A/en
Publication of CN116881355A publication Critical patent/CN116881355A/en
Pending legal-status Critical Current

Links

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/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
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/13File access structures, e.g. distributed indices
    • G06F16/137Hash-based
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/18File system types
    • G06F16/182Distributed file systems
    • 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/24Querying
    • G06F16/245Query processing
    • G06F16/2455Query execution
    • 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/24Querying
    • G06F16/245Query processing
    • G06F16/2458Special types of queries, e.g. statistical queries, fuzzy queries or distributed queries
    • G06F16/2474Sequence data queries, e.g. querying versioned data
    • 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/24Querying
    • G06F16/248Presentation of query results
    • 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
    • G06F21/32User authentication using biometric data, e.g. fingerprints, iris scans or voiceprints
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The application relates to a query method, a query device, a query computer readable storage medium and a query computer program product for resource exchange information, which can be used for information query in the financial field. The query method comprises the following steps: receiving user information and inquiry time period sent by a terminal, identifying an account corresponding to the user information, determining a target node in a block chain system according to the identified account, acquiring resource exchange information recorded by the target node, and screening target information corresponding to the account. In this way, the blockchain system comprises nodes formed by different service systems, so that the accounts of the user in all the service systems can be obtained according to the received user information, and the resource exchange information of all the accounts under the user name can be further obtained, so that the problem of inquiring the resource exchange information is solved once without accessing the different service systems one by one, the inquiring time is saved, and the inquiring efficiency is greatly improved.

Description

Query method and device for resource exchange information and computer equipment
Technical Field
The present disclosure relates to the field of blockchain technology, and in particular, to a method, an apparatus, a computer device, a computer readable storage medium, and a computer program product for querying resource exchange information.
Background
Currently, business systems such as banks can provide a query function of account related resource exchange information, for example, banks can provide query printing of transaction flow, and live broadcast, game platforms and the like can also provide query of virtual resource exchange records in accounts.
However, these service systems can only provide information inquiry function for users registered in their own systems, and if a user registers accounts in multiple service systems, for example, a user often makes bank cards in multiple banks, but can only inquire the transaction flow of the bank card accounts individually in each bank. The more accounts a user creates, the more cumbersome the query process for resource exchange information.
Disclosure of Invention
In view of the foregoing, there is provided a query method, apparatus, computer device, computer readable storage medium and computer program product for resource exchange information. The technical scheme of the present disclosure is as follows:
according to an aspect of the disclosed embodiments, there is provided a query method of resource exchange information, which is performed on a server, the server being a node of a blockchain system, the blockchain system including a plurality of nodes, the method including:
receiving user information and inquiry time periods sent by a terminal;
identifying an account corresponding to the user information;
determining a target node from a plurality of nodes of the blockchain system according to the account;
acquiring resource exchange information recorded in the blockchain system by the target node;
screening target information corresponding to the account from the resource exchange information according to the inquiry time period;
and sending the target information to the terminal.
In one embodiment, the obtaining the resource exchange information recorded in the blockchain system by the target node includes:
acquiring first biological identification information corresponding to the account stored by the target node;
receiving second biological identification information sent by the terminal;
and acquiring resource exchange information recorded in the blockchain system by the target node under the condition that the first biological identification information is consistent with the second biological identification information.
In one embodiment, the blockchain system includes a distributed file system, and the obtaining the first biometric information stored by the target node corresponding to the account includes:
acquiring a distributed hash table of the distributed file system;
acquiring a hash value of the biometric information corresponding to the account according to the user information; wherein the hash value comprises a plurality of sliced hashes;
obtaining the fragment information corresponding to the fragment hash from the distributed file system;
and combining the piece information corresponding to the piece hashes to obtain the first biological identification information.
In one embodiment, after combining the piece information corresponding to the plurality of piece hashes to obtain the first biological identification information, the method further includes:
and verifying the first biological identification information according to the hash value, and if the verification is not passed, ending obtaining the resource exchange information recorded by the target node.
In one embodiment, the first biometric information includes fingerprint information, a face image.
In one embodiment, the sending the target information to the terminal includes:
and generating a message according to the target information based on a preset message format, and sending the generated message to the terminal.
According to another aspect of the embodiments of the present disclosure, there is provided a query apparatus for exchanging information of resources, which is executed on a server, the server being a node of a blockchain system, the blockchain system including a plurality of nodes, the apparatus including:
the information receiving module is used for receiving user information and inquiry time periods sent by the terminal;
the account identification module is used for identifying an account corresponding to the user information;
the node determining module is used for determining a target node from a plurality of nodes of the blockchain system according to the account;
the information acquisition module is used for acquiring resource exchange information recorded in the blockchain system by the target node;
the information screening module is used for screening target information corresponding to the account from the resource exchange information according to the inquiry time period;
and the information sending module is used for sending the target information to the terminal.
According to another aspect of the embodiments of the present disclosure, there is also provided a computer device including a memory storing a computer program and a processor implementing the steps of the above method when the processor executes the computer program.
According to another aspect of the disclosed embodiments, there is also provided a computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the above method.
According to another aspect of the disclosed embodiments, there is also provided a computer program product comprising a computer program which, when executed by a processor, implements the steps of the above method.
According to the technical scheme provided by the embodiment of the disclosure, the user information and the query period sent by the terminal can be received, the account corresponding to the user information is identified, the target node is determined in the blockchain system according to the identified account, the resource exchange information recorded by the target node is obtained, the target information corresponding to the account is screened out from the resource exchange information recorded by the target node, and then the target information is sent back to the terminal of the user. In this way, the blockchain system comprises nodes formed by different service systems, so that the accounts of the user in all the service systems can be obtained according to the received user information, and the resource exchange information of all the accounts under the user name can be further obtained, so that the problem of inquiring the resource exchange information is solved once without accessing the different service systems one by one, the inquiring time is saved, and the inquiring efficiency is greatly improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
In order to more clearly illustrate the embodiments of the present description or the technical solutions in the prior art, the following description will briefly explain the embodiments or the drawings used in the description of the prior art, and it is obvious that the drawings in the following description are only some embodiments described in the present description, and other drawings can be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic diagram of an application scenario of a query method for resource exchange information in one embodiment;
FIG. 2 is a flow diagram of a method for querying resource exchange information in one embodiment;
FIG. 3 is a flow diagram of a method of obtaining target node resource exchange information in one embodiment;
FIG. 4 is a flow diagram of a method of obtaining biometric information in one embodiment;
FIG. 5 is a flow chart of a method of acquiring biometric information in another embodiment;
FIG. 6 is a flow chart of a method for querying resource exchange information in another embodiment;
FIG. 7 is a schematic diagram of a query device for exchanging information with resources in one embodiment;
FIG. 8 is a schematic diagram of the internal architecture of a computer device in one embodiment.
Detailed Description
In order to enable those skilled in the art to better understand the technical solutions of the present disclosure, the technical solutions of the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings.
It should be noted that the terms "first," "second," and the like in the description and claims of the present disclosure and in the foregoing figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the disclosure described herein may be capable of operation in sequences other than those illustrated or described herein. The implementations described in the following exemplary examples are not representative of all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with some aspects of the present disclosure as detailed in the accompanying claims. 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, it is not excluded that additional identical or equivalent elements may be present in a process, method, article, or apparatus that comprises a described element. For example, if first, second, etc. words are used to indicate a name, but not any particular order.
The terms "vertical," "horizontal," "left," "right," "upper," "lower," "front," "rear," "circumferential," "direction of travel," and the like as used herein are based on the orientation or positional relationship shown in the drawings and are merely for convenience of description and to simplify the description, and do not indicate or imply that the devices or elements referred to must have a particular orientation, be constructed and operated in a particular orientation, and therefore should not be construed as limiting the application.
Unless defined otherwise, technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used herein in the description of the application is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. The term "and/or", "at least one of …" as used herein includes any and all combinations of one or more of the associated listed items. The connection, etc. described in the present disclosure may be a direct connection through an interface or a pin between devices, or may be a connection through a wire, or may be a wireless connection (communication connection).
At present, a banking system can provide an online transaction running water printing function, a user can apply for printing personal balance running water within a specified time period to a bank in a mobile phone banking mode and the like, and the user does not need to print the transaction running water to off-line outlets of the bank, so that the method is very convenient. However, this method is only suitable for a single banking system, and after a user applies for printing running water, the user can only obtain running water records in the line, but can not obtain running water records in other banks. Similarly, some live platforms, gaming platforms, and other business systems can only provide users with a running water record within their own system. Due to the rapid development of informatization, a user may often associate multiple accounts, for example, transacting multiple bank cards at different banks, or creating several small numbers at multiple platforms, etc., it is necessary to quickly query the resource exchange records of all accounts under the user name.
In order to solve the above technical problems, according to an aspect of the embodiments of the present disclosure, a query method for resource exchange information is provided. The query method of the resource exchange information provided by the embodiment of the application can be applied to an application environment shown in figure 1. Wherein the terminal 102 may communicate with the server 104 via a network. The terminal 102 may include a mobile phone, a computer, a tablet, etc. The server 104 may be implemented as a stand-alone server or as a server cluster of multiple servers. The terminal 102 may be an electronic device used by a user. The server 104 may be a banking system or a server where other business systems are located, and multiple servers may be nodes of a blockchain to form a blockchain system.
The blockchain refers to a chain data structure formed by combining data blocks in a sequential connection mode according to time sequence in a narrow sense, and is a distributed account book which is not tamperable and not counterfeitable and is ensured in a cryptographic mode. The generalized blockchain technology is a brand new distributed infrastructure and calculation paradigm for verifying and storing data by utilizing a block chain data structure, generating and updating the data by utilizing a distributed node consensus algorithm, ensuring the safety of data transmission and access by utilizing a cryptography mode, and programming and operating the data by utilizing an intelligent contract consisting of an automatic script code.
In the blockchain system formed by using the plurality of servers 104 as nodes by adopting distributed accounting, each server 104 serving as a node can store complete data according to a block chain structure, and each node of the blockchain is independent and identical in position, and storage consistency is ensured by means of a consensus mechanism.
In some specific application scenarios, the terminal 102 may be an electronic device used by a user, and the server 104 may be a server where a service system is located. Multiple servers 104 serve as nodes of the blockchain, different service systems can record information into the blockchain through the servers 104, and the servers 104 where other service systems are located serve as nodes to synchronously record the information. Because the information recorded in the blockchain can be recorded by all nodes, the information can not be changed, and each service system can acquire the information stored in the blockchain by other service systems through intelligent contracts and the like and process the information correspondingly. For example, the business systems of a plurality of banks can be accessed into the blockchain, the different banks can take the server where the business system is located as the node of the blockchain system, and when a user generates transaction running water in the account of one bank, the bank can input the transaction running water information, the account information such as the bank card number of the user and the like into the blockchain system through the node; as the server where the banking system is located is a node of the same blockchain system, any bank can obtain other user transaction running water information and corresponding account information stored in the blockchain through the blockchain system.
In one embodiment, as shown in fig. 2, a query method of resource exchange information is provided, taking an example that the method is applied to the server 104 in fig. 1 as an example, where the server 104 is a node of a blockchain system, and the blockchain system includes a plurality of nodes, and each node may upload a resource exchange record generated by a self service system and account information corresponding to the record to the blockchain system, and the query method includes the following steps:
step S210, receiving user information and inquiry time periods sent by the terminal.
The terminal may be an electronic device such as a mobile phone used by a user. The user information may include credential information, identity information, etc. entered when the user registered the account.
Specifically, the user information and the inquiry period sent by the user can be received through a mobile phone APP or an online applet and the like. For example, the banking system may provide a query function of transaction flow through a mobile banking or a self-research applet, and receive a query period, user information, etc., sent by a user.
Step S220, identifying the account corresponding to the user information.
Specifically, the identity of the user can be confirmed according to certificate information and the like provided by the user, all nodes in the blockchain system can be traversed, and all accounts under the user name can be determined. For example, if a plurality of banking systems are used as nodes of a blockchain, each banking system may query accounts opened by users in other banking systems through the blockchain system.
And step S230, determining a target node from a plurality of nodes of the blockchain system according to the account.
Specifically, since the node can upload the account information in the own service system to the blockchain, the node containing the account in the uploaded account information can be used as the target node. For example, the blockchain includes four banks 'business systems as nodes, and if a user opens a bank card account in two of the banks, the node corresponding to the two banks' business systems can be determined as the target node.
Step S240, obtaining resource exchange information recorded in the blockchain system by the target node.
The resource exchange information may be information such as bank transaction running water or virtual resource transaction records.
Specifically, each node may record the resource exchange information occurring in its own service system to the blockchain, or may acquire the resource exchange information recorded by other nodes through the blockchain. In some other embodiments, the service system specified by the user may be acquired when the information sent by the terminal is received, for example, the user may specify at least two banks as query targets, and acquire the resource exchange information recorded by the corresponding nodes of the two banks.
Step S250, screening out target information corresponding to the account from the resource exchange information according to the inquiry time period.
Specifically, according to the inquiry period sent by the user through the terminal, the resource exchange information belonging to the account under the user name can be screened out from the acquired resource exchange information to serve as target information.
And step S260, the target information is sent to the terminal.
Specifically, after obtaining the resource exchange information of each account under the user name, the resource exchange information may be sent to the terminal used by the user.
According to the technical scheme provided by the embodiment of the disclosure, the user information and the query period sent by the terminal can be received, the account corresponding to the user information is identified, the target node is determined in the blockchain system according to the identified account, the resource exchange information recorded by the target node is obtained, the target information corresponding to the account is screened out from the resource exchange information recorded by the target node, and then the target information is sent back to the terminal of the user. In this way, the blockchain system comprises nodes formed by different service systems, so that the accounts of the user in all the service systems can be obtained according to the received user information, and the resource exchange information of all the accounts under the user name can be further obtained, so that the problem of inquiring the resource exchange information is solved once without accessing the different service systems one by one, the inquiring time is saved, and the inquiring efficiency is greatly improved.
In one embodiment, as shown in fig. 3, the obtaining the resource exchange information recorded in the blockchain system by the target node includes:
step S241, acquiring first biometric information corresponding to the account stored by the target node.
When the node in the blockchain system opens an account for the user, the node can acquire and store the biological identification information of the user. The biometric information may include fingerprint information, a face image, etc.
Specifically, after the account corresponding to the user information is identified, the first biometric information such as the fingerprint stored in advance by the target node may be obtained according to the account.
It should be noted that, if the same user opens multiple accounts in a service system corresponding to a certain node, the service system may only enter the biometric information of the user when the account is opened for the first time.
Step S242, receiving second biometric information sent by the terminal.
Specifically, an authentication request may be initiated to the terminal where the user is located, and second biometric information such as a fingerprint sent by the user through the terminal may be received.
Step S243, when the first biometric information is consistent with the second biometric information, acquiring resource exchange information recorded in the blockchain system by the target node.
Specifically, in the case where the first biometric information is identical to the second biometric information, the resource exchange information recorded by the target node may be acquired. For example, a user has a plurality of bank cards in a bank, fingerprint information input by the user when the user transacts the bank cards for the first time can be acquired, fingerprint verification is initiated to a terminal used by the user, fingerprint information input by the user through the terminal is received, and if the two fingerprint information are consistent, all transaction flows of the user in the plurality of bank cards in the bank can be acquired.
In the embodiment, the biological identification information corresponding to the account stored by the target node can be obtained, the biological identification information is compared with the biological identification information input by the user through the terminal, and the resource exchange information recorded by the target node is obtained under the condition that the biological identification information and the biological identification information are consistent, so that the resource exchange information of the user is prevented from being utilized under the condition of unauthorized use, the risk of information leakage is reduced, and the safety of the information is ensured.
In one embodiment, the blockchain system includes a distributed file system, as shown in fig. 4, the obtaining the first biometric information stored by the target node corresponding to the account includes:
step S2411, obtaining a distributed hash table of the distributed file system.
The distributed file system may include an IPFS (InterPlanetary File System, interstellar file system) or the like based on content addressing. A distributed file system is made up of a plurality of storage nodes, which can divide stored data into a number of data blocks, one for each storage node. A distributed hash table (Distributed Hash Table, abbreviated DHT) includes a mapping of data blocks to storage nodes. For example, the contents of the data blocks stored by each node and the hash of the fragments generated from the contents of the data blocks may be recorded in a distributed hash table.
Step S2412, according to the user information, obtaining a hash value of the biometric information corresponding to the account. The hash value includes a plurality of sliced hashes.
When the data is divided into a plurality of data blocks, the hash value is also divided into a plurality of piece-wise hashes, and each piece-wise hash corresponds to one data block.
Specifically, according to the user information, a hash value generated when the biometric information of the user is stored in the distributed file system and a corresponding piece of hash can be acquired.
Step S2413, obtaining the piece of information corresponding to the piece of hash from the distributed file system.
Specifically, based on the mapping relation between the data blocks and the storage nodes in the distributed hash table, the storage nodes corresponding to the shard hash can be found, and the data blocks corresponding to the shard hash can be read from the storage nodes to obtain shard information.
Step S2414, combining the fragment information corresponding to the plurality of fragment hashes to obtain the first biological identification information.
Specifically, according to the association relationship between the fragment hashes, the fragment information corresponding to each fragment hash can be spliced together, and the first biological identification information stored in advance is obtained by combining.
In the above embodiment, the hash value and the fragment hash of the biometric information may be obtained according to the user information, the corresponding fragment information may be obtained from the distributed file system according to the fragment hash and the distributed hash table, and then the fragment information may be combined to obtain the stored first biometric information. Therefore, the biological identification information is stored in a distributed mode, the biological identification information is not lost or inaccessible due to single-point damage of the system, the information is very scattered and hidden in the distributed file system, the cracking difficulty is high, the situation that large pieces of personal information is lost is avoided, and the information safety is effectively guaranteed.
In one embodiment, as shown in fig. 5, after combining the piece information corresponding to the plurality of piece hashes to obtain the first biological identification information, the method further includes:
step S2415, verifying the first biometric information according to the hash value, and if the verification is not passed, terminating obtaining the resource exchange information recorded by the target node.
Specifically, a hash value can be generated again according to the first biological identification information obtained by combination, the generated hash value is compared with the original hash value, if the generated hash value and the original hash value are different, verification is not passed, and the acquisition of the resource exchange information in the blockchain is terminated.
In the above embodiment, whether the first biometric information is accurate or not may be verified according to the hash value, if the biometric information is verified incorrectly, the acquisition of the resource exchange information may be terminated, the biometric information may be detected in other manners, and after the detection is passed, other steps may be continued, so as to avoid interruption of the query operation due to variation of the stored information.
In one embodiment, as shown in fig. 6, the sending the target information to the terminal includes:
step S2610, based on a preset message format, generates a message according to the target information, and sends the generated message to the terminal.
The preset message format can be a unified template or a message format generated based on the characteristics of the resource exchange information.
Specifically, after the target information recorded by different nodes is converted into a unified message format, a message is generated by merging, and the generated message is sent to the terminal of the user. For example, the user requests to inquire the running water at a plurality of banks through the terminal, and the running water information of each row obtained by inquiry can be converted into a unified message format, and the unified message format is returned to the terminal of the user after being combined.
In the above embodiment, the target information may be integrated based on a preset message format, and a message with a unified format may be generated and sent to the user terminal, so that the user may review the message more conveniently.
It should be understood that, although the steps in the flowcharts related to the embodiments described above are sequentially shown as indicated by arrows, these steps are not necessarily sequentially performed in the order indicated by the arrows. The steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, at least some of the steps in the flowcharts described in the above embodiments may include a plurality of steps or a plurality of stages, which are not necessarily performed at the same time, but may be performed at different times, and the order of the steps or stages is not necessarily performed sequentially, but may be performed alternately or alternately with at least some of the other steps or stages.
The user information or the biological identification information and the like possibly related in the embodiments of the application are all data information related to the business, which is actively provided by the user in the business operation process, is processed based on the reasonable purpose of the business scene according to legal, legal and necessary principles strictly according to the requirements of laws and regulations.
According to another aspect of the embodiments of the present disclosure, as shown in fig. 7, there is also provided a query apparatus for exchanging information of resources, the apparatus being executed on a server, the server being a node of a blockchain system, the blockchain system including a plurality of nodes, the apparatus including:
an information receiving module 310, configured to receive user information and a query period sent by a terminal;
an account identifying module 320, configured to identify an account corresponding to the user information;
a node determining module 330, configured to determine a target node from a plurality of nodes of the blockchain system according to the account;
an information obtaining module 340, configured to obtain resource exchange information recorded in the blockchain system by the target node;
an information screening module 350, configured to screen, according to the query period, target information corresponding to the account from the resource exchange information;
and an information transmitting module 360, configured to transmit the target information to the terminal.
For specific limitations of the above query device, reference may be made to the above limitations of the above query method, which are not repeated here. According to the query method, the query device can add the first module, the second module and the like to realize the steps in the corresponding method embodiment. The various modules in the query device described above may be implemented in whole or in part by software, hardware, and combinations thereof. The above modules may be embedded in hardware or may be independent of a processor in the computer device, or may be stored in software in a memory in the computer device, so that the processor may call and execute operations corresponding to the above modules.
It should be noted that, the query method and the query device of the resource exchange information of the present application can be used for information query in the financial field, and also can be used in any field other than the financial field, and the application fields of the method and the device of the present application are not limited.
According to another aspect of the embodiments of the present disclosure, there is provided a computer device, which may be a terminal, and an internal structure diagram thereof may be as shown in fig. 8. The computer device includes a processor, a memory, a communication interface, a display screen, and an input device connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The communication interface of the computer device is used for carrying out wired or wireless communication with an external terminal, and the wireless mode can be realized through WIFI, an operator network, NFC (near field communication) or other technologies. The computer program is executed by a processor to implement the above-described detection method. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, can also be keys, a track ball or a touch pad arranged on the shell of the computer equipment, and can also be an external keyboard, a touch pad or a mouse and the like.
It will be appreciated by those skilled in the art that the structure shown in FIG. 8 is merely a block diagram of some of the structures associated with the present inventive arrangements and is not limiting of the computer device to which the present inventive arrangements may be applied, and that a particular computer device may include more or fewer components than shown, or may combine some of the components, or have a different arrangement of components.
In an embodiment, there is also provided a computer device comprising a memory and a processor, the memory having stored therein a computer program, the processor implementing the steps of the method embodiments described above when the computer program is executed.
According to another aspect of the disclosed embodiments, there is provided a computer program product comprising a computer program which, when executed by a processor, implements the steps of the method embodiments described above.
Those skilled in the art will appreciate that implementing all or part of the above described methods may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed, may comprise the steps of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in embodiments provided herein may include at least one of non-volatile and volatile memory. The nonvolatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical Memory, or the like. Volatile memory can include random access memory (Random Access Memory, RAM) or external cache memory. By way of illustration, and not limitation, RAM can be in the form of a variety of forms, such as static random access memory (Static Random Access Memory, SRAM) or dynamic random access memory (Dynamic Random Access Memory, DRAM), and the like. The databases referred to in the embodiments provided herein may include at least one of a relational database and a non-relational database. The non-relational database may include, but is not limited to, a blockchain-based distributed database, and the like. The processor referred to in the embodiments provided in the present application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic unit, a data processing logic unit based on quantum computing, or the like, but is not limited thereto.
The technical features of the above embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The foregoing examples illustrate only a few embodiments of the application and are described in detail herein without thereby limiting the scope of the application. It should be noted that other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the application disclosed herein. This disclosure is intended to cover any adaptations, uses, or adaptations of the disclosure following the general principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It is to be understood that the present disclosure is not limited to the precise arrangements and instrumentalities shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof.

Claims (10)

1. A method for querying resource exchange information, the method being performed on a server, the server being a node of a blockchain system, the blockchain system including a plurality of nodes, the method comprising:
receiving user information and inquiry time periods sent by a terminal;
identifying an account corresponding to the user information;
determining a target node from a plurality of nodes of the blockchain system according to the account;
acquiring resource exchange information recorded in the blockchain system by the target node;
screening target information corresponding to the account from the resource exchange information according to the inquiry time period;
and sending the target information to the terminal.
2. The method of claim 1, wherein the obtaining the resource exchange information recorded by the target node in the blockchain system comprises:
acquiring first biological identification information corresponding to the account stored by the target node;
receiving second biological identification information sent by the terminal;
and acquiring resource exchange information recorded in the blockchain system by the target node under the condition that the first biological identification information is consistent with the second biological identification information.
3. The method of claim 2, wherein the blockchain system includes a distributed file system, and wherein the obtaining the first biometric information stored by the target node corresponding to the account includes:
acquiring a distributed hash table of the distributed file system;
acquiring a hash value of the biometric information corresponding to the account according to the user information; wherein the hash value comprises a plurality of sliced hashes;
obtaining the fragment information corresponding to the fragment hash from the distributed file system;
and combining the piece information corresponding to the piece hashes to obtain the first biological identification information.
4. The method of claim 3, further comprising, after combining the piece information corresponding to the plurality of piece hashes to obtain the first biometric information:
and verifying the first biological identification information according to the hash value, and if the verification is not passed, ending obtaining the resource exchange information recorded by the target node.
5. The method of claim 2, wherein the first biometric information comprises fingerprint information, a face image.
6. The method of claim 1, wherein the sending the target information to the terminal comprises:
and generating a message according to the target information based on a preset message format, and sending the generated message to the terminal.
7. A query device for exchanging information with a resource, the query device being implemented in a server, the server being a node of a blockchain system, the blockchain system including a plurality of nodes, the device comprising:
the information receiving module is used for receiving user information and inquiry time periods sent by the terminal;
the account identification module is used for identifying an account corresponding to the user information;
the node determining module is used for determining a target node from a plurality of nodes of the blockchain system according to the account;
the information acquisition module is used for acquiring resource exchange information recorded in the blockchain system by the target node;
the information screening module is used for screening target information corresponding to the account from the resource exchange information according to the inquiry time period;
and the information sending module is used for sending the target information to the terminal.
8. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor implements the steps of the method of any of claims 1 to 6 when the computer program is executed.
9. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any of claims 1 to 6.
10. A computer program product comprising a computer program, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any of claims 1 to 6.
CN202310685135.5A 2023-06-09 2023-06-09 Query method and device for resource exchange information and computer equipment Pending CN116881355A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310685135.5A CN116881355A (en) 2023-06-09 2023-06-09 Query method and device for resource exchange information and computer equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310685135.5A CN116881355A (en) 2023-06-09 2023-06-09 Query method and device for resource exchange information and computer equipment

Publications (1)

Publication Number Publication Date
CN116881355A true CN116881355A (en) 2023-10-13

Family

ID=88261224

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310685135.5A Pending CN116881355A (en) 2023-06-09 2023-06-09 Query method and device for resource exchange information and computer equipment

Country Status (1)

Country Link
CN (1) CN116881355A (en)

Similar Documents

Publication Publication Date Title
CN109255084B (en) Electronic bill query method, device, storage medium and computer equipment
CN107846278B (en) Intelligent contract processing method and device
US20210326886A1 (en) Blockchain-based resource transaction methods, apparatuses, and systems
CN110163658B (en) Virtual resource data processing method and device, computer equipment and storage medium
CN112819617B (en) Data uplink method and device, electronic equipment and storage medium
US11769146B1 (en) Blockchain transactional identity verification
CN110955724A (en) Data processing method and device based on block chain, node equipment and storage medium
CN111080311B (en) Commodity tracing method and device based on blockchain
CN114519360B (en) Data read-write method, login method and device of service system and computer equipment
CN117275138A (en) Identity authentication method, device, equipment and storage medium based on automatic teller machine
CN116881355A (en) Query method and device for resource exchange information and computer equipment
CN110599347A (en) Bill processing method, device, computer readable storage medium and computer equipment
CN111931219A (en) Data storage method and device and data query method and device
CN117034358A (en) Service certificate processing method and device and computer equipment
US20230105171A1 (en) Identity Vault System Using Distributed Ledgers for Event Processing
CN111915313B (en) Digital asset transfer control method, device and communication system for blockchain
CN116862518A (en) Method and device for determining resource return value and computer equipment
US20240140249A1 (en) Method for authorizing a first participant in a communication network, processing device, motor vehicle and infrastructure device
EP4227830A1 (en) Authentication system, authentication method, and program
CN117196803A (en) Resource transfer method, device, computer equipment, storage medium and product
CN117172893A (en) Service processing method and device and computer equipment
CN117097780A (en) Resource transfer method, device, computer equipment and storage medium
CN117196802A (en) Method, apparatus, device, storage medium and program product for processing delegated service
CN118038500A (en) Data processing method and related device
CN116709299A (en) Auxiliary card opening method, device, computer equipment 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