[go: up one dir, main page]

CN110084655A - Electronic bill processing method, electronic bill processing device, computer equipment and computer storage medium - Google Patents

Electronic bill processing method, electronic bill processing device, computer equipment and computer storage medium Download PDF

Info

Publication number
CN110084655A
CN110084655A CN201910368302.7A CN201910368302A CN110084655A CN 110084655 A CN110084655 A CN 110084655A CN 201910368302 A CN201910368302 A CN 201910368302A CN 110084655 A CN110084655 A CN 110084655A
Authority
CN
China
Prior art keywords
electronic bill
electronic
address
node device
bill
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201910368302.7A
Other languages
Chinese (zh)
Other versions
CN110084655B (en
Inventor
戴传兵
蔡弋戈
秦青
张懿方
洪晓雯
郭鹏
张建俊
郑罗海
史俊杰
周王胜
藏军
冯士乘
唐子超
陈湖佳
郭明远
王宗友
刘攀
张劲松
朱耿良
时一防
丁勇
周开班
刘区城
陈秋平
杨常青
蓝虎
孔利
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201910368302.7A priority Critical patent/CN110084655B/en
Priority to CN201910866057.2A priority patent/CN110599265B/en
Publication of CN110084655A publication Critical patent/CN110084655A/en
Application granted granted Critical
Publication of CN110084655B publication Critical patent/CN110084655B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • 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
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/382Payment protocols; Details thereof insuring higher security of transaction
    • G06Q20/3825Use of electronic signatures
    • 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
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/382Payment protocols; Details thereof insuring higher security of transaction
    • G06Q20/3829Payment protocols; Details thereof insuring higher security of transaction involving key management
    • 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
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/389Keeping log of transactions for guaranteeing non-repudiation of a transaction
    • 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
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/40Authorisation, e.g. identification of payer or payee, verification of customer or shop credentials; Review and approval of payers, e.g. check credit lines or negative lists
    • G06Q20/407Cancellation of a transaction
    • 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
    • G06Q30/00Commerce
    • G06Q30/04Billing or invoicing
    • 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/12Accounting
    • G06Q40/123Tax preparation or submission

Landscapes

  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Engineering & Computer Science (AREA)
  • Finance (AREA)
  • General Physics & Mathematics (AREA)
  • Strategic Management (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • Theoretical Computer Science (AREA)
  • Development Economics (AREA)
  • Computer Security & Cryptography (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Technology Law (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention discloses an electronic bill processing method, an electronic bill processing device, computer equipment and a computer storage medium, and belongs to the technical field of block chains. The method transmits the generated second electronic bill to the first address, transfers the first electronic bill to the first address, invalidates the first electronic bill in the first address, and outputs the second electronic bill, so that the process of processing the electronic bill is not required for interaction with each organization offline by a consumer, but directly utilizes the online process to regenerate the electronic bill, thereby reducing the participation process of the consumer, namely simplifying the process of issuing the electronic bill.

Description

电子票据处理方法、装置、计算机设备及计算机存储介质Electronic bill processing method, device, computer equipment and computer storage medium

技术领域technical field

本发明涉及区块链技术领域,特别涉及一种电子票据处理方法、装置、计算机设备及计算机存储介质。The present invention relates to the technical field of block chains, in particular to an electronic bill processing method, device, computer equipment and computer storage medium.

背景技术Background technique

当消费者和商家达成一笔交易后,商家会给消费者开一张蓝字发票,以证明这笔交易,但是,当消费者发现蓝字发票上的信息有误或者时,消费者需要让商家给开具一张红字发票,以对错误的蓝字发票进行红冲。When the consumer and the merchant reach a transaction, the merchant will issue a blue invoice to the consumer to prove the transaction. However, when the consumer finds that the information on the blue invoice is wrong or The merchant issues a red-letter invoice to redact the wrong blue-letter invoice.

目前,红字发票开具可以是以下过程:当消费者发现蓝字发票上的内容有误时,消费者向税务机关提交开具发票红冲证明的申请,当税务机关对消费者提交的申请审核通过后,税务机关给消费者开具发票红冲证明,消费者将发票红冲证明交予商家,以向商家申请对错误的蓝字发票进行红冲,商家凭发票红冲证明开具一张红字发票,再给消费者重新开一张正确的蓝字发票,并将发票红冲证明粘贴在红字发票的第一联(存根联)后,以备核查。At present, the red-letter invoice can be issued in the following process: when the consumer finds that the content on the blue-letter invoice is wrong, the consumer submits an application to the tax authority for issuing a red invoice certificate, and when the tax authority approves the application submitted by the consumer , the tax authority issues an invoice red stamp certificate to the consumer, and the consumer submits the invoice red stamp certificate to the merchant to apply to the merchant for red stamping of the wrong blue letter invoice, and the merchant issues a red letter invoice based on the invoice red stamp certificate, and then Re-issue a correct blue invoice to the consumer, and paste the red invoice certificate on the first page (stub page) of the red invoice for verification.

在上述红字发票开具的过程中,消费者需要向税务机关申请开具发票红冲证明,还需要再次向商家申请对错误的蓝字发票进行红冲,导致消费者需要进行多个流程,商家才会开具红字发票,进而对消费者而言,开具红字发票的流程过于复杂。In the process of issuing the above-mentioned red-letter invoices, consumers need to apply to the tax authorities to issue a red-red invoice certificate, and also need to apply to the merchant again for red-red red-letter invoices, which leads to multiple processes for consumers before the merchant will Issue red-letter invoices, and for consumers, the process of issuing red-letter invoices is too complicated.

发明内容SUMMARY OF THE INVENTION

本发明实施例提供了一种电子票据处理方法、装置、计算机设备及计算机存储介质,能够解决消费者在开具红字发票时,流程过于复杂的问题。所述技术方案如下:Embodiments of the present invention provide an electronic bill processing method, device, computer equipment, and computer storage medium, which can solve the problem that the process is too complicated for consumers when issuing red-letter invoices. Described technical scheme is as follows:

一方面,提供了一种电子票据处理方法,所述方法包括:In one aspect, an electronic bill processing method is provided, the method comprising:

接收电子票据处理请求,所述电子票据处理请求携带第一电子票据的票据标识以及处理类型;receiving an electronic note processing request, the electronic note processing request carrying the note identifier and processing type of the first electronic note;

基于所述票据标识所指示的第一电子票据和所述处理类型,在区块链系统中生成第二电子票据;generating a second electronic note in the blockchain system based on the first electronic note indicated by the note identifier and the processing type;

将所述第二电子票据发送至所述区块链系统中的第一地址中,所述第一地址为基于所述监管节点设备和所述电子票据处理请求的票据对象进行多重签名的地址;sending the second electronic note to a first address in the blockchain system, where the first address is an address for multi-signature based on the supervisory node device and the note object of the electronic note processing request;

向所述第一地址中所存储的所述第一电子票据添加第一标记,在所述第一地址中所存储的所述第一电子票据中添加所述第二电子票据的票据标识,所述第一标记用于指示所述第一电子票据作废;adding a first mark to the first electronic note stored in the first address, adding the note identification of the second electronic note to the first electronic note stored in the first address, and The first mark is used to indicate that the first electronic note is invalid;

将所述第一电子票据的票据标识添加至所述第一地址中所存储的所述第二电子票据内,输出携带所述第一电子票据的票据标识的所述第二电子票据。adding the note identification of the first electronic note to the second electronic note stored in the first address, and outputting the second electronic note carrying the note identification of the first electronic note.

另一方面,提供一种电子票据处理方法,所述方法包括:In another aspect, an electronic bill processing method is provided, the method comprising:

接收状态标记请求,所述状态标记请求用于指示进行票据转移和标记;receiving a status marking request, the status marking request being used to indicate the transfer and marking of the note;

将第二地址中已存储的所述第一电子票据转移至区块链系统中的第一地址中,向未携带标记的所述第一电子票据添加所述第二标记,所述第二标记用于指示所述第一电子票据待作废;Transfer the first electronic note stored in the second address to the first address in the blockchain system, add the second mark to the first electronic note that does not carry a mark, and the second mark used to indicate that the first electronic note is to be voided;

发送标识成功响应,所述标记成功响应用于表示所述第一地址内的所述第一电子票据已添加第二标记。Sending an identification success response, where the marking success response is used to indicate that a second marking has been added to the first electronic note in the first address.

另一方面,提供了一种电子票据处理装置,所述装置包括:In another aspect, an electronic bill processing device is provided, the device comprising:

接收模块,用于接收电子票据处理请求,所述电子票据处理请求携带第一电子票据的票据标识以及处理类型;A receiving module, configured to receive an electronic bill processing request, the electronic bill processing request carrying the bill identifier and processing type of the first electronic bill;

生成模块,用于基于所述票据标识所指示的第一电子票据和所述处理类型,在区块链系统中生成第二电子票据;A generating module, configured to generate a second electronic note in the blockchain system based on the first electronic note indicated by the note identifier and the processing type;

发送模块,用于将所述第二电子票据发送至所述区块链系统中的第一地址中,所述第一地址为基于所述监管节点设备和所述电子票据处理请求的票据对象进行多重签名的地址;A sending module, configured to send the second electronic bill to a first address in the blockchain system, the first address is based on the supervision node device and the bill object of the electronic bill processing request multi-signature address;

转移模块,用向所述第一地址中所存储的所述第一电子票据添加第一标记,在所述第一地址中所存储的所述第一电子票据中添加所述第二电子票据的票据标识,所述第一标记用于指示所述第一电子票据作废;The transfer module is configured to add a first mark to the first electronic note stored in the first address, and add the second electronic note to the first electronic note stored in the first address. Note identification, the first mark is used to indicate that the first electronic note is invalid;

输出模块,用于将所述第一电子票据的票据标识添加至所述第一电子票据中,输出携带所述第一电子票据的票据标识的所述第一电子票据。An output module, configured to add the note identification of the first electronic note to the first electronic note, and output the first electronic note carrying the note identification of the first electronic note.

在一种可能的实现方式中,所述转移模块用于:In a possible implementation manner, the transfer module is used for:

基于所述区块链系统中监管节点设备的密钥,将第二地址中已存储的所述第一电子票据转移至所述第一地址中,向未携带标记的所述第一电子票据添加所述第一标记;或,Based on the key of the supervisory node device in the blockchain system, the first electronic note stored in the second address is transferred to the first address, and the first electronic note that does not carry a mark is added said first marker; or,

基于所述区块链系统中监管节点设备的密钥,将所述第一地址中所存储的第一电子票据的第二标记替换为所述第一标记,所述第二标记用于指示所述第一电子票据待作废。Based on the key of the supervisory node device in the blockchain system, the second mark of the first electronic note stored in the first address is replaced with the first mark, and the second mark is used to indicate the The above-mentioned first electronic note is to be invalidated.

在一种可能的实现方式中,所述发送模块,还用于当所述电子票据处理请求中携带第三标记时,发送状态标记请求,所述状态标记请求用于指示进行票据转移和标记,所述第三标记用于指示所述第一电子票据已报销;In a possible implementation manner, the sending module is further configured to send a status mark request when the electronic bill processing request carries a third mark, and the state mark request is used to indicate bill transfer and mark, The third mark is used to indicate that the first electronic note has been reimbursed;

所述接收模块,还用于接收标记成功响应,所述标记成功响应用于表示所述第一地址内的所述第一电子票据已添加第二标记。The receiving module is further configured to receive a mark success response, where the mark success response is used to indicate that a second mark has been added to the first electronic note in the first address.

在一种可能的实现方式中,发送模块,还用于向所述监管节点设备发送第一密钥获取请求,所述第一密钥获取请求用于获取所述监管节点设备的第一密钥,所述第一密钥用于提供票据发送权限;In a possible implementation manner, the sending module is further configured to send a first key acquisition request to the supervisory node device, where the first key acquisition request is used to acquire the first key of the supervisory node device , the first key is used to provide ticket sending authority;

所述接收模块,还用于接收所述监管节点设备发送的所述监管节点设备的第一密钥;The receiving module is further configured to receive the first key of the supervisory node device sent by the supervisory node device;

所述发送模块,还用于向所述监管节点设备发送第二密钥获取请求,所述第二密钥获取请求用于获取所述监管节点设备的第二密钥,所述第二密钥用于提供票据转移权限;The sending module is further configured to send a second key acquisition request to the supervisory node device, where the second key acquisition request is used to acquire a second key of the supervisory node device, and the second key Used to provide bill transfer authority;

所述接收模块,还用于接收所述监管节点设备发送的所述监管节点设备的第二密钥。The receiving module is further configured to receive the second key of the supervisory node device sent by the supervisory node device.

在一种可能的实现方式中,所述装置还包括:In a possible implementation manner, the device further includes:

查询模块,用于根据所述第一电子票据的票据标识,查询开票记录;A query module, configured to query the billing record according to the bill identifier of the first electronic bill;

验证模块,用于当所述处理类型为作废票据时,若所述开票记录中存储有所述第一电子票据对应的记录,则执行将所述第二电子票据发送至所述区块链系统中的第一地址中的步骤;A verification module, configured to send the second electronic note to the blockchain system if the record corresponding to the first electronic note is stored in the billing record when the processing type is a void note Steps in the first address in;

所述验证模块,还用于当所述处理类型为修改票据时,若所述开票记录中存储有所述第一电子票据对应的记录,对交易记录中所述第一电子票据对应的子记录的内容与第一电子票据的内容进行一一对比,当所述子记录中的任一内容与第一电子票据中对应的内容不相符时,则执行将所述第二电子票据发送至所述区块链系统中的第一地址中的步骤。The verification module is further configured to, when the processing type is to modify a bill, if the record corresponding to the first electronic bill is stored in the billing record, check the sub-record corresponding to the first electronic bill in the transaction record The content of the sub-record is compared with the content of the first electronic note one by one, and when any content in the sub-record does not match the corresponding content in the first electronic note, the execution of sending the second electronic note to the Steps in the first address in the blockchain system.

在一种可能的实现方式中,所述生成模块,用于当所述处理类型为修改票据时,根据所述电子票据处理请求所携带的修改内容,生成第三电子票据;In a possible implementation manner, the generating module is configured to generate a third electronic note according to the modification content carried in the electronic note processing request when the processing type is ticket modification;

所述发送模块,还用于基于所述区块链系统中监管节点设备的密钥,将所述第三电子票据发送至所述第一地址内;The sending module is further configured to send the third electronic bill to the first address based on the key of the supervisory node device in the blockchain system;

所述输出模块,还用于输出所述第三电子票据。The output module is further configured to output the third electronic note.

在一种可能的实现方式中,所述输出模块,还用于将所述携带所述第一电子票据的票据标识的所述第二电子票据发送至存储所述第一电子票据的第二地址内。In a possible implementation manner, the output module is further configured to send the second electronic note carrying the note identification of the first electronic note to the second address where the first electronic note is stored Inside.

另一方面,提供了一种电子票据处理装置,所述装置包括:In another aspect, an electronic bill processing device is provided, the device comprising:

接收模块,用于接收状态标记请求,所述状态标记请求用于指示进行票据转移和标记;A receiving module, configured to receive a status marking request, and the status marking request is used to indicate bill transfer and marking;

转移模块,用于将第二地址中已存储的所述第一电子票据转移至区块链系统中的第一地址中,向未携带标记的所述第一电子票据添加所述第二标记,所述第二标记用于指示所述第一电子票据待作废;a transfer module, configured to transfer the first electronic note stored in the second address to the first address in the blockchain system, and add the second mark to the first electronic note that does not carry a mark, The second mark is used to indicate that the first electronic note is to be voided;

发送模块,用于发送标识成功响应,所述标记成功响应用于表示所述第一地址内的所述第一电子票据已添加第二标记。A sending module, configured to send an identification success response, where the marking success response is used to indicate that a second marking has been added to the first electronic note in the first address.

在一种可能的实现方式中,所述装置还包括:In a possible implementation manner, the device further includes:

所述发送模块,还用于向所述监管节点设备发送第二密钥获取请求,所述第二密钥获取请求用于获取所述监管节点设备的第二密钥;The sending module is further configured to send a second key acquisition request to the supervisory node device, where the second key acquisition request is used to acquire a second key of the supervisory node device;

所述接收模块,还用于接收所述监管节点设备发送的所述监管节点设备的第二密钥。The receiving module is further configured to receive the second key of the supervisory node device sent by the supervisory node device.

另一方面,提供了一种计算机设备,该计算机设备包括:处理器;用于存放计算机程序的存储器;其中,该处理器用于执行存储器上所存放的计算机程序,实现上述电子票据处理方法所执行的操作。In another aspect, a computer device is provided, the computer device includes: a processor; a memory for storing computer programs; wherein, the processor is used for executing the computer programs stored in the memory to realize the execution of the above-mentioned electronic bill processing method operation.

另一方面,提供了一种计算机存储介质,该计算机存储介质内存储有计算机程序,该计算机程序被处理器执行时实现上述电子票据处理方法所执行的操作。In another aspect, a computer storage medium is provided, and a computer program is stored in the computer storage medium, and when the computer program is executed by a processor, the operations performed by the above electronic bill processing method are realized.

本发明实施例提供的技术方案带来的有益效果是:The beneficial effects brought by the technical solution provided by the embodiments of the present invention are:

通过将生成的第二电子票据发送至第一地址内,转移第一电子票据至第一地址内,作废第一地址内的第一电子票据,并输出第二电子票据,所以处理电子票据的过程,无需消费者线下与各个机构进行交互,而是直接利用线上过程进行电子票据的重新生成过程,减少了消费者的参与的流程,也即是,简化了开具电子票据的流程。By sending the generated second electronic note to the first address, transferring the first electronic note to the first address, voiding the first electronic note at the first address, and outputting the second electronic note, the process of processing the electronic note , without the need for consumers to interact with various institutions offline, but directly use the online process to regenerate electronic bills, which reduces the process of consumer participation, that is, simplifies the process of issuing electronic bills.

附图说明Description of drawings

为了更清楚地说明本发明实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to illustrate the technical solutions in the embodiments of the present invention more clearly, the following briefly introduces the accompanying drawings used in the description of the embodiments. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For those of ordinary skill in the art, other drawings can also be obtained from these drawings without creative effort.

图1是本发明实施例提供的一种区块链系统的示意图;Fig. 1 is a schematic diagram of a block chain system provided by an embodiment of the present invention;

图2是本发明实施例提供的一种电子票据处理方法的流程图;Fig. 2 is a flow chart of an electronic bill processing method provided by an embodiment of the present invention;

图3是本发明实施例提供的一种报销前的票据红冲方法的流程图;Fig. 3 is a flowchart of a bill red punching method before reimbursement provided by an embodiment of the present invention;

图4是本发明实施例提供的一种进行红冲的逻辑设计的示意图;FIG. 4 is a schematic diagram of a logic design for red punching provided by an embodiment of the present invention;

图5是本发明实施例提供的一种电子票据处理方法的流程图;Fig. 5 is a flowchart of an electronic bill processing method provided by an embodiment of the present invention;

图6是本发明实施例提供的一种报销后的票据红冲方法的流程图;Fig. 6 is a flow chart of a method for bill red punching after reimbursement provided by an embodiment of the present invention;

图7是本发明实施例提供的电子票据处理装置的结构示意图;7 is a schematic structural diagram of an electronic bill processing device provided by an embodiment of the present invention;

图8是本发明实施例提供的电子票据处理装置的结构示意图。Fig. 8 is a schematic structural diagram of an electronic bill processing device provided by an embodiment of the present invention.

图9是本发明实施例提供的一种节点设备的结构示意图。Fig. 9 is a schematic structural diagram of a node device provided by an embodiment of the present invention.

具体实施方式Detailed ways

为使本发明的目的、技术方案和优点更加清楚,下面将结合附图对本发明实施方式作进一步地详细描述。In order to make the object, technical solution and advantages of the present invention clearer, the implementation manner of the present invention will be further described in detail below in conjunction with the accompanying drawings.

图1是本发明实施例提供的一种区块链系统的示意图。参见图1,该区块链系统包括至少一个第一节点设备101、至少一个第二节点设备102、至少一个第三节点设备103以及监管节点设备104。Fig. 1 is a schematic diagram of a blockchain system provided by an embodiment of the present invention. Referring to FIG. 1 , the blockchain system includes at least one first node device 101 , at least one second node device 102 , at least one third node device 103 and a supervisory node device 104 .

其中,第一节点设备为报销企业所使用的设备,用于报销电子票据、转移电子票据以及对票据进行标记,报销企业为报销发票的企业。当第一节点设备接收到第二节点设备发送的状态标记请求时,可以在状态标记请求所指示的电子票据上进行标记,并向第二节点设备反馈标记完成,以便第二节点设备可以继续进行电子票据处理的流程。Wherein, the first node device is the device used by the reimbursement enterprise, and is used for reimbursement of electronic bills, transfer of electronic bills and marking of bills, and the reimbursement enterprise is an enterprise that reimburses invoices. When the first node device receives the status marking request sent by the second node device, it can mark the electronic note indicated by the status marking request, and feedback the marking completion to the second node device, so that the second node device can continue The process of electronic bill processing.

第二节点设备为商家所使用的设备,用于生成第二电子票据,第二电子票据可以视为商家开具的红字发票,用于冲销商家之前生成的错误的电子票据,当第二节点设备接收到电子票据处理请求时,可以基于电子票据处理请求,生成对应的第二电子票据,以实现开具对应的红字发票。The second node device is the device used by the merchant to generate the second electronic bill. The second electronic bill can be regarded as a red-letter invoice issued by the merchant. It is used to reverse the wrong electronic bill generated by the merchant. When the second node device receives When an electronic bill processing request is received, a corresponding second electronic bill may be generated based on the electronic bill processing request, so as to issue a corresponding red-letter invoice.

第三节点设备为消费者所使用的设备,用于向第二节点设备发送电子票据处理请求,以便第二节点设备生成第二电子票据,另外,第三节点设备还可以接收第二节点设备发送的第二电子票据。The third node device is a device used by consumers, and is used to send an electronic bill processing request to the second node device so that the second node device can generate the second electronic bill. In addition, the third node device can also receive the request sent by the second node device. the second electronic note.

该监管节点设备为税务机关所使用的设备,用于为第二节点设备提供税务机关的密钥,以便第二节点设备具有转移电子票据的权限。The supervisory node device is used by the tax authority, and is used to provide the key of the tax authority to the second node device, so that the second node device has the authority to transfer the electronic bill.

以上是对区块链系统以及各个节点设备的描述,在第一电子票据报销前,第二节点设备可以对错误的第一电子票据进行处理,为了体现第二节点设备在报销前,处理电子票据的过程,参见图2,图2是本发明实施例提供的一种电子票据处理方法的流程图,该方法具体包括:The above is the description of the blockchain system and each node device. Before the first electronic bill is reimbursed, the second node device can process the wrong first electronic bill. In order to reflect that the second node device processes the electronic bill before reimbursement process, see Figure 2, Figure 2 is a flow chart of an electronic bill processing method provided by an embodiment of the present invention, the method specifically includes:

201、第二节点设备接收电子票据处理请求,该电子票据处理请求携带第一电子票据的票据标识以及处理类型。201. The second node device receives an electronic receipt processing request, where the electronic receipt processing request carries the receipt identification and processing type of the first electronic receipt.

该电子票据处理请求用于指示对第一电子票据进行处理,并生成第二电子票据,该电子票据处理请求中还可以携带用于指示电子票据还未被报销的标识,以表明第二节点设备将要处理的第一电子票据还未被报销。The electronic bill processing request is used to instruct to process the first electronic bill and generate a second electronic bill, and the electronic bill processing request may also carry an identifier indicating that the electronic bill has not been reimbursed to indicate that the second node device The first electronic note to be processed has not been reimbursed.

第一电子票据可以视为商家之前给消费者开具的蓝字发票,但是,第一电子票据上的数据与实际的交易情况不符。该第一电子票据的票据标识用于指示该第一电子票据,该第一电子票据的票据标识可以包括第一电子票据的代码、号码以及验证码,当然,该第一电子票据的票据标识也可以是用于指示该第一电子票据的其他内容,本发明实施例对该第一电子票据的票据标识不做具体限定。The first electronic bill can be regarded as the blue letter invoice issued by the merchant to the consumer before, but the data on the first electronic bill does not match the actual transaction situation. The note identification of the first electronic note is used to indicate the first electronic note. The note identification of the first electronic note may include the code, number and verification code of the first electronic note. Of course, the note identification of the first electronic note also It may be other content used to indicate the first electronic note, and the embodiment of the present invention does not specifically limit the note identifier of the first electronic note.

处理类型为作废票据和修改票据中的任一类型,该第一电子票据与交易取消操作对应时,处理类型为作废票据,当该第一电子票据的内容有误时,处理类型为修改票据。可以用不同的字符串来表示的不同的处理类型,例如,用0来表示作废票据,用1表示修改票据,本发明实施例对表示处理类型的字符串不做具体限定。The processing type is either a voided note or a revised note. When the first electronic note corresponds to a transaction cancellation operation, the processing type is a voided note. When the content of the first electronic note is incorrect, the processing type is a revised note. Different processing types can be represented by different character strings, for example, 0 is used to represent a voided ticket, and 1 is used to represent a modified ticket. The embodiment of the present invention does not specifically limit the character string representing the processing type.

其中,交易取消操作可以表现为消费者的退货操作,所退货物为与第一电子票据对应的交易数据中所记录的货物。第一电子票据的内容有误可以表现为第一电子票据内的金额有误,例如,在商家和消费者交易时,消费者付款10元,但是商家生成的第一电子票据上的金额为5元,那么,第一电子票据上的金额与实际交易金额不符,则第一电子票据内的金额有误。第一电子票据的内容有误还可以表现为第一电子票据中的抬头或者税率有误。本发明实施例对该第一电子票据中的错误内容不做具体限定。Wherein, the transaction cancellation operation may be expressed as a consumer's return operation, and the returned goods are the goods recorded in the transaction data corresponding to the first electronic note. Wrong contents of the first electronic note can be manifested as an error in the amount in the first electronic note. For example, when the merchant and the consumer trade, the consumer pays 10 yuan, but the amount on the first electronic note generated by the merchant is 5 yuan. If the amount on the first electronic note does not match the actual transaction amount, then the amount in the first electronic note is wrong. An error in the content of the first electronic note may also appear as an error in the title or tax rate of the first electronic note. The embodiment of the present invention does not specifically limit the error content in the first electronic note.

由于第一电子票据内容有误包括多种情况,在一些实施例中该电子票据处理请求还可以携带修改内容,该修改内容为第一电子票据上修改后的内容,可以是金额,也可以是抬头或者税率等,以便第二节点设备可以根据目标内容生成正确的电子票据。Since the content of the first electronic note is wrong, there are many situations. In some embodiments, the electronic note processing request can also carry the modified content. The modified content is the modified content on the first electronic note, which can be the amount or header or tax rate, etc., so that the second node device can generate correct electronic bills according to the target content.

第二节点设备接收电子票据处理请求,可以为下述方式1-2中的任一种方式。The second node device may receive the electronic bill processing request in any of the following manners 1-2.

方式1、通过商家在第二节点设备上的交易相关操作,触发电子票据处理请求,使得第二节点设备接收到电子票据处理请求。Method 1. The transaction-related operation of the merchant on the second node device triggers an electronic bill processing request, so that the second node device receives the electronic bill processing request.

当第一电子票据的内容有误,或者与该第一电子票据对应的交易取消时,消费者在线下和商家进行沟通,消费者要求商家对第一电子票据进行处理,那么,当消费者和商家沟通完成后,商家通过点击第二节点设备上的开票按钮,触发第二节点设备接收该电子票据处理请求。其中,开票按钮可以是第二节点设备上的用于触发电子票据处理请求的真实按钮,还可以是第二节点设备的开票界面上的虚拟按钮,当然,该开票界面上还可以由处理类型选择按钮,商家当根据处理类型选择按钮确定处理类型后,在目标内容对应的输入框中输入目标内容,最后可以点击开票按钮,以触发电子票据处理请求,使得第二节点设备接收到电子票据处理请求,本发明实施例对该开票按钮以及处理类型选择按钮不做具体限定。When the content of the first electronic bill is wrong, or the transaction corresponding to the first electronic bill is cancelled, the consumer communicates with the merchant offline, and the consumer requests the merchant to process the first electronic bill. Then, when the consumer and After the merchant communication is completed, the merchant triggers the second node device to receive the electronic bill processing request by clicking the billing button on the second node device. Wherein, the billing button can be a real button on the second node device for triggering an electronic bill processing request, or a virtual button on the billing interface of the second node device. Of course, the billing interface can also be selected by the processing type button, after the merchant selects the button according to the processing type to determine the processing type, enter the target content in the input box corresponding to the target content, and finally click the billing button to trigger the electronic bill processing request, so that the second node device receives the electronic bill processing request , the embodiment of the present invention does not specifically limit the billing button and the processing type selection button.

方式2、第二节点设备接收第三节点设备发送的电子票据处理请求。Mode 2. The second node device receives the electronic bill processing request sent by the third node device.

当第一电子票据的内容有误,或者该第一电子票据对应的交易取消时,消费者可以通过第三节点设备上的开票按钮,触发第三节点设备向第二节点设备发送该电子票据处理请求,进而第二节点设备可以接收到该电子票据处理请求。其中,第三节点设备上的开票按钮与前述的第二节点设备上的开票按钮同理,本发明实施例对该第三节点设备上的开票按钮不做赘述。When the content of the first electronic bill is incorrect, or the transaction corresponding to the first electronic bill is cancelled, the consumer can trigger the third node device to send the electronic bill to the second node device through the billing button on the third node device. request, and then the second node device may receive the electronic bill processing request. Wherein, the billing button on the third node device is the same as the above-mentioned billing button on the second node device, and the embodiment of the present invention does not describe the billing button on the third node device in detail.

202、该第二节点设备根据该第一电子票据的票据标识,查询开票记录。202. The second node device queries the billing record according to the bill identifier of the first electronic bill.

开票记录用于记录商家的进行的交易所对应的电子票据,对于第二电子节点设备所生成的电子票据,都可以存储在开票记录中,每个电子票据在开票记录对应一个票据标识。The billing record is used to record the electronic bills corresponding to the transaction conducted by the merchant. The electronic bills generated by the second electronic node device can be stored in the billing record, and each electronic bill corresponds to a bill identifier in the billing record.

第二节点设备通过查询开票记录中是否存储有第一电子票据的记录,以验证电子票据处理请求所指示的第一电子票据是否是根据第二节点设备对应的商家的交易而生成的,当开票记录上存储有与该第一电子票据对应的记录,则说明第一电子票据为该商家通过第二节点设备生成的电子票据,那么该第二节点设备可以继续后续对第一电子票据的处理流程,当开票记录上没有存储与该第一电子票据对应的记录,说明该第一电子票据不是该商家通过第二节点设备生成的电子票据,则第二节点设备无需对该第一电子票据进行处理。The second node device checks whether there is a record of the first electronic bill stored in the billing record to verify whether the first electronic bill indicated by the electronic bill processing request is generated according to the transaction of the merchant corresponding to the second node device. If the record corresponding to the first electronic note is stored on the record, it means that the first electronic note is an electronic note generated by the merchant through the second node device, then the second node device can continue the subsequent processing of the first electronic note , when there is no record corresponding to the first electronic bill stored in the billing record, it means that the first electronic bill is not an electronic bill generated by the merchant through the second node device, and the second node device does not need to process the first electronic bill .

203、当该处理类型为作废票据时,若该开票记录中存储有与该第一电子票据对应的记录,该第二节点设备则获取监管节点设备的密钥。203. When the processing type is a voided note, if the billing record stores a record corresponding to the first electronic note, the second node device obtains the key of the supervision node device.

该开票记录中存储有与该第一电子票据对应的记录,可以表现为该开票记录中存储有电子票据处理请求所携带的票据标识,还可以表现为该开票记录中存储有电子票据处理请求中的票据标识所指示的第一电子票据。The record corresponding to the first electronic bill is stored in the billing record, which may be expressed as storing the bill identifier carried by the electronic bill processing request in the billing record, or in the form of storing the electronic bill processing request in the billing record The first electronic note indicated by the note ID of .

监管节点设备的密钥的包括第一密钥和第二密钥,其中,第一密钥用于提供票据发送权限,第二密钥用于提供票据转移权限。The keys of the supervisory node device include a first key and a second key, wherein the first key is used to provide permission to send bills, and the second key is used to provide permission to transfer bills.

该第二节点设备可以通过向该监管节点设备发送第一密钥获取请求,来获取监管节点设备的第一密钥,在一种可能的实现方式中,该第二节点设备获取监管节点设备的第一密钥可以通过下述步骤20311-20314所示的过程来实现。The second node device may obtain the first key of the supervision node device by sending a first key acquisition request to the supervision node device. In a possible implementation, the second node device obtains the The first key can be realized through the process shown in the following steps 20311-20314.

步骤20311、第二节点设备向该监管节点设备发送第一密钥获取请求,该第一密钥获取请求用于获取该监管节点设备的第一密钥。Step 20311, the second node device sends a first key acquisition request to the supervisory node device, and the first key acquisition request is used to acquire the first key of the supervisory node device.

该第一密钥获取请求可以携带第二节点设备的节点标识以及第一密钥的标识,第一密钥的标识用于指示第一密钥,第一密钥用于开启将票据发送至第一地址的权限,该第一地址为步骤205中的第一地址。The first key acquisition request may carry the node identification of the second node device and the identification of the first key, the identification of the first key is used to indicate the first key, and the first key is used to enable sending the ticket to the second node device. The authority of an address, where the first address is the first address in step 205 .

第二节点设备的节点标识用于指示第二节点设备,第二节点设备的节点标识可以是第二节点设备的公钥或者地址,以便监管节点设备可以对该第一密钥获取请求进行验证。The node identifier of the second node device is used to indicate the second node device, and the node identifier of the second node device may be the public key or address of the second node device, so that the supervisory node device can verify the first key acquisition request.

步骤20312、该监管节点设备在接收到该第一密钥获取请求后,对该第一密钥获取请求中的节点标识进行验证。Step 20312. After receiving the first key acquisition request, the supervisory node device verifies the node identifier in the first key acquisition request.

在该区块链系统初始化时,该监管节点设备中会存储有各个第二节点设备的节点标识,以便该监管节点设备对获取的第一密钥获取请求进行验证。该监管节点设备可以通过查询该监管节点设备所存储的所有第二节点设备的节点标识,来对第一密钥获取请求中的节点标识进行验证。在一种可能的实现方式中,当该监管节点设备在存储的所有第二节点设备的节点标识中查询到该第一密钥获取请求中的节点标识,则该节点标识通过验证,否则,该节点标识不通过验证。那么,当该第一密钥获取请求中的节点标识通过验证时,则该第一密钥获取请求通过验证。When the blockchain system is initialized, the supervisory node device will store the node identifiers of each second node device, so that the supervisory node device can verify the obtained first key acquisition request. The supervisory node device may verify the node identifier in the first key acquisition request by querying the node identifiers of all second node devices stored in the supervisory node device. In a possible implementation, when the supervisory node device finds the node ID in the first key acquisition request from the stored node IDs of all second node devices, the node ID passes the verification; otherwise, the Node ID does not pass validation. Then, when the node identifier in the first key acquisition request passes the verification, the first key acquisition request passes the verification.

步骤20313、当该第一密钥获取请求中的节点标识通过验证时,该监管节点设备向该第二节点设备发送该监管节点设备的第一密钥。Step 20313, when the node identifier in the first key acquisition request passes the verification, the supervisory node device sends the first key of the supervisory node device to the second node device.

步骤20314、该第二节点设备接收该监管节点设备发送的该监管节点设备的第一密钥。Step 20314, the second node device receives the first key of the supervision node device sent by the supervision node device.

该第二节点设备可以通过向该监管节点设备发送第二密钥获取请求,来获取监管节点设备的第二密钥,在一种可能的实现方式中,该第二节点设备获取监管节点设备的第二密钥可以通过下述步骤20321-20324所示的过程来实现。The second node device may obtain the second key of the supervision node device by sending a second key acquisition request to the supervision node device. In a possible implementation, the second node device obtains the The second key can be realized through the process shown in the following steps 20321-20324.

步骤20321、第二节点设备向该监管节点设备发送第二密钥获取请求,该第二密钥获取请求用于获取该监管节点设备的第二密钥。Step 20321, the second node device sends a second key acquisition request to the supervisory node device, and the second key acquisition request is used to acquire the second key of the supervisory node device.

该第二密钥获取请求携带第二节点设备的节点标识以及第二密钥的标识,第二密钥的标识用于指示第二密钥。The second key acquisition request carries the node identifier of the second node device and the identifier of the second key, where the identifier of the second key is used to indicate the second key.

步骤20322、该监管节点设备在接收到该第二密钥获取请求后,对该第二密钥获取请求中的节点标识进行验证。Step 20322. After receiving the second key acquisition request, the supervisory node device verifies the node identifier in the second key acquisition request.

本步骤20322该监管节点设备对节点标识进行验证的过程与步骤20312中该监管节点设备对节点标识进行验证的过程同理,本发明实施例对本步骤20322不做赘述。The process of the supervisory node device verifying the node ID in step 20322 is the same as the process of the supervisory node device verifying the node ID in step 20312, and this step 20322 is not described in detail in this embodiment of the present invention.

步骤20323、当该第二密钥获取请求中的节点标识通过验证时,该监管节点设备向该第二节点设备发送该监管节点设备的第二密钥。Step 20323, when the node identifier in the second key acquisition request passes the verification, the supervisory node device sends the second key of the supervisory node device to the second node device.

步骤20324、该第二节点设备接收该监管节点设备发送的该监管节点设备的第二密钥。Step 20324, the second node device receives the second key of the supervision node device sent by the supervision node device.

需要说明的是,在一些实施例中,只有在监管节点设备中存储了节点标识的第二节点设备,才能向该监管节点设备发送该第一密钥获取请求或第二密钥获取请求,也即是,该监管节点设备只能接收到存储的节点标识所对应的第二节点设备所发送的第一密钥获取请求或第二密钥获取请求,那么,当接收到第一密钥获取请求或第二密钥获取请求后,监管节点设备也可以不对该第一密钥获取请求或第二密钥获取请求中的节点标识进行验证,而直接向发送该第二节点设备发送自己的第一密钥或第二密钥,从而提高第二节点设备获取该第一密钥或第二密钥的效率。It should be noted that, in some embodiments, only the second node device that stores the node identifier in the supervisory node device can send the first key acquisition request or the second key acquisition request to the supervisory node device, and also That is, the supervisory node device can only receive the first key acquisition request or the second key acquisition request sent by the second node device corresponding to the stored node identifier, then, when receiving the first key acquisition request Or after the second key acquisition request, the supervisory node device may not verify the node identification in the first key acquisition request or the second key acquisition request, but directly send its own first key to the sending second node device. key or the second key, so as to improve the efficiency of the second node device in obtaining the first key or the second key.

需要说明的是,当该处理类型为修改票据时,若该开票记录中存储有该第一电子票据对应的记录,该第二节点设备对交易记录中该第一电子票据对应的子记录的内容与第一电子票据的内容进行一一对比,当交易记录中该第一电子票据对应的子记录的内容与第一电子票据中对应的内容不相符时,该第二节点设备则获取该监管节点设备的密钥。It should be noted that, when the processing type is to modify a note, if the record corresponding to the first electronic note is stored in the billing record, the second node device will check the content of the sub-record corresponding to the first electronic note in the transaction record One-to-one comparison with the content of the first electronic note, when the content of the sub-record corresponding to the first electronic note in the transaction record does not match the corresponding content in the first electronic note, the second node device will obtain the supervision node The key for the device.

交易记录用于存储商家和消费者所达成的交易,每笔交易对应该交易记录中的一条子记录,也即是,交易记录中每一条子记录用于存储一笔交易的交易情况,交易情况中可以包括电子票据的票据标识以及交易的金额、时间、货物、发票抬头以及税率等,本发明实施例对该交易情况不做具体限定。Transaction records are used to store the transactions reached by merchants and consumers. Each transaction corresponds to a sub-record in the transaction record, that is, each sub-record in the transaction record is used to store the transaction status of a transaction, and the transaction status may include the bill identification of the electronic bill and the transaction amount, time, goods, invoice title, tax rate, etc., and the embodiment of the present invention does not specifically limit the transaction situation.

当交易记录中该第一电子票据对应的子记录的内容与第一电子票据中对应的内容不相符,说明第一电子票据的中的内容有误,例如,第一电子票据中的金额为5,该第一电子票据对应的子记录中的金额为10,那么。第一电子票据的中的金额有误。When the content of the sub-record corresponding to the first electronic note in the transaction record does not match the corresponding content in the first electronic note, it means that the content in the first electronic note is wrong, for example, the amount in the first electronic note is 5 , the amount in the sub-record corresponding to the first electronic note is 10, then. The amount in the first e-receipt is incorrect.

该第二节点设备还可以直接将电子票据处理请求中的目标内容与交易记录中第一电子票据所对应的子记录中的目标内容进行对比,当电子票据处理请求中的目标内容与第一电子票据所对应的子记录中的目标内容不相符时,该第二节点设备获取监管节点设备的密钥。The second node device can also directly compare the target content in the electronic note processing request with the target content in the sub-record corresponding to the first electronic note in the transaction record. When the target content in the sub-record corresponding to the ticket does not match, the second node device obtains the key of the supervisory node device.

开票记录和交易记录可以存储在第二节点设备的内存中,还可以存储在其他存储设备中,例如移动硬盘等,还可以存储在云端。本发明实施例对该开票记录和交易记录的存储地点以及记录方式不做具体限定。Billing records and transaction records can be stored in the memory of the second node device, or in other storage devices, such as mobile hard drives, or in the cloud. The embodiment of the present invention does not specifically limit the storage locations and recording methods of the billing records and transaction records.

需要说明的是,步骤202-203所示的过程,为第二节点设备对电子票据处理请求进行进一步验证,并获取监管节点设备密钥过程,也即是,当该开票记录中存储有与该第一电子票据对应的记录或第一电子票据所对应的子记录中的任一内容与第一电子票据中对应的内容不相符时,电子票据处理请求通过验证,则第二节点设备获取监管节点设备的密钥,否则,该电子票据处理请求不通过验证,则第二节点设备不能获取监管节点设备的密钥。It should be noted that the process shown in steps 202-203 is a process for the second node device to further verify the electronic bill processing request and obtain the key of the supervisory node device, that is, when the billing record stores the When any content in the record corresponding to the first electronic note or the sub-record corresponding to the first electronic note does not match the corresponding content in the first electronic note, the electronic note processing request passes the verification, and the second node device obtains the supervision node Otherwise, the electronic bill processing request fails to pass the verification, and the second node device cannot obtain the key of the supervisory node device.

那么,通过步骤202和203可以进一步验证该电子票据处理请求是否正确,可以避免处理错误的电子票据处理请求,进而降低第二节点设备处理电子票据处理请求的失误率。Then, through steps 202 and 203, it is possible to further verify whether the electronic receipt processing request is correct, avoid processing wrong electronic receipt processing requests, and further reduce the error rate of the second node device in processing electronic receipt processing requests.

204、该第二节点设备基于该票据标识所指示的第一电子票据和该处理类型,在区块链系统中生成第二电子票据。204. The second node device generates a second electronic note in the blockchain system based on the first electronic note indicated by the note identifier and the processing type.

当该处理类型为修改票据,且电子票据处理请求所携带的修改内容为金额时,此时,修改票据是为了修改第一电子票据上的金额,第一电子票据上的金额只需部分冲销即可,所以,该第二节点设备所生成的第二电子票据内的金额为该第一电子票据内的金额与目标内容的差值的负值,该第二电子票据内的其他内容与第一电子票据的其他内容均一致。When the processing type is to modify a note, and the modification content carried in the electronic note processing request is the amount, at this time, the purpose of modifying the note is to modify the amount on the first electronic note, and the amount on the first electronic note only needs to be partially reversed. Yes, therefore, the amount in the second electronic note generated by the second node device is the negative value of the difference between the amount in the first electronic note and the target content, and the other content in the second electronic note is the same as the first Other contents of the electronic notes are the same.

当该处理类型为修改票据,且电子票据处理请求所携带的修改内容不为金额时,此时,修改票据是为了修改第一电子票据上的其他内容,需要将第一电子票据上所有的内容全部冲销,所以,该第二节点设备所生成的第二电子票据内的金额为该第一电子票据内的金额的负值,该第二电子票据内的其他内容与第一电子票据的其他内容均一致。When the processing type is to modify the note, and the modification content carried in the electronic note processing request is not the amount, at this time, the purpose of modifying the note is to modify other content on the first electronic note, and all the content on the first electronic note needs to be All reversals, so the amount in the second electronic note generated by the second node device is the negative value of the amount in the first electronic note, and other contents in the second electronic note are different from other contents in the first electronic note All consistent.

当该处理类型为作废票据时,作废票据是为了将第一电子票据作废,需要将第一电子票据上所有的内容全部冲销,所以,该第二电子票据内的金额为该第一电子票据内的金额的负值,该第二电子票据内的其他内容与第一电子票据的其他内容均一致。When the processing type is voided note, the voided note is to invalidate the first electronic note, and all the content on the first electronic note needs to be reversed. Therefore, the amount in the second electronic note is equal to the amount in the first electronic note. The negative value of the amount, the other contents of the second electronic note are consistent with the other contents of the first electronic note.

205、该第二节点设备基于该区块链系统中监管节点设备的密钥,将该第二电子票据发送至该区块链系统中的第一地址中,该第一地址为基于该监管节点设备和该电子票据处理请求的票据对象进行多重签名的地址。205. The second node device sends the second electronic note to the first address in the blockchain system based on the key of the supervision node device in the blockchain system, and the first address is based on the key of the supervision node device in the blockchain system. The address of multi-signature between the device and the ticket object of the electronic ticket processing request.

其中,第一地址为区块链系统中的虚拟地址,用于存储第二节点设备生成的第二电子票据、作废的第一电子票据以及修改后的第三电子票据。该电子票据处理请求的票据对象为与商家进行该第一电子票据所对应的交易的消费者。Wherein, the first address is a virtual address in the blockchain system, and is used to store the second electronic note generated by the second node device, the invalidated first electronic note, and the modified third electronic note. The bill object of the electronic bill processing request is the consumer who conducts the transaction corresponding to the first electronic bill with the merchant.

基于该监管节点设备和该电子票据处理请求的票据对象进行多重签名的地址,可以表现为第一地址与监管节点设备的密钥、第三节点设备的密钥以及与第二节点设备的密钥具有关联关系。与多重签名地址关联的密钥的所有者既具有访问该与多重签名地址的权限,也具有在该多重签名地址内进行电子票据转移的权限。当需要在该多重签名地址内进行电子票据转移时,需要与该多重签名地址关联的至少一个密钥,才能对该多重签名地址内的电子票据进行转移。The multi-signature address based on the supervisory node device and the note object of the electronic bill processing request can be expressed as the first address and the key of the supervisory node device, the key of the third node device, and the key of the second node device have an association relationship. The owner of the key associated with the multi-signature address has both the authority to access the multi-signature address and the authority to transfer electronic notes within the multi-signature address. When it is necessary to transfer electronic bills in the multi-signature address, at least one key associated with the multi-signature address is required to transfer the electronic bills in the multi-signature address.

由于监管节点设备的不同密钥可以提供不同的权限,其中第一密钥用于提供发送票据的权限,所以第二节点设备在将第二电子票据发送至第一地址之前需要获取监管节点设备的第一密钥,第二节点设备可以通过步骤20311-20314所示的过程获取监管节点设备的第一密钥。Since different keys of the supervisory node device can provide different permissions, and the first key is used to provide the authority to send bills, the second node device needs to obtain the supervisory node device’s The first key, the second node device can obtain the first key of the supervisory node device through the process shown in steps 20311-20314.

206、该第二节点设备基于该区块链系统中监管节点设备的密钥,将第二地址中已存储的该第一电子票据转移至该第一地址中,向未携带标记的该第一电子票据添加第一标记,在该第一地址中所存储的该第一电子票据中添加该第二电子票据的票据标识,该第一标记用于指示该第一电子票据作废。206. The second node device transfers the first electronic note stored in the second address to the first address based on the key of the supervisory node device in the blockchain system, and transfers the first electronic note stored in the second address to the first address that does not carry a mark. A first mark is added to the electronic note, and the note identification of the second electronic note is added to the first electronic note stored in the first address, and the first mark is used to indicate that the first electronic note is invalid.

该第二地址可以是区块链系统中的虚拟地址,用于存储多个电子票据,每个电子票据与一个消费者账户相关联,一个电子票据在对应的消费者账户内可以表现为一张蓝字发票的电子版。当然,该第二地址还可以是发送该电子票据处理请求的第三节点设备的地址,本发明实施例对该第二地址不作具体限定。The second address can be a virtual address in the blockchain system, and is used to store multiple electronic bills, each electronic bill is associated with a consumer account, and an electronic bill can be represented as an electronic bill in the corresponding consumer account. The electronic version of the blue letter invoice. Certainly, the second address may also be the address of the third node device that sends the electronic bill processing request, and this embodiment of the present invention does not specifically limit the second address.

由于监管节点设备的不同密钥可以提供不同的权限,其中第二密钥用于提供转移票据的权限,所以第二节点设备在将第一电子票据转移至第一地址之前需要获取监管节点设备的第二密钥,第二节点设备可以通过步骤20322-20324所示的过程获取监管节点设备的第一密钥。Since different keys of the supervisory node device can provide different permissions, and the second key is used to provide the authority to transfer bills, the second node device needs to obtain the supervisory node device’s ID before transferring the first electronic bill to the first address. For the second key, the second node device can obtain the first key of the supervisory node device through the process shown in steps 20322-20324.

需要说明的是,第二节点设备只有在获取到监管节点设备的第二密钥后,才能有权限将第一电子票据转移至第一地址中,第二节点设备获取监管节点设备的第二密钥的步骤可以在步骤205与步骤206之间,也可以在步骤205之前,本发明实施例对获取监管节点设备的第二密钥的步骤和步骤205的执行顺序不做具体限定。It should be noted that the second node device has the right to transfer the first electronic note to the first address only after obtaining the second key of the supervisory node device, and the second node device obtains the second key of the supervisory node device. The step of obtaining the key may be between step 205 and step 206, or may be before step 205. This embodiment of the present invention does not specifically limit the step of obtaining the second key of the supervisory node device and the execution order of step 205.

当将第一电子票据转移至第一地址内后,第二节点设备向未携带标记的第一电子票据添加第一标记,该第二节点设备可以在该第一电子票据的目标字段中添加第一标记,第一标记可以为任一字符串,本发明实施例对该第一标识不做具体限定。该目标字段可以是该第一电子票据内空闲的任一字段,还可以是在该第一电子票据内新增的字段,本发明实施例对该目标字段不做具体限定。After transferring the first electronic note to the first address, the second node device adds the first mark to the first electronic note that does not carry the mark, and the second node device can add the first mark to the target field of the first electronic note. A mark, the first mark may be any character string, and this embodiment of the present invention does not specifically limit the first mark. The target field may be any free field in the first electronic note, or may be a newly added field in the first electronic note, and the embodiment of the present invention does not specifically limit the target field.

那么,当第一电子票据上有第一标记的标识时,则说明该第一电子票据已作废。Then, when the first electronic note is marked with the first mark, it means that the first electronic note has been invalidated.

该第二电子票据的票据标识为第二电子票据的代码、号码以及验证码,当然还可以是指示该第二电子票据的其他信息,本发明实施例对该第二标识不做具体限定。The ticket identification of the second electronic note is the code, number and verification code of the second electronic note, and of course it can also be other information indicating the second electronic note. The embodiment of the present invention does not specifically limit the second identification.

该第二节点设备可以在该第一电子票据内的备注信息字段中添加该第二电子票据的票据标识,当然也可以在其他地段中添加该第二电子票据的票据标识,本发明实施例对用于添加该第二电子票据的票据标识的字段不做具体限定。通过在第一电子票据内添加该第二电子票据的票据标识,可以使得该第一电子票据与该第二电子票据相对应,以便日后查证。The second node device can add the note identification of the second electronic note in the remarks information field in the first electronic note, and of course also add the note identification of the second electronic note in other fields. The field for adding the note identifier of the second electronic note is not specifically limited. By adding the note identification of the second electronic note in the first electronic note, the first electronic note can be made to correspond to the second electronic note, so that it can be verified later.

需要说明的是,本步骤206中第二节点设备基于该区块链系统中监管节点设备的密钥,将第二地址中已存储的该第一电子票据转移至所述第一地址中,向未携带标记的该第一电子票据添加所述第一标记所示的过程,也即是,第二节点设备向该第一地址中所存储的该第一电子票据添加第一标记过程。It should be noted that, in this step 206, the second node device transfers the first electronic note stored in the second address to the first address based on the key of the supervisory node device in the blockchain system, and sends The process of adding the first mark to the first electronic note that does not carry a mark, that is, the process of adding the first mark to the first electronic note stored in the first address by the second node device.

207、当该处理类型为修改票据时,该第二节点设备根据该电子票据处理请求所携带的修改内容,生成第三电子票据。207. When the processing type is ticket modification, the second node device generates a third electronic ticket according to the modification content carried in the electronic ticket processing request.

该第二电子设备可以将第一电子票据上的目标内容替换为该电子票据处理请求所携带的修改内容,得到第三电子票据,该目标内容为该第一电子票据错误的内容,该第三票据中的其他内容与第一电子票据中的其他内容一致。The second electronic device may replace the target content on the first electronic note with the modification content carried in the electronic note processing request to obtain a third electronic note, the target content is the wrong content of the first electronic note, and the third Other content in the note is consistent with other content in the first electronic note.

208、该第二节点设备基于该区块链系统中监管节点设备的密钥,将该第三电子票据发送至该第一地址内。208. The second node device sends the third electronic note to the first address based on the key of the supervision node device in the blockchain system.

该第二节点设备将第三票据发送至该第一地址内之前,该第二节点设备还需要再次获取监管节点设备的第一密钥,该第二节点设备才能基于再次获取的该监管节点设备的第一密钥,将该第三电子票据发送至该第一地址内。Before the second node device sends the third note to the first address, the second node device also needs to obtain the first key of the supervisory node device again, so that the second node device can the first key, and send the third electronic note to the first address.

需要说明的是,当该处理类型为修改票据冲销时,该第二节点设备才会执行本步骤207-208,当该处理类型为作废票据时,该第二节点设备不执行本步骤207-208。It should be noted that the second node device will execute steps 207-208 only when the processing type is revising bill reversal, and the second node device will not execute steps 207-208 when the processing type is voiding bills .

209、该第二节点设备将该第一电子票据的票据标识添加至该第一地址中所存储的该第二电子票据内,输出携带该第一电子票据的票据标识的该第二电子票据以及该第三电子票据。209. The second node device adds the note identification of the first electronic note to the second electronic note stored in the first address, and outputs the second electronic note carrying the note identification of the first electronic note and The third electronic note.

该第二节点设备可以在该第二电子票据用于记录备注信息的字段中添加第一电子票据的票据标识,以实现在第二电子票据内添加第一电子票据的票据标识,进而可以建立第二电子票据与第一电子票据之间的对应关系,以便日后查证。The second node device may add the note identifier of the first electronic note in the field of the second electronic note for recording remark information, so as to add the note identifier of the first electronic note in the second electronic note, and then establish the second electronic note. The corresponding relationship between the second electronic note and the first electronic note for future verification.

该第一节点设备可以通过将该第二电子票据以及该第三电子票据发送至存储该第一电子票据的第二地址内,以实现输出该第二电子票据以及该第三电子票据。The first node device may output the second electronic note and the third electronic note by sending the second electronic note and the third electronic note to the second address storing the first electronic note.

当该第二地址为虚拟地址时,该第二节点设备将该第二电子票据以及该第三电子票据直接发送至于存储第一电子票据的位置;当该第二地址为第三节点设备的地址时,该第二节点设备向该第三节点设备发送该第二电子票据以及该第三电子票据。When the second address is a virtual address, the second node device directly sends the second electronic note and the third electronic note to the location where the first electronic note is stored; when the second address is the address of the third node device , the second node device sends the second electronic note and the third electronic note to the third node device.

当该第二地址具有访问权限时,该第二节点设备只有获取到访问权限才能向将出该第二电子票据以及该第三电子票据发送至该第二地址内,例如,第二地址被消费者设置了访问权限,第二节点设备向该第二地址发送票据发放请求,该票据发放请求中携带该第二电子票据以及该第三电子票据,当消费者通过第三节点设备拒绝接收该票据发放请求时,则该第二节点设备不能将该第二电子票据以及该第三电子票据发送至第二地址内,当消费者通过第三节点设备接收该票据发放请求时,则该第二节点设备可以将该第二电子票据以及该第三电子票据发送至第二地址内。When the second address has access authority, the second node device can send the second electronic note and the third electronic note to the second address only after obtaining the access authority, for example, the second address is consumed If the user sets the access authority, the second node device sends a bill issuance request to the second address, and the bill issuance request carries the second electronic bill and the third electronic bill. When the consumer refuses to accept the bill through the third node device When issuing a request, the second node device cannot send the second electronic bill and the third electronic bill to the second address. When the consumer receives the bill issuing request through the third node device, the second node The device may send the second electronic note and the third electronic note to the second address.

需要说明的是,该处理类型为作废票据时,则该第二节点设备不会生成该第三电子票据,也就不会输出该第三电子票据。另外,第一电子票据被作废,第二节点设备生成了一个第二电子票据用于冲销该第一电子票据,并生成第三电子票据,使得第二电子票据和第三电子票据可以替代第一电子票据,从而实现了票据红冲。为了进一步表明报销前票据红冲的过程,参见本发明实施例提供的如图3所示的报销前的票据红冲方法的流程图,该流程具体包括下述步骤3.1-3.4。It should be noted that, when the processing type is a voided note, the second node device will not generate the third electronic note, and will not output the third electronic note. In addition, the first electronic note is invalidated, and the second node device generates a second electronic note for reversing the first electronic note, and generates a third electronic note, so that the second electronic note and the third electronic note can replace the first electronic note. Electronic bills, so as to realize the red punching of bills. In order to further illustrate the process of bill red flushing before reimbursement, refer to the flow chart of the method for bill red flushing before reimbursement as shown in FIG. 3 provided by the embodiment of the present invention. The process specifically includes the following steps 3.1-3.4.

步骤3.1、消费者在线下向开票企业发起红冲。Step 3.1. The consumer initiates a red charge to the billing company offline.

当消费者在线下向开票企业发起对第一票据的红冲后,开票企业就会知道需要对第一电子票据进行红冲,相当于步骤201中第二节点设备接收第三节点设备发送的电子票据处理请求。When the consumer initiates a red redemption of the first bill to the billing company offline, the billing company will know that it is necessary to redid the first electronic bill, which is equivalent to the second node device receiving the electronic bill sent by the third node device Ticket processing request.

步骤3.2、开票企业通过第二节点设备调用税务机关的第一密钥,发行第二电子票据到(税务机关+消费者)多重签名地址。Step 3.2. The invoicing enterprise invokes the first key of the tax authority through the second node device, and issues the second electronic bill to the (tax authority + consumer) multi-signature address.

其中,(税务机关+消费者)多重签名地址为第一地址。Among them, the (tax authority + consumer) multi-signature address is the first address.

步骤3.3、第二节点设备调用税务机关的第二密钥,将第一电子票据转移至(税务机关+消费者)多重签名地址,在第一电子票据上打上红冲状态。Step 3.3. The second node device invokes the second key of the tax authority, transfers the first electronic bill to the (tax authority + consumer) multi-signature address, and marks the first electronic bill with a red red status.

其中,第二节点设备在第一电子票据上打上红冲状态相当于在第一电子票据上标识第一标记。Wherein, the second node device marking the red mark on the first electronic note is equivalent to marking the first mark on the first electronic note.

步骤3.4、第二节点设备调用税务机关的第一密钥,并根据处理类型(修改第一电子票据内的信息,还是退货),重新发行新的第三电子票据到(税务机关+消费者)多重签名地址,以实现重新开票,第二节点设备在开票时,复用正常的开票接口,以执行步骤202-209。Step 3.4, the second node device calls the first key of the tax authority, and reissues a new third electronic note to (tax authority + consumer) according to the processing type (modify the information in the first electronic note, or return the goods) The multi-signature address is used to implement re-issuance, and the second node device reuses the normal invoice interface to perform steps 202-209 when invoicing.

需要说明的是,步骤3.2-3.4均是在区块链系统内执行的。It should be noted that steps 3.2-3.4 are all executed in the blockchain system.

为了再进一步说明本发明的红冲流程,参见本发明实施例提供的如图4所示的一种进行红冲的逻辑设计的示意图。In order to further illustrate the red punching process of the present invention, refer to a schematic diagram of a logic design for red punching as shown in FIG. 4 provided by the embodiment of the present invention.

从图4中可知,消费者线下和商家进行沟通,消费者表示需要对蓝字发票(蓝字发票相当于第一电子票据)进行红冲,商家在第二节点设备上打开小程序或者是PC(personalcomputer,个人计算机)管理端,运行小程序或者PC管理端,来判断对否是退货红冲(退货红冲相当于作废票据),如果是退货红冲,小程序或者PC管理端开一张红字发票(红字发票相当于第二电子票据)给消费者,红字发票上的金额为负,并备注原来的蓝字发票(原来的蓝字发票相当于第一电子票据)的号码,在原来的蓝字发票上标识红冲(标识红冲相当于标识第一标记),并在备注红添加新的红字发票的发票号码(发票号码相当于票据标识),消费者将货物退给商家,商家将钱退还给消费者。如果不是退货红冲,则是开票有误(开票有误相当于修改票据),表现为蓝字发票上的抬头、金额或者税率有误,运行小程序或者PC管理端,开一张红字发票给消费者,红字发票上的金额为负,并备注原来的蓝字发票的号码,在原来的蓝字发票上标识红冲,商家直接插入一张正确的蓝字发票(正确的蓝字发票相当于第三电子票据)到消费者账户,原来的错误的蓝字发票不再给消费者展示。It can be seen from Figure 4 that the consumer communicates with the merchant offline. The consumer expresses the need to redact the blue invoice (the blue invoice is equivalent to the first electronic invoice), and the merchant opens the applet on the second node device or PC (personal computer, personal computer) management terminal, run a small program or PC management terminal to judge whether it is a return red charge (return red charge is equivalent to a voided bill), if it is a return red charge, open a small program or PC management end A red-letter invoice (the red-letter invoice is equivalent to the second electronic bill) is given to the consumer. The amount on the red-letter invoice is negative, and the number of the original blue-letter invoice (the original blue-letter invoice is equivalent to the first electronic bill) is noted. Mark red red on the blue invoice (the red red mark is equivalent to the first mark), and add the invoice number of the new red invoice in the remark (the invoice number is equivalent to the bill mark), and the consumer returns the goods to the merchant, and the merchant Return the money to the consumer. If it is not a red red charge for return, it means that the billing is wrong (wrong billing is equivalent to modifying the bill), which is manifested as wrong title, amount or tax rate on the blue invoice. Run the applet or PC management terminal to issue a red invoice to Consumers, the amount on the red invoice is negative, and note the number of the original blue invoice, mark the red mark on the original blue invoice, and the merchant directly inserts a correct blue invoice (the correct blue invoice is equivalent to The third electronic note) to the consumer's account, the original wrong blue letter invoice will no longer be displayed to the consumer.

本发明实施例所提供的方法,通过电子票据处理请求中的处理类型、第一密钥和第二密钥,将生成的第二电子票据发送至第一地址内,转移第一电子票据至第一地址内,作废第一地址内的第一电子票据,并输出第二电子票据,所以处理电子票据的过程,无需消费者去税务机关开具相关证明,也无需消费者向商家提供税务机关开具的相关证明,减少了消费者的参与的流程,那么,对消费者而言,处理电子票据的流程较为简单,也即是开具红字发票的流程过简单,所以处理电子票据的过程可以由第二节点设备独立完成,无需消费者去税务机关开具相关证明,也无需消费者向商家提供税务机关开具的相关证明,减少了消费者的参与的流程,那么,对消费者而言,处理电子票据的流程较为简单,也即是开具红字发票的流程过简单。并且,监管节点设备可以不对该第一密钥获取请求和第二密钥获取请求中的节点标识进行验证,而直接向发送自己的第一密钥和第二密钥,从而提高第二节点设备获取该第一密钥和第二密钥的效率,并且,通过查询开票记录和消费记录,可以进一步验证该电子票据处理请求是否正确,避免处理错误的电子票据处理请求,进而降低第二节点设备处理电子票据处理请求的失误率。并且,通过在第一电子票据内添加该第二电子票据的票据标识,可以使得该第一电子票据与该第二电子票据相对应,以便日后查证。并且,该第二节点设备可以在该第二电子票据用于记录备注信息的字段中添加第一电子票据的票据标识,以实现在第二电子票据内添加第一电子票据的票据标识,进而可以建立第二电子票据与第一电子票据之间的对应关系,以便日后查证。In the method provided by the embodiment of the present invention, the generated second electronic note is sent to the first address through the processing type, the first key and the second key in the electronic note processing request, and the first electronic note is transferred to the second address. In the first address, the first electronic bill in the first address is invalidated, and the second electronic bill is output. Therefore, the process of processing electronic bills does not require consumers to go to the tax authority to issue relevant certificates, and does not require consumers to provide merchants with tax authorities. Relevant proofs reduce the process of consumer participation, so for consumers, the process of processing electronic bills is relatively simple, that is, the process of issuing red-letter invoices is too simple, so the process of processing electronic bills can be handled by the second node The equipment is completed independently, and consumers are not required to go to the tax authorities to issue relevant certificates, and consumers are not required to provide merchants with relevant certificates issued by the tax authorities, which reduces the process of consumer participation. For consumers, the process of processing electronic bills Relatively simple, that is to say, the process of issuing red-letter invoices is too simple. Moreover, the supervisory node device may not verify the node identification in the first key acquisition request and the second key acquisition request, but directly send its own first key and second key to the Obtain the efficiency of the first key and the second key, and by querying the billing records and consumption records, it is possible to further verify whether the electronic bill processing request is correct, avoid processing wrong electronic bill processing requests, and further reduce the cost of the second node device. Error rate in processing electronic bill processing requests. Moreover, by adding the note identifier of the second electronic note in the first electronic note, the first electronic note can be made to correspond to the second electronic note, so as to facilitate future verification. Moreover, the second node device may add the note identifier of the first electronic note in the field of the second electronic note for recording remark information, so as to add the note identification of the first electronic note in the second electronic note, and then can The corresponding relationship between the second electronic note and the first electronic note is established for future verification.

图2中所示的电子票据处理流程为报销前的电子票据处理流程,在一些实施例中,第二节点设备将第一电子票据在第三节点设备处报销后,第一电子票据需要作废或者修改,则第二节点设备还需要对该第一电子票据进行处理,为了进一步说明此种情况下第二节点设备处理第一电子票据的过程,参见图5,图5是本发明实施例提供的一种电子票据处理方法的流程图,该流程具体包括下述步骤。The electronic bill processing flow shown in Figure 2 is the electronic bill processing flow before reimbursement. In some embodiments, after the second node device reimburses the first electronic bill at the third node device, the first electronic bill needs to be invalidated or modification, the second node device also needs to process the first electronic note. In order to further illustrate the process of the second node device processing the first electronic note in this case, please refer to Figure 5, which is an example provided by the embodiment of the present invention A flow chart of a method for processing electronic bills, the process specifically includes the following steps.

501、第二节点设备接收电子票据处理请求,该电子票据处理请求携带第一电子票据的票据标识以及处理类型。501. The second node device receives an electronic receipt processing request, where the electronic receipt processing request carries the receipt identifier and processing type of the first electronic receipt.

需要说明的是,当第一电子票据已经被报销企业报销后,仅能通过商家的操作,才能触发第二节点设备接收电子票据处理请求,该电子票据处理请求中可以携带第三标记,该第三标记用于指示该第一电子票据已报销。It should be noted that when the first electronic bill has been reimbursed by the reimbursement company, only through the operation of the merchant can the second node device be triggered to receive the electronic bill processing request. The electronic bill processing request can carry the third mark, the first The three marks are used to indicate that the first electronic note has been reimbursed.

502、该第二节点设备根据该第一电子票据的票据标识,查询开票记录。502. The second node device queries the billing record according to the bill identifier of the first electronic bill.

本步骤502的过程与步骤202所示的过程同理,本发明实施例对本步骤502的过程不做赘述。The process of this step 502 is the same as the process shown in step 202, and the embodiment of the present invention does not repeat the process of this step 502.

503、当该处理类型为修改票据时,若该开票记录中存储有该第一电子票据对应的记录,该第二节点设备对交易记录中该第一电子票据对应的子记录的内容与第一电子票据的内容进行一一对比,当交易记录中该第一电子票据对应的子记录的内容与第一电子票据中对应的内容不相符时,该第二节点设备则获取该监管节点设备的密钥。503. When the processing type is to modify a note, if the record corresponding to the first electronic note is stored in the billing record, the second node device compares the content of the sub-record corresponding to the first electronic note in the transaction record with the first The content of the electronic note is compared one by one. When the content of the sub-record corresponding to the first electronic note in the transaction record does not match the corresponding content in the first electronic note, the second node device obtains the password of the supervisory node device. key.

该第二节点设备还可以直接将电子票据处理请求中的目标内容与交易记录中第一电子票据所对应的子记录中的目标内容进行对比,当电子票据处理请求中的目标内容与第一电子票据所对应的子记录中的目标内容不相符时,该第二节点设备获取监管节点设备的密钥。The second node device can also directly compare the target content in the electronic note processing request with the target content in the sub-record corresponding to the first electronic note in the transaction record. When the target content in the sub-record corresponding to the ticket does not match, the second node device obtains the key of the supervisory node device.

需要说明的是,当该处理类型为作废票据时,若该开票记录中存储有与该第一电子票据对应的记录,该第二节点设备则获取监管节点设备的密钥。It should be noted that, when the processing type is a voided note, if a record corresponding to the first electronic note is stored in the billing record, the second node device obtains the key of the supervisory node device.

步骤502-503所示的过程,为第二节点设备对电子票据处理请求进行进一步验证,并获取监管节点设备密钥过程,也即是,当该开票记录中存储有与该第一电子票据对应的记录或第一电子票据所对应的子记录中的任一内容与第一电子票据中对应的内容不相符时,电子票据处理请求通过验证,则第二节点设备获取监管节点设备的密钥,否则,该电子票据处理请求不通过验证,则第二节点设备不能获取监管节点设备的密钥。The process shown in steps 502-503 is a process for the second node device to further verify the electronic bill processing request and obtain the key of the supervisory node device, that is, when the billing record stores the information corresponding to the first electronic bill When any content in the record or the sub-record corresponding to the first electronic note does not match the corresponding content in the first electronic note, the electronic note processing request passes the verification, and the second node device obtains the key of the supervisory node device, Otherwise, the electronic bill processing request does not pass the verification, and the second node device cannot obtain the key of the supervisory node device.

通过步骤502和503可以进一步验证该电子票据处理请求是否正确,可以避免处理错误的电子票据处理请求,进而降低第二节点设备处理电子票据处理请求的失误率。Through steps 502 and 503, it can be further verified whether the electronic receipt processing request is correct, and processing of wrong electronic receipt processing request can be avoided, thereby reducing the error rate of the second node device in processing the electronic receipt processing request.

504、当该电子票据处理请求中携带第三标记时,该第二节点设备向第一节设备发送状态标记请求,该状态标记请求用于指示进行票据转移和标记,该第三标记用于指示该第一电子票据已报销。504. When the electronic bill processing request carries a third flag, the second node device sends a status flag request to the first node device, where the status flag request is used to indicate bill transfer and flagging, and the third flag is used to indicate The first electronic note has been reimbursed.

当该第二节点设备接收到该电子票据处理请求后,会对电子票据处理器请求的内容进行检测,当在该电子票据处理请求中检测到该第三标记时,该第二节点设备才会执行本步骤504。When the second node device receives the electronic bill processing request, it will detect the content requested by the electronic bill processor, and when the third mark is detected in the electronic bill processing request, the second node device will Execute this step 504 .

505、第一节点设备在接收到该状态标记请求后,基于该监管节点设备的密钥,将第二地址中已存储的该第一电子票据转移至该第一地址中,向未携带标记的该第一电子票据添加第二标记,第二标记用于指示该第一电子票据待作废。505. After receiving the status marking request, the first node device transfers the first electronic note stored in the second address to the first address based on the key of the supervisory node device, and transfers the first electronic note to the A second mark is added to the first electronic note, and the second mark is used to indicate that the first electronic note is to be voided.

该第三节点设备可以在该第一电子票据内的目标字段上添加第二标记,第二标记可以用与除第一标记外的任一字符串表示,本发明实施例对该第二标记的表示形式不做具体限定。The third node device can add a second mark on the target field in the first electronic note, and the second mark can be represented by any string other than the first mark. In the embodiment of the present invention, the second mark The expression form is not specifically limited.

第一节点设备在对第一电子票据进行转移之前,需要获取监管节点设备的第二密钥,才能具有将第一电子票据转移至第一地址的权限。Before transferring the first electronic note, the first node device needs to obtain the second key of the supervisory node device, so as to have the authority to transfer the first electronic note to the first address.

该第一节点设备可以通过向该监管节点设备发送第二密钥获取请求,来获取监管节点设备的第二密钥,在一种可能的实现方式中,该第一节点设备获取监管节点设备的第二密钥可以通过下述步骤505A-505D所示的过程来实现。The first node device may obtain the second key of the supervision node device by sending a second key acquisition request to the supervision node device. In a possible implementation, the first node device obtains the second key of the supervision node device. The second key can be implemented through the process shown in steps 505A-505D described below.

步骤505A、第一节点设备向该监管节点设备发送第二密钥获取请求,该第二密钥获取请求用于获取该监管节点设备的第二密钥。Step 505A, the first node device sends a second key acquisition request to the supervisory node device, and the second key acquisition request is used to acquire the second key of the supervisory node device.

第一节点设备的节点标识用于指示第一节点设备,第一节点设备的节点标识可以是第一节点设备的公钥或者地址,以便监管节点设备可以对该第二密钥获取请求进行验证。The node identifier of the first node device is used to indicate the first node device, and the node identifier of the first node device may be the public key or address of the first node device, so that the supervisory node device can verify the second key acquisition request.

步骤505B、该监管节点设备在接收到该第二密钥获取请求后,对该第二密钥获取请求中的节点标识进行验证。Step 505B, after receiving the second key acquisition request, the supervisory node device verifies the node identifier in the second key acquisition request.

在该区块链系统初始化时,该监管节点设备中会存储有各个第一节点设备的节点标识,以便该监管节点设备对获取的第二密钥获取请求进行验证。该监管节点设备可以通过查询该监管节点设备所存储的所有第一节点设备的节点标识,来对第二密钥获取请求中的节点标识进行验证。在一种可能的实现方式中,当该监管节点设备在存储的所有节点标识中查询到该第二获取请求中的节点标识,则该节点标识通过验证,否则,该节点标识不通过验证,其中,监管节点设备的备注信息还用于存储各个第一节点设备的节点标识。那么,当该第二密钥获取请求中的节点标识通过验证时,也即是,该第二密钥获取请求通过验证。When the blockchain system is initialized, the supervisory node device will store the node identifiers of each first node device, so that the supervisory node device can verify the obtained second key acquisition request. The supervisory node device may verify the node identifier in the second key acquisition request by querying the node identifiers of all first node devices stored in the supervisory node device. In a possible implementation, when the supervisory node device finds the node ID in the second acquisition request from all stored node IDs, the node ID passes the verification; otherwise, the node ID fails the verification, wherein , the remark information of the supervisory node device is also used to store the node identifier of each first node device. Then, when the node identifier in the second key acquisition request passes the verification, that is, the second key acquisition request passes the verification.

步骤505C、当该第二密钥获取请求中的节点标识通过验证时,该监管节点设备向该第一节点设备发送该监管节点设备的第二密钥。Step 505C, when the node identification in the second key acquisition request passes the verification, the supervisory node device sends the second key of the supervisory node device to the first node device.

步骤505D、该第一节点设备接收该监管节点设备发送的该监管节点设备的第二密钥。Step 505D, the first node device receives the second key of the supervision node device sent by the supervision node device.

需要说明的是,此处的第二地址是区块链系统上用于存储报销后的电子票据的虚拟地址,该虚拟地址可以与多个报销企业的账号相关联,每个报销企业的账号可以与该虚拟地址的多个电子票据相关联,以表示一个报销企业已经报销了与该报销企业的账号相关联的多个电子票据。此处的第二地址是还可以是第一节点设备的地址。It should be noted that the second address here is a virtual address on the blockchain system used to store reimbursed electronic bills. This virtual address can be associated with multiple reimbursement company accounts, and each reimbursement company account can be The plurality of electronic bills associated with the virtual address indicates that a reimbursement company has reimbursed multiple electronic bills associated with the account number of the reimbursement company. The second address here may also be the address of the first node device.

总之,第二地址为区块链系统上用于存储电子票据的虚拟地址,当第二地址内的电子票据未被报销时,该第二地址与消费者账户相关联,当第二地址内的电子票据已报销时,该第二地址与报销企业的账户相关联。In short, the second address is a virtual address on the blockchain system for storing electronic bills. When the electronic bills in the second address have not been reimbursed, the second address is associated with the consumer account. When the electronic bills in the second address When the electronic bill has been reimbursed, the second address is associated with the account of the reimbursement company.

506、当第一节点设备向该第一电子票据添加第二标记后,向该第二节点设备发送标识成功响应,该标记成功响应用于表示该第一地址内的该第一电子票据已添加第二标记。506. After the first node device adds a second mark to the first electronic note, send an identification success response to the second node device, and the mark success response is used to indicate that the first electronic note in the first address has been added Second mark.

507、该第二节点设备接收标识成功响应。507. The second node device receives an identification success response.

需要说明的是,只有当第二节点设备接收到该标识成功响应后,该第二节点设备才能执行以下步骤。It should be noted that only after the second node device receives the identification success response, the second node device can perform the following steps.

需要说明的是,步骤504-507所示的过程可以先被执行,然后步骤502-503所示的过程才被执行,本发明实施例对步骤504-507所示的过程与步骤502-503所示的过程被执行的顺序不做具体限定。It should be noted that the processes shown in steps 504-507 may be executed first, and then the processes shown in steps 502-503 are executed. The order in which the shown processes are executed is not specifically limited.

508、该第二节点设备基于该票据标识所指示的第一电子票据和该处理类型,在区块链系统中生成第二电子票据。508. The second node device generates a second electronic note in the blockchain system based on the first electronic note indicated by the note identifier and the processing type.

本步骤508的过程与步骤204所示的过程同理,本发明实施例对本步骤508的过程不做赘述。The process of this step 508 is the same as the process shown in step 204, and the embodiment of the present invention does not repeat the process of this step 508.

509、该第二节点设备基于该区块链系统中监管节点设备的密钥,将该第二电子票据发送至该区块链系统中的第一地址中,该第一地址为基于该监管节点设备和该电子票据处理请求的票据对象进行多重签名的地址。509. The second node device sends the second electronic note to the first address in the blockchain system based on the key of the supervisory node device in the blockchain system, and the first address is based on the key of the supervisory node The address of multi-signature between the device and the ticket object of the electronic ticket processing request.

本步骤509的过程与步骤205所示的过程同理,本发明实施例对本步骤509的过程不做赘述。The process of this step 509 is the same as the process shown in step 205, and the embodiment of the present invention does not repeat the process of this step 509.

510、该第二节点设备基于该区块链系统中监管节点设备的密钥,将该第一地址中所存储的该第一电子票据的第二标记替换为第一标记,在该第一地址中所存储的该第一电子票据中添加该第二电子票据的票据标识,该第一标记用于指示该第一电子票据作废。510. The second node device replaces the second mark of the first electronic note stored in the first address with the first mark based on the key of the supervisory node device in the blockchain system, and at the first address The note identification of the second electronic note is added to the first electronic note stored in , and the first mark is used to indicate that the first electronic note is invalid.

由于第一节点设备已经将第一电子票据转移至第一地址内,所以第二节点设备无需再次对第一电子票据进行转移,只需将第一地址内存储的第一电子票据标识的第二标记替换为第一标记即可,以表示第一电子票据作废。Since the first node device has already transferred the first electronic note to the first address, the second node device does not need to transfer the first electronic note again, but only needs to transfer the first electronic note stored in the first address to the second It is only necessary to replace the mark with the first mark to indicate that the first electronic note is invalid.

在一种可能的实施方式中,该第一节点设备将该第一地址中所存储的该第一电子票据的目标字段中的第二标识替换为第一标识。In a possible implementation manner, the first node device replaces the second identifier in the target field of the first electronic note stored in the first address with the first identifier.

需要说明的是,该第二节点设备基于该区块链系统中监管节点设备的密钥,将该第一地址中所存储的该第一电子票据的第二标记替换为第一标记所示的过程,也即是,第二节点设备向该第一地址中所存储的该第一电子票据添加第一标记的过程。It should be noted that, based on the key of the supervisory node device in the blockchain system, the second node device replaces the second mark of the first electronic note stored in the first address with the one indicated by the first mark. process, that is, a process in which the second node device adds a first mark to the first electronic note stored in the first address.

511、当该处理类型为修改票据时,该第二节点设备根据该电子票据处理请求所携带的修改目标内容,生成第三电子票据。511. When the processing type is ticket modification, the second node device generates a third electronic ticket according to the modification target content carried in the electronic ticket processing request.

本步骤511的过程与步骤207所示的过程同理,本发明实施例对本步骤511的过程不做赘述。The process of this step 511 is the same as the process shown in step 207, and the embodiment of the present invention does not repeat the process of this step 511.

512、该第二节点设备基于该区块链系统中监管节点设备的密钥,将该第三电子票据发送至该第一地址内。512. The second node device sends the third electronic note to the first address based on the key of the supervision node device in the blockchain system.

本步骤512的过程与步骤208所示的过程同理,本发明实施例对本步骤512的过程不做赘述。The process of this step 512 is the same as the process shown in step 208, and the embodiment of the present invention does not repeat the process of this step 512.

513、该第二节点设备将该第一电子票据的票据标识添加至该第一地址中所存储的该第二电子票据内,输出携带该第一电子票据的票据标识的该第二电子票据以及该第三电子票据。513. The second node device adds the note identification of the first electronic note to the second electronic note stored in the first address, and outputs the second electronic note carrying the note identification of the first electronic note and The third electronic note.

该第一节点设备可以通过将该出该第二电子票据以及该第三电子票据发送至存储该第一电子票据的第二地址内,以实现输出该第二电子票据以及该第三电子票据。The first node device can output the second electronic note and the third electronic note by sending the output of the second electronic note and the third electronic note to the second address storing the first electronic note.

当该第二地址为虚拟地址时,该第二节点设备将该第二电子票据以及该第三电子票据直接发送至于存储第一电子票据的位置;当该第二地址为第一节点设备的地址时,该第二节点设备向该第一节点设备发送该第二电子票据以及该第三电子票据。When the second address is a virtual address, the second node device directly sends the second electronic note and the third electronic note to the location where the first electronic note is stored; when the second address is the address of the first node device , the second node device sends the second electronic note and the third electronic note to the first node device.

当该第二地址具有访问权限时,该第二节点设备只有获取到访问权限才能向将出该第二电子票据以及该第三电子票据发送至该第二地址内,例如,第二地址被报销企业设置了访问权限,第二节点设备向该第二地址发送票据发放请求,该票据发放请求中携带该第二电子票据以及该第三电子票据,当报销企业通过第一节点设备,拒绝接收该票据发放请求时,则该第二节点设备不能将该第二电子票据以及该第三电子票据发送至第二地址内,当报销企业通过第一节点设备,接收该票据发放请求时,则该第二节点设备可以将该第二电子票据以及该第三电子票据发送至第二地址内。When the second address has access authority, the second node device can send the second electronic note and the third electronic note to the second address only after obtaining the access authority, for example, the second address is reimbursed The enterprise has set up the access authority, and the second node device sends a bill issuance request to the second address, and the bill issuance request carries the second electronic bill and the third electronic bill. When the reimbursement enterprise passes through the first node device, it refuses to accept the When issuing a ticket request, the second node device cannot send the second electronic note and the third electronic note to the second address. When the reimbursement company receives the note issuance request through the first node device, the second The two-node device may send the second electronic note and the third electronic note to the second address.

需要说明的是,该处理类型为作废票据时,则该第二节点设备不会生成该第三电子票据,也就不会输出该第三电子票据。It should be noted that, when the processing type is a voided note, the second node device will not generate the third electronic note, and will not output the third electronic note.

第一电子被作废,第二节点设备生成了一个第二电子票据用于冲销该第一电子票据,并生成第三电子票据,使得第二电子票据和第三电子票据可以替代第一电子票据,从而实现了票据红冲。为了一进步表明报销后票据红冲的过程,参见本发明实施例提供的如图6所示的报销后的票据红冲方法的流程图,该流程具体包括下述步骤6.1-6.7。The first electronic note is invalidated, the second node device generates a second electronic note for reversing the first electronic note, and generates a third electronic note, so that the second electronic note and the third electronic note can replace the first electronic note, Thereby realizing the bill red rush. In order to further show the process of bill red flushing after reimbursement, refer to the flow chart of the bill red flushing method after reimbursement as shown in FIG. 6 provided by the embodiment of the present invention. The process specifically includes the following steps 6.1-6.7.

步骤6.1、开票企业通过第二电子设备向报销企业的第一电子设备发起红冲。Step 6.1. The invoicing company sends a red charge to the first electronic device of the reimbursement company through the second electronic device.

本步骤6.1相当于上述步骤第二节点设备向第一节点设备发送状态标记请求。This step 6.1 is equivalent to the above step that the second node device sends a status marking request to the first node device.

步骤6.2、第一节点设备调用税务机关的第二密钥,将第一电子票据转移至(税务机关+报销企业)多签名地址,更改第一电子票据状态为待红冲状态。Step 6.2. The first node device invokes the second key of the tax authority, transfers the first electronic note to the (tax authority + reimbursement company) multi-signature address, and changes the status of the first electronic note to the waiting state.

其中,第一节点设备更改第一电子票据状态为待红冲状态相当于上述步骤504将该第一地址中所存储的该第一电子票据标识为第二标记,待红冲状态也即是第二标记,税务机关+报销企业)多签名地址相当于第一地址。Wherein, the first node device changes the state of the first electronic note to the state of waiting for red charging, which is equivalent to the above-mentioned step 504 identifying the first electronic note stored in the first address as the second mark, and the waiting state of red charging is also the first Two marks, tax authority + reimbursement enterprise) multi-signature address is equivalent to the first address.

步骤6.3、第一节点设备向第二节点设备向开票企业反馈已经将第一电子票据的状态更改为待红冲状态。Step 6.3: The first node device feeds back to the second node device that the billing company has changed the status of the first electronic bill to the status of waiting for redemption.

本步骤6.3所示的过程相当于第一节点设备向第二节点设备发送状态标识成功响应。The process shown in step 6.3 is equivalent to the first node device sending a status identification success response to the second node device.

步骤6.4、第二节点设备调用税务机关的第一密钥,发行第二电子票据到(税务机关+报销企业)多重签名地址。Step 6.4, the second node device invokes the first key of the tax authority, and issues the second electronic bill to the (tax authority + reimbursement enterprise) multi-signature address.

步骤6.5、第二节点设备调用税务机关的第二密钥,将第一电子票据转移至(税务机关+消费者)多重签名地址,在第一电子票据上打上红冲状态。Step 6.5. The second node device invokes the second key of the tax authority, transfers the first electronic bill to the (tax authority + consumer) multi-signature address, and marks the first electronic bill with a red red status.

步骤6.6、第二节点设备调用税务机关的第一密钥,并根据处理类型(修改第一电子票据内的信息,还是退货),重新发行新的第三电子票据到(税务机关+消费者)多重签名地址,以实现重新开票,第二节点设备在开票时,复用正常的开票接口,以执行上述步骤502-513。Step 6.6, the second node device invokes the first key of the tax authority, and reissues a new third electronic note to (tax authority + consumer) according to the processing type (modify the information in the first electronic note, or return the goods) Multiple signature addresses are used to implement re-issuance, and the second node device reuses the normal invoice interface to perform the above steps 502-513 when invoicing.

需要说明的是,步骤61-6.6均是在区块链系统内执行的。It should be noted that steps 61-6.6 are all executed in the blockchain system.

本发明实施例所提供的方法,通过将生成的第二电子票据发送至第一地址内,转移第一电子票据至第一地址内,作废第一地址内的第一电子票据,并输出第二电子票据,所以处理电子票据的过程,无需消费者线下与各个机构进行交互,而是直接利用线上过程进行电子票据的重新生成过程,减少了消费者的参与的流程,也即是,简化了开具电子票据的流程,所以处理电子票据的过程,无需消费者去税务机关开具相关证明,也无需消费者向商家提供税务机关开具的相关证明,减少了消费者的参与的流程,那么,对消费者而言,处理电子票据的流程较为简单,也即是开具红字发票的流程过简单。并且,监管节点设备可以不对该第一密钥获取请求和第二密钥获取请求中的节点标识进行验证,而直接向发送自己的第一密钥和第二密钥,从而提高了第二节点设备获取该第一密钥和第二密钥的效率,并且,通过查询开票记录和消费记录,可以进一步验证该电子票据处理请求是否正确,避免处理错误的电子票据处理请求,进而降低了第二节点设备处理电子票据处理请求的失误率。并且,通过在第一电子票据内添加该第二电子票据的票据标识,可以使得该第一电子票据与该第二电子票据相对应,以便日后查证。并且,该第二节点设备可以在该第二电子票据用于记录备注信息的字段中添加第一电子票据的票据标识,以实现在第二电子票据内添加第一电子票据的票据标识,进而可以建立第二电子票据与第一电子票据之间的对应关系,以便日后查证。In the method provided by the embodiment of the present invention, by sending the generated second electronic note to the first address, transferring the first electronic note to the first address, invalidating the first electronic note at the first address, and outputting the second Electronic bills, so the process of processing electronic bills does not require consumers to interact with various institutions offline, but directly uses the online process to regenerate electronic bills, which reduces the process of consumer participation, that is, simplifies The process of issuing electronic bills is simplified, so the process of processing electronic bills does not require consumers to go to the tax authorities to issue relevant certificates, nor does it need consumers to provide relevant certificates issued by tax authorities to merchants, which reduces the process of consumer participation. For consumers, the process of handling electronic bills is relatively simple, that is, the process of issuing red-letter invoices is too simple. Moreover, the supervisory node device may not verify the node identification in the first key acquisition request and the second key acquisition request, but directly sends its own first key and second key to the The device obtains the efficiency of the first key and the second key, and by querying the billing records and consumption records, it can further verify whether the electronic bill processing request is correct, avoid processing wrong electronic bill processing requests, and thus reduce the second The error rate of the node device processing the electronic bill processing request. Moreover, by adding the note identifier of the second electronic note in the first electronic note, the first electronic note can be made to correspond to the second electronic note, so as to facilitate future verification. Moreover, the second node device may add the note identifier of the first electronic note in the field of the second electronic note for recording remark information, so as to add the note identification of the first electronic note in the second electronic note, and then can The corresponding relationship between the second electronic note and the first electronic note is established for future verification.

上述所有可选技术方案,可以采用任意结合形成本公开的可选实施例,在此不再一一赘述。All the above optional technical solutions may be combined in any way to form optional embodiments of the present disclosure, which will not be repeated here.

图7是本发明实施例提供的电子票据处理装置的结构示意图,所述装置包括:Fig. 7 is a schematic structural diagram of an electronic bill processing device provided by an embodiment of the present invention, and the device includes:

接收模块701,用于接收电子票据处理请求,所述电子票据处理请求携带第一电子票据的票据标识以及处理类型;The receiving module 701 is configured to receive an electronic bill processing request, the electronic bill processing request carrying the bill identifier and processing type of the first electronic bill;

生成模块702,用于基于所述票据标识所指示的第一电子票据和所述处理类型,在区块链系统中生成第二电子票据;A generating module 702, configured to generate a second electronic note in the blockchain system based on the first electronic note indicated by the note identifier and the processing type;

发送模块703,用于将所述第二电子票据发送至所述区块链系统中的第一地址中,所述第一地址为基于所述监管节点设备和所述电子票据处理请求的票据对象进行多重签名的地址;A sending module 703, configured to send the second electronic bill to a first address in the blockchain system, where the first address is a bill object based on the supervisory node device and the electronic bill processing request Address for multi-signature;

转移模块704,用向所述第一地址中所存储的所述第一电子票据添加第一标记,在所述第一地址中所存储的所述第一电子票据中添加所述第二电子票据的票据标识,所述第一标记用于指示所述第一电子票据作废;The transfer module 704 is configured to add a first mark to the first electronic note stored in the first address, and add the second electronic note to the first electronic note stored in the first address the note identifier, the first mark is used to indicate that the first electronic note is invalid;

输出模块705,用于将所述第一电子票据的票据标识添加至所述第一电子票据中,输出携带所述第一电子票据的票据标识的所述第一电子票据。The output module 705 is configured to add the note identification of the first electronic note to the first electronic note, and output the first electronic note carrying the note identification of the first electronic note.

可选地,所述转移模块704用于:Optionally, the transfer module 704 is configured to:

基于所述区块链系统中监管节点设备的密钥,将第二地址中已存储的所述第一电子票据转移至所述第一地址中,向未携带标记的所述第一电子票据添加所述第一标记;或,Based on the key of the supervisory node device in the blockchain system, the first electronic note stored in the second address is transferred to the first address, and the first electronic note that does not carry a mark is added said first marker; or,

基于所述区块链系统中监管节点设备的密钥,将所述第一地址中所存储的第一电子票据的第二标记替换为所述第一标记,所述第二标记用于指示所述第一电子票据待作废。Based on the key of the supervisory node device in the blockchain system, the second mark of the first electronic note stored in the first address is replaced with the first mark, and the second mark is used to indicate the The above-mentioned first electronic note is to be invalidated.

可选地,所述发送模块,还用于当所述电子票据处理请求中携带第三标记时,发送状态标记请求,所述状态标记请求用于指示进行票据转移和标记,所述第三标记用于指示所述第一电子票据已报销;Optionally, the sending module is further configured to send a status mark request when the electronic bill processing request carries a third mark, the state mark request is used to indicate bill transfer and mark, and the third mark used to indicate that the first electronic note has been reimbursed;

所述接收模块,还用于接收标记成功响应,所述标记成功响应用于表示所述第一地址内的所述第一电子票据已添加第二标记。The receiving module is further configured to receive a mark success response, where the mark success response is used to indicate that a second mark has been added to the first electronic note in the first address.

可选地,所述发送模块,还用于向所述监管节点设备发送第一密钥获取请求,所述第一密钥获取请求用于获取所述监管节点设备的第一密钥,所述第一密钥用于提供票据发送权限;Optionally, the sending module is further configured to send a first key acquisition request to the supervisory node device, where the first key acquisition request is used to acquire a first key of the supervisory node device, the The first key is used to provide ticket sending authority;

所述接收模块,还用于接收所述监管节点设备发送的所述监管节点设备的第一密钥;The receiving module is further configured to receive the first key of the supervisory node device sent by the supervisory node device;

所述发送模块,还用于向所述监管节点设备发送第二密钥获取请求,所述第二密钥获取请求用于获取所述监管节点设备的第二密钥,所述第二密钥用于提供票据转移权限;The sending module is further configured to send a second key acquisition request to the supervisory node device, where the second key acquisition request is used to acquire a second key of the supervisory node device, and the second key Used to provide bill transfer authority;

所述接收模块,还用于接收所述监管节点设备发送的所述监管节点设备的第二密钥。The receiving module is further configured to receive the second key of the supervisory node device sent by the supervisory node device.

可选地,所述装置还包括:Optionally, the device also includes:

查询模块,用于根据所述第一电子票据的票据标识,查询开票记录;A query module, configured to query the billing record according to the bill identifier of the first electronic bill;

验证模块,用于当所述处理类型为作废票据时,若所述开票记录中存储有所述第一电子票据对应的记录,则执行将所述第二电子票据发送至所述区块链系统中的第一地址中的步骤;A verification module, configured to send the second electronic note to the blockchain system if the record corresponding to the first electronic note is stored in the billing record when the processing type is a void note Steps in the first address in;

所述验证模块,还当所述处理类型为修改票据时,若所述开票记录中存储有所述第一电子票据对应的记录,对交易记录中所述第一电子票据对应的子记录的内容与第一电子票据的内容进行一一对比,当所述子记录中的任一内容与第一电子票据中对应的内容不相符时,则执行将所述第二电子票据发送至所述区块链系统中的第一地址中的步骤。The verification module further checks the content of the sub-record corresponding to the first electronic note in the transaction record when the processing type is to modify the note, if the record corresponding to the first electronic note is stored in the billing record Compare the content of the first electronic note one by one, and when any content in the sub-record does not match the corresponding content in the first electronic note, then execute sending the second electronic note to the block Step in the first address in the chain system.

可选地,所述装置生成模块,还用于当所述处理类型为修改票据时,根据所述电子票据处理请求所携带的修改内容,生成第三电子票据;Optionally, the device generation module is further configured to generate a third electronic note according to the modification content carried in the electronic note processing request when the processing type is ticket modification;

所述发送模块,还用于基于所述区块链系统中监管节点设备的密钥,将所述第三电子票据发送至所述第一地址内;The sending module is further configured to send the third electronic bill to the first address based on the key of the supervisory node device in the blockchain system;

所述输出模块,还用于输出所述第三电子票据。The output module is further configured to output the third electronic note.

可选地,所述第一输出模块705,用于将所述携带所述第一电子票据的票据标识的所述第二电子票据发送至存储所述第一电子票据的第二地址内。Optionally, the first output module 705 is configured to send the second electronic note carrying the note identification of the first electronic note to the second address where the first electronic note is stored.

图8是本发明实施例提供的电子票据处理装置的结构示意图,所述装置包括:Fig. 8 is a schematic structural diagram of an electronic bill processing device provided by an embodiment of the present invention, and the device includes:

接收模块801,用于接收状态标记请求,所述状态标记请求用于指示进行票据转移和标记;A receiving module 801, configured to receive a status marking request, where the status marking request is used to indicate bill transfer and marking;

转移模块802,用于将第二地址中已存储的所述第一电子票据转移至区块链系统中的第一地址中,向未携带标记的所述第一电子票据添加所述第二标记,所述第二标记用于指示所述第一电子票据待作废;A transfer module 802, configured to transfer the first electronic note stored in the second address to the first address in the blockchain system, and add the second mark to the first electronic note that does not carry a mark , the second mark is used to indicate that the first electronic note is to be voided;

发送模块803,用于发送标识成功响应,所述标记成功响应用于表示所述第一地址内的所述第一电子票据已添加第二标记。The sending module 803 is configured to send an identification success response, where the marking success response is used to indicate that a second marking has been added to the first electronic note in the first address.

可选地,所述装置还包括:Optionally, the device also includes:

所述发送模块,还用于向所述监管节点设备发送第二密钥获取请求,所述第二密钥获取请求用于获取所述监管节点设备的第二密钥;The sending module is further configured to send a second key acquisition request to the supervisory node device, where the second key acquisition request is used to acquire a second key of the supervisory node device;

所述接收模块,还用于接收所述监管节点设备发送的所述监管节点设备的第二密钥。The receiving module is further configured to receive the second key of the supervisory node device sent by the supervisory node device.

需要说明的是:上述实施例提供的电子票据处理装置在处理电子票据时,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将装置的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。另外,上述实施例提供的电子票据处理装置与电子票据处理方法实施例属于同一构思,其具体实现过程详见方法实施例,这里不再赘述。It should be noted that when the electronic bill processing device provided in the above embodiment processes electronic bills, it only uses the division of the above-mentioned functional modules as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional modules according to needs. , that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the electronic bill processing device provided in the above embodiment and the electronic bill processing method embodiment belong to the same idea, and its specific implementation process is detailed in the method embodiment, and will not be repeated here.

图9是本发明实施例提供的一种节点设备的结构示意图,该节点设备900可因配置或性能不同而产生比较大的差异,可以包括一个或一个以上处理器(central processingunits,CPU)901和一个或一个以上的存储器902,其中,所述存储器902中存储有至少一条指令,所述至少一条指令由所述处理器1001加载并执行以实现上述各个方法实施例提供的方法。当然,该节点设备还可以具有有线或无线网络接口、键盘以及输入输出接口等部件,以便进行输入输出,该节点设备还可以包括其他用于实现设备功能的部件,在此不做赘述。FIG. 9 is a schematic structural diagram of a node device provided by an embodiment of the present invention. The node device 900 may have relatively large differences due to different configurations or performances, and may include one or more central processing units (CPU) 901 and One or more memories 902, wherein at least one instruction is stored in the memory 902, and the at least one instruction is loaded and executed by the processor 1001 to implement the methods provided by the above method embodiments. Certainly, the node device may also have components such as a wired or wireless network interface, a keyboard, and an input/output interface for input and output, and the node device may also include other components for implementing device functions, which will not be described here.

在示例性实施例中,还提供了一种计算机存储介质,例如包括指令的存储器,上述指令可由终端中的处理器执行以完成下述实施例中电子票据处理方法。例如,所述计算机存储介质可以是ROM(read-only memory,只读存储器)、RAM(random access memory,随机存取存储器)、CD-ROM(compact disc read-only memory,只读光盘)、磁带、软盘和光数据存储设备等。In an exemplary embodiment, there is also provided a computer storage medium, such as a memory including instructions, the above instructions can be executed by a processor in the terminal to complete the electronic bill processing method in the following embodiments. For example, the computer storage medium can be ROM (read-only memory, read-only memory), RAM (random access memory, random access memory), CD-ROM (compact disc read-only memory, read-only disc), magnetic tape , floppy disks and optical data storage devices, etc.

本领域普通技术人员可以理解实现上述实施例的全部或部分步骤可以通过硬件来完成,也可以通过程序来指令相关的硬件完成,所述的程序可以存储于一种计算机可读存储介质中,上述提到的存储介质可以是只读存储器,磁盘或光盘等。Those of ordinary skill in the art can understand that all or part of the steps for implementing the above embodiments can be completed by hardware, and can also be completed by instructing related hardware through a program. The program can be stored in a computer-readable storage medium. The above-mentioned The storage medium mentioned may be a read-only memory, a magnetic disk or an optical disk, and the like.

以上所述仅为本发明的较佳实施例,并不用以限制本发明,凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The above descriptions are only preferred embodiments of the present invention, and are not intended to limit the present invention. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present invention shall be included in the protection of the present invention. within range.

Claims (15)

1. a kind of electronic note processing method, which is characterized in that the described method includes:
Electronic bill processing request is received, the electronic bill processing request carries coupon identification and the place of the first electronic bill Manage type;
Based on the first electronic bill indicated by the coupon identification and the processing type, second is generated in block catenary system Electronic bill;
Second electronic bill is sent in the first address in the block catenary system, first address is based on institute State the address of the ticket object progress multi-signature of supervisory node equipment and electronic bill processing request;
The first label of first electronic bill addition stored into first address, is deposited in first address The coupon identification of second electronic bill is added in first electronic bill of storage, first label is used to indicate described First electronic bill cancels;
The coupon identification of first electronic bill is added in first address to second electronic bill stored Interior, output carries second electronic bill of the coupon identification of first electronic bill.
2. the method according to claim 1, wherein described first stored into first address Electronic bill addition first, which marks, includes:
Based on the key of supervisory node equipment in the block catenary system, by first electronic ticket stored in the second address According to being transferred in first address, first label is added to first electronic bill for not carrying label;Or,
Based on the key of supervisory node equipment in the block catenary system, the first electronic ticket that will be stored in first address According to the second label replace with first label, second label is used to indicate first electronic bill and waits cancelling.
3. according to the method described in claim 2, it is characterized in that, the method also includes:
When carrying third label in electronic bill processing request, status indication request, the status indication request are sent It is used to indicate and carries out bill transfer and label, the third label is used to indicate first electronic bill and has submitted an expense account;
Label success response is received, the label success response is used to indicate first electronic bill in first address The second label is added.
4. according to the method described in claim 2, it is characterized in that, the method also includes:
First key acquisition request is sent to the supervisory node equipment, the first key acquisition request is for obtaining the prison The first key of tube coupling point device, the first key is for providing bill sending permission;
Receive the first key for the supervisory node equipment that the supervisory node equipment is sent;
The second cipher key acquisition request is sent to the supervisory node equipment, second cipher key acquisition request is for obtaining the prison Second key of tube coupling point device, second key is for providing bill transfer permission;
Receive the second key of the supervisory node equipment that the supervisory node equipment is sent.
5. the method according to claim 1, wherein the method also includes:
According to the coupon identification of first electronic bill, record of making out an invoice is inquired;
When the processing type is to cancel bill, if being stored with the corresponding note of first electronic bill in the record of making out an invoice Record then executes the step being sent to second electronic bill in the first address in the block catenary system;
When the processing type is modification bill, if being stored with the corresponding note of first electronic bill in the record of making out an invoice The content of record, content and the first electronic bill to the corresponding subrecord of the first electronic bill described in transaction record carries out one by one Comparison, when any content in the subrecord is not consistent with corresponding content in the first electronic bill, then executing will be described Second electronic bill is sent to the step in the first address in the block catenary system.
6. the method according to claim 1, wherein the method also includes:
When the processing type is modification bill, the entrained modification content of request is handled according to the electronic bill, is generated Third electronic bill;
Based on the key of supervisory node equipment in the block catenary system, the third electronic bill is sent to first ground In location;
Export the third electronic bill.
7. the method according to claim 1, wherein the output carries the bill mark of first electronic bill Know second electronic bill include:
Second electronic bill of the coupon identification for carrying first electronic bill is sent to storage described first In second address of electronic bill.
8. a kind of electronic note processing method, which is characterized in that the described method includes:
Reception state label request, the status indication request, which is used to indicate, carries out bill transfer and label;
First electronic bill stored in second address is transferred in the first address in block catenary system, to not taking The second label of first electronic bill addition of tape label, second label are used to indicate first electronic bill and wait making It is useless;
Mark success response is sent, the label success response is used to indicate first electronic bill in first address The second label is added.
9. according to the method described in claim 8, it is characterized in that, the method also includes:
The second cipher key acquisition request is sent to the supervisory node equipment, second cipher key acquisition request is for obtaining the prison Second key of tube coupling point device;
Receive the second key of the supervisory node equipment that the supervisory node equipment is sent.
10. a kind of electronic bill processing device, which is characterized in that described device includes:
Receiving module, for receiving electronic bill processing request, the electronic bill processing request carries the first electronic bill Coupon identification and processing type;
Generation module, for based on the first electronic bill indicated by the coupon identification and the processing type, in block chain The second electronic bill is generated in system;
Sending module, for second electronic bill to be sent in the first address in the block catenary system, described One address is the ground that the ticket object based on the supervisory node equipment and electronic bill processing request carries out multi-signature Location;
Shift module, with the first label of first electronic bill addition stored into first address, described the The coupon identification of second electronic bill, first label are added in first electronic bill stored in one address First electronic bill is used to indicate to cancel;
Output module, for the coupon identification of first electronic bill to be added in first electronic bill, output is taken First electronic bill of coupon identification with first electronic bill.
11. device according to claim 10, which is characterized in that the shift module is used for:
Based on the key of supervisory node equipment in the block catenary system, by first electronic ticket stored in the second address According to being transferred in first address, first label is added to first electronic bill for not carrying label;Or,
Based on the key of supervisory node equipment in the block catenary system, the first electronic ticket that will be stored in first address According to the second label replace with first label, second label is used to indicate first electronic bill and waits cancelling.
12. device according to claim 11, which is characterized in that described device further include:
Sending module, it is described for sending status indication request when carrying third label in electronic bill processing request Status indication request, which is used to indicate, carries out bill transfer and label, and the third label has been used to indicate first electronic bill Reimbursement;
Receiving module, for receiving label success response, the label success response is used to indicate the institute in first address It states the first electronic bill and has added the second label.
13. a kind of electronic bill processing device, which is characterized in that described device includes:
Receiving module, for reception state label request, the status indication request, which is used to indicate, carries out bill transfer and label;
Shift module, first for being transferred to first electronic bill stored in the second address in block catenary system In address, the second label is added to first electronic bill for not carrying label, second label is used to indicate described the One electronic bill waits cancelling;
Sending module, for sending mark success response, the label success response is used to indicate the institute in first address It states the first electronic bill and has added the second label.
14. a kind of computer equipment, which is characterized in that the computer equipment includes one or more processors and one or more A memory is stored at least one instruction in one or more of memories, and described instruction is by one or more of Reason device is loaded and is executed to realize as performed by claim 1 to the described in any item electronic note processing methods of claim 9 Operation.
15. a kind of computer storage medium, which is characterized in that be stored at least one instruction, the finger in the storage medium Order is loaded by processor and is executed to realize such as claim 1 to the described in any item electronic note processing methods of claim 9 Performed operation.
CN201910368302.7A 2019-05-05 2019-05-05 Electronic bill processing method, electronic bill processing device, computer equipment and computer storage medium Active CN110084655B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201910368302.7A CN110084655B (en) 2019-05-05 2019-05-05 Electronic bill processing method, electronic bill processing device, computer equipment and computer storage medium
CN201910866057.2A CN110599265B (en) 2019-05-05 2019-05-05 Electronic bill processing method, electronic bill processing device, computer equipment and computer storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910368302.7A CN110084655B (en) 2019-05-05 2019-05-05 Electronic bill processing method, electronic bill processing device, computer equipment and computer storage medium

Related Child Applications (1)

Application Number Title Priority Date Filing Date
CN201910866057.2A Division CN110599265B (en) 2019-05-05 2019-05-05 Electronic bill processing method, electronic bill processing device, computer equipment and computer storage medium

Publications (2)

Publication Number Publication Date
CN110084655A true CN110084655A (en) 2019-08-02
CN110084655B CN110084655B (en) 2023-06-23

Family

ID=67418524

Family Applications (2)

Application Number Title Priority Date Filing Date
CN201910866057.2A Active CN110599265B (en) 2019-05-05 2019-05-05 Electronic bill processing method, electronic bill processing device, computer equipment and computer storage medium
CN201910368302.7A Active CN110084655B (en) 2019-05-05 2019-05-05 Electronic bill processing method, electronic bill processing device, computer equipment and computer storage medium

Family Applications Before (1)

Application Number Title Priority Date Filing Date
CN201910866057.2A Active CN110599265B (en) 2019-05-05 2019-05-05 Electronic bill processing method, electronic bill processing device, computer equipment and computer storage medium

Country Status (1)

Country Link
CN (2) CN110599265B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110599275A (en) * 2019-09-27 2019-12-20 腾讯科技(深圳)有限公司 Data processing method and device based on block chain network and storage medium
CN111062766A (en) * 2019-12-20 2020-04-24 中国银联股份有限公司 Block chain-based electronic invoice issuing method and device
CN111260421A (en) * 2020-02-11 2020-06-09 中国银联股份有限公司 Block chain-based electronic invoice management and control method and device
CN111260488A (en) * 2020-01-23 2020-06-09 腾讯科技(深圳)有限公司 Data processing method and device and readable storage medium
CN111291335A (en) * 2020-01-19 2020-06-16 腾讯科技(深圳)有限公司 Bill data processing method and device, computer equipment and storage medium
CN116308308A (en) * 2023-02-09 2023-06-23 浪潮通用软件有限公司 A data processing method and system for improving the efficiency of electronic bill payment

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111311259B (en) * 2020-01-22 2025-02-07 腾讯科技(深圳)有限公司 Bill processing method, device, terminal and computer-readable storage medium

Citations (20)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5465206A (en) * 1993-11-01 1995-11-07 Visa International Electronic bill pay system
US20020194127A1 (en) * 2001-04-30 2002-12-19 Randell Wayne L. Method and system for processing invoices
US20030121966A1 (en) * 2002-01-02 2003-07-03 International Business Machines Corporation System and method for electronic check conversion at a point-of-sale terminal
JP2005057805A (en) * 2004-10-18 2005-03-03 Nec Corp Information providing apparatus, ticket providing apparatus, reproducing device, and information selling method used therefor, and program therefor
US20090037303A1 (en) * 2007-08-03 2009-02-05 Kelly Mary L Methods and systems for processing a financial transaction
US20120191579A1 (en) * 2011-01-20 2012-07-26 International Business Machines Corporation Selective Processing of Reverse Invoices in Computer Systems for Financial Transactions
CN103985205A (en) * 2014-05-30 2014-08-13 税友软件集团股份有限公司 Generation method, device and system of red-letter electronic invoices
CN104268779A (en) * 2014-09-30 2015-01-07 税友软件集团股份有限公司 Method and system for generating red mark electronic invoice
CN105550913A (en) * 2015-12-22 2016-05-04 北京握奇智能科技有限公司 Invoicing monitoring device, invoicing system and invoicing method applied to tax control
US20170193469A1 (en) * 2015-12-31 2017-07-06 Mastercard International Incorporated Method and system for providing e-invoices
WO2017133570A1 (en) * 2016-02-05 2017-08-10 阿里巴巴集团控股有限公司 Invoice title information change method and apparatus and invoice management system
CN107784530A (en) * 2017-07-24 2018-03-09 平安科技(深圳)有限公司 Calcellation processing method, storage medium and the server of a kind of blank invoice
US20180293577A1 (en) * 2017-04-05 2018-10-11 Samsung Sds Co., Ltd. Method of processing payment based on blockchain and apparatus thereof
CN108830664A (en) * 2017-05-05 2018-11-16 平安科技(深圳)有限公司 Difference electronics indigo plant ticket generation method, equipment and computer readable storage medium
CN108921629A (en) * 2018-06-13 2018-11-30 西安艾润物联网技术服务有限责任公司 Billing method, system and computer readable storage medium
CN108922012A (en) * 2018-07-11 2018-11-30 北京大账房网络科技股份有限公司 The invoice checking method of raw information is not revealed based on block chain technology
CN109034924A (en) * 2018-08-16 2018-12-18 腾讯科技(深圳)有限公司 Electronic bill generation method, device, storage medium and computer equipment
US10181149B1 (en) * 2006-03-06 2019-01-15 Versata, Inc. Electronic processing of invoices with no purchase orders
CN109325812A (en) * 2018-08-24 2019-02-12 深圳市智税链科技有限公司 Data processing method, device, storage medium and device for electronic bills
CN109636414A (en) * 2018-11-28 2019-04-16 海南高灯科技有限公司 One kind cancelling system based on block chain electronic invoice and cancels method

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106933879A (en) * 2015-12-30 2017-07-07 航天信息股份有限公司 Invoice data tracking and system
CN108242000A (en) * 2017-10-27 2018-07-03 北京车和家信息技术有限公司 Invoice management method, system, computer installation and computer readable storage medium

Patent Citations (21)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5465206B1 (en) * 1993-11-01 1998-04-21 Visa Int Service Ass Electronic bill pay system
US5465206A (en) * 1993-11-01 1995-11-07 Visa International Electronic bill pay system
US20020194127A1 (en) * 2001-04-30 2002-12-19 Randell Wayne L. Method and system for processing invoices
US20030121966A1 (en) * 2002-01-02 2003-07-03 International Business Machines Corporation System and method for electronic check conversion at a point-of-sale terminal
JP2005057805A (en) * 2004-10-18 2005-03-03 Nec Corp Information providing apparatus, ticket providing apparatus, reproducing device, and information selling method used therefor, and program therefor
US10181149B1 (en) * 2006-03-06 2019-01-15 Versata, Inc. Electronic processing of invoices with no purchase orders
US20090037303A1 (en) * 2007-08-03 2009-02-05 Kelly Mary L Methods and systems for processing a financial transaction
US20120191579A1 (en) * 2011-01-20 2012-07-26 International Business Machines Corporation Selective Processing of Reverse Invoices in Computer Systems for Financial Transactions
CN103985205A (en) * 2014-05-30 2014-08-13 税友软件集团股份有限公司 Generation method, device and system of red-letter electronic invoices
CN104268779A (en) * 2014-09-30 2015-01-07 税友软件集团股份有限公司 Method and system for generating red mark electronic invoice
CN105550913A (en) * 2015-12-22 2016-05-04 北京握奇智能科技有限公司 Invoicing monitoring device, invoicing system and invoicing method applied to tax control
US20170193469A1 (en) * 2015-12-31 2017-07-06 Mastercard International Incorporated Method and system for providing e-invoices
WO2017133570A1 (en) * 2016-02-05 2017-08-10 阿里巴巴集团控股有限公司 Invoice title information change method and apparatus and invoice management system
US20180293577A1 (en) * 2017-04-05 2018-10-11 Samsung Sds Co., Ltd. Method of processing payment based on blockchain and apparatus thereof
CN108830664A (en) * 2017-05-05 2018-11-16 平安科技(深圳)有限公司 Difference electronics indigo plant ticket generation method, equipment and computer readable storage medium
CN107784530A (en) * 2017-07-24 2018-03-09 平安科技(深圳)有限公司 Calcellation processing method, storage medium and the server of a kind of blank invoice
CN108921629A (en) * 2018-06-13 2018-11-30 西安艾润物联网技术服务有限责任公司 Billing method, system and computer readable storage medium
CN108922012A (en) * 2018-07-11 2018-11-30 北京大账房网络科技股份有限公司 The invoice checking method of raw information is not revealed based on block chain technology
CN109034924A (en) * 2018-08-16 2018-12-18 腾讯科技(深圳)有限公司 Electronic bill generation method, device, storage medium and computer equipment
CN109325812A (en) * 2018-08-24 2019-02-12 深圳市智税链科技有限公司 Data processing method, device, storage medium and device for electronic bills
CN109636414A (en) * 2018-11-28 2019-04-16 海南高灯科技有限公司 One kind cancelling system based on block chain electronic invoice and cancels method

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110599275A (en) * 2019-09-27 2019-12-20 腾讯科技(深圳)有限公司 Data processing method and device based on block chain network and storage medium
CN111062766A (en) * 2019-12-20 2020-04-24 中国银联股份有限公司 Block chain-based electronic invoice issuing method and device
CN111062766B (en) * 2019-12-20 2024-02-09 中国银联股份有限公司 A method and device for issuing electronic invoices based on blockchain
CN111291335A (en) * 2020-01-19 2020-06-16 腾讯科技(深圳)有限公司 Bill data processing method and device, computer equipment and storage medium
CN111291335B (en) * 2020-01-19 2022-01-18 腾讯科技(深圳)有限公司 Bill data processing method and device, computer equipment and storage medium
CN111260488A (en) * 2020-01-23 2020-06-09 腾讯科技(深圳)有限公司 Data processing method and device and readable storage medium
CN111260421A (en) * 2020-02-11 2020-06-09 中国银联股份有限公司 Block chain-based electronic invoice management and control method and device
CN116308308A (en) * 2023-02-09 2023-06-23 浪潮通用软件有限公司 A data processing method and system for improving the efficiency of electronic bill payment

Also Published As

Publication number Publication date
CN110084655B (en) 2023-06-23
CN110599265A (en) 2019-12-20
CN110599265B (en) 2021-05-14

Similar Documents

Publication Publication Date Title
CN110084655B (en) Electronic bill processing method, electronic bill processing device, computer equipment and computer storage medium
US10977632B2 (en) Electronic bill management method, apparatus, and storage medium
CN113421156B (en) Asset management method and device based on blockchain, and electronic equipment
CA2329348A1 (en) Electronic funds transfer method and system and bill presentment method and system
CN110163691B (en) Blockchain-based invoice creation method and device, electronic device
CN110852730A (en) Transaction processing method and device based on digital currency and electronic equipment
CN112801658A (en) Cross-border resource transfer authenticity auditing method and device and electronic equipment
CN110163605B (en) A blockchain-based settlement method, device and electronic device
CN108229954B (en) Coin storage method and system based on digital currency wallet
CN108256841A (en) Actively turn the method, apparatus and system of coin
CN109767217A (en) Digital asset, server, terminal and digital asset method of commerce
CN107392600A (en) Digital cash transaction payment register method and system
CN114118998B (en) A blockchain-based reconciliation method, device, equipment and storage medium
CN111984734A (en) Data processing method, device and equipment based on block chain and storage medium
CN111242785B (en) A bill processing method, device, electronic device, and storage medium
CN113222725B (en) Blockchain-based data processing method and device
CN107358522B (en) A method and system for exchanging deposits for digital currency
CN110580652B (en) On-chain asset mortgage financing system and method through on-chain digital currency settlement
CN112734548A (en) Financial account book generation method and device
CN107358521A (en) A kind of method and system that deposit is exchanged with digital cash
CN112529549A (en) Electronic settlement method, device and storage medium
CN117974285A (en) Accounting method, system, computer device and readable storage medium
CN115525328A (en) Flexibly configurable transaction refund processing method and system
CN118056381A (en) Method and system for blockchain-based transactions for atomic swaps of assets
HK40008977B (en) Method, apparatus, computer device, and computer storage medium for processing electronic bill

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 40008977

Country of ref document: HK

SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant