Bill anti-counterfeiting and automatic verification method, device, equipment, medium and product
By combining blockchain technology with smart contracts, efficient and secure anti-counterfeiting and automated verification of bank bills have been achieved, solving the security and efficiency problems in traditional bill management and realizing transparent, traceable and data-sharing of bill information.
Patent Information
- Application Number
- CN202511057175.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-07-30
- Publication Date
- 2025-11-14
AI Technical Summary
Traditional bank bill anti-counterfeiting and verification methods suffer from insufficient anti-counterfeiting capabilities, low verification efficiency, insufficient accuracy, centralized risks, and data silos, resulting in low security and efficiency, high costs, and lack of traceability.
Blockchain technology is used to encrypt and digitally sign bill information, combined with smart contracts for automated verification. The decentralized and immutable nature of blockchain enables transparent and traceable bill information. CRNN+CTC technology is used for bill character recognition, and data mining technology is combined to evaluate the creditworthiness of participants, thereby enabling dynamic adjustment of verification strategies.
It improves the security and efficiency of bill management, realizes the immutability, transparency and traceability of bill information, breaks down data silos, and supports efficient data sharing across banks and borders.
Smart Images

Figure CN120952813A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present invention relate to the fields of blockchain, smart contracts and data mining technology, and in particular to a method, apparatus, equipment, medium and product for anti-counterfeiting and automated verification of invoices. Background Technology
[0002] Bank drafts are financial instruments issued by banks or financial institutions, serving functions such as payment, settlement, credit, and financing. With the rapid development of financial technology, the security and efficiency of bank drafts, as important financial instruments, are receiving increasing attention. Anti-counterfeiting technology for bank drafts can effectively ensure transaction security, maintain financial market order, protect the legitimate rights and interests of draft holders, and enhance bank reputation. Draft verification technology can ensure transaction security, improve efficiency, and support supervision and auditing.
[0003] Traditional bank draft anti-counterfeiting and verification systems are primarily centralized, controlled and managed by a central node or authoritative institution. Relying on manual review, they suffer from the following problems: 1. Insufficient anti-counterfeiting capabilities: Traditional paper drafts are easily forged or altered, and anti-counterfeiting technologies (such as watermarks and security threads) are ill-equipped to counter increasingly sophisticated forgery methods. 2. Low verification efficiency: Draft verification relies on manual operation, which is cumbersome and prone to errors, especially in interbank or cross-border transactions where verification times are long. 3. Insufficient verification accuracy: Traditional methods rely on preset, fixed verification rules, failing to dynamically adjust based on the draft data and external influencing factors, leading to verification errors. 4. Centralization risk: Traditional draft management systems depend on centralized institutions (such as banks and clearinghouses) for management and verification, with other nodes relying on the central institution for communication and coordination, creating single points of failure and data tampering risks. 5. High costs and lack of traceability: The printing, storage, and transportation of paper drafts consume significant resources, and lost or damaged drafts are difficult to trace. 6. Data silos: It is difficult to share bill information between different banks, resulting in information asymmetry and duplicate verification.
[0004] Therefore, there is an urgent need for a method for preventing and verifying counterfeit bank notes. Summary of the Invention
[0005] This invention provides a method, apparatus, equipment, medium, and product for anti-counterfeiting and automated verification of bank documents, which can solve the problems of low efficiency, easy forgery, and data silos in the traditional anti-counterfeiting and verification process of bank documents, realize the immutability, transparency, and traceability of document information, improve the efficiency and security of document management, and achieve data sharing.
[0006] According to one aspect of the present invention, a method for anti-counterfeiting and automated verification of invoices is provided, comprising:
[0007] Obtain the invoices to be processed and extract the invoice information corresponding to the invoices to be processed;
[0008] The ticket information is encrypted to obtain encrypted information and a digital signature, and the encrypted information and the digital signature are recorded in the blockchain.
[0009] A smart contract is deployed on the blockchain to verify the invoice information.
[0010] When the state of a target block in the blockchain changes, the ticket information of each block in the blockchain is updated.
[0011] According to another aspect of the present invention, a document anti-counterfeiting and automated verification device is provided, the device comprising:
[0012] The acquisition module is used to acquire the invoices to be processed and extract the invoice information corresponding to the invoices to be processed;
[0013] An encryption module is used to encrypt the ticket information to obtain encrypted information and a digital signature, and to record the encrypted information and the digital signature to the blockchain;
[0014] The verification module is used to deploy smart contracts on the blockchain and verify ticket information through the smart contracts;
[0015] The update module is used to update the ticket information of each block in the blockchain when the state of a target block in the blockchain changes.
[0016] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising:
[0017] At least one processor;
[0018] and a memory communicatively connected to the at least one processor;
[0019] The memory stores a computer program that can be executed by the at least one processor, which is then executed by the at least one processor to enable the at least one processor to perform the invoice anti-counterfeiting and automated verification method according to any embodiment of the present invention.
[0020] According to another aspect of the present invention, a computer-readable storage medium is provided, the computer-readable storage medium storing computer instructions, the computer instructions being configured to cause a processor to execute and implement the document anti-counterfeiting and automated verification method according to any embodiment of the present invention.
[0021] According to another aspect of the present invention, embodiments of the present invention also provide a computer program product, the computer program product including a computer program, which, when executed by a processor, implements the document anti-counterfeiting and automated verification method described in any embodiment of the present invention.
[0022] This invention first acquires the bill to be processed and extracts the corresponding bill information. Then, the bill information is encrypted to obtain encrypted information and a digital signature, which are recorded on the blockchain. Next, a smart contract is deployed on the blockchain to verify the bill information. Finally, when the state of a target block in the blockchain changes, the bill information in each block of the blockchain is updated. This invention solves the problems of low efficiency, susceptibility to forgery, and data silos in traditional bank bill anti-counterfeiting and verification processes. By using blockchain technology to achieve immutability, transparency, and traceability of bill information, and combining this with dynamic smart contracts for bill information verification, the efficiency and security of bill management are improved, and data sharing is achieved.
[0023] It should be understood that the description in this section is not intended to identify key or essential features of the embodiments of the present invention, nor is it intended to limit the scope of the invention. Other features of the invention will become readily apparent from the following description. Attached Figure Description
[0024] To more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings used in the embodiments will be briefly introduced below. It should be understood that the following drawings only show some embodiments of the present invention and should not be regarded as a limitation on the scope. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort.
[0025] Figure 1 This is a flowchart of a document anti-counterfeiting and automated verification method according to an embodiment of the present invention;
[0026] Figure 2 This is a schematic diagram of the structure of a document anti-counterfeiting and automated verification device according to an embodiment of the present invention;
[0027] Figure 3 This is a schematic diagram of the structure of an electronic device that implements the document anti-counterfeiting and automated verification method according to embodiments of the present invention. Detailed Implementation
[0028] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of the present invention.
[0029] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of the invention described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and their derivatives, are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.
[0030] It is understood that before using the technical solutions disclosed in the various embodiments of this disclosure, users should be informed of the types, scope of use, and usage scenarios of the personal information involved in this disclosure in an appropriate manner in accordance with relevant laws and regulations, and user authorization should be obtained.
[0031] Example 1
[0032] Figure 1 This is a flowchart of a method for anti-counterfeiting and automated verification of bank documents according to an embodiment of the present invention. This embodiment is applicable to the anti-counterfeiting and automated verification of bank documents based on blockchain and dynamic smart contracts. The method can be executed by the anti-counterfeiting and automated verification device of the present invention, which can be implemented in software and / or hardware, such as... Figure 1 As shown, the method specifically includes the following steps:
[0033] S101. Obtain the bills to be processed and extract the bill information corresponding to the bills to be processed.
[0034] In this embodiment, the bill to be processed can be a bank bill for anti-counterfeiting and verification. For example, the bill information corresponding to the bill to be processed can be key information of the bill, such as the bill number, amount, issuer, and validity period.
[0035] In practice, paper tickets can be converted into digital tickets using high-precision scanning and OCR (Optical Character Recognition) technology. Key information can then be extracted, such as ticket number, amount, issuer, and validity period. OCR technology is a technique that converts text in an image into editable text. It is widely used in computer vision, such as in document digitization, license plate recognition, and handwriting recognition.
[0036] Specifically, paper tickets can be converted into digital tickets through high-precision scanning and OCR technology. OCR is implemented using CRNN (Convolutional Recurrent Neural Network) + CTC (Contextual Transformation of Components) technology. Among them, CRNN is a convolutional recurrent neural network structure used to solve image-based sequence recognition problems, especially scene text recognition problems. In the specific implementation process, the first step is to extract feature sequences through the convolutional layers of a CNN (Convolutional Neural Network) and reduce the dimensionality of the data. The CNN consists of convolutional layers and max pooling layers. Unlike ordinary CNN networks, the CRNN first scales the input image to the same height while keeping the width unchanged before training. The second step is to use the recurrent layers of an RNN (Recurrent Neural Network), which consists of a bidirectional LSTM (Long Short-Term Memory) recurrent neural network to predict the label distribution of each feature vector in the feature sequence. The error of the recurrent layer is backpropagated and finally transformed into a feature sequence, which is then fed back to the CNN convolutional layers. The third step is to use the transcription layer to integrate all possible results of the feature sequence predicted by the LSTM network and transform it into the final result. The CTC model connects time classification and can perform end-to-end training, outputting sequence results of variable length.
[0037] S102. Encrypt the ticket information to obtain encrypted information and digital signature, and record the encrypted information and digital signature to the blockchain.
[0038] It should be noted that the encrypted information can be obtained by encrypting the bill number, amount, issuer, validity period, and other bill information. Preferably, the encryption method can be, for example, asymmetric encryption.
[0039] As we know, digital signatures are a cryptographic technology used to verify the authenticity, integrity, and non-repudiation of digital information. It uses mathematical algorithms to sign electronic documents, messages, or data, ensuring that the information has not been tampered with during transmission and confirming the sender's identity. The core of digital signature technology is the use of asymmetric encryption algorithms, hash functions, digital certificates, and PKI (Public Key Infrastructure) to sign and verify information, offering advantages such as high security, high efficiency, legal validity, and cross-platform compatibility.
[0040] It should be explained that a digital signature can be generated by using a hash function to generate a unique message digest based on the ticket information, and then encrypting the message digest to create a digital signature.
[0041] As we know, blockchain is a distributed database technology that stores data in a chain-like data structure. Each data block is linked to the previous one, forming a continuously growing data chain. Each data block contains a certain amount of transaction information or other data, which is added to the blockchain after being encrypted and verified. Because each data block contains the hash value of the previous data block, any attempt to tamper with the data will be quickly detected. The core characteristics of blockchain technology include decentralization, immutability, transparency, openness, security, and trustworthiness. Through its decentralized nature, blockchain enables data exchange and verification without a trusted center, thereby reducing the single point of failure and data tampering risks that may exist in centralized systems. At the same time, due to the immutability of data, once data is recorded on the blockchain, it cannot be changed or deleted, providing a guarantee for data security.
[0042] Specifically, after extracting key information from paper tickets using OCR technology, the key information is encrypted using asymmetric encryption and digital signature technology, and a unique identifier is generated. The encrypted block information is then uploaded to the blockchain.
[0043] S103. Deploy smart contracts on the blockchain and verify invoice information through smart contracts.
[0044] As we know, a smart contract is an automated protocol based on blockchain technology. It embeds contract terms into the blockchain in the form of programming code, becoming an immutable, transparent program. A smart contract has an interface that can receive and respond to external messages, and store and process these messages. The contract contains several initial states, transformation rules, triggering conditions, and corresponding operations. After a transaction is submitted and confirmed by a consensus algorithm, the contract is installed and deployed on the blockchain. When a new transaction meets certain conditions, the corresponding terms of the smart contract are triggered for execution. After consensus is reached, the transaction's "inputs," "outputs," and state changes within the contract are all recorded on the blockchain and all nodes are notified.
[0045] Specifically, the verification rules are stored in the function area of the contract. Customers or banks submit bill information through the user interface, and the verification is performed in real time and the results are returned.
[0046] In practice, on-chain checks and verifications are conducted through smart contracts. The creditworthiness of the participants in the bill is evaluated and updated based on multi-dimensional factors. Data mining technology is used to extract key influencing factors and optimization points from historical bills and to update the contract strategy in real time.
[0047] S104. When the state of a target block in the blockchain changes, update the ticket information of each block in the blockchain.
[0048] The target block can be a block whose state has changed in the blockchain.
[0049] Specifically, if the state of a block changes, all node information is synchronized and updated via the blockchain, and the reputation values of the participants are also updated.
[0050] This invention first acquires the bill to be processed and extracts the corresponding bill information. Then, the bill information is encrypted to obtain encrypted information and a digital signature, which are recorded on the blockchain. Next, a smart contract is deployed on the blockchain to verify the bill information. Finally, when the state of a target block in the blockchain changes, the bill information in each block of the blockchain is updated. This invention solves the problems of low efficiency, susceptibility to forgery, and data silos in traditional bank bill anti-counterfeiting and verification processes. By using blockchain technology to achieve immutability, transparency, and traceability of bill information, and combining this with dynamic smart contracts for bill information verification, the efficiency and security of bill management are improved, and data sharing is achieved.
[0051] Optionally, the ticket information is encrypted to obtain encrypted information and a digital signature, including:
[0052] For the bill information, a first message digest is generated using a hash function, and the first message digest is encrypted based on the issuing institution's private key to generate a digital signature.
[0053] As we know, a hash value is a unique string of fixed length that is converted from data of arbitrary length through a hash function. A hash value is usually a string composed of letters and numbers and has the characteristics of fixed length, uniqueness, irreversibility, and sensitivity. It is widely used in fields such as data integrity verification, password storage, digital signatures, and blockchain.
[0054] The first message digest can be a unique message digest generated using a hash function for each bill's information, such as the bill number, amount, issuer, and validity period; that is, the bill hash value. This embodiment does not limit the specific hash function; users can choose one according to their actual needs.
[0055] It is generally understood that the issuing institution (the party issuing the bill) refers to the company or individual that issues the bill. In commercial transactions, the issuing party issues a bill to the recipient, promising to pay a certain amount of money at a future date. In the case of bank bills, the issuing institution may also be the bank itself, especially when the bill is accepted or guaranteed by the bank.
[0056] The receiving institution (acceptor) refers to a bank or other financial institution that agrees to accept the negotiable instrument and undertakes to pay the amount specified on the instrument upon maturity. The receiving institution is responsible for paying the holder the amount specified on the instrument upon maturity.
[0057] Specifically, for each bill, a unique message digest is generated using a hash function, which contains information such as the bill number, amount, issuer, and validity period. The message digest is then encrypted using the issuing institution's private key to generate a digital signature.
[0058] The timestamps of the bill's generation and transaction are recorded, concatenated with the bill information, and encrypted using the receiving institution's public key to obtain encrypted information.
[0059] Specifically, the timestamps for generation and transaction are recorded to ensure the authenticity and timeliness of the bills. These timestamps are then combined with information such as the bill number, amount, issuer, and validity period, and encrypted using the receiving institution's public key to obtain encrypted information.
[0060] Optionally, after recording the encrypted information and digital signature to the blockchain, the following may also be included:
[0061] After receiving the encrypted information and digital signature record, the receiving institution uses its private key to decrypt the encrypted information and obtain the main content.
[0062] It should be noted that the main text can be the bill number, amount, issuer, validity period, and other bill information obtained after decrypting the encrypted information.
[0063] Specifically, after encryption and on-chain processing, the receiving institution receives the encrypted text content and the encrypted digital signature, and uses the receiving institution's private key to decrypt the encrypted text content to obtain the original text content.
[0064] Perform a summary operation on the main text to obtain the second message summary.
[0065] As we know, hashing is an important operation in the field of information security. It uses specific algorithms to convert data of arbitrary length (such as files, messages, etc.) into a fixed-length digest value. The main purpose of hashing is to ensure data integrity and verify that the data has not been tampered with, and it is also used to achieve fast data retrieval.
[0066] The second message digest can be a message digest obtained by performing a digest operation on the decrypted text content.
[0067] Specifically, the decrypted text content is digested to obtain the actual message digest.
[0068] The digital signature is decrypted using the issuing authority's public key to obtain the first message digest.
[0069] Specifically, the received digital signature is decrypted using the issuing authority's public key to obtain the correct message digest.
[0070] The first message digest and the second message digest are compared. If they match, it is determined that the bill information has not been tampered with.
[0071] Specifically, the first message digest and the second message digest are compared to determine whether the message has been tampered with. For example, if they match, the ticket information is determined not to have been tampered with; if they do not match, the ticket information may have been tampered with.
[0072] The technical solution of this invention supports real-time verification during the circulation of invoices, ensuring the authenticity and uniqueness of invoices while improving the efficiency of invoice verification.
[0073] Optionally, after verifying the invoice information via a smart contract, the following may also be included:
[0074] Obtain the target reputation value for each participant in the bill of exchange in the blockchain.
[0075] It should be noted that the participants in a negotiable instrument can be any entity involved throughout the instrument's lifecycle, such as the drawer or acceptor. The target credit score can be the real-time credit score of the participants.
[0076] Specifically, the creditworthiness of bill participants is assessed and updated based on multi-dimensional factors.
[0077] The smart contract is updated based on the target reputation value corresponding to each bill participant.
[0078] Specifically, data mining techniques are used to extract key influencing factors and optimization points from historical bills, and contract strategies are updated in real time.
[0079] Optionally, obtain the target reputation value corresponding to each bill participant in the blockchain, including:
[0080] Obtain the scores of each element for each participant in the blockchain, and perform a weighted calculation on the scores of each element to obtain the initial reputation score for each participant.
[0081] In this embodiment, the scores for each element corresponding to each participant in the blockchain can be obtained by experts.
[0082] The commonly used bill types and their key elements are shown in Table 1. The key elements of a bill include: drawer, drawee, payee, bill amount, actual payment amount, bill date, payment date, payment period, and additional terms.
[0083] First, the creditworthiness of the participants in the bill (such as the drawer and acceptor) is dynamically assessed, and the verification strategy is adjusted based on the credit scores. Bills from participants with low creditworthiness undergo more stringent verification to reduce risk. Participants include two main categories: financial institutions and customers. When registering nodes on the blockchain, their creditworthiness is initially assessed based on various factors, resulting in an initial credit score.
[0084] Table 1
[0085]
[0086] The main factors influencing customer credit assessment include: collateral and guarantees, credit history, assets and income, debt burden, repayment ability, behavior and habits, legal and compliance, social and professional background, and other factors. Specifically, collateral and guarantees include: collateral and guarantors; credit history includes: credit reports and credit scores; assets and income include: asset level and income status; debt burden includes: existing debt and debt-to-income ratio; repayment ability includes: cash flow and assets and liabilities; behavior and habits include: savings habits and consumption habits; legal and compliance includes: compliance and legal records; social and professional background includes: professional background and educational background; and other factors include: insurance status, family situation, and age.
[0087] Specifically, by filling in scores for each element using a rating scale, the initial reputation score is obtained by weighting the scores of the participating nodes in the blockchain.
[0088] Taking financial institutions as an example, the scores for factors such as financial health, customer service, market performance, and technological innovation are {score0, score1, ... score}. n According to the expert estimation method, the weights of each element are set as {w0, w1, ... w}. n The initial credit score is calculated using a weighted average.
[0089]
[0090] Where reputation0 is the initial reputation score, w i The score represents the weight of each element. i Rate each element.
[0091] When a transaction occurs, the initial credit score of each participant in the bill is updated according to the change in the bill's status, resulting in the target credit value for each participant.
[0092] In practice, when a transaction occurs, the initial credit scores of the participants are updated in real time based on changes in the status of the negotiable instrument. For example, the negotiable instrument status transition process may include: issuance status, delivery status, acceptance status, payment status, refusal status, overdue status, recourse status, voided status, and cancellation status.
[0093] Specifically, when the status of a negotiable instrument transitions to void, cancelled, or recourse status, the credit scores of the drawer and drawee are dynamically adjusted based on the instrument information. For example, the target credit score corresponding to the nth status is as follows:
[0094] reputation n =reputation0(1+ε i ·cost·(date_deadline-date_pay));
[0095] Among them, reputation n The target reputation value is ε, reputation0 is the initial reputation score, and ε is the target reputation value. i ε1 represents the adjustment coefficients corresponding to the three states mentioned above, i = {1, 2, 3}, ε2 represents the cancelled state, ε3 represents the recourse state, cost is the invoice amount, date_deadline is the payment deadline, and date_pay is the actual payment date.
[0096] Optionally, the smart contract can be updated based on the target credit value corresponding to each bill participant, including:
[0097] Based on the target credit score, bill information, transaction records, bill participant information, and external data for each bill participant, key elements in the verification process are identified, and the network parameters for smart contract verification are updated.
[0098] Specifically, by using data mining techniques and combining the target reputation value, invoice information, and other factors obtained above, key elements in the verification process are identified, and the network parameters for smart contract verification are updated.
[0099] As we know, data mining is the process of extracting valuable information, patterns, and knowledge from large amounts of data. It combines various methods such as statistics, machine learning, database technology, and artificial intelligence, aiming to discover hidden patterns and relationships in data to support decision-making and prediction.
[0100] In practice, the data mining process for invoice verification mainly includes: data collection, data preprocessing (data cleaning, feature engineering, data standardization), inputting into a neural network model (including input layer, feature extraction layer, feature fusion layer, neural network layer, and output layer), and obtaining the output.
[0101] The information included in the data collection is shown in Table 2.
[0102] Data preprocessing includes three steps: data cleaning, feature engineering, and data standardization. Data cleaning involves handling missing values, outliers, and duplicate data; feature engineering includes converting date data into numerical features (e.g., converting ticket issuance date and payment date into the number of days from ticket issuance to payment), extracting transaction behavior features (e.g., extracting historical refusal counts and average ticket amount based on payment records and refusal records), and encoding categorical data (e.g., issuer type and payment status); data standardization involves normalizing the numerical features.
[0103] Table 2
[0104]
[0105] Next, a neural network model is used for feature extraction, as shown in Table 3. The input consists of three parts: 1. Numerical feature input layer, which extracts features through 2. Dense Layer; 3. Classification feature input layer, which extracts features through 4. Embedding Layer; 5. Text feature input layer, which extracts features through 6. Embedding Layer and 7. LSTM. After fusing the three parts of features using 8. Concatenate (feature fusion layer), the results are then processed by layers 9 and 10 to obtain a one-dimensional output, which is the score of the smart contract for document verification.
[0106] By extracting historical bill information recorded in the blockchain to train the network (i.e., the aforementioned neural network model), the key factors affecting the bill verification results can be efficiently mined, thereby improving the verification level of smart contracts.
[0107] In this embodiment, blockchain technology enables all nodes within the bank to synchronously update bill information. Consortium blockchain technology enables bill data sharing and collaborative verification among different banks and institutions. Standardized API (Application Programming Interface) interfaces are provided to facilitate connection with other financial institutions or regulatory agencies.
[0108] Blockchain technology, with its decentralized, immutable, transparent, and traceable characteristics, is increasingly being applied in the financial sector. Anti-counterfeiting and verification methods for bank drafts based on blockchain and dynamic smart contracts effectively address the pain points of traditional draft management systems by utilizing blockchain decentralization, smart contracts, and hash encryption technologies, thereby improving the security, efficiency, and transparency of drafts. As blockchain technology continues to mature, its application prospects in the drafting field will become even broader, providing strong support for the digital transformation of the financial industry.
[0109] Table 3
[0110]
[0111] The technical solution of this embodiment provides a bank bill anti-counterfeiting and verification solution based on blockchain and dynamic smart contracts, which has four main advantages: First, high recognition accuracy, using CRNN+CTC technology for bill character recognition, improving recognition accuracy; second, automated intelligent verification, using data mining technology combined with smart contracts to achieve automated verification, which can improve verification efficiency and accuracy; third, transparent and traceable, all bill information is recorded on the blockchain, which can achieve transparent and traceable bill information; and fourth, data sharing, supporting cross-chain data sharing, breaking down data silos and improving information sharing efficiency.
[0112] Example 2
[0113] Figure 2 This is a schematic diagram of a bill anti-counterfeiting and automated verification device according to an embodiment of the present invention. This embodiment is applicable to bank bill anti-counterfeiting and automated verification based on blockchain and dynamic smart contracts. The device can be implemented using software and / or hardware, and can be integrated into any device that provides bill anti-counterfeiting and automated verification functions, such as… Figure 2 As shown, the invoice anti-counterfeiting and automated verification device specifically includes: an acquisition module 201, an encryption module 202, a verification module 203, and an update module 204.
[0114] The acquisition module 201 is used to acquire the bills to be processed and extract the bill information corresponding to the bills to be processed.
[0115] Encryption module 202 is used to encrypt the ticket information to obtain encrypted information and digital signature, and record the encrypted information and digital signature to the blockchain;
[0116] Verification module 203 is used to deploy a smart contract on the blockchain and verify the invoice information through the smart contract;
[0117] The update module 204 is used to update the ticket information of each block in the blockchain when the state of the target block in the blockchain changes.
[0118] Optionally, the encryption module 202 is specifically used for:
[0119] For the aforementioned invoice information, a first message digest is generated using a hash function, and the first message digest is encrypted based on the issuing authority's private key to generate a digital signature;
[0120] The timestamps of the bill generation and transaction are recorded, concatenated with the bill information, and encrypted based on the receiving institution's public key to obtain encrypted information.
[0121] Optionally, the device further includes:
[0122] The first decryption unit is used to decrypt the encrypted information using the private key of the receiving institution after the receiving institution receives the encrypted information and the digital signature record, so as to obtain the main text content.
[0123] A summary processing unit is used to perform a summary operation on the main text content to obtain a second message summary;
[0124] The second decryption unit is used to decrypt the digital signature based on the public key of the issuing authority to obtain the first message digest;
[0125] The comparison unit is used to compare the first message digest and the second message digest. If they match, it is determined that the ticket information has not been tampered with.
[0126] Optionally, the device further includes:
[0127] The acquisition unit is used to acquire the target reputation value corresponding to each bill participant in the blockchain.
[0128] An update unit is used to update the smart contract based on the target reputation value corresponding to each bill participant.
[0129] Optionally, the acquisition unit is specifically used for:
[0130] Obtain the scores of each element corresponding to each bill participant in the blockchain, and perform a weighted calculation on the scores of each element to obtain the initial reputation score corresponding to each bill participant;
[0131] When a transaction occurs, the initial credit score of each of the bill participants is updated according to the change in the bill status to obtain the target credit value for each of the bill participants.
[0132] Optionally, the update unit is specifically used for:
[0133] Based on the target credit score corresponding to each bill participant, the bill information, transaction records, bill participant information, and external data, key elements in the verification process are identified, and the network parameters for the smart contract verification are updated.
[0134] The above-mentioned products can execute the document anti-counterfeiting and automated verification methods provided in any embodiment of the present invention, and have the corresponding functional modules and beneficial effects of the execution method.
[0135] Example 3
[0136] Figure 3 A schematic diagram of an electronic device 30 that can be used to implement embodiments of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processors, cellular phones, smartphones, wearable devices (e.g., helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely illustrative and are not intended to limit the implementation of the invention described and / or claimed herein.
[0137] like Figure 3 As shown, the electronic device 30 includes at least one processor 31 and a memory, such as a read-only memory (ROM) 32 or a random access memory (RAM) 33, communicatively connected to the at least one processor 31. The memory stores computer programs executable by the at least one processor. The processor 31 can perform various appropriate actions and processes based on the computer program stored in the ROM 32 or loaded from storage unit 38 into the RAM 33. The RAM 33 can also store various programs and data required for the operation of the electronic device 30. The processor 31, ROM 32, and RAM 33 are interconnected via a bus 34. An input / output (I / O) interface 35 is also connected to the bus 34.
[0138] Multiple components in electronic device 30 are connected to I / O interface 35, including: input unit 36, such as keyboard, mouse, etc.; output unit 37, such as various types of monitors, speakers, etc.; storage unit 38, such as disk, optical disk, etc.; and communication unit 39, such as network card, modem, wireless transceiver, etc. Communication unit 39 allows electronic device 30 to exchange information / data with other devices through computer networks such as the Internet and / or various telecommunications networks.
[0139] Processor 31 can be a variety of general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of processor 31 include, but are not limited to, central processing unit (CPU), graphics processing unit (GPU), various special-purpose artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, digital signal processors (DSPs), and any suitable processor, controller, microcontroller, etc. Processor 31 performs the various methods and processes described above, such as ticket anti-counterfeiting and automated verification methods:
[0140] Obtain the invoices to be processed and extract the invoice information corresponding to the invoices to be processed;
[0141] The ticket information is encrypted to obtain encrypted information and a digital signature, and the encrypted information and the digital signature are recorded in the blockchain.
[0142] A smart contract is deployed on the blockchain to verify the invoice information.
[0143] When the state of a target block in the blockchain changes, the ticket information of each block in the blockchain is updated.
[0144] In some embodiments, the document anti-counterfeiting and automated verification method may be implemented as a computer program tangibly contained in a computer-readable storage medium, such as storage unit 38. In some embodiments, part or all of the computer program may be loaded and / or installed on electronic device 30 via ROM 32 and / or communication unit 39. When the computer program is loaded into RAM 33 and executed by processor 31, one or more steps of the document anti-counterfeiting and automated verification method described above may be performed. Alternatively, in other embodiments, processor 31 may be configured to perform the document anti-counterfeiting and automated verification method by any other suitable means (e.g., by means of firmware).
[0145] Various embodiments of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field-programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standard products (ASSPs), systems-on-a-chip (SoCs), payload-programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include implementations in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which may be a dedicated or general-purpose programmable processor, capable of receiving data and instructions from a storage system, at least one input device, and at least one output device, and transmitting data and instructions to the storage system, the at least one input device, and the at least one output device.
[0146] Computer programs used to implement the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, such that when executed by the processor, the computer programs cause the functions / operations specified in the flowcharts and / or block diagrams to be performed. The computer programs may be executed entirely on a machine, partially on a machine, or as a standalone software package, partially on a machine and partially on a remote machine, or entirely on a remote machine or server.
[0147] In the context of this invention, a computer-readable storage medium can be a tangible medium that may contain or store a computer program for use by or in conjunction with an instruction execution system, apparatus, or device. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination thereof. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof.
[0148] To provide interaction with a user, the systems and techniques described herein can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user provides input to the electronic device. Other types of devices can also be used to provide interaction with the user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including sound input, voice input, or tactile input).
[0149] The systems and technologies described herein can be implemented in computing systems that include backend components (e.g., as data servers), or computing systems that include middleware components (e.g., application servers), or computing systems that include frontend components (e.g., user computers with graphical user interfaces or web browsers through which users can interact with implementations of the systems and technologies described herein), or any combination of such backend, middleware, or frontend components. The components of the system can be interconnected via digital data communication of any form or medium (e.g., communication networks). Examples of communication networks include local area networks (LANs), wide area networks (WANs), blockchain networks, and the Internet.
[0150] A computing system can include clients and servers. Clients and servers are generally located far apart and typically interact through communication networks. The client-server relationship is created by computer programs running on the respective computers and having a client-server relationship with each other. The server can be a cloud server, also known as a cloud computing server or cloud host, which is a hosting product within the cloud computing service system to address the shortcomings of traditional physical hosts and VPS services, such as high management difficulty and weak business scalability.
[0151] In one embodiment, the present invention further includes a computer program product, which includes a computer program that, when executed by a processor, implements the document anti-counterfeiting and automated verification method of any embodiment of the present invention.
[0152] In implementing the computer program product, computer program code for performing the operations of this invention can be written in one or more programming languages or a combination thereof. Programming languages include object-oriented programming languages such as Java, Smalltalk, and C++, as well as conventional procedural programming languages such as C or similar languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network—including a local area network (LAN) or a wide area network (WAN)—or can be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0153] It should be understood that the various forms of processes shown above can be used, with steps reordered, added, or deleted. For example, the steps described in this invention can be executed in parallel, sequentially, or in different orders, as long as the desired result of the technical solution of this invention can be achieved, and this is not limited herein.
[0154] The specific embodiments described above do not constitute a limitation on the scope of protection of this invention. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this invention should be included within the scope of protection of this invention.
Claims
1. A method for anti-counterfeiting and automated verification of invoices, characterized in that, include: Obtain the invoices to be processed and extract the invoice information corresponding to the invoices to be processed; The ticket information is encrypted to obtain encrypted information and a digital signature, and the encrypted information and the digital signature are recorded in the blockchain. A smart contract is deployed on the blockchain to verify the invoice information. When the state of a target block in the blockchain changes, the ticket information of each block in the blockchain is updated.
2. The method according to claim 1, characterized in that, The ticket information is encrypted to obtain encrypted information and a digital signature, including: For the aforementioned invoice information, a first message digest is generated using a hash function, and the first message digest is encrypted based on the issuing authority's private key to generate a digital signature; The timestamps of the bill generation and transaction are recorded, concatenated with the bill information, and encrypted using the receiving institution's public key to obtain encrypted information.
3. The method according to claim 2, characterized in that, After recording the encrypted information and the digital signature to the blockchain, the method further includes: After receiving the encrypted information and the digital signature record, the receiving institution uses its private key to decrypt the encrypted information to obtain the main text. Perform a summary operation on the main text content to obtain a second message summary; The digital signature is decrypted using the public key of the issuing authority to obtain the first message digest; The first message digest and the second message digest are compared. If they match, it is determined that the ticket information has not been tampered with.
4. The method according to claim 1, characterized in that, After verifying the invoice information through the smart contract, the process also includes: Obtain the target reputation value corresponding to each bill participant in the blockchain; The smart contract is updated based on the target reputation value corresponding to each bill participant.
5. The method according to claim 4, characterized in that, Obtaining the target reputation value corresponding to each bill participant in the blockchain includes: Obtain the scores of each element corresponding to each bill participant in the blockchain, and perform a weighted calculation on the scores of each element to obtain the initial reputation score corresponding to each bill participant; When a transaction occurs, the initial credit score of each of the bill participants is updated according to the change in the bill status to obtain the target credit value for each of the bill participants.
6. The method according to claim 4, characterized in that, The smart contract is updated based on the target credit value corresponding to each bill participant, including: Based on the target credit score corresponding to each bill participant, the bill information, transaction records, bill participant information, and external data, key elements in the verification process are identified, and the network parameters for the smart contract verification are updated.
7. A document anti-counterfeiting and automated verification device, characterized in that, include: The acquisition module is used to acquire the invoices to be processed and extract the invoice information corresponding to the invoices to be processed; An encryption module is used to encrypt the ticket information to obtain encrypted information and a digital signature, and to record the encrypted information and the digital signature to the blockchain; The verification module is used to deploy smart contracts on the blockchain and verify ticket information through the smart contracts; The update module is used to update the ticket information of each block in the blockchain when the state of a target block in the blockchain changes.
8. An electronic device, characterized in that, The electronic device includes: At least one processor; and A memory communicatively connected to the at least one processor; wherein, The memory stores a computer program that can be executed by the at least one processor, the computer program being executed by the at least one processor to enable the at least one processor to perform the invoice anti-counterfeiting and automated verification method according to any one of claims 1-6.
9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions that, when executed by a processor, implement the document anti-counterfeiting and automated verification method according to any one of claims 1-6.
10. A computer program product comprising a computer program that, when executed by a processor, implements the document anti-counterfeiting and automated verification method according to any one of claims 1-6.
Citation Information
Cited By
Electronic bill mutual identification verification system and method based on data sharing
CN121526589A