[go: up one dir, main page]

CN117271602A - A transaction status query method, device, storage medium and electronic equipment - Google Patents

A transaction status query method, device, storage medium and electronic equipment Download PDF

Info

Publication number
CN117271602A
CN117271602A CN202311217776.4A CN202311217776A CN117271602A CN 117271602 A CN117271602 A CN 117271602A CN 202311217776 A CN202311217776 A CN 202311217776A CN 117271602 A CN117271602 A CN 117271602A
Authority
CN
China
Prior art keywords
transaction
target transaction
target
priority
determining
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
CN202311217776.4A
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 CN202311217776.4A priority Critical patent/CN117271602A/en
Publication of CN117271602A publication Critical patent/CN117271602A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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/2457Query processing with adaptation to user needs
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/602Providing cryptographic facilities or services
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Finance (AREA)
  • Accounting & Taxation (AREA)
  • General Engineering & Computer Science (AREA)
  • Economics (AREA)
  • Technology Law (AREA)
  • Data Mining & Analysis (AREA)
  • Development Economics (AREA)
  • Computational Linguistics (AREA)
  • Marketing (AREA)
  • Strategic Management (AREA)
  • Databases & Information Systems (AREA)
  • General Business, Economics & Management (AREA)
  • Health & Medical Sciences (AREA)
  • Bioethics (AREA)
  • General Health & Medical Sciences (AREA)
  • Computer Hardware Design (AREA)
  • Computer Security & Cryptography (AREA)
  • Software Systems (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention provides a transaction state query method, a device, a storage medium and electronic equipment, which can be applied to the field of quantum communication or the field of finance, wherein the method comprises the following steps: determining each target transaction to be processed in response to the transaction processing instruction; acquiring transaction environment information of each target transaction, wherein the transaction environment information of each target transaction represents risk degree of a key of the target transaction in a transmission process of a preset quantum channel, and the key is used for decrypting a transaction message of the target transaction; determining the processing priority of each target transaction according to the transaction environment information of each target transaction; and inquiring the transaction state of each target transaction according to the processing priority of each target transaction. By applying the method provided by the embodiment of the invention, transaction anomalies can be reduced.

Description

一种交易状态查询方法、装置、存储介质及电子设备A transaction status query method, device, storage medium and electronic equipment

技术领域Technical field

本发明涉及数据处理技术领域,特别涉及一种交易状态查询方法、装置、存储介质及电子设备。The present invention relates to the field of data processing technology, and in particular to a transaction status query method, device, storage medium and electronic equipment.

背景技术Background technique

目前,在将交易报文发往交易处理系统后,需要反复向交易处理系统发起针对交易报文的查询,使得交易处理系统可以根据查询请求处理交易报文和反馈交易结果,然而,在交易量较大的情况下,会使得一些交易环境较差的交易被堵塞而导致交易风险增加,容易造成大量交易异常。Currently, after a transaction message is sent to the transaction processing system, it is necessary to repeatedly initiate a query for the transaction message to the transaction processing system, so that the transaction processing system can process the transaction message and feedback the transaction results according to the query request. However, in terms of transaction volume, In larger cases, some transactions with poor trading environments will be blocked, which will increase transaction risks and easily cause a large number of transaction abnormalities.

发明内容Contents of the invention

本发明所要解决的技术问题是提供一种交易状态查询方法、装置、存储介质及电子设备,能够减少交易异常。具体方案如下:The technical problem to be solved by the present invention is to provide a transaction status query method, device, storage medium and electronic equipment, which can reduce transaction abnormalities. The specific plans are as follows:

一种交易状态查询方法,包括:A method for querying transaction status, including:

响应于交易处理指令,确定各个待处理的目标交易;In response to the transaction processing instructions, determine each target transaction to be processed;

获取每个所述目标交易的交易环境信息,每个所述目标交易的交易环境信息表征所述目标交易的秘钥在预设的量子信道的传输过程中的风险程度,所述秘钥用于对所述目标交易的交易报文进行解密;Obtain the transaction environment information of each target transaction. The transaction environment information of each target transaction represents the risk level of the secret key of the target transaction during the transmission process of the preset quantum channel. The secret key is used to Decrypt the transaction messages of the target transaction;

根据每个所述目标交易的交易环境信息确定出每个所述目标交易的处理优先级;Determine the processing priority of each target transaction based on the transaction environment information of each target transaction;

根据每个所述目标交易的处理优先级对各个所述目标交易的交易状态进行查询。Query the transaction status of each target transaction according to the processing priority of each target transaction.

上述的方法,可选的,获取每个所述目标交易的交易环境信息,包括:The above method, optionally, obtains the transaction environment information of each target transaction, including:

获取每个所述目标交易的秘钥在预设的量子信道的传输过程中的观测状态和量子噪声;Obtain the observation state and quantum noise of the secret key of each target transaction during the transmission process of the preset quantum channel;

将每个所述目标交易的秘钥的观测状态和量子噪声作为所述目标交易的交易环境信息。The observed state and quantum noise of the secret key of each target transaction are used as the transaction environment information of the target transaction.

上述的方法,可选的,所述根据每个所述目标交易的交易环境信息确定出每个所述目标交易的处理优先级,包括:In the above method, optionally, determining the processing priority of each target transaction based on the transaction environment information of each target transaction includes:

对于每个所述目标交易,若所述目标交易的观测状态表征所述目标交易的秘钥已被观测,且所述目标交易的量子噪声大于预设的噪声阈值,则确定所述目标交易的处理优先级为第一优先级;若所述目标交易的观测状态表征所述目标交易的秘钥已被观测,且所述目标交易的量子噪声不大于预设的噪声阈值,则确定所述目标交易的处理优先级为第二优先级;若所述目标交易的观测状态表征所述目标交易的秘钥未被观测,且所述目标交易的量子噪声大于预设的噪声阈值,则确定所述目标交易的处理优先级为第三优先级;若所述目标交易的观测状态表征所述目标交易的秘钥未被观测,且所述目标交易的量子噪声不大于预设的噪声阈值,则确定所述目标交易的处理优先级为第四优先级;其中,所述第一优先级大于所述第二优先级,所述第二优先级大于所述第三优先级,所述第三优先级大于所述第四优先级。For each target transaction, if the observation state of the target transaction represents that the secret key of the target transaction has been observed, and the quantum noise of the target transaction is greater than the preset noise threshold, then determine the value of the target transaction. The processing priority is the first priority; if the observation state of the target transaction represents that the secret key of the target transaction has been observed, and the quantum noise of the target transaction is not greater than the preset noise threshold, then the target is determined The processing priority of the transaction is the second priority; if the observation state of the target transaction indicates that the secret key of the target transaction has not been observed, and the quantum noise of the target transaction is greater than the preset noise threshold, then it is determined that the The processing priority of the target transaction is the third priority; if the observation state of the target transaction indicates that the secret key of the target transaction has not been observed, and the quantum noise of the target transaction is not greater than the preset noise threshold, then it is determined The processing priority of the target transaction is the fourth priority; wherein the first priority is greater than the second priority, the second priority is greater than the third priority, and the third priority greater than the fourth priority.

上述的方法,可选的,所述根据每个所述目标交易的处理优先级对各个所述目标交易的交易状态进行查询,包括:In the above method, optionally, querying the transaction status of each target transaction according to the processing priority of each target transaction includes:

确定各个目标交易中的第一目标交易和第二目标交易;所述第一目标交易为各个所述目标交易中除所述第二目标交易以外的交易,所述第二目标交易为处理优先级为第四优先级的目标交易;Determine the first target transaction and the second target transaction in each target transaction; the first target transaction is a transaction in each of the target transactions except the second target transaction, and the second target transaction is a processing priority Trade for priority four targets;

启动计时器,并按每个所述第一目标交易的处理优先级由高至低的顺序,依次对每个所述第一目标交易的交易状态进行查询;Start a timer, and query the transaction status of each first target transaction in sequence from high to low according to the processing priority of each first target transaction;

在对每个所述第一目标交易的交易状态查询完毕后,确定所述计时器的计时时长是否大于预设的时长阈值;After querying the transaction status of each first target transaction, determine whether the timing duration of the timer is greater than a preset duration threshold;

在所述计时器的计时时长大于所述时长阈值的情况下,查询所述第二目标交易的交易状态。When the timing duration of the timer is greater than the duration threshold, the transaction status of the second target transaction is queried.

上述的方法,可选的,所述确定各个待处理的目标交易,包括:For the above method, optionally, the determination of each target transaction to be processed includes:

确定已获得的各个交易的当前交易状态;Determine the current transaction status of each acquired transaction;

将所述当前交易状态处于未明状态的交易作为目标交易。The transaction whose current transaction status is in an unknown state is regarded as the target transaction.

一种交易状态查询装置,包括:A transaction status query device, including:

第一确定单元,用于响应于交易处理指令,确定各个待处理的目标交易;A first determination unit, configured to determine each target transaction to be processed in response to the transaction processing instruction;

获取单元,用于获取每个所述目标交易的交易环境信息,每个所述目标交易的交易环境信息表征所述目标交易的秘钥在预设的量子信道的传输过程中的风险程度,所述秘钥用于对所述目标交易的交易报文进行解密;The acquisition unit is used to obtain the transaction environment information of each target transaction. The transaction environment information of each target transaction represents the degree of risk of the secret key of the target transaction in the transmission process of the preset quantum channel, so The secret key is used to decrypt the transaction message of the target transaction;

第二确定单元,用于根据每个所述目标交易的交易环境信息确定出每个所述目标交易的处理优先级;a second determination unit, configured to determine the processing priority of each target transaction based on the transaction environment information of each target transaction;

查询单元,用于根据每个所述目标交易的处理优先级对各个所述目标交易的交易状态进行查询。A query unit is configured to query the transaction status of each target transaction according to the processing priority of each target transaction.

上述的装置,可选的,获取单元,包括:The above-mentioned device, optional acquisition unit, includes:

获取子单元,用于获取每个所述目标交易的秘钥在预设的量子信道的传输过程中的观测状态和量子噪声;The acquisition subunit is used to obtain the observation state and quantum noise of the secret key of each target transaction during the transmission process of the preset quantum channel;

执行子单元,用于将每个所述目标交易的秘钥的观测状态和量子噪声作为所述目标交易的交易环境信息。The execution subunit is configured to use the observed state and quantum noise of the secret key of each target transaction as the transaction environment information of the target transaction.

上述的装置,可选的,所述第二确定单元,包括:The above device, optionally, the second determination unit includes:

确定子单元,用于对于每个所述目标交易,若所述目标交易的观测状态表征所述目标交易的秘钥已被观测,且所述目标交易的量子噪声大于预设的噪声阈值,则确定所述目标交易的处理优先级为第一优先级;若所述目标交易的观测状态表征所述目标交易的秘钥已被观测,且所述目标交易的量子噪声不大于预设的噪声阈值,则确定所述目标交易的处理优先级为第二优先级;若所述目标交易的观测状态表征所述目标交易的秘钥未被观测,且所述目标交易的量子噪声大于预设的噪声阈值,则确定所述目标交易的处理优先级为第三优先级;若所述目标交易的观测状态表征所述目标交易的秘钥未被观测,且所述目标交易的量子噪声不大于预设的噪声阈值,则确定所述目标交易的处理优先级为第四优先级;其中,所述第一优先级大于所述第二优先级,所述第二优先级大于所述第三优先级,所述第三优先级大于所述第四优先级。Determining subunit, configured for each target transaction, if the observation state of the target transaction represents that the secret key of the target transaction has been observed, and the quantum noise of the target transaction is greater than a preset noise threshold, then Determine the processing priority of the target transaction as the first priority; if the observation state of the target transaction indicates that the secret key of the target transaction has been observed, and the quantum noise of the target transaction is not greater than the preset noise threshold , then determine the processing priority of the target transaction as the second priority; if the observation state of the target transaction indicates that the secret key of the target transaction has not been observed, and the quantum noise of the target transaction is greater than the preset noise threshold, then determine the processing priority of the target transaction as the third priority; if the observation state of the target transaction indicates that the secret key of the target transaction has not been observed, and the quantum noise of the target transaction is not greater than the preset , the processing priority of the target transaction is determined to be the fourth priority; wherein the first priority is greater than the second priority, and the second priority is greater than the third priority, The third priority is greater than the fourth priority.

一种存储介质,所述存储介质包括存储指令,其中,在所述指令运行时控制所述存储介质所在的设备执行如上述的交易状态查询方法。A storage medium, the storage medium includes a storage instruction, wherein when the instruction is executed, the device where the storage medium is located is controlled to execute the above transaction status query method.

一种电子设备,包括存储器,以及一个或者一个以上的指令,其中一个或一个以上指令存储于存储器中,且经配置以由一个或者一个以上处理器执行如上述的交易状态查询方法。An electronic device includes a memory and one or more instructions, wherein the one or more instructions are stored in the memory and configured to execute the above transaction status query method by one or more processors.

与现有技术相比,本发明包括以下优点:Compared with the prior art, the present invention includes the following advantages:

本发明提供了一种交易状态查询方法、装置、存储介质及电子设备,其中,可以响应于交易处理指令,确定各个待处理的目标交易;获取每个所述目标交易的交易环境信息,每个所述目标交易的交易环境信息表征所述目标交易的秘钥在预设的量子信道的传输过程中的风险程度,所述秘钥用于对所述目标交易的交易报文进行解密;根据每个所述目标交易的交易环境信息确定出每个所述目标交易的处理优先级;根据每个所述目标交易的处理优先级对各个所述目标交易的交易状态进行查询。应用本发明实施例提供的方法,能够根据每个目标交易的交易环境信息所表征的风险程度确定每个目标交易的处理优先级,从而可以减少交易环境差的目标交易被堵塞的概率,减少交易异常。The present invention provides a transaction status query method, device, storage medium and electronic equipment, wherein each target transaction to be processed can be determined in response to a transaction processing instruction; transaction environment information of each target transaction is obtained, and each The transaction environment information of the target transaction represents the risk level of the secret key of the target transaction during the transmission process of the preset quantum channel, and the secret key is used to decrypt the transaction message of the target transaction; according to each The transaction environment information of each of the target transactions determines the processing priority of each of the target transactions; and the transaction status of each of the target transactions is queried according to the processing priority of each of the target transactions. By applying the method provided by the embodiment of the present invention, the processing priority of each target transaction can be determined according to the risk level represented by the transaction environment information of each target transaction, thereby reducing the probability that target transactions with poor transaction environments are blocked, and reducing the number of transactions. abnormal.

附图说明Description of the drawings

为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据提供的附图获得其他的附图。In order to explain the embodiments of the present invention or the technical solutions in the prior art more clearly, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings in the following description are only These are embodiments of the present invention. For those of ordinary skill in the art, other drawings can be obtained based on the provided drawings without exerting creative efforts.

图1为本发明提供的一种交易状态查询方法的方法流程图;Figure 1 is a method flow chart of a transaction status query method provided by the present invention;

图2为本发明提供的一种获取每个目标交易的交易环境信息的过程的流程图;Figure 2 is a flow chart of a process of obtaining transaction environment information for each target transaction provided by the present invention;

图3为本发明提供的一种对各个目标交易的交易状态进行查询的过程的流程图;Figure 3 is a flow chart of a process of querying the transaction status of each target transaction provided by the present invention;

图4为本发明提供的一种交易状态查询装置的结构示意图;Figure 4 is a schematic structural diagram of a transaction status query device provided by the present invention;

图5为本发明提供的一种电子设备的结构示意图。Figure 5 is a schematic structural diagram of an electronic device provided by the present invention.

具体实施方式Detailed ways

下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts fall within the scope of protection of the present invention.

在本申请中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。In this application, the terms "comprises," "comprises," or any other variation thereof are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that includes a list of elements not only includes those elements, but also includes none. Other elements expressly listed, or elements inherent to such process, method, article or equipment. Without further limitation, an element defined by the statement "comprises a..." does not exclude the presence of additional identical elements in a process, method, article, or apparatus that includes the stated element.

目前,在将交易报文发往交易处理系统后,需要反复向交易处理系统发起针对交易报文的查询,使得交易处理系统可以根据查询请求处理交易报文和反馈交易结果,然而,在交易量较大的情况下,会使得一些交易环境较差的交易被堵塞而导致交易风险增加,容易造成大量交易异常。Currently, after a transaction message is sent to the transaction processing system, it is necessary to repeatedly initiate a query for the transaction message to the transaction processing system, so that the transaction processing system can process the transaction message and feedback the transaction results according to the query request. However, in terms of transaction volume, In larger cases, some transactions with poor trading environments will be blocked, which will increase transaction risks and easily cause a large number of transaction abnormalities.

基于此,本发明实施例提供了一种交易状态查询方法,该方法可以应用于电子设备,所述方法的方法流程图如图1所示,具体包括:Based on this, embodiments of the present invention provide a transaction status query method, which can be applied to electronic devices. The method flow chart of the method is shown in Figure 1, and specifically includes:

S101:响应于交易处理指令,确定各个待处理的目标交易。S101: In response to the transaction processing instruction, determine each target transaction to be processed.

在本实施例中,目标交易可以是当前交易结果为未明状态的交易。In this embodiment, the target transaction may be a transaction whose current transaction result is in an undetermined state.

可选的,目标交易可以是已通过报文通信信道传输交易报文的交易。Optionally, the target transaction may be a transaction in which a transaction message has been transmitted through the message communication channel.

在一些实施例中,可以通过报文通信信道向交易系统发送已加密的交易报文,以及通过量子信道向外部交易系统发送该交易报文的秘钥,使得外部交易系统根据秘钥对交易报文进行解密;对于每个已发送对应交易报文和秘钥的交易,获取该交易的交易结果,若该交易的交易结果为未明状态的交易,则确定该交易为目标交易,未明状态指的是没有确定结果的状态。In some embodiments, an encrypted transaction message can be sent to the transaction system through the message communication channel, and the secret key of the transaction message can be sent to the external transaction system through the quantum channel, so that the external transaction system can report the transaction according to the secret key. Decrypt the text; for each transaction that has sent the corresponding transaction message and secret key, obtain the transaction result of the transaction. If the transaction result of the transaction is an unidentified transaction, the transaction is determined to be the target transaction. The unidentified status refers to It is a state with no definite outcome.

S102:获取每个所述目标交易的交易环境信息,每个所述目标交易的交易环境信息表征所述目标交易的秘钥在预设的量子信道的传输过程中的风险程度,所述秘钥用于对所述目标交易的交易报文进行解密。S102: Obtain the transaction environment information of each target transaction. The transaction environment information of each target transaction represents the degree of risk of the secret key of the target transaction in the transmission process of the preset quantum channel. The secret key Used to decrypt the transaction message of the target transaction.

在本实施例中,交易环境信息可以包括秘钥的观测状态和量子噪声。In this embodiment, the transaction environment information may include the observed state of the secret key and quantum noise.

S103:根据每个所述目标交易的交易环境信息确定出每个所述目标交易的处理优先级。S103: Determine the processing priority of each target transaction based on the transaction environment information of each target transaction.

在本实施例中,可以根据交易环境信息所表征的风险程度确定目标交易的优先级。In this embodiment, the priority of the target transaction can be determined according to the risk level represented by the transaction environment information.

可选的,对于每个目标交易,若该目标交易的交易环境信息所表征的风险程度越低,则其处理优先级越低,若该目标交易的交易环境信息所表征的风险程度越高,则其处理优先级越高。Optionally, for each target transaction, if the risk degree represented by the transaction environment information of the target transaction is lower, the processing priority will be lower. If the risk degree represented by the transaction environment information of the target transaction is higher, The higher its processing priority.

S104:根据每个所述目标交易的处理优先级对各个所述目标交易的交易状态进行查询。S104: Query the transaction status of each target transaction according to the processing priority of each target transaction.

在本实施例中,可以根据各个目标交易的处理优先级由高至低的顺序,对各个目标交易的交易状态进行查询,使得银行系统接收到查询后处理目标交易,得到各个目标交易的交易状态查询结果。In this embodiment, the transaction status of each target transaction can be queried according to the processing priority of each target transaction from high to low, so that the banking system processes the target transaction after receiving the query and obtains the transaction status of each target transaction. search result.

在本实施例中,可以获取每个所述目标交易的交易环境信息,根据每个所述目标交易的交易环境信息确定出每个所述目标交易的处理优先级,根据每个所述目标交易的处理优先级对各个所述目标交易的交易状态进行查询,即,可以优先查询风险程度高的目标交易的查询结果,减少风险程度高的目标交易被堵塞的时间和概率,有效地减少交易异常。In this embodiment, the transaction environment information of each target transaction can be obtained, the processing priority of each target transaction is determined based on the transaction environment information of each target transaction, and the processing priority of each target transaction is determined based on the transaction environment information of each target transaction. Query the transaction status of each target transaction according to the processing priority, that is, you can query the query results of high-risk target transactions first, reduce the time and probability that high-risk target transactions are blocked, and effectively reduce transaction anomalies. .

在一些实施例中,得到每个目标交易的交易状态查询结果后,可以确定每个目标交易状态查询结果中的交易状态是否为未明状态,对于每个交易状态查询结果的交易状态为未明状态的目标交易,重新根据各个目标交易的处理优先级对各个目标交易的交易状态进行查询,直至每个目标交易的交易状态查询结果不为未明状态,或者查询次数大于预设的次数阈值。In some embodiments, after obtaining the transaction status query result of each target transaction, it can be determined whether the transaction status in the query result of each target transaction status is an unclarified status. For each transaction status query result, the transaction status is an unspecified status. For the target transaction, re-query the transaction status of each target transaction according to the processing priority of each target transaction until the transaction status query result of each target transaction is not in an unidentified state, or the number of queries is greater than the preset threshold.

可选的,对于每个目标交易,在该目标交易的查询次数大于预设的次数阈值时,可以输出告警信息,告警信息用于提示该目标交易异常。Optionally, for each target transaction, when the number of queries for the target transaction is greater than the preset threshold, alarm information can be output, and the alarm information is used to prompt that the target transaction is abnormal.

在本发明提供的一实施例中,基于上述的实施过程,可选的,获取每个所述目标交易的交易环境信息的过程,如图2所示,包括:In an embodiment provided by the present invention, based on the above implementation process, optionally, the process of obtaining the transaction environment information of each target transaction, as shown in Figure 2, includes:

S201:获取每个所述目标交易的秘钥在预设的量子信道的传输过程中的观测状态和量子噪声。S201: Obtain the observation state and quantum noise of the secret key of each target transaction during the transmission process of the preset quantum channel.

在本实施例中,可以通过预设的通信状态监控软件对目标交易的密钥在量子信道传输的过程中的通信状态进行监测,获得目标交易的秘钥在量子信道的传输过程的观测状态和量子噪声。In this embodiment, the communication status of the target transaction key during the quantum channel transmission can be monitored through the preset communication status monitoring software, and the observation status and the observation status of the target transaction secret key during the quantum channel transmission process can be obtained. Quantum noise.

可选的,可以通过通信状态监控软件比对秘钥的发送方和接收方之间的测量基,从而得到发送方和接收方之间的测量基一致率,若测量基一致率小于预设一致率阈值,则确定观测状态表征已被窃听,若测量基一致率大于预设的一致率阈值,则确定观测状态表征未被窃听;在一些实施例中,可以采集量子噪声观测信号,根据采集到的量子噪声观测信号确定量子噪声。Optionally, the communication status monitoring software can be used to compare the measurement base between the sender and the receiver of the secret key to obtain the measurement base consistency rate between the sender and the receiver. If the measurement base consistency rate is less than the preset consistency rate threshold, it is determined that the observation state representation has been eavesdropped. If the measurement basis consistency rate is greater than the preset consistency rate threshold, it is determined that the observation state representation has not been eavesdropped; in some embodiments, the quantum noise observation signal can be collected, and according to the collected The quantum noise observed signal determines the quantum noise.

可选的,可以将监测得到的观测状态和量子噪声与该目标交易的交易报文标识对应存储于通信状态配置文件中,在接收到交易处理指令后,在确定待处理的目标交易的情况下,可以获取目标交易的交易报文标识,根据交易报文标识查询通信状态配置文件获得目标交易的秘钥的观测状态和量子噪声。Optionally, the monitored observation status and quantum noise can be stored in the communication status configuration file corresponding to the transaction message identifier of the target transaction. After receiving the transaction processing instruction, when the target transaction to be processed is determined , the transaction message identifier of the target transaction can be obtained, and the communication status configuration file can be queried according to the transaction message identifier to obtain the observation state and quantum noise of the secret key of the target transaction.

可选的,观测状态可以表示是否被观测,即是否被窃听,量子噪声可以表示量子信道的稳定程度;也即,对于每个目标交易,若该目标交易的秘钥在预设的量子信道的传输过程中的观测状态表征已被观测,且量子噪声高,则说明该目标交易的风险程度高,若观测状态表征未被观测,且量子噪声低,则说明该目标交易的风险程度低。Optionally, the observation state can indicate whether it is being observed, that is, whether it is eavesdropped. Quantum noise can indicate the stability of the quantum channel; that is, for each target transaction, if the secret key of the target transaction is in the preset quantum channel If the observation state representation during the transmission process has been observed and the quantum noise is high, it means that the risk level of the target transaction is high. If the observation state representation has not been observed and the quantum noise is low, it means the risk level of the target transaction is low.

S202:将每个所述目标交易的秘钥的观测状态和量子噪声作为所述目标交易的交易环境信息。S202: Use the observed state and quantum noise of the secret key of each target transaction as the transaction environment information of the target transaction.

在本实施例中,可以将目标交易的秘钥在预设的量子信道的传输过程中的观测状态和量子噪声组成目标交易的交易环境信息。In this embodiment, the transaction environment information of the target transaction can be composed of the observation state and quantum noise during the transmission process of the target transaction's secret key on the preset quantum channel.

在本发明提供的一实施例中,基于上述的实施过程,可选的,所述根据每个所述目标交易的交易环境信息确定出每个所述目标交易的处理优先级,包括:In an embodiment provided by the present invention, based on the above implementation process, optionally, determining the processing priority of each target transaction based on the transaction environment information of each target transaction includes:

对于每个所述目标交易,若所述目标交易的观测状态表征所述目标交易的秘钥已被观测,且所述目标交易的量子噪声大于预设的噪声阈值,则确定所述目标交易的处理优先级为第一优先级;若所述目标交易的观测状态表征所述目标交易的秘钥已被观测,且所述目标交易的量子噪声不大于预设的噪声阈值,则确定所述目标交易的处理优先级为第二优先级;若所述目标交易的观测状态表征所述目标交易的秘钥未被观测,且所述目标交易的量子噪声大于预设的噪声阈值,则确定所述目标交易的处理优先级为第三优先级;若所述目标交易的观测状态表征所述目标交易的秘钥未被观测,且所述目标交易的量子噪声不大于预设的噪声阈值,则确定所述目标交易的处理优先级为第四优先级;其中,所述第一优先级大于所述第二优先级,所述第二优先级大于所述第三优先级,所述第三优先级大于所述第四优先级。For each target transaction, if the observation state of the target transaction represents that the secret key of the target transaction has been observed, and the quantum noise of the target transaction is greater than the preset noise threshold, then determine the value of the target transaction. The processing priority is the first priority; if the observation state of the target transaction represents that the secret key of the target transaction has been observed, and the quantum noise of the target transaction is not greater than the preset noise threshold, then the target is determined The processing priority of the transaction is the second priority; if the observation state of the target transaction indicates that the secret key of the target transaction has not been observed, and the quantum noise of the target transaction is greater than the preset noise threshold, then it is determined that the The processing priority of the target transaction is the third priority; if the observation state of the target transaction indicates that the secret key of the target transaction has not been observed, and the quantum noise of the target transaction is not greater than the preset noise threshold, then it is determined The processing priority of the target transaction is the fourth priority; wherein the first priority is greater than the second priority, the second priority is greater than the third priority, and the third priority greater than the fourth priority.

在本实施例中,可以判断目标交易的观测状态是否表征目标交易的秘钥已被观测,得到第一判断结果,判断目标交易的量子噪声是否大于预设的噪声阈值,得到第二判断结果;根据第一判断结果和第二判断结果确定出目标交易的处理优先级。In this embodiment, it can be judged whether the observation state of the target transaction represents that the secret key of the target transaction has been observed, and the first judgment result is obtained. It is judged whether the quantum noise of the target transaction is greater than the preset noise threshold, and the second judgment result is obtained; The processing priority of the target transaction is determined based on the first judgment result and the second judgment result.

可选的,噪声阈值可以根据实际需求进行设定。Optionally, the noise threshold can be set according to actual needs.

在一些实施例中,可以根据每个目标交易的交易环境信息所表征的风险程度由高至低的顺序确定出每个目标交易的处理优先级。In some embodiments, the processing priority of each target transaction may be determined in descending order according to the risk degree represented by the transaction environment information of each target transaction.

在本实施例中,量子通讯可以通过高频次的秘钥交换,以及对目标交易的秘钥交换过程中通过量子的观测,探知该目标交易的秘钥是否已经被其他人所观测过,如发现已被观测,则说明该通信信道不安全,目标交易可作为高优先级交易;如发现该目标交易的量子噪音较高,说明该目标交易使用的通道并不稳定,可能导致交易短期爆发或间断,定义为中优先;分析未有明确结果的交易的原因对应的风险,针对风险等级较低的交易暂停查询交易状态,优先执行未处理的交易。In this embodiment, quantum communication can detect whether the secret key of the target transaction has been observed by others through high-frequency key exchange and quantum observation during the key exchange process of the target transaction, such as If it is found that it has been observed, it means that the communication channel is not safe, and the target transaction can be regarded as a high-priority transaction; if the quantum noise of the target transaction is found to be high, it means that the channel used by the target transaction is not stable, which may lead to short-term bursts of transactions or Interruption is defined as medium priority; analyze the risks corresponding to the reasons for transactions without clear results, suspend the query of transaction status for transactions with lower risk levels, and prioritize the execution of unprocessed transactions.

在本发明提供的一实施例中,基于上述的实施过程,可选的,所述根据每个所述目标交易的处理优先级对各个所述目标交易的交易状态进行查询的过程,如图3所示,包括:In an embodiment provided by the present invention, based on the above implementation process, optionally, the process of querying the transaction status of each target transaction according to the processing priority of each target transaction is as shown in Figure 3 shown, including:

S301:确定各个目标交易中的第一目标交易和第二目标交易;所述第一目标交易为各个所述目标交易中除所述第二目标交易以外的交易,所述第二目标交易为处理优先级为第四优先级的目标交易。S301: Determine the first target transaction and the second target transaction in each target transaction; the first target transaction is a transaction other than the second target transaction in each of the target transactions, and the second target transaction is a processing Target transaction with priority level 4.

在本实施例中,处理优先级为第四优先级的目标交易为当前不存在风险的交易,处理优先级大于第四优先级的目标交易为当前存在风险的交易。In this embodiment, target transactions with a processing priority of the fourth priority are transactions with no current risk, and target transactions with a processing priority greater than the fourth priority are transactions with current risks.

S302:启动计时器,并按每个所述第一目标交易的处理优先级由高至低的顺序,依次对每个所述第一目标交易的交易状态进行查询。S302: Start a timer, and sequentially query the transaction status of each first target transaction in order of the processing priority of each first target transaction.

在本实施中,对于处于相同处理优先级的多个目标交易,可以根据各个目标交易的结果等待时长确定各个目标交易的查询顺序,按该查询顺序查询处于相同处理优先级的多个目标交易,结果等待时长可以是目标交易的秘钥发送时间到当前的时间的时长。In this implementation, for multiple target transactions at the same processing priority, the query order of each target transaction can be determined according to the result waiting time of each target transaction, and the multiple target transactions at the same processing priority can be queried according to the query order. The result waiting time can be the length of time from the sending time of the target transaction's secret key to the current time.

S303:在对每个所述第一目标交易的交易状态查询完毕后,确定所述计时器的计时时长是否大于预设的时长阈值。S303: After querying the transaction status of each first target transaction, determine whether the timing duration of the timer is greater than a preset duration threshold.

在本实施例中,若计时时长不大于时长阈值,则继续等待,直至计时时长大于时长阈值。In this embodiment, if the timing duration is not greater than the duration threshold, then continue waiting until the timing duration is greater than the duration threshold.

S304:在所述计时器的计时时长大于所述时长阈值的情况下,查询所述第二目标交易的交易状态。S304: If the timing duration of the timer is greater than the duration threshold, query the transaction status of the second target transaction.

在本实施例中,能够优先查询风险较高的目标交易的交易状态,暂停查询风险低的目标交易的交易状态,可以及时完成交易,避免发生意外,并且能够减缓服务器的查询压力,避免交易堵塞。In this embodiment, the transaction status of high-risk target transactions can be queried first, and the transaction status of low-risk target transactions can be temporarily queried. Transactions can be completed in a timely manner to avoid accidents, and can reduce the query pressure of the server and avoid transaction congestion. .

在一些实施例中,也可以先确定各个目标交易中的第一目标交易和第二目标交易,按每个所述第一目标交易的处理优先级由高至低的顺序,依次对每个所述第一目标交易的交易状态进行查询,得到各个第一目标交易的交易状态查询结果,在各个第一目标交易的交易状态查询结果不为未明状态后,查询第二目标交易。In some embodiments, the first target transaction and the second target transaction in each target transaction may also be determined first, and each first target transaction is processed sequentially in order of the processing priority of each first target transaction. Query the transaction status of the first target transaction to obtain the transaction status query result of each first target transaction. After the transaction status query result of each first target transaction is not in an unknown state, query the second target transaction.

在本发明提供的一实施例中,基于上述的实施过程,可选的,所述确定各个待处理的目标交易,包括:In an embodiment provided by the present invention, based on the above implementation process, optionally, determining each target transaction to be processed includes:

确定已获得的各个交易的当前交易状态;Determine the current transaction status of each acquired transaction;

将所述当前交易状态处于未明状态的交易作为目标交易。The transaction whose current transaction status is in an unknown state is regarded as the target transaction.

在本实施例中,可以先确定各个交易的当前交易状态,将各个交易中当前交易状态处理未明状态的交易作为目标交易。In this embodiment, the current transaction status of each transaction may be determined first, and the transactions whose current transaction status processing is unknown in each transaction may be used as target transactions.

可选的,当前交易状态可以为交易成功状态、交易失败状态和交易未明状态中的一种。Optionally, the current transaction status can be one of transaction success status, transaction failure status, and transaction unknown status.

与图1所述的方法相对应,本发明实施例还提供了一种交易状态查询装置,用于对图1中方法的具体实现,本发明实施例提供的交易状态查询装置可以应用于电子设备中,其结构示意图如图4所示,具体包括:Corresponding to the method described in Figure 1, an embodiment of the present invention also provides a transaction status query device for specific implementation of the method in Figure 1. The transaction status query device provided by the embodiment of the present invention can be applied to electronic equipment , its structural diagram is shown in Figure 4, specifically including:

第一确定单元401,用于响应于交易处理指令,确定各个待处理的目标交易;The first determination unit 401 is configured to determine each target transaction to be processed in response to the transaction processing instruction;

获取单元402,用于获取每个所述目标交易的交易环境信息,每个所述目标交易的交易环境信息表征所述目标交易的秘钥在预设的量子信道的传输过程中的风险程度,所述秘钥用于对所述目标交易的交易报文进行解密;The acquisition unit 402 is used to obtain the transaction environment information of each target transaction. The transaction environment information of each target transaction represents the risk level of the secret key of the target transaction during the transmission process of the preset quantum channel, The secret key is used to decrypt the transaction message of the target transaction;

第二确定单元403,用于根据每个所述目标交易的交易环境信息确定出每个所述目标交易的处理优先级;The second determining unit 403 is configured to determine the processing priority of each target transaction based on the transaction environment information of each target transaction;

查询单元404,用于根据每个所述目标交易的处理优先级对各个所述目标交易的交易状态进行查询。The query unit 404 is configured to query the transaction status of each target transaction according to the processing priority of each target transaction.

在本发明提供的一实施例中,基于上述的装置,可选的,获取单元,包括:In an embodiment provided by the present invention, based on the above device, an optional acquisition unit includes:

获取子单元,用于获取每个所述目标交易的秘钥在预设的量子信道的传输过程中的观测状态和量子噪声;The acquisition subunit is used to obtain the observation state and quantum noise of the secret key of each target transaction during the transmission process of the preset quantum channel;

执行子单元,用于将每个所述目标交易的秘钥的观测状态和量子噪声作为所述目标交易的交易环境信息。The execution subunit is configured to use the observed state and quantum noise of the secret key of each target transaction as the transaction environment information of the target transaction.

在本发明提供的一实施例中,基于上述的装置,可选的,所述第二确定单元,包括:In an embodiment provided by the present invention, based on the above device, optionally, the second determining unit includes:

确定子单元,用于对于每个所述目标交易,若所述目标交易的观测状态表征所述目标交易的秘钥已被观测,且所述目标交易的量子噪声大于预设的噪声阈值,则确定所述目标交易的处理优先级为第一优先级;若所述目标交易的观测状态表征所述目标交易的秘钥已被观测,且所述目标交易的量子噪声不大于预设的噪声阈值,则确定所述目标交易的处理优先级为第二优先级;若所述目标交易的观测状态表征所述目标交易的秘钥未被观测,且所述目标交易的量子噪声大于预设的噪声阈值,则确定所述目标交易的处理优先级为第三优先级;若所述目标交易的观测状态表征所述目标交易的秘钥未被观测,且所述目标交易的量子噪声不大于预设的噪声阈值,则确定所述目标交易的处理优先级为第四优先级;其中,所述第一优先级大于所述第二优先级,所述第二优先级大于所述第三优先级,所述第三优先级大于所述第四优先级。Determining subunit, configured for each target transaction, if the observation state of the target transaction represents that the secret key of the target transaction has been observed, and the quantum noise of the target transaction is greater than a preset noise threshold, then Determine the processing priority of the target transaction as the first priority; if the observation state of the target transaction indicates that the secret key of the target transaction has been observed, and the quantum noise of the target transaction is not greater than the preset noise threshold , then determine the processing priority of the target transaction as the second priority; if the observation state of the target transaction indicates that the secret key of the target transaction has not been observed, and the quantum noise of the target transaction is greater than the preset noise threshold, then determine the processing priority of the target transaction as the third priority; if the observation state of the target transaction indicates that the secret key of the target transaction has not been observed, and the quantum noise of the target transaction is not greater than the preset , the processing priority of the target transaction is determined to be the fourth priority; wherein the first priority is greater than the second priority, and the second priority is greater than the third priority, The third priority is greater than the fourth priority.

在本发明提供的一实施例中,基于上述的装置,可选的,所述查询单元,包括:In an embodiment provided by the present invention, based on the above device, optionally, the query unit includes:

第一处理子单元,用于确定各个目标交易中的第一目标交易和第二目标交易;所述第一目标交易为各个所述目标交易中除所述第二目标交易以外的交易,所述第二目标交易为处理优先级为第四优先级的目标交易;The first processing subunit is used to determine the first target transaction and the second target transaction in each target transaction; the first target transaction is the transaction other than the second target transaction in each of the target transactions, and the The second target transaction is a target transaction with a processing priority of fourth priority;

第一查询子单元,用于启动计时器,并按每个所述第一目标交易的处理优先级由高至低的顺序,依次对每个所述第一目标交易的交易状态进行查询;The first query subunit is used to start a timer and query the transaction status of each first target transaction in order of the processing priority of each first target transaction from high to low;

第二处理子单元,用于在对每个所述第一目标交易的交易状态查询完毕后,确定所述计时器的计时时长是否大于预设的时长阈值;The second processing subunit is configured to determine whether the timing duration of the timer is greater than the preset duration threshold after querying the transaction status of each first target transaction;

第二查询子单元,用于在所述计时器的计时时长大于所述时长阈值的情况下,查询所述第二目标交易的交易状态。The second query subunit is configured to query the transaction status of the second target transaction when the timing duration of the timer is greater than the duration threshold.

在本发明提供的一实施例中,基于上述的装置,可选的,所述第一确定单元,包括:In an embodiment provided by the present invention, based on the above device, optionally, the first determining unit includes:

第三处理子单元,用于确定已获得的各个交易的当前交易状态;The third processing subunit is used to determine the current transaction status of each obtained transaction;

第四处理子单元,用于将所述当前交易状态处于未明状态的交易作为目标交易。The fourth processing subunit is configured to use the transaction whose current transaction status is in an unspecified state as the target transaction.

上述本发明实施例公开的交易状态查询装置中的各个单元和模块具体的原理和执行过程,与上述本发明实施例公开的交易状态查询方法相同,可参见上述本发明实施例提供的交易状态查询方法中相应的部分,这里不再进行赘述。The specific principles and execution processes of each unit and module in the transaction status query device disclosed in the above embodiments of the present invention are the same as the transaction status query method disclosed in the above embodiments of the present invention. Please refer to the transaction status query provided by the above embodiments of the present invention. The corresponding parts of the method will not be described again here.

本发明实施例还提供了一种存储介质,所述存储介质包括存储的指令,其中,在所述指令运行时控制所述存储介质所在的设备执行上述交易状态查询方法。Embodiments of the present invention also provide a storage medium that includes stored instructions, wherein when the instructions are run, the device where the storage medium is located is controlled to execute the above transaction status query method.

本发明实施例还提供了一种电子设备,其结构示意图如图5所示,具体包括存储器501,以及一个或者一个以上的指令502,其中一个或者一个以上指令502存储于存储器501中,且经配置以由一个或者一个以上处理器503执行所述一个或者一个以上指令502进行以下操作:An embodiment of the present invention also provides an electronic device, the structural schematic diagram of which is shown in Figure 5, specifically including a memory 501, and one or more instructions 502, wherein one or more instructions 502 are stored in the memory 501, and are Configured to execute the one or more instructions 502 by one or more processors 503 to perform the following operations:

响应于交易处理指令,确定各个待处理的目标交易;In response to the transaction processing instructions, determine each target transaction to be processed;

获取每个所述目标交易的交易环境信息,每个所述目标交易的交易环境信息表征所述目标交易的秘钥在预设的量子信道的传输过程中的风险程度,所述秘钥用于对所述目标交易的交易报文进行解密;Obtain the transaction environment information of each target transaction. The transaction environment information of each target transaction represents the risk level of the secret key of the target transaction during the transmission process of the preset quantum channel. The secret key is used to Decrypt the transaction messages of the target transaction;

根据每个所述目标交易的交易环境信息确定出每个所述目标交易的处理优先级;Determine the processing priority of each target transaction based on the transaction environment information of each target transaction;

根据每个所述目标交易的处理优先级对各个所述目标交易的交易状态进行查询。Query the transaction status of each target transaction according to the processing priority of each target transaction.

需要说明的是,本发明提供的一种交易状态查询方法、装置、存储介质及电子设备可用于量子通信领域或金融领域。上述仅为示例,并不对本发明提供的一种交易状态查询方法、装置、存储介质及电子设备的应用领域进行限定。It should be noted that the transaction status inquiry method, device, storage medium and electronic equipment provided by the present invention can be used in the field of quantum communication or the field of finance. The above are only examples and do not limit the application fields of the transaction status query method, device, storage medium and electronic equipment provided by the present invention.

需要说明的是,本说明书中的各个实施例均采用递进的方式描述,每个实施例重点说明的都是与其他实施例的不同之处,各个实施例之间相同相似的部分互相参见即可。对于装置类实施例而言,由于其与方法实施例基本相似,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。It should be noted that each embodiment in this specification is described in a progressive manner. Each embodiment focuses on its differences from other embodiments. The same and similar parts between the various embodiments are referred to each other. Can. As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple. For relevant details, please refer to the partial description of the method embodiment.

最后,还需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。Finally, it should be noted that in this article, relational terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply that these entities or any such actual relationship or sequence between operations. Furthermore, the terms "comprises," "comprises," or any other variation thereof are intended to cover a non-exclusive inclusion such that a process, method, article, or apparatus that includes a list of elements includes not only those elements, but also those not expressly listed other elements, or elements inherent to the process, method, article or equipment. Without further limitation, an element defined by the statement "comprises a..." does not exclude the presence of additional identical elements in a process, method, article, or apparatus that includes the stated element.

为了描述的方便,描述以上装置时以功能分为各种单元分别描述。当然,在实施本发明时可以把各单元的功能在同一个或多个软件和/或硬件中实现。For the convenience of description, when describing the above device, the functions are divided into various units and described separately. Of course, when implementing the present invention, the functions of each unit can be implemented in the same or multiple software and/or hardware.

通过以上的实施方式的描述可知,本领域的技术人员可以清楚地了解到本发明可借助软件加必需的通用硬件平台的方式来实现。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品可以存储在存储介质中,如ROM/RAM、磁碟、光盘等,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例或者实施例的某些部分所述的方法。From the above description of the embodiments, those skilled in the art can clearly understand that the present invention can be implemented by means of software plus a necessary general hardware platform. Based on this understanding, the technical solution of the present invention can be embodied in the form of a software product in essence or that contributes to the existing technology. The computer software product can be stored in a storage medium, such as ROM/RAM, disk , optical disk, etc., including a number of instructions to cause a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in various embodiments or certain parts of the embodiments of the present invention.

以上对本发明所提供的一种交易状态查询方法进行了详细介绍,本文中应用了具体个例对本发明的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本发明的方法及其核心思想;同时,对于本领域的一般技术人员,依据本发明的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本发明的限制。The transaction status query method provided by the present invention has been introduced in detail above. This article uses specific examples to illustrate the principles and implementations of the present invention. The description of the above embodiments is only used to help understand the method and implementation of the present invention. Its core idea; at the same time, for those of ordinary skill in the art, there will be changes in the specific implementation and application scope according to the idea of the present invention. In summary, the content of this description should not be understood as a limitation of the present invention. limit.

Claims (10)

1. A transaction state query method, comprising:
determining each target transaction to be processed in response to the transaction processing instruction;
acquiring transaction environment information of each target transaction, wherein the transaction environment information of each target transaction represents risk degree of a key of the target transaction in a transmission process of a preset quantum channel, and the key is used for decrypting a transaction message of the target transaction;
determining the processing priority of each target transaction according to the transaction environment information of each target transaction;
and inquiring the transaction state of each target transaction according to the processing priority of each target transaction.
2. The method of claim 1, wherein obtaining transaction context information for each of the target transactions comprises:
obtaining the observation state and quantum noise of each key of the target transaction in the transmission process of a preset quantum channel;
taking the observed state and quantum noise of the key of each target transaction as transaction environment information of the target transaction.
3. The method of claim 2, wherein said determining the processing priority of each of said target transactions based on the transaction context information of each of said target transactions comprises:
for each target transaction, if the observation state of the target transaction indicates that the key of the target transaction is observed and the quantum noise of the target transaction is greater than a preset noise threshold, determining that the processing priority of the target transaction is a first priority;
if the observation state of the target transaction represents that the secret key of the target transaction is observed and the quantum noise of the target transaction is not greater than a preset noise threshold, determining that the processing priority of the target transaction is a second priority;
if the observation state of the target transaction indicates that the secret key of the target transaction is not observed and the quantum noise of the target transaction is larger than a preset noise threshold, determining that the processing priority of the target transaction is a third priority;
if the observation state of the target transaction indicates that the secret key of the target transaction is not observed and the quantum noise of the target transaction is not greater than a preset noise threshold, determining that the processing priority of the target transaction is a fourth priority; wherein the first priority is greater than the second priority, the second priority is greater than the third priority, and the third priority is greater than the fourth priority.
4. A method according to claim 3, wherein said querying the transaction status of each of said target transactions according to the processing priority of each of said target transactions comprises:
determining a first target transaction and a second target transaction in each target transaction; the first target transaction is a transaction except the second target transaction in each target transaction, and the second target transaction is a target transaction with a processing priority of a fourth priority;
starting a timer, and sequentially inquiring the transaction state of each first target transaction according to the sequence of the processing priority of each first target transaction from high to low;
after the transaction state inquiry of each first target transaction is finished, determining whether the timing duration of the timer is greater than a preset duration threshold;
and inquiring the transaction state of the second target transaction under the condition that the timing duration of the timer is greater than the duration threshold value.
5. The method of claim 1, wherein the determining each target transaction to be processed comprises:
determining the current transaction state of each obtained transaction;
and taking the transaction with the current transaction state in an unknown state as a target transaction.
6. A transaction state query device, comprising:
a first determining unit configured to determine each target transaction to be processed in response to a transaction processing instruction;
the acquisition unit is used for acquiring transaction environment information of each target transaction, wherein the transaction environment information of each target transaction represents the risk degree of a secret key of the target transaction in the transmission process of a preset quantum channel, and the secret key is used for decrypting a transaction message of the target transaction;
the second determining unit is used for determining the processing priority of each target transaction according to the transaction environment information of each target transaction;
and the inquiring unit is used for inquiring the transaction state of each target transaction according to the processing priority of each target transaction.
7. The apparatus of claim 6, wherein the acquisition unit comprises:
the acquisition subunit is used for acquiring the observation state and quantum noise of each secret key of the target transaction in the transmission process of a preset quantum channel;
and the execution subunit is used for taking the observed state and quantum noise of the secret key of each target transaction as transaction environment information of the target transaction.
8. The apparatus according to claim 7, wherein the second determining unit includes:
a determining subunit, configured to determine, for each target transaction, if an observation state of the target transaction indicates that a key of the target transaction has been observed and quantum noise of the target transaction is greater than a preset noise threshold, that a processing priority of the target transaction is a first priority; if the observation state of the target transaction represents that the secret key of the target transaction is observed and the quantum noise of the target transaction is not greater than a preset noise threshold, determining that the processing priority of the target transaction is a second priority; if the observation state of the target transaction indicates that the secret key of the target transaction is not observed and the quantum noise of the target transaction is larger than a preset noise threshold, determining that the processing priority of the target transaction is a third priority; if the observation state of the target transaction indicates that the secret key of the target transaction is not observed and the quantum noise of the target transaction is not greater than a preset noise threshold, determining that the processing priority of the target transaction is a fourth priority; wherein the first priority is greater than the second priority, the second priority is greater than the third priority, and the third priority is greater than the fourth priority.
9. A storage medium comprising stored instructions, wherein the instructions, when executed, control a device in which the storage medium is located to perform a transaction state query method according to any one of claims 1 to 5.
10. An electronic device comprising a memory and one or more instructions, wherein the one or more instructions are stored in the memory and configured to be executed by the one or more processors to perform the transaction state query method of any of claims 1-5.
CN202311217776.4A 2023-09-20 2023-09-20 A transaction status query method, device, storage medium and electronic equipment Pending CN117271602A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311217776.4A CN117271602A (en) 2023-09-20 2023-09-20 A transaction status query method, device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311217776.4A CN117271602A (en) 2023-09-20 2023-09-20 A transaction status query method, device, storage medium and electronic equipment

Publications (1)

Publication Number Publication Date
CN117271602A true CN117271602A (en) 2023-12-22

Family

ID=89215482

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311217776.4A Pending CN117271602A (en) 2023-09-20 2023-09-20 A transaction status query method, device, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN117271602A (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102461344A (en) * 2009-06-03 2012-05-16 萨万特系统有限责任公司 Virtual room-based light fixture and device control
CN105975783A (en) * 2016-05-12 2016-09-28 宁波大学 Medical monitoring system based on mobile near field communication
US20170324560A1 (en) * 2014-11-11 2017-11-09 Giesecke & Devrient Gmbh Method and Server for Providing Transaction Keys
CN112907243A (en) * 2021-02-09 2021-06-04 工银科技有限公司 Block chain transaction auditing method and device
CN112967054A (en) * 2020-10-10 2021-06-15 支付宝(杭州)信息技术有限公司 Data management method, device and equipment
CN114723438A (en) * 2022-05-19 2022-07-08 北京第五力科技有限公司 Wallet system and transaction method
WO2023030513A1 (en) * 2021-09-05 2023-03-09 汉熵通信有限公司 Internet of things system

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102461344A (en) * 2009-06-03 2012-05-16 萨万特系统有限责任公司 Virtual room-based light fixture and device control
US20170324560A1 (en) * 2014-11-11 2017-11-09 Giesecke & Devrient Gmbh Method and Server for Providing Transaction Keys
CN105975783A (en) * 2016-05-12 2016-09-28 宁波大学 Medical monitoring system based on mobile near field communication
CN112967054A (en) * 2020-10-10 2021-06-15 支付宝(杭州)信息技术有限公司 Data management method, device and equipment
CN112907243A (en) * 2021-02-09 2021-06-04 工银科技有限公司 Block chain transaction auditing method and device
WO2023030513A1 (en) * 2021-09-05 2023-03-09 汉熵通信有限公司 Internet of things system
CN114723438A (en) * 2022-05-19 2022-07-08 北京第五力科技有限公司 Wallet system and transaction method

Similar Documents

Publication Publication Date Title
WO2021022710A1 (en) Message queue processing method, device, electronic apparatus, and computer readable non-volatile storage medium
CN109213604B (en) Data source management method and device
CN107908666A (en) A kind of method and apparatus of identification equipment mark
CN115599640A (en) Abnormal supply end warning method, electronic device and medium
CN112948138A (en) Method and device for processing message
CN113360258B (en) Data processing method, device, electronic equipment and storage medium
CN110324384B (en) Data push method and device
CN110618999A (en) Data query method and device, computer storage medium and electronic equipment
CN109471713B (en) Method and device for inquiring information
CN115988058A (en) A message processing method, device, electronic device, and computer-readable medium
CN113157480B (en) Error information processing method, device, storage medium and terminal
CN113946816A (en) Cloud service-based authentication method and device, electronic equipment and storage medium
CN117271602A (en) A transaction status query method, device, storage medium and electronic equipment
CN116483474B (en) Parameter loading method, device, equipment, computer readable storage medium and product
CN107291923A (en) Information processing method and device
CN115103005B (en) Request response method, device, electronic device and storage medium
WO2025035872A1 (en) Database management method and apparatus
CN114238411B (en) Methods, devices, electronic equipment and storage media for processing transaction data
CN110493291A (en) A method and device for processing HTTP requests
CN110262756B (en) Method and device for caching data
CN113726885A (en) Method and device for adjusting flow quota
CN115766696A (en) A file upload method, device, electronic equipment and storage medium
CN111046061A (en) Data query method, device, system, equipment and storage medium
CN113722351B (en) Parameter restoration method and device in Oracle database access flow
CN110909171B (en) Data scheduling method, device, terminal 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