Digital bill management method, system, device and medium based on data voucher
Through the blockchain network and data voucher management methods, the problem of full life cycle supervision of digital bills has been solved, the reliability of the bill content and process has been achieved, security risks have been reduced, and the promotion and use of bills have been promoted.
Patent Information
- Application Number
- CN202411134190.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-19
- Publication Date
- 2024-10-25
- Estimated Expiration
- 2044-08-19
AI Technical Summary
It is difficult for the existing digital bill management technology to realize the full life cycle supervision of bill application, circulation and acceptance, resulting in digital bill security risks and hindering its promotion and use.
Adopting a data voucher management method based on the blockchain network, through quantum key distribution nodes, bill management nodes and user nodes, the encrypted storage and circulation records of bill information are realized, and a QR code watermark is generated for anti-counterfeiting identification to ensure that the content of the bill is authentic and authentic The verification and process is reliable.
It effectively reduces the security risks of digital bills as electronic data, ensures that the source of the bills is controllable and the process is verifiable, and promotes its wide-scale promotion and use.
Smart Images

Figure CN118657573B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of bill management, and in particular to a digital bill management method, system, computer equipment and storage medium based on data vouchers. Background Art
[0002] In the process of carrying out existing commercial transactions, various paper bills are required as corresponding business activity vouchers. Although paper bills are intuitive, they need to be filled out and checked manually, which is not only cumbersome to operate and consumes a lot of manpower and material resources, but also difficult to meet the development needs of digital transaction business. In order to adapt to the digital development of commercial transactions, digital bills came into being, but at the same time, they also brought new challenges to the supervision of bill use.
[0003] The value of digital bills lies mainly in their circulation and use in commercial transactions. However, due to the complexity of business and process supervision of the issuance, trusted verification, circulation and use of digital bills, existing research on digital bill management is mostly limited to how to convert paper bills into digital bills and self-service application for digital bills. It does not involve research on the full life cycle supervision of bill application, bill circulation and bill acceptance. It is difficult to achieve effective source control and trusted verification of digital bills, resulting in the inability to avoid the security risks introduced by digital bills as electronic data, which directly hinders the promotion and use of digital bills. Summary of the invention
[0004] The purpose of the present invention is to provide a digital bill management method based on data vouchers. By introducing quantum keys to achieve secure and efficient transmission of digital bill business data, the method of carrying bill information, circulation records and anti-counterfeiting identification of digital bills based on data vouchers can not only ensure that the content of digital bills is authentic and verifiable, but also reliably supervise the application, circulation and acceptance processes of digital bills throughout their life cycle, ensure that the source of digital bills is controllable and the process is verifiable, effectively reduce the security risks of digital bills introduced as electronic data, and promote the large-scale promotion and use of digital bills.
[0005] In order to achieve the above objectives, it is necessary to provide a digital bill management method, system, computer equipment and storage medium based on data vouchers in response to the above technical problems.
[0006] In a first aspect, an embodiment of the present invention provides a digital bill management method based on data vouchers, which is applied to a blockchain network; the blockchain network includes a quantum key distribution node, a bill management node, and multiple user nodes; the method includes the following steps:
[0007] In response to a user's bill claim request, the first user node requests a quantum key from the quantum key distribution node according to the claim service type, encrypts and stores the corresponding bill claim information in the first block according to the acquired quantum private key, and sends the bill service request generated according to the first block address to the bill management node; the bill claim information includes the claim bill type, bill claim information, and bill circulation constraints;
[0008] The bill business request is received, and the bill management node obtains the bill application information according to the first block address. After filling the preset blank electronic bill according to the bill application information to generate a business electronic bill, and generating a bill circulation rule according to the applied bill type and the bill circulation constraint, the bill digital certificate generated according to the bill circulation rule and the bill key elements is converted into a QR code watermark and embedded in the business electronic bill, an anti-counterfeiting electronic bill is generated and stored in the second block, and the second block address is fed back to the corresponding bill applicant.
[0009] Furthermore, the bill application materials include basic information of the applicant, credit information of the applicant, bank account information of the applicant, handling documents and official seal information;
[0010] The step of obtaining the bill claiming information according to the first block address by the bill management node includes:
[0011] Decrypting the first block address to obtain corresponding bill claim information according to the quantum public key corresponding to the quantum private key;
[0012] Obtain the company registration information of the bill claimant, and review and verify the basic information and official seal information of the bill claimant in the bill claim information according to the company registration information of the bill claimant to obtain the corresponding identity verification result; the company registration information of the bill claimant includes the company name, the legal representative of the company and the registered official seal information;
[0013] When the identity verification result is qualified, obtaining the credit certificate of the claimant provided by a third-party credit service agency, and verifying the credit information of the claimant in the bill application information according to the credit certificate of the claimant to obtain a credit verification result;
[0014] When the credit verification result is qualified, the corresponding bill handling rules are obtained according to the bill type applied for, and according to the bill handling rules, the bank account information of the applicant and the handling documents, it is determined whether the bill applicant meets the application qualifications;
[0015] If it meets the requirements, the bill business request is determined to be approved, otherwise, the bill business request is rejected.
[0016] Furthermore, the step of generating the preset blank electronic receipt includes:
[0017] Obtain bill images of various types of bills to be claimed, and extract regions of interest from the bill images using a superpixel segmentation algorithm;
[0018] Generate a corresponding bill image to be analyzed according to the region of interest, and perform binarization processing on the bill image to be analyzed to obtain a corresponding bill binary image;
[0019] Through Hough transform detection, the binary image of the bill is tilted and corrected to obtain a corresponding binary image to be analyzed;
[0020] Extracting a table frame from the binary image to be analyzed by mathematical morphology to obtain a first table frame diagram;
[0021] Extracting a table frame from the binary image to be analyzed by using a U-net network model to obtain a second table frame diagram;
[0022] Perform pixel fusion on the first table frame image and the second table frame image to obtain a corresponding bill table frame image, and obtain a corresponding table frame cell position information set based on the bill table frame image and a preset target detection algorithm;
[0023] Adding an editable text layer to the bill table frame image, filling the editable text layer according to the table frame cell position information set and the fixed feature information set corresponding to the bill application type, to obtain a corresponding blank bill image; the fixed feature information set includes the bill fixed text content and the corresponding typesetting position;
[0024] Scaling the blank bill image according to the bill size of the bill type applied for, and adding an editable text layer to the scaled blank bill image to obtain the preset blank electronic bill;
[0025] The preset blank electronic receipts of various types of application receipts are stored on the chain.
[0026] Furthermore, the bill circulation constraints include the type of circulation object and the scope of circulation area; the bill circulation rules include the circulation method, target circulation object, target circulation area, endorsement verification rules and acceptance verification rules;
[0027] The step of generating a bill circulation rule according to the bill application type and the bill circulation constraint comprises:
[0028] Determine the circulation mode according to the type of the claimed bill, the credit information of the claimant and the bank account information of the claimant; the circulation mode includes whole package circulation and sub-package circulation;
[0029] According to the type of the circulation object and the range of the circulation area in the bill circulation constraint, the corresponding target circulation object and the target circulation area are obtained respectively;
[0030] According to the type of bill applied for and the circulation method, traverse the pre-built bill governance rule library to obtain the corresponding endorsement verification rules and acceptance verification rules; the endorsement verification rules include basic endorsement condition verification rules, endorser verification rules and endorsement continuity verification rules;
[0031] The bill circulation rules are uploaded to the blockchain network after consensus is reached through a preset consensus mechanism.
[0032] Furthermore, the key elements of the bill include the issuer, the holder and the business handling time;
[0033] The step of converting the bill digital certificate generated according to the bill circulation rules and bill key elements into a QR code watermark comprises:
[0034] Fill the bill number of the business electronic bill and each bill circulation rule into the preset rule catalog table to generate a first digital certificate;
[0035] Generate a corresponding bill circulation record according to the bill key elements of the business electronic bill, and add the bill circulation record to a preset bill circulation information record table to generate a second digital certificate; the bill circulation record includes the issuer, holder, endorser, endorsee, acceptor, circulation times and business handling time;
[0036] The first digital certificate is combined with the second digital certificate to generate the bill digital certificate, and a corresponding circulation certificate QR code is generated according to the bill digital certificate and the issuer logo;
[0037] The two-dimensional code of the circulation certificate is converted into an invisible watermark according to the wavelet algorithm to obtain a corresponding two-dimensional code watermark.
[0038] Furthermore, the method further comprises:
[0039] In response to a ticket printing request sent by the ticket claimant through the first user node, the ticket management node obtains the corresponding ticket printing executable program storage block address according to the ticket printing type in the ticket printing request, and feeds back the ticket printing executable program storage block address to the ticket claimant through the first user node, so that the ticket claimant obtains the ticket printing executable program to print the anti-counterfeiting electronic ticket.
[0040] Furthermore, the method further comprises:
[0041] Receiving a bill circulation request sent by the second user node, the bill management node acquires corresponding bill circulation information; the bill circulation request includes an endorsement transfer request and a direct acceptance request; the bill circulation information includes bill holder identity data and circulation request data; the circulation request data includes a circulation bill number, a bill circulation method, a bill circulation object, and a bill circulation amount;
[0042] According to the circulation bill number, the corresponding anti-counterfeiting electronic bill is obtained, and according to the bill digital certificate of the anti-counterfeiting electronic bill, after the identity data of the bill holder is verified, the circulation request type corresponding to the bill circulation request is obtained;
[0043] When the circulation request type is an endorsement transfer request, the circulation condition verification and endorsement verification are performed on the circulation request data according to the bill circulation rule in the first digital certificate in the bill digital certificate, and after the verification is passed, the corresponding circulation business operation is performed, the bill circulation record recorded by the second digital certificate in the bill digital certificate is added, and a new two-dimensional code watermark is generated according to the updated bill digital certificate, and the anti-counterfeiting electronic bill stored in the second block address is updated according to the new two-dimensional code watermark;
[0044] When the circulation request type is a direct acceptance request, the circulation condition verification and acceptance verification are performed on the circulation request data according to the bill circulation rules in the first digital certificate in the bill digital certificate, and after the verification is passed, the corresponding acceptance business operation is executed, the bill circulation record recorded by the second digital certificate in the bill digital certificate is added, and a new QR code watermark is generated according to the updated bill digital certificate, and the anti-counterfeiting electronic bill stored in the second block address is updated according to the new QR code watermark.
[0045] In a second aspect, an embodiment of the present invention provides a digital bill management system based on data vouchers, which is applied to a blockchain network; the blockchain network includes a quantum key distribution node, a bill management node, and multiple user nodes; the system includes:
[0046] A bill claim access module, configured to respond to a user bill claim request, request a quantum key from the quantum key distribution node according to the claim service type by the first user node, encrypt and store the corresponding bill claim information in the first block according to the acquired quantum private key, and send the bill service request generated according to the first block address to the bill management node; the bill claim information includes the claim bill type, bill claim information and bill circulation constraints;
[0047] A bill claim processing module is used to receive the bill business request, and the bill management node obtains the bill claim information according to the first block address. After filling in the preset blank electronic bill according to the bill claim information to generate a business electronic bill, and generating a bill circulation rule according to the applied bill type and the bill circulation constraint, the bill digital certificate generated according to the bill circulation rule and the bill key elements is converted into a QR code watermark and embedded in the business electronic bill, an anti-counterfeiting electronic bill is generated and stored in the second block, and the second block address is fed back to the corresponding bill claimant.
[0048] In a third aspect, an embodiment of the present invention further provides a computer device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the above method when executing the computer program.
[0049] In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program implements the steps of the above method when executed by a processor.
[0050] The present application provides a digital bill management method, system, computer device and storage medium based on data vouchers. The method is implemented based on a blockchain network including a quantum key distribution node, a bill management node and multiple user nodes. In response to a user's bill application request, a first user node requests a quantum key from a quantum key distribution node according to the application business type, and encrypts and stores the bill application information corresponding to the application bill type, bill application information and bill circulation constraints in a first block according to the obtained quantum private key, and sends the bill business request generated according to the first block address to the bill management node, and the bill management node obtains the bill application information according to the first block address. After filling the preset blank electronic bill according to the bill application information to generate a business electronic bill, and generating a bill circulation rule according to the application bill type and the bill circulation constraint, the bill digital voucher generated according to the bill circulation rule and the bill key elements is converted into a QR code watermark and embedded in the business electronic bill, and an anti-counterfeiting electronic bill is generated and stored in the second block, and the second block address is fed back to the corresponding bill claimant. Technical solution. Compared with the existing technology, this digital bill management method based on data vouchers, by introducing quantum keys to achieve secure and efficient transmission of digital bill business data, carries bill information and circulation records based on data vouchers, and performs anti-counterfeiting identification on digital bills. This can not only ensure that the content of digital bills is authentic and verifiable, but also reliably supervise the application, circulation and acceptance processes of digital bills throughout their life cycle, ensuring that the source of digital bills is controllable and the process is verifiable, effectively reducing the security risks of digital bills introduced as electronic data, and thereby promoting the large-scale promotion and use of digital bills. BRIEF DESCRIPTION OF THE DRAWINGS
[0051] Figure 1 It is a flowchart of a digital bill management method based on data vouchers in an embodiment of the present invention;
[0052] Figure 2 is another flow chart of the digital bill management method based on data vouchers in an embodiment of the present invention;
[0053] Figure 3 It is a structural diagram of a digital bill management system based on data vouchers in an embodiment of the present invention;
[0054] Figure 4 It is another structural schematic diagram of a digital bill management system based on data vouchers in an embodiment of the present invention;
[0055] Figure 5 It is a diagram of the internal structure of a computer device in an embodiment of the present invention. DETAILED DESCRIPTION
[0056] In order to make the purpose, technical scheme and beneficial effects of the present application clearer, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. Obviously, the embodiments described below are part of the embodiments of the present invention and are only used to illustrate the present invention, but are not used to limit the scope of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0057] The digital bill management method based on data vouchers provided by the present invention can be understood as a method for applying to a blockchain network including a quantum key distribution node, a bill management node, and multiple user nodes, and the quantum key distribution node distributes quantum key pairs to the bill management node and the user node, and the user node accesses the bill business request submitted by the user and sends it to the bill management node to handle the business and update the bill information, circulation record, and digital bill anti-counterfeiting identification function as one of the bill digitalization management methods, which can be applied to the management and use of financial bills that support bill digitization, such as bills, checks, and promissory notes. The following embodiments will explain the digital bill management method based on data vouchers of the present invention in detail.
[0058] In one embodiment, Figure 1As shown, a digital bill management method based on data vouchers is provided, which is applied to a blockchain network; the blockchain network includes a quantum key distribution node, a bill management node and multiple user nodes; and includes the following steps:
[0059] S11. In response to the user's bill application request, the first user node requests a quantum key from the quantum key distribution node according to the application business type, encrypts the corresponding bill application information and stores it in the first block according to the obtained quantum private key, and sends the bill business request generated according to the first block address to the bill management node; wherein, the user bill application request can be understood as a request message filled in and submitted by the bill applicant through the user terminal device APP that is connected to the user node on the blockchain network for accessing the user request according to the actual bill usage needs; correspondingly, the first user node can be understood as a user node in the blockchain network, which is used to receive user business requests. In this embodiment, the bill application information corresponding to the user bill application request preferably includes the type of bill applied, the bill application information and the bill circulation constraints, which are used to support the verification of bill application requests, the handling of bill business and the formulation of bill circulation rules.
[0060] Taking into account the extremely high information security requirements of the financial industry, in order to ensure the efficiency and security of the data information transmission required for digital bill management, this embodiment preferably deploys a quantum key distribution node that manages quantum key information on the blockchain network used for full life cycle management of digital bills, and synchronizes quantum keys for user nodes and bill management nodes designed for each business exchange processed on the blockchain network to ensure the confidentiality and integrity of communication data. In principle, after the first user node receives the bill claimant's bill claim request, it can directly request a quantum key from the connected key distribution node. However, considering that the processing time required for different claim business types is different, in this embodiment, after the first user node receives the bill claimant's bill claim request, it identifies the corresponding claim business type, and requests the required communication quantum key from the quantum key distribution node according to the claim business type, which is used to send the bill business request to the bill management node for encryption, so as to ensure communication security while meeting the business processing time requirement; specifically, after the first user node requests the quantum key from the quantum key distribution node according to the claim business type, it also includes: the quantum key distribution node sets the corresponding key length according to the claim business type, and generates a pair of completely random quantum key pairs (including a quantum private key and a quantum public key) known only to the communicating parties based on the existing QKD (Quantum key distribution) algorithm, and sends the quantum private key and the quantum public key to the first user node and the bill management node that need to communicate through the quantum channel respectively, so that the first user node performs encryption processing according to the quantum private key, and the bill management node performs decryption processing according to the quantum public key.
[0061] After obtaining the quantum key through the above method steps and completing the encryption processing of the bill application information, the first user node can send a consensus request on the blockchain network, and after verification by the consensus mechanism preset by the blockchain network, the bill application information will be stored in the corresponding first block, and packaged into a bill business request according to the first block address and sent to the bill management node for subsequent bill business processing.
[0062] S12, receiving the bill business request, the bill management node obtains the bill application information according to the first block address, fills the preset blank electronic bill according to the bill application information to generate a business electronic bill, and generates a bill circulation rule according to the bill application type and the bill circulation constraint, converts the bill digital certificate generated according to the bill circulation rule and the bill key elements into a QR code watermark and embeds it in the business electronic bill, generates an anti-counterfeiting electronic bill and stores it in the second block, and feeds back the second block address to the corresponding bill applicant. It should be noted that the bill management node in this embodiment can be a blockchain node that communicates and forwards business processing information with each bank system or bill issuance management agency, or it can be a blockchain node registered on the block network by each bank system or bill issuance management agency, which is not specifically limited here.
[0063] In order to be as close as possible to the actual bill application process and ensure the efficiency and compliance of the bill application process, this embodiment preferably verifies the bill business request based on the bill application information provided by the bill applicant before executing the corresponding business process, and sets the bill application information to include the applicant's basic information, the applicant's credit information, the applicant's bank account information, processing documents and official seal information; among which, the applicant's basic information can be understood as relevant information on the applicant's company registration, which may include company name, entity type, domicile (business premises), legal representative, business scope and registration date, etc., which is selected according to actual application needs; the applicant's bank account information can be understood as the information provided by the bill applicant when receiving the bill. The bank account information filed with a certain bank or bill issuance management agency requested, including the account holder, account type, and account balance; the processing documents and materials can be understood as the documents required for the bill application business, which vary according to the actual type of bill applied for, such as the settlement certificate required for check application, the basic account opening license or seal card and the provincial ID card image of the person handling the matter, and other electronic documents; the application form required for handling bills of exchange, the commodity purchase and sales contract indicating that bills of exchange are used as the settlement method, the company's financial statements for the relevant time period, the company's business license, loan card, the legal representative's ID card, the company's articles of association and capital verification report and other electronic documents; the corresponding official seal information includes the company seal, financial seal and legal representative seal.
[0064] Specifically, the step of obtaining the bill claiming information according to the first block address by the bill management node includes:
[0065] According to the quantum public key corresponding to the quantum private key, the corresponding bill claim information is decrypted from the first block address; wherein the quantum public key can be understood as a quantum key synchronously obtained by the first user node applying for a quantum key based on a bill claim request, and the bill management node can decrypt and read the bill claim information encrypted and stored by the first user node at the first block address based on the key.
[0066] Obtain the company registration information of the bill claimant, and review and verify the basic information and official seal information of the claimant in the bill application information based on the company registration information of the bill claimant to obtain the corresponding identity authentication result; wherein, the company registration information of the bill claimant can be understood as data such as the company name, legal representative of the company and registered official seal information obtained with the authorization of the bill claimant; the corresponding identity authentication result acquisition method can be understood as comparing the basic information of the claimant in the bill application message with the company registration information of the bill claimant queried from the public network system based on the name of the bill claimant. If there is an inconsistency, it is considered that the basic information of the claimant in the bill application information is incorrect, and the identity authentication result is judged to be unqualified, so as to prevent the bill claimant from using forged information to apply for the bill. Otherwise, the identity authentication result is judged to be qualified.
[0067] When the identity authentication result is qualified, the applicant's credit certificate provided by the third-party credit service agency is obtained, and the applicant's credit information in the bill application information is verified based on the applicant's credit certificate to obtain a credit verification result; wherein, the applicant's credit certificate can be understood as a credit rating generated by a trusted third-party credit service agency based on the basic information, business conditions and financial information authorized by the bill applicant to comprehensively evaluate the strength and credit of the bill applicant, which can be obtained by querying the name of the bill applicant; the corresponding credit verification result acquisition process can be understood as verifying and matching the applicant's credit certificate with the applicant's credit information in the bill application information. If they are consistent, the credit verification result is judged to be qualified, otherwise, it is judged to be unqualified.
[0068] When the credit verification result is qualified, the corresponding bill handling rules are obtained according to the type of bill applied for, and the bill applicant is judged whether it meets the application qualifications according to the bill handling rules, the applicant's bank account information and the handling documents; among them, the bill handling rules can be understood as the document review conditions necessary for handling bill review and collection business stipulated by the banking system or the bill issuance management agency. The specific rules vary depending on the actual type of bill applied for, and are not specifically limited here. For example, when applying for a check, it is necessary to check whether the applicant's bank account information is sufficient to support the check application business, whether the corresponding handling documents are complete, and whether the information is correct. In actual application, if the applicant's bank account information and handling documents do not meet the bill handling rules, it is determined that the bill applicant does not meet the application qualifications. Otherwise, it is determined that the bill applicant meets the application qualifications.
[0069] If it meets the requirements, the bill business request is determined to be approved, otherwise, the bill business request is rejected. It should be noted that after the bill business request is approved, the corresponding business processing flow will continue to be executed. On the contrary, when the bill business request is rejected, the rejection reason will be fed back to the bill applicant through the first user node.
[0070] This embodiment performs three rounds of verification on the bill applicant in sequence based on the bill business request, including identity verification, credit verification and bill handling rules review, to ensure the comprehensiveness and reliability of the business review, effectively avoid the risk of mis-signing or mis-collecting bills, and ensure the validity of the bill application results.
[0071] Considering that the digital bills issued online by the banking system or other bill issuing institutions should inherit the content of the paper bills as much as possible to ensure the continuity of the summary review of the relevant bill business cycle, this embodiment preferably generates corresponding blank electronic bills based on the paper bill images of various types of bills in advance and stores them in the blockchain network for filling in and issuing according to the actual application business request. Specifically, the steps for generating the preset blank electronic bills include:
[0072] Obtain bill images of various types of bills to be claimed, and extract the region of interest of the bill image through a superpixel segmentation algorithm; wherein the region of interest can be understood as the minimum range area used to contain the table frame in the bill image, which can be obtained by processing the bill image using a superpixel segmentation (Simple Linear Iterative Clustering, SLIC) algorithm. The specific acquisition method can be implemented by referring to the existing technology, which will not be repeated here.
[0073] According to the region of interest, a corresponding bill image to be analyzed is generated, and the bill image to be analyzed is binarized to obtain a corresponding bill binary image; wherein the bill image to be analyzed can be understood as an image obtained by cutting out the region of interest from the bill image.
[0074] Through Hough Transform detection, the binary image of the bill is tilted and corrected to obtain the corresponding binary image to be analyzed; it should be noted that if Hough Transform detection is used to confirm that the binary image of the bill does not have a tilt phenomenon, that is, there is no need to perform correction processing, the corresponding binary image to be analyzed is the binary image of the bill.
[0075] The table frame of the binary image to be analyzed is extracted through mathematical morphology to obtain a first table frame diagram; wherein, the process of obtaining the first table frame diagram can be understood as first obtaining the direction of the table frame line in the binary image to be analyzed, and then designing the corresponding conditional dilation operator and erosion operator based on the straight line structure element, and then performing morphological operations on the binary image to be analyzed based on the conditional dilation operator and the erosion operator to quickly extract the required table frame.
[0076] The table frame is extracted from the binary image to be analyzed by the U-net network model to obtain a second table frame diagram; wherein, the acquisition process of the second table frame diagram can be understood as inputting the binary image to be analyzed (or the corresponding grayscale image) into the preset U-net network model to perform down-sampling image feature extraction and down-sampling restoration table line processing in sequence to obtain a corresponding set of horizontal and vertical line coordinates; performing distance detection on the horizontal lines with the same vertical coordinates in the horizontal line coordinate set, connecting the horizontal lines with smaller distances to obtain new horizontal lines and replacing the coordinate information of the two merged horizontal lines in the horizontal line coordinate set with their corresponding coordinate information, until all the horizontal line coordinate information in the horizontal line coordinate set is processed to obtain a new set of horizontal line coordinates; similarly, performing distance detection on the vertical lines with the same horizontal coordinates in the vertical line coordinate set, connecting the vertical lines with smaller distances to obtain new vertical lines and replacing the coordinate information of the two merged vertical lines in the vertical line coordinate set with their corresponding coordinate information, until all the vertical line coordinate information in the vertical line coordinate set is processed to obtain a new set of vertical line coordinates; and then generating the corresponding second table frame diagram according to the new set of horizontal line coordinates and the set of vertical line coordinates.
[0077] The first table frame image and the second table frame image are pixel-fused to obtain a corresponding bill table frame image, and based on the bill table frame image and a preset target detection algorithm, a corresponding table frame cell position information set is obtained; wherein, the preset target detection algorithm can be understood as an algorithm that can realize the detection algorithm of the cell shape, which is not specifically limited here; by performing target detection on the bill table frame image through the preset target detection algorithm, the position coordinate information of each cell can be obtained, and then the corresponding table frame cell position information set is generated.
[0078] An editable text layer is added to the bill table frame image, and the editable text layer is filled according to the table frame cell position information set and the fixed feature information set corresponding to the applied bill type to obtain a corresponding blank bill image; wherein the fixed feature information set can be understood as being set in advance according to the typesetting requirements of the digitized bill, including a set of fixed text contents and their corresponding typesetting positions in the bill image.
[0079] According to the bill size of the applied bill type, the blank bill image is scaled, and an editable text layer is added to the scaled blank bill image to obtain the preset blank electronic bill; wherein the editable text layer can be understood as a layer that can be directly edited and filled with text information, which facilitates the subsequent filling of bill content into the blank electronic bill to generate the required business electronic bill.
[0080] The preset blank electronic invoices of various types of application bills are stored on the chain; specifically, after the preset blank electronic invoices of various types of application bills are obtained through the above-mentioned method steps, they can be stored in the blockchain network after consensus verification, so as to facilitate the efficient acquisition of the required blank electronic invoices when processing bill application requests later.
[0081] The bill circulation constraint in this embodiment preferably includes a circulation object type and a circulation area range, wherein the circulation object type can be understood as an object type that can be endorsed and transferred, and the circulation area range can be understood as a limited endorsement transfer and acceptance geographical area range; correspondingly, the bill circulation rule includes a circulation method, a target circulation object, a target circulation area, an endorsement verification rule, and an acceptance verification rule; specifically, the step of generating a bill circulation rule according to the bill application type and the bill circulation constraint includes:
[0082] The transfer method is determined according to the type of applied bill, the credit information of the applicant and the bank account information of the applicant; the transfer method includes whole package transfer and sub-package transfer, among which whole package transfer can be understood as transferring the entire bill rights to one object, and sub-package transfer can be understood as splitting the bill rights and transferring them to different objects respectively; in actual application, the corresponding bill management node can determine the corresponding transfer method according to the transfer method of the applied bill type actually supported and the processing conditions corresponding to different transfer methods by checking the credit information of the applicant and the bank account information of the applicant to determine the corresponding transfer method. For example, if the credit information of the applicant reaches a certain level and the deposit of the applicant's bank account reaches a certain amount, sub-package transfer is supported. In other cases, only whole package transfer is supported. The specific transfer method can be determined based on actual application needs.
[0083] According to the type of circulation object and the range of circulation area in the bill circulation constraint, the corresponding target circulation object and the target circulation area are obtained respectively.
[0084] According to the type of bill applied for and the circulation method, the pre-constructed bill governance rule library is traversed to obtain the corresponding endorsement verification rules and acceptance verification rules; wherein, the bill governance rule library can be understood as a relational database that is pre-constructed based on the analysis of different types of bill situations and stores different bill types and corresponding endorsement verification rules and acceptance verification rules; correspondingly, the endorsement verification rules include basic endorsement condition verification rules, endorser verification rules and endorsement continuity verification rules; basic endorsement condition verification rules may include whether it is a conditional endorsement, whether it is a partial endorsement and whether the endorsement amount is incorrect, etc.; endorser verification rules may include whether the endorser name is consistent, whether the endorser signature is true and whether the endorser signature form is consistent, etc.
[0085] The bill circulation rules are uploaded to the blockchain network after consensus is reached through a preset consensus mechanism.
[0086] This embodiment formulates bill circulation rules according to the bill type and bill circulation constraints carried in the bill application request, so as to realize customized design of digital bill circulation based on user usage needs, so that digital bills can not only meet the basic bill functions, but also meet the needs of users to customize different digital bill usage rules for different business scenarios, thereby providing users with initiative and enthusiasm in participating in digital bill management.
[0087] In this embodiment, preferably, the key elements of the bill are set to include the issuer, the holder and the business handling time; correspondingly, the step of converting the bill digital certificate generated according to the bill circulation rules and the key elements of the bill into a QR code watermark includes:
[0088] The bill number and various bill circulation rules of the business electronic bill are filled into the preset rule catalog table to generate a first digital certificate; wherein, the preset rule catalog table can be understood as a table designed in advance based on the various rule items included in the bill circulation rules, and may include multiple table attributes such as bill number, applied bill type, circulation method, target circulation object, target circulation area, endorsement verification rules and acceptance verification rules.
[0089] According to the bill key elements of the business electronic bill, a corresponding bill circulation record is generated, and the bill circulation record is added to the preset bill circulation information record table to generate a second digital certificate; wherein, the preset bill circulation information record table can be understood as a bill life cycle tracking record table designed in advance according to the bill type and the subject changes involved in the corresponding circulation process, and the corresponding bill circulation record includes the issuer, holder, endorser, endorsee, acceptor, circulation times and business processing time; it should be noted that at this time, the second digital certificate has only one bill circulation record, and the bill circulation record only contains the real record of the issuer (bill issuer), holder (bill claimant) and business processing time, and the remaining attributes are all initial invalid values. Subsequently, as the bill is circulated and used, new bill circulation records will be continuously added to the second digital certificate, and the endorser, endorsee, acceptor and circulation times in the corresponding record will be filled in according to the actual situation to ensure the authenticity and integrity of the circulation record.
[0090] The first digital certificate is combined with the second digital certificate to generate the bill digital certificate, and a corresponding circulation certificate QR code is generated based on the bill digital certificate and the issuer's logo; wherein the issuer's logo can be understood as the logo image of the bank or institution that actually issued the bill, the bill digital certificate is used as a QR code to store information, and an image QR code with the issuer's logo is generated, and it is used as a circulation record certificate for the bill.
[0091] The two-dimensional code of the circulation certificate is converted into an invisible watermark according to the wavelet algorithm to obtain a corresponding two-dimensional code watermark; wherein, the specific process of generating the two-dimensional code watermark by the wavelet algorithm can be implemented by referring to the existing technology and will not be described in detail here.
[0092] The blockchain network provided by the present embodiment is based on a quantum key distribution node, a bill management node and a plurality of user nodes. In response to a user's bill application request, a first user node requests a quantum key from a quantum key distribution node according to the application business type, encrypts and stores the bill application information corresponding to the application bill type, bill application information and bill circulation constraints in a first block according to the obtained quantum private key, and sends a bill business request generated according to the first block address to the bill management node. The bill management node obtains the bill application information according to the first block address, fills a preset blank electronic bill according to the bill application information to generate a business electronic bill, and generates a bill circulation rule according to the application bill type and the bill circulation constraint, and then generates a bill digital certificate according to the bill circulation rule and the bill key elements. The technical solution of converting into a QR code watermark and embedding it in the business electronic invoice, generating an anti-counterfeiting electronic invoice and storing it in the second block, and feeding back the address of the second block to the corresponding invoice applicant can ensure that the digital invoice carries its own data information throughout its life cycle by embedding the data certificate carrying the key content and circulation record of the invoice in the form of a QR code watermark in the business electronic invoice, while improving the anti-counterfeiting effect of the digital invoice without adding additional anti-counterfeiting information. That is, it can not only ensure that the content of the digital invoice is authentic and verifiable, but also reliably supervise the application, circulation and acceptance processes of the digital invoice throughout its life cycle, ensure that the source of the digital invoice is controllable and the process is verifiable, effectively reduce the security risks introduced by the digital invoice as electronic data, and thus promote the large-scale promotion and use of digital invoices.
[0093] Considering that in reality, ticket holders have the application demand to print and use digital tickets, in order to facilitate ticket holders to use tickets while also being able to standardize the printing and use of digital tickets, in this example, preferably, ticket printing executable programs corresponding to different ticket types are pre-stored on the blockchain network, or a general ticket printing executable program that integrates multiple different ticket type printing functions and supports the transmission of ticket type parameters to call the corresponding ticket printing function; it should be noted that the storage address and program changes of the ticket printing executable program are maintained by the ticket management node to avoid the ticket management risks caused by malicious tampering or substitution of the printing program. Specifically, Figure 2 As shown, the method also includes:
[0094] S13. In response to a ticket printing request sent by the ticket claimant through the first user node, the ticket management node obtains the corresponding ticket printing executable program storage block address according to the ticket printing type in the ticket printing request, and feeds back the ticket printing executable program storage block address to the ticket claimant through the first user node, so that the ticket claimant obtains the ticket printing executable program to print the anti-counterfeiting electronic ticket; wherein the ticket printing executable program is integrated with a ticket printing template designed in advance according to different ticket types, and automatically connects to the printer when executing a printing task, completes the printing task according to the ticket printing template, and in addition to printing the electronic ticket content, can also print the corresponding ticket digital certificate content for user use.
[0095] In actual applications, after the bill claimant downloads the corresponding anti-counterfeiting electronic bill from the second block address fed back by the first user node, if there is a printing demand, the bill claimant can send a print bill request (including bill number, bill type and basic information of the applicant) through the first user node, and after receiving the request, the bill management node will first obtain the anti-counterfeiting electronic bill stored in the corresponding block address according to the bill number, conduct an identity review of the applicant's basic information based on the bill key information and bill type of the electronic bill, and after the review is passed, obtain the required bill printing executable program storage block address according to the bill type in the print bill request and feedback it to the bill claimant for use. It should be noted that in actual applications, as the bill endorsement circulates, there may be a situation where the current bill holder is not the bill claimant. Based on this, in the above-mentioned identity review process, if the basic information of the printing applicant is inconsistent with the bill holder information recorded in the bill, it is necessary to further obtain the circulation record in the corresponding bill digital certificate through the QR code watermark to determine whether the current printing applicant is the holder in the latest circulation record. If so, the bill printing executable program storage block address can also be fed back to the printing applicant for use through verification.
[0096] At the same time, in order to ensure that the digital bill can achieve the same circulation value as the paper bill, this embodiment preferably also designs a bill circulation tracking process based on data vouchers to facilitate the comprehensive promotion and use of digital bills. Specifically, the method also includes:
[0097] A bill circulation request sent by a second user node is received, and the bill management node obtains the corresponding bill circulation information; the bill circulation request includes an endorsement transfer request and a direct acceptance request; the bill circulation information includes the bill holder's identity data and the circulation request data; the circulation request data includes the circulation bill number, the bill circulation method, the bill circulation object and the bill circulation amount.
[0098] According to the circulating bill number, the corresponding anti-counterfeiting electronic bill is obtained, and according to the bill digital certificate of the anti-counterfeiting electronic bill, after the identity data of the bill holder is verified, the circulation request type corresponding to the bill circulation request is obtained; wherein, the circulation request type includes endorsement circulation and direct acceptance; wherein, the process of verifying the identity data of the bill holder can refer to the printing applicant identity verification process in the above-mentioned printing bill request, which will not be repeated here.
[0099] When the circulation request type is an endorsement transfer request, the circulation condition verification and endorsement verification are performed on the circulation request data according to the bill circulation rules in the first digital certificate in the bill digital certificate, and after the verification is passed, the corresponding circulation business operation is executed, the bill circulation record recorded in the second digital certificate in the bill digital certificate is added, and a new QR code watermark is generated according to the updated bill digital certificate, and the anti-counterfeiting electronic bill stored in the second block address is updated according to the new QR code watermark; wherein, adding the bill circulation record recorded in the second digital certificate in the bill digital certificate can be understood as adding a new bill circulation record in the second digital certificate in the bill digital certificate according to the current holder, current endorser, current endorsee, current circulation times and current business processing time corresponding to the circulation business operation.
[0100] When the circulation request type is a direct acceptance request, the circulation condition verification and acceptance verification are performed on the circulation request data according to the bill circulation rules in the first digital certificate in the bill digital certificate, and after the verification is passed, the corresponding acceptance business operation is executed, the bill circulation record recorded in the second digital certificate in the bill digital certificate is added, and a new QR code watermark is generated according to the updated bill digital certificate, and the anti-counterfeiting electronic bill stored in the second block address is updated according to the new QR code watermark; wherein, adding the bill circulation record recorded in the second digital certificate in the bill digital certificate can be understood as adding a new bill circulation record in the second digital certificate in the bill digital certificate according to the current holder, current endorser, acceptor, current circulation times and current business processing time corresponding to the circulation business operation.
[0101] The embodiment of the present application designs a blockchain network including a quantum key distribution node, a bill management node and multiple user nodes. The quantum key distribution node distributes quantum key pairs to the bill management node and the user node, and the user node accesses the bill business request submitted by the user to cooperate with the bill management node to handle related business, so as to meet the customized needs of bill application and support the digital management of the whole process of application, circulation, acceptance and printing. A bill life cycle record tracking and bill anti-counterfeiting two-in-one electronic data communication transmission scheme based on data vouchers carrying bill key content and circulation records and embedded in the business electronic bill in the form of a two-dimensional code watermark is proposed. Not only can the anti-counterfeiting effect of the bill be improved by the digital bill carrying its own full life cycle data information, ensuring that the content of the digital bill is authentic and verifiable, but also reliable tracking and tracing of the full life cycle operations of the bill, such as application, circulation, printing and acceptance of the digital bill, can be achieved, ensuring that the source of the digital bill is controllable, the process is verifiable and the printing is standardized, thereby effectively reducing the security risks introduced by the digital bill as electronic data, and providing reliable technical support for promoting the large-scale promotion and use of digital bills.
[0102] It should be noted that although the steps in the above flowchart are shown in sequence according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders.
[0103] In one embodiment, Figure 3 As shown, a digital bill management system based on data vouchers is provided, which is applied to a blockchain network; the blockchain network includes a quantum key distribution node, a bill management node and multiple user nodes; the system includes:
[0104] The bill claim access module 1 is used to respond to the user's bill claim request, and the first user node requests the quantum key from the quantum key distribution node according to the claim service type, encrypts and stores the corresponding bill claim information in the first block according to the acquired quantum private key, and sends the bill service request generated according to the first block address to the bill management node; the bill claim information includes the claim bill type, bill claim information and bill circulation constraints;
[0105] The bill application processing module 2 is used to receive the bill business request, and the bill management node obtains the bill application information according to the first block address, fills the preset blank electronic bill according to the bill application information to generate a business electronic bill, and generates a bill circulation rule according to the applied bill type and the bill circulation constraint. Then, the bill digital certificate generated according to the bill circulation rule and the bill key elements is converted into a QR code watermark and embedded in the business electronic bill, an anti-counterfeiting electronic bill is generated and stored in the second block, and the second block address is fed back to the corresponding bill applicant.
[0106] In one embodiment, a digital ticket management system based on data vouchers is provided, such as Figure 4 As shown, the system also includes:
[0107] The bill printing processing module 3 is used to respond to the bill printing request sent by the bill claimant through the first user node, and the bill management node obtains the corresponding bill printing executable program storage block address according to the bill printing type in the bill printing request, and feeds back the bill printing executable program storage block address to the bill claimant through the first user node, so that the bill claimant obtains the bill printing executable program to print the anti-counterfeiting electronic bill.
[0108] In one embodiment, a digital ticket management system based on data vouchers is provided, the system further comprising:
[0109] The bill circulation processing module is used to receive the bill circulation request sent by the second user node, and the bill management node obtains the corresponding bill circulation information; the bill circulation request includes an endorsement transfer request and a direct acceptance request; the bill circulation information includes the identity data of the bill holder and the circulation request data; the circulation request data includes the circulation bill number, the bill circulation method, the bill circulation object and the bill circulation amount;
[0110] Used to obtain the corresponding anti-counterfeiting electronic bill according to the circulation bill number, and obtain the circulation request type corresponding to the bill circulation request after verifying the identity data of the bill holder according to the bill digital certificate of the anti-counterfeiting electronic bill;
[0111] When the transfer request type is an endorsement transfer request, the transfer request data is verified for transfer conditions and endorsement according to the bill transfer rules in the first digital certificate in the bill digital certificate, and after the verification is passed, the corresponding transfer business operation is performed to continue to increase the bill transfer record recorded in the second digital certificate in the bill digital certificate, and a new two-dimensional code watermark is generated according to the updated bill digital certificate, and the anti-counterfeiting electronic bill stored in the second block address is updated according to the new two-dimensional code watermark;
[0112] When the circulation request type is a direct acceptance request, the circulation request data is verified for circulation conditions and acceptance according to the bill circulation rules in the first digital certificate in the bill digital certificate, and after the verification is passed, the corresponding acceptance business operation is executed, the bill circulation record recorded in the second digital certificate in the bill digital certificate is continued to be added, and a new QR code watermark is generated according to the updated bill digital certificate, and the anti-counterfeiting electronic bill stored in the second block address is updated according to the new QR code watermark.
[0113] For the specific definition of the digital bill management system based on data vouchers, please refer to the definition of the digital bill management method based on data vouchers above, and the corresponding technical effects can also be obtained equivalently, which will not be repeated here. Each module in the above-mentioned digital bill management system based on data vouchers can be implemented in whole or in part by software, hardware and a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.
[0114] Figure 5 FIG. 1 shows an internal structure diagram of a computer device in an embodiment, and the computer device may specifically be a terminal or a server. Figure 5 As shown, the computer device includes a processor, a memory, a network interface, a display, a camera and an input device connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a digital ticket management method based on data vouchers is implemented. The display screen of the computer device can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covered on the display screen, or a button, trackball or touchpad set on the computer device housing, or an external keyboard, touchpad or mouse, etc.
[0115] It can be understood by those skilled in the art that Figure 5 The structure shown in the figure is only a block diagram of a part of the structure related to the present application scheme, and does not constitute a limitation on the computer device to which the present application scheme is applied. The specific computing device may include more or fewer components than shown in the figure, or combine certain components, or have the same component arrangement.
[0116] In one embodiment, a computer device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the steps of the above method are implemented when the processor executes the computer program.
[0117] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the above method are implemented.
[0118] In summary, the embodiments of the present invention provide a digital bill management method and system based on data vouchers. The digital bill management method based on data vouchers realizes the design of a blockchain network including a quantum key distribution node, a bill management node and multiple user nodes. The quantum key distribution node distributes quantum key pairs to the bill management node and the user node, and the user node accesses the bill business request submitted by the user to cooperate with the bill management node to handle related business. The customized demand for bill application is met and the digital management of the whole process of application, circulation, acceptance and printing is supported. A method based on data vouchers to carry the key content and circulation records of bills is proposed. The two-in-one electronic data communication transmission solution of bill life cycle record tracking and bill anti-counterfeiting, which is recorded and embedded in the business electronic bill in the form of QR code watermark, can not only enhance the bill anti-counterfeiting effect by carrying the digital bill's own full life cycle data information and ensure the authenticity and verifiability of the digital bill content, but also realize the reliable tracking and tracing of the bill's full life cycle operations such as application, circulation, printing and acceptance of digital bills, ensuring the controllable source of the digital bill, the verifiable process and the printing standard, thereby effectively reducing the security risks introduced by digital bills as electronic data, and providing reliable technical support for promoting the large-scale promotion and use of digital bills.
[0119] Each embodiment in this specification is described in a progressive manner, and the same or similar parts of each embodiment can be directly referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment. It should be noted that the technical features of the above-mentioned embodiments can be combined arbitrarily. In order to make the description concise, all possible combinations of the technical features in the above-mentioned embodiments are not described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0120] The above-mentioned embodiments only express several preferred implementation modes of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for ordinary technicians in the technical field, several improvements and substitutions can be made without departing from the technical principles of the present invention, and these improvements and substitutions should also be regarded as the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be based on the protection scope of the claims.
Claims
1. A digital bill management method based on data vouchers, characterized in that: Applied to a blockchain network; the blockchain network includes a quantum key distribution node, a bill management node and multiple user nodes; the method includes the following steps: In response to a user's bill claiming request, the first user node requests a quantum key from the quantum key distribution node according to the claiming service type, encrypts and stores the corresponding bill claiming information in the first block according to the acquired quantum private key, and sends the bill business request generated according to the first block address to the bill management node; the bill claiming information includes the claiming bill type, bill claiming materials and bill circulation constraints; the bill circulation constraints include the circulation object type and the circulation area range; The bill business request is received, and the bill management node obtains the bill application information according to the first block address, fills the preset blank electronic bill according to the bill application information to generate a business electronic bill, and generates a bill circulation rule according to the applied bill type and the bill circulation constraint, converts the bill digital certificate generated according to the bill circulation rule and the bill key elements into a two-dimensional code watermark and embeds it in the business electronic bill, generates an anti-counterfeiting electronic bill and stores it in the second block, and feeds back the second block address to the corresponding bill applicant; the bill circulation rule includes a circulation method, a target circulation object, a target circulation area, an endorsement verification rule, and an acceptance verification rule; Among them, the key elements of the bill include the issuer, the holder and the business processing time; The step of converting the bill digital certificate generated according to the bill circulation rules and bill key elements into a QR code watermark comprises: Fill the bill number of the business electronic bill and each bill circulation rule into the preset rule catalog table to generate a first digital certificate; Generate a corresponding bill circulation record according to the bill key elements of the business electronic bill, and add the bill circulation record to a preset bill circulation information record table to generate a second digital certificate; the bill circulation record includes the issuer, holder, endorser, endorsee, acceptor, circulation times and business handling time; The first digital certificate is combined with the second digital certificate to generate the bill digital certificate, and a corresponding circulation certificate QR code is generated according to the bill digital certificate and the issuer logo; Perform invisible watermark conversion on the circulation voucher QR code according to the wavelet algorithm to obtain the corresponding QR code watermark; The step of generating a bill circulation rule according to the bill application type and the bill circulation constraint comprises: Determine the circulation mode according to the type of the claimed bill, the credit information of the claimant and the bank account information of the claimant; the circulation mode includes whole package circulation and sub-package circulation; According to the type of the circulation object and the range of the circulation area in the bill circulation constraint, the corresponding target circulation object and the target circulation area are obtained respectively; According to the type of bill applied for and the circulation method, traverse the pre-built bill governance rule library to obtain the corresponding endorsement verification rules and acceptance verification rules; the endorsement verification rules include basic endorsement condition verification rules, endorser verification rules and endorsement continuity verification rules; The bill circulation rules are uploaded to the blockchain network after consensus is reached through a preset consensus mechanism.
2. The digital bill management method based on data voucher according to claim 1, characterized in that: The bill application materials include the applicant's basic information, credit information, bank account information, application documents and official seal information; The step of obtaining the bill claiming information according to the first block address by the bill management node includes: Decrypting the first block address to obtain corresponding bill claim information according to the quantum public key corresponding to the quantum private key; Obtain the company registration information of the bill claimant, and review and verify the basic information and official seal information of the bill claimant in the bill claim information according to the company registration information of the bill claimant to obtain the corresponding identity verification result; the company registration information of the bill claimant includes the company name, the legal representative of the company and the registered official seal information; When the identity verification result is qualified, obtaining the credit certificate of the claimant provided by a third-party credit service agency, and verifying the credit information of the claimant in the bill application information according to the credit certificate of the claimant to obtain a credit verification result; When the credit verification result is qualified, the corresponding bill handling rules are obtained according to the bill type applied for, and according to the bill handling rules, the bank account information of the applicant and the handling documents, it is determined whether the bill applicant meets the application qualifications; If it meets the requirements, the bill business request is determined to be approved, otherwise, the bill business request is rejected.
3. The digital bill management method based on data voucher according to claim 1, characterized in that: The steps of generating the preset blank electronic receipt include: Obtain bill images of various types of bills to be claimed, and extract regions of interest from the bill images using a superpixel segmentation algorithm; Generate a corresponding bill image to be analyzed according to the region of interest, and perform binarization processing on the bill image to be analyzed to obtain a corresponding bill binary image; Through Hough transform detection, the binary image of the bill is tilted and corrected to obtain a corresponding binary image to be analyzed; Extracting a table frame from the binary image to be analyzed by mathematical morphology to obtain a first table frame diagram; Extracting a table frame from the binary image to be analyzed by using a U-net network model to obtain a second table frame diagram; Perform pixel fusion on the first table frame image and the second table frame image to obtain a corresponding bill table frame image, and obtain a corresponding table frame cell position information set based on the bill table frame image and a preset target detection algorithm; Adding an editable text layer to the bill table frame image, filling the editable text layer according to the table frame cell position information set and the fixed feature information set corresponding to the bill application type, to obtain a corresponding blank bill image; the fixed feature information set includes the bill fixed text content and the corresponding typesetting position; Scaling the blank bill image according to the bill size of the bill type applied for, and adding an editable text layer to the scaled blank bill image to obtain the preset blank electronic bill; The preset blank electronic receipts of various types of application receipts are stored on the chain.
4. The digital bill management method based on data voucher according to claim 1, characterized in that: The method further comprises: In response to a ticket printing request sent by the ticket claimant through the first user node, the ticket management node obtains the corresponding ticket printing executable program storage block address according to the ticket printing type in the ticket printing request, and feeds back the ticket printing executable program storage block address to the ticket claimant through the first user node, so that the ticket claimant obtains the ticket printing executable program to print the anti-counterfeiting electronic ticket.
5. The digital bill management method based on data voucher according to claim 1, characterized in that: The method further comprises: Receiving a bill circulation request sent by the second user node, the bill management node acquires corresponding bill circulation information; the bill circulation request includes an endorsement transfer request and a direct acceptance request; the bill circulation information includes bill holder identity data and circulation request data; the circulation request data includes a circulation bill number, a bill circulation method, a bill circulation object, and a bill circulation amount; According to the circulation bill number, the corresponding anti-counterfeiting electronic bill is obtained, and according to the bill digital certificate of the anti-counterfeiting electronic bill, after the identity data of the bill holder is verified, the circulation request type corresponding to the bill circulation request is obtained; When the circulation request type is an endorsement transfer request, the circulation condition verification and endorsement verification are performed on the circulation request data according to the bill circulation rule in the first digital certificate in the bill digital certificate, and after the verification is passed, the corresponding circulation business operation is performed, the bill circulation record recorded by the second digital certificate in the bill digital certificate is added, and a new two-dimensional code watermark is generated according to the updated bill digital certificate, and the anti-counterfeiting electronic bill stored in the second block address is updated according to the new two-dimensional code watermark; When the circulation request type is a direct acceptance request, the circulation condition verification and acceptance verification are performed on the circulation request data according to the bill circulation rules in the first digital certificate in the bill digital certificate, and after the verification is passed, the corresponding acceptance business operation is executed, the bill circulation record recorded by the second digital certificate in the bill digital certificate is added, and a new QR code watermark is generated according to the updated bill digital certificate, and the anti-counterfeiting electronic bill stored in the second block address is updated according to the new QR code watermark.
6. A digital bill management system based on data vouchers, characterized in that: Applied to a blockchain network; the blockchain network includes a quantum key distribution node, a bill management node and multiple user nodes; the system includes: A bill claim access module, used to respond to a user bill claim request, request a quantum key from the quantum key distribution node according to the claim service type by the first user node, encrypt and store the corresponding bill claim information in the first block according to the acquired quantum private key, and send the bill service request generated according to the first block address to the bill management node; the bill claim information includes the type of bill claimed, bill claim information and bill circulation constraints; the bill circulation constraints include the type of circulation object and the scope of circulation area; A bill application processing module, for receiving the bill business request, the bill management node obtaining the bill application information according to the first block address, filling the preset blank electronic bill according to the bill application information to generate a business electronic bill, and generating a bill circulation rule according to the applied bill type and the bill circulation constraint, converting the bill digital certificate generated according to the bill circulation rule and the bill key elements into a two-dimensional code watermark and embedding it in the business electronic bill, generating an anti-counterfeiting electronic bill and storing it in the second block, and feeding back the second block address to the corresponding bill applicant; the bill circulation rule includes a circulation method, a target circulation object, a target circulation area, an endorsement verification rule and an acceptance verification rule; Among them, the key elements of the bill include the issuer, the holder and the business processing time; The step of converting the bill digital certificate generated according to the bill circulation rules and bill key elements into a QR code watermark includes: Fill the bill number of the business electronic bill and each bill circulation rule into the preset rule catalog table to generate a first digital certificate; Generate a corresponding bill circulation record according to the bill key elements of the business electronic bill, and add the bill circulation record to a preset bill circulation information record table to generate a second digital certificate; the bill circulation record includes the issuer, holder, endorser, endorsee, acceptor, circulation times and business handling time; The first digital certificate is combined with the second digital certificate to generate the bill digital certificate, and a corresponding circulation certificate QR code is generated according to the bill digital certificate and the issuer logo; Perform invisible watermark conversion on the circulation voucher QR code according to the wavelet algorithm to obtain the corresponding QR code watermark; The generating of the bill circulation rule according to the bill application type and the bill circulation constraint includes: Determine the circulation mode according to the type of the claimed bill, the credit information of the claimant and the bank account information of the claimant; the circulation mode includes whole package circulation and sub-package circulation; According to the type of the circulation object and the range of the circulation area in the bill circulation constraint, the corresponding target circulation object and the target circulation area are obtained respectively; According to the type of bill applied for and the circulation method, traverse the pre-built bill governance rule library to obtain the corresponding endorsement verification rules and acceptance verification rules; the endorsement verification rules include basic endorsement condition verification rules, endorser verification rules and endorsement continuity verification rules; The bill circulation rules are uploaded to the blockchain network after consensus is reached through a preset consensus mechanism.
7. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 5 are implemented.
8. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 5 are implemented.
Citation Information
Patent Citations
Data processing method, apparatus, storage medium and apparatus for electronic tickets
CN109087024A
Single character area detection method and bill content identification method
CN110490193A
Electronic bill data processing method and device, computer equipment and storage medium
CN110599266A
Bank bill management method and device based on block chain
CN113283886A
Cited By
Dynamic risk assessment and intelligent alarm system for bill circulation time sequence modeling
CN122434537A
