Enterprise bill splitting method and system
The split of corporate bills through homomorphic encryption and zero-knowledge proof technology solves the problem of trusted third-party splitting in the existing technology, and realizes the efficiency of bill splitting and the security of commercial secrets.
Patent Information
- Application Number
- CN202010717533.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-07-23
- Publication Date
- 2025-02-14
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
The existing technology requires trusted third-party split when transferring corporate bills, resulting in complex approval process, inefficient efficiency, and high risk of commercial secret leakage.
Through homomorphic encryption and zero-knowledge proof technology, the enterprise side generates original bills and encrypts them, and then splits them after verification to generate multiple new bills in ciphertext form. The enterprise side can directly use these new bills for credit transmission.
No third-party splitting is required, which simplifies the approval process, improves the efficiency of bill splitting and transfer, and ensures the security of commercial secrets.
Smart Images

Figure CN111861714B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of bill splitting, and in particular to a method and system for corporate bill splitting. Background Art
[0002] Bills of exchange are widely used between enterprises. Traditional bills of exchange often record confidential business information such as corporate procurement, taxation, mortgages, etc. If they need to be transferred again, this business information will inevitably be leaked, causing losses.
[0003] When companies transfer bills, the bills often need to be split, but due to commercial confidentiality considerations, companies cannot directly transfer existing bills, resulting in the inability to effectively transfer the core company's credit, the inability to endorse and transfer the bills again, and difficulty in corporate financing.
[0004] The existing technology can only split the bills through a trusted third party, and then hand over the processed new bills to the relevant companies for both parties to use again. The need for a trusted third party makes the approval process complicated and inefficient. Summary of the invention
[0005] The embodiment of the present invention provides a method and system for splitting corporate bills, which can solve the problems existing in the prior art.
[0006] The present invention provides a method for splitting corporate bills, which comprises the following steps:
[0007] Step 1: The enterprise generates an original bill, performs homomorphic encryption on the original bill and generates a zero-knowledge proof;
[0008] Step 2: The server verifies the encrypted original bill using zero-knowledge proof technology, and saves the encrypted original bill on the enterprise side after verification;
[0009] Step 3: The server splits the original bill in ciphertext form through homomorphic encryption theory to obtain multiple new bills in ciphertext form, and the server sends the new bills to the enterprise end.
[0010] The present invention also provides an enterprise bill splitting system, including an enterprise end and a server, wherein the enterprise end is used to generate an original bill, and homomorphically encrypt the original bill and generate a zero-knowledge proof;
[0011] The server is used to verify the encrypted original bill using zero-knowledge proof technology, and save the encrypted original bill on the enterprise side after verification;
[0012] The server is also used to split the original bill in ciphertext form through homomorphic encryption theory to obtain multiple new bills in ciphertext form, and the server sends the new bills to the enterprise end.
[0013] The enterprise bill splitting method and system of the present invention adopts zero-knowledge proof theory. On the premise of proving the splittability of the bill, the bill is split through homomorphic encryption theory. No third party is required. Upstream enterprises can directly use the split bills for credit transfer, which solves the pain points of traditional supply chain finance and improves the efficiency of bill splitting and transfer. BRIEF DESCRIPTION OF THE DRAWINGS
[0014] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0015] Figure 1 It is a flow chart of the enterprise note splitting method in the present invention;
[0016] Figure 2 This is a schematic diagram of the composition of the enterprise bill splitting system. DETAILED DESCRIPTION
[0017] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. 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.
[0018] Before introducing the technical solution of the present application, some related technologies are explained first.
[0019] Homomorphic encryption is an encryption algorithm proposed in the 1980s that can protect data privacy. It is a cryptographic technology based on the computational complexity theory of mathematical problems. It refers to processing homomorphically encrypted data to obtain an output, decrypting this output, and the result is the same as the output obtained by processing the unencrypted original data in the same way. In layman's terms, information can still be calculated without being leaked, that is, in an encrypted state, and the final calculated ciphertext result is the encrypted ciphertext of the plaintext information calculation result. In this way, data processing rights and data ownership can be separated, so that enterprises can prevent their own data from being leaked while utilizing the computing power of cloud services.
[0020] Zero-Knowledge Proof (ZKP) was proposed by S. Goldwasser, S. Micali and C. Rackoff in the early 1980s. It refers to the ability of the prover to convince the verifier that a certain assertion is correct without providing any useful information to the verifier. Zero-knowledge proof is essentially a protocol involving two or more parties, that is, a series of steps required for two or more parties to complete a task. The prover proves to the verifier and makes him believe that he knows or has a certain message, but the proof process cannot leak any information about the proved message to the verifier. A large number of facts have proved that zero-knowledge proof is very useful in cryptography.
[0021] Reference Figure 1 The present invention provides a method for splitting corporate bills, which comprises the following steps:
[0022] Step 1: The enterprise end of the core enterprise generates an original bill formed by the transaction with the upstream enterprise, performs homomorphic encryption on the original bill and generates a zero-knowledge proof, and then sends the encrypted original bill and the zero-knowledge proof to the server. The server verifies the detachability and validity of the encrypted original bill through the zero-knowledge proof technology, and saves it to the server after successful verification. At the same time, the server also sends the encrypted original bill to the enterprise end of the upstream enterprise;
[0023] Step 2: The enterprise end of the upstream enterprise sends a split request to the server, the split request including the encrypted new bill amount and other related information, and the server forwards the split request to the enterprise end of the core enterprise;
[0024] Step 3: The enterprise end of the core enterprise decrypts the split request, generates a zero-knowledge proof of the split amount and the amount after the split based on the content of the split request to prove the legitimacy of the split request, and sends the generated split amount and the zero-knowledge proof of the amount after the split to the server;
[0025] Step 4: The server uses homomorphic encryption theory to split the original bill in ciphertext according to the split amount to obtain multiple new bills in ciphertext. The server sends the new bills to the enterprise end of the upstream enterprise.
[0026] Step 5: The enterprise end of the upstream enterprise decrypts the new bill to obtain the new bill in plain text.
[0027] In step 1, the server uses zero-knowledge proof technology to verify the detachability and validity of the encrypted original note.
[0028] Based on the same inventive concept, the present invention also provides a corporate bill splitting system, such as Figure 2As shown, the implementation of the system can refer to the implementation of the above method, and the repeated parts will not be repeated. The enterprise bill splitting system in the present invention includes a server and an enterprise end, the enterprise end is used for the core enterprise and each upstream enterprise to perform local processing of bills, and the server is used to respond to the request of each enterprise end to perform bill splitting processing.
[0029] In this embodiment, the enterprise end has a local interface, which is formed by compiling a .so dynamic library using a commonly used compilation language, and the .so dynamic library is compiled by a zero-knowledge proof library libsnark in a Linux environment. The local interface is used for encryption and decryption of the original bill.
[0030] The server has a background service program interface, which is formed by compiling the .a static library in golang language, and the .a static library is compiled by the homomorphic encryption basic library helib in the linux environment. The background service program interface is used to perform homomorphic addition, homomorphic subtraction, homomorphic multiplication, homomorphic comparison and other processing on the ciphertext bill.
[0031] Although the preferred embodiments of the present invention have been described, those skilled in the art may make other changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the present invention.
[0032] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.
Claims
1. A method for splitting corporate bills, characterized in that: The method comprises the following steps: Step 1: The core enterprise generates an original bill on its enterprise side, performs homomorphic encryption on the original bill and generates a zero-knowledge proof; Step 2: The server uses zero-knowledge proof technology to verify the detachability and validity of the encrypted original bill. After the verification is passed, the encrypted original bill of the core enterprise is saved; In step 3, the server splits the original bill in ciphertext form through homomorphic encryption theory to obtain multiple new bills in ciphertext form, and the server sends the new bills to the enterprise end of the upstream enterprise; after the enterprise end of the upstream enterprise receives the new bills, it decrypts the new bills to obtain new bills in plaintext form.
2. The enterprise bill splitting system is characterized by: It includes an enterprise end and a server, wherein the enterprise end includes an enterprise end of a core enterprise and an enterprise end of an upstream enterprise, and the enterprise end of the core enterprise is used to generate an original bill, and homomorphically encrypt the original bill and generate a zero-knowledge proof; The server is used to verify the encrypted original bill using zero-knowledge proof technology, and save the encrypted original bill of the core enterprise after verification; The server is also used to split the original bill in ciphertext form through homomorphic encryption theory to obtain multiple new bills in ciphertext form, and the server sends the new bills to the enterprise end of the upstream enterprise.
3. The enterprise note splitting system as claimed in claim 2, characterized in that: The enterprise end has a local interface, which is formed by compiling a .so dynamic library in a compilation language, and the .so dynamic library is compiled by a zero-knowledge proof library libsnark in a Linux environment.
4. The enterprise note splitting system as claimed in claim 3, characterized in that: The local interface is used for encryption and decryption processing of the original ticket.
5. The enterprise note splitting system as claimed in claim 2, characterized in that: The server has a background service program interface, which is compiled by golang language to a .a static library, and the .a static library is compiled by the homomorphic encryption basic library helib in a linux environment.
6. The enterprise note splitting system according to claim 5, characterized in that: The background service program interface is used to perform homomorphic addition, homomorphic subtraction, homomorphic multiplication and homomorphic comparison processing on the ciphertext bill.
Citation Information
Patent Citations
Bill transaction method and system, computer device and storage medium
CN109035019A
Information recording method and device in block chain network, node and storage medium
CN109756582A
Supply process management and control method, device and equipment integrating bill financing and medium
CN109767214A