Blockchain-based supervised transaction privacy protection method and system

By using user signatures and identity-based homomorphic encryption technology in the blockchain system to encrypt and decrypt the amount of air travel transactions, it solves the problem of traditional technology being unable to meet the privacy protection and regulatory consistency of dynamic transaction amounts, and achieves regional Safe, trustworthy and efficient supervision of transaction amounts on the blockchain.

CN114445078BActive Publication Date: 2024-09-06CIVIL AVIATION MANAGEMENT INSTITUTE OF CHINA
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210098061.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-01-27
Publication Date
2024-09-06
Estimated Expiration
2042-01-27

Smart Images

  • Figure CN114445078B
    Figure CN114445078B
Patent Text Reader

Abstract

The present invention discloses a method and system for protecting privacy of supervised transactions based on blockchain, the method comprising: a user signs consumption data to generate a consumption data signature pair; a blockchain consensus node stores the consumption data signature pair judged by consistency in a blockchain system; a group customer uses an identity-based homomorphic encryption algorithm to homomorphically encrypt the transaction amount to generate a state-secret amount, and signs the state-secret amount to generate a state-secret amount signature pair; a blockchain consensus node stores the generated state-secret amount signature pair judged by consistency in a blockchain system; an airline decrypts and verifies the payment amount stored in the blockchain system, a group company decrypts and verifies the change amount stored in the blockchain system, and a regulatory agency decrypts and verifies the payment amount and the change amount stored in the blockchain system. The present invention can realize privacy protection and transaction supervision of air travel transactions.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of blockchain technology, and in particular to a blockchain-based method and system for protecting privacy in supervised transactions. Background Art

[0002] Business passengers account for nearly 50% of air travel passengers and are the main source of civil aviation passengers. Intelligent and digital travel has gradually become an important part of the development of smart civil aviation and smart transportation. Based on this, corporate customers have become the competitive service objects of airlines. Airlines are committed to providing safe and high-quality journey services for business travelers, so that business travelers can enjoy a variety of consumer products in a distributed manner, such as airline official websites providing ticket booking and journey package services, and airline hotels providing VIP accommodation. Comprehensive aviation services mean a variety of consumer businesses, and the payment, settlement and supervision issues that come with them often trouble individual users, corporate users and airlines: First, before traveling, business personnel need to prepay a large amount of money to buy air tickets, book hotels, etc., and after traveling, they need to involve cumbersome reimbursement processes; second, frequent card swiping records lead to the exposure of transaction information, including account balances, consumption data, etc.; third, a large number of transaction orders and transaction amounts require strong supervision methods to prevent collusion between the two parties or internal personnel from cheating.

[0003] In response to the first problem, airlines have tried to solve the daily consumption problems of frequent travelers through mileage points, loyalty wallets, etc.; in response to the second problem, airlines and group customers have adopted cryptographic technologies, such as public key encryption and digital signatures, to encrypt consumption data and strictly control the risk of privacy leakage of individuals, enterprises and transaction information; in response to the third problem, domestic and foreign aviation organizations and legislative bodies have also formulated legal provisions to implement effective supervision, and at the same time tried to use blockchain technology to provide technical guarantees and a trusted platform for public supervision. The above methods provide strong protection for the transaction privacy of air travel from a technical and legal perspective, but it should be noted that traditional data encryption technology can only ensure that information in a "static" storage state is not leaked, but new transaction orders uploaded to the blockchain will be frequently generated during the transaction process, involving a series of data analysis and processing processes such as payment, change, and verification. In other words, the amount in the transaction system is liquid during the transaction process, and encryption technology for "static" storage information cannot meet its requirements. At the same time, the traditional centralized supervision method conflicts with the distributed storage characteristics of the existing blockchain. On the one hand, it is necessary to build a distributed supervision method that is compatible with the blockchain system. On the other hand, technical means should be used to ensure that the information received by the regulator and the transaction party is strictly consistent to reduce the risk of cheating. Summary of the invention

[0004] Based on the above-mentioned issues of privacy protection and transaction supervision in aviation travel transactions, the present invention proposes a blockchain-based supervised transaction privacy protection method and system.

[0005] To achieve the above object, the present invention provides the following solutions:

[0006] A blockchain-based, regulated transaction privacy protection method, comprising:

[0007] The user signs the consumption data to generate a consumption data signature pair;

[0008] The blockchain consensus node performs consistency judgment on the consumption data signature pair, and stores the consumption data signature pair that passes the consistency judgment in the blockchain system;

[0009] The group customer uses an identity-based homomorphic encryption algorithm to homomorphically encrypt the transaction amount to generate a state-encrypted amount, and signs the state-encrypted amount to generate a state-encrypted amount signature pair; the transaction amount includes the payment amount, the change amount and the unspent amount; the payment amount refers to the amount paid by the group customer to the airline in this transaction, and the payment amount is determined based on one or more consumption data signature pairs stored in the blockchain system; the change amount refers to the amount remaining in the account after the group customer pays the airline in this transaction; the unspent amount refers to the amount left in the group customer's account after the last transaction and used for this transaction expenditure; the identity-based homomorphic encryption algorithm is an algorithm for homomorphically encrypting the transaction amount based on the airline's public key and / or the regulator's public key;

[0010] The blockchain consensus node performs consistency judgment on the generated state-confidential amount signature pair, and stores the generated state-confidential amount signature pair that passes the consistency judgment in the blockchain system;

[0011] The airline company decrypts and verifies the payment amount stored in the blockchain system, the group company decrypts and verifies the change amount stored in the blockchain system, and the regulatory agency decrypts and verifies the payment amount and change amount stored in the blockchain system.

[0012] Optionally, the user signs the consumption data to generate a consumption data signature pair, specifically including:

[0013] The user signs the consumption data based on the user's private key to generate a consumption data signature pair, and broadcasts the consumption data signature pair to the blockchain system.

[0014] Optionally, the transaction amount also includes unspent points; the unspent points refer to the points left in the account of the group customer after the last transaction and used for this consumption expenditure; the group customer spends the account points first, and then spends the account amount after the points are exhausted; the group customer uses the identity-based homomorphic encryption algorithm to homomorphically encrypt the transaction amount to generate a state-encrypted amount, specifically including:

[0015] The group customer homomorphically encrypts the payment amount based on the group customer private key, airline public key, regulatory agency public key and system master public key to generate the payment encrypted amount;

[0016] The group customer performs homomorphic encryption on the change amount based on the group customer private key, group customer public key, regulatory agency public key and system master public key to generate the change amount;

[0017] The group customer performs homomorphic encryption on the unspent amount based on the private key of the last transaction initiator, the group customer public key, the regulatory agency public key, and the system master public key to generate the unspent encrypted amount;

[0018] The group customer performs homomorphic encryption on the unspent points based on the private key of the initiator of the last points transaction, the group customer public key, the regulatory agency public key and the system master public key to generate unspent encrypted points;

[0019] The group customer generates a non-interactive zero-knowledge evidence based on the payment state-encrypted amount, the change state-encrypted amount, the unspent state-encrypted amount and the unspent state-encrypted points; the non-interactive zero-knowledge evidence is used to verify that the sum of the transaction inputs is equal to the sum of the outputs, and that the payment amount and the change amount are both greater than or equal to 0; the transaction input refers to the sum of the unspent amount and the unspent points in the group customer account, and the transaction output refers to the sum of the payment amount and the change amount of this transaction;

[0020] The encrypted amount includes the payment encrypted amount, the change encrypted amount, the unspent encrypted amount, the unspent encrypted points and the non-interactive zero-knowledge evidence.

[0021] Optionally, signing the state-confidential amount to generate a state-confidential amount signature pair specifically includes:

[0022] The group customer signs the state-confidential amount based on the collective customer private key to generate a state-confidential amount signature pair, and broadcasts the generated state-confidential amount signature pair to the blockchain system.

[0023] Optionally, the airline decrypts and verifies the payment amount stored in the blockchain system, specifically including:

[0024] The airline decrypts the payment amount stored in the blockchain system based on the group customer public key, system master public key, airline private key and regulator public key to generate the payment amount;

[0025] The airline calculates the consumption amount based on one or more consumption data signatures stored in the blockchain system;

[0026] Determining whether the payment amount matches the consumption amount;

[0027] If so, the payment amount is stored.

[0028] Optionally, the group company decrypts and verifies the change amount stored in the blockchain system, specifically including:

[0029] The group company decrypts the change amount stored in the blockchain system based on the group customer private key, group customer public key, regulatory agency public key and system master public key to generate the change amount;

[0030] The group company calculates the consumption amount based on one or more consumption data signatures stored in the blockchain system;

[0031] Determine whether the transaction input is equal to the transaction output; the transaction input is the sum of the unspent amount and the unspent points in the group customer account, and the transaction output is the sum of the payment amount and the change amount in this transaction;

[0032] If so, the change amount is stored.

[0033] Optionally, the regulatory agency decrypts and verifies the payment amount and change amount stored in the blockchain system, specifically including:

[0034] The regulatory agency decrypts the payment amount stored in the blockchain system based on the regulatory agency's private key to generate the payment amount;

[0035] The regulatory agency determines the consumption amount of this transaction based on the search method;

[0036] Determine whether the payment amount matches the consumption amount, and if so, store the payment amount;

[0037] The regulatory agency decrypts the change amount stored in the blockchain system based on the regulatory agency's private key to generate the change amount;

[0038] The regulator determines the remaining amount of the transaction based on the search method;

[0039] Determine whether the change amount matches the remaining amount, and if so, store the change amount.

[0040] A blockchain-based, regulated transaction privacy protection system, comprising:

[0041] User, used to sign consumption data to generate a consumption data signature pair;

[0042] A blockchain consensus node, used to perform consistency judgment on the consumption data signature pair, and store the consumption data signature pair that passes the consistency judgment in the blockchain system;

[0043] Group customers are used to homomorphically encrypt the transaction amount using an identity-based homomorphic encryption algorithm to generate a state-encrypted amount, and sign the state-encrypted amount to generate a state-encrypted amount signature pair; the transaction amount includes the payment amount, the change amount, and the unspent amount; the payment amount refers to the amount paid by the group customer to the airline in this transaction, and the payment amount is determined based on one or more consumption data signature pairs stored in the blockchain system; the change amount refers to the amount remaining in the account after the group customer pays the airline in this transaction; the unspent amount refers to the amount left in the group customer's account after the last transaction and used for this transaction expenditure; the identity-based homomorphic encryption algorithm is an algorithm for homomorphically encrypting the transaction amount based on the airline's public key and / or the regulator's public key;

[0044] The blockchain consensus node is used to perform consistency judgment on the generated state-confidential amount signature pair, and store the generated state-confidential amount signature pair that passes the consistency judgment in the blockchain system;

[0045] Airlines, used to decrypt and verify payment amounts stored in the blockchain system;

[0046] The group company is used to decrypt and verify the change amount stored in the blockchain system;

[0047] Regulators are used to decrypt and verify payment amounts and change amounts stored in the blockchain system.

[0048] Optionally, the transaction amount also includes unspent points; the unspent points refer to the points left in the account of the group customer after the last transaction and used for this consumption expenditure; the group customer spends the account points first, and then spends the account amount after the points are exhausted; in terms of using the identity-based homomorphic encryption algorithm to homomorphically encrypt the transaction amount to generate a state-encrypted amount, the group customer is further used for:

[0049] The group customer homomorphically encrypts the payment amount based on the group customer private key, airline public key, regulatory agency public key and system master public key to generate the payment encrypted amount;

[0050] The group customer performs homomorphic encryption on the change amount based on the group customer private key, group customer public key, regulatory agency public key and system master public key to generate the change amount;

[0051] The group customer performs homomorphic encryption on the unspent amount based on the private key of the last transaction initiator, the group customer public key, the regulatory agency public key, and the system master public key to generate the unspent encrypted amount;

[0052] The group customer performs homomorphic encryption on the unspent points based on the private key of the initiator of the last points transaction, the group customer public key, the regulatory agency public key and the system master public key to generate unspent encrypted points;

[0053] The group customer generates a non-interactive zero-knowledge evidence based on the payment state-encrypted amount, the change state-encrypted amount, the unspent state-encrypted amount and the unspent state-encrypted points; the non-interactive zero-knowledge evidence is used to verify that the sum of the transaction inputs is equal to the sum of the outputs, and that the payment amount and the change amount are both greater than or equal to 0; the transaction input refers to the sum of the unspent amount and the unspent points in the group customer account, and the transaction output refers to the sum of the payment amount and the change amount of this transaction;

[0054] The encrypted amount includes the payment encrypted amount, the change encrypted amount, the unspent encrypted amount, the unspent encrypted points and the non-interactive zero-knowledge evidence.

[0055] Optionally, in terms of decrypting and verifying the payment amount stored in the blockchain system, the airline is further configured to:

[0056] The airline decrypts the payment amount stored in the blockchain system based on the group customer public key, system master public key, airline private key and regulator public key to generate the payment amount;

[0057] The airline calculates the consumption amount based on one or more consumption data signatures stored in the blockchain system;

[0058] Determining whether the payment amount matches the consumption amount;

[0059] If so, the payment amount is stored.

[0060] According to the specific embodiments provided by the present invention, the present invention discloses the following technical effects:

[0061] On the one hand, the present invention innovatively integrates the dual public key encryption mechanism into the blockchain system, adds a recipient public key to the on-chain ciphertext, enables two recipients to independently decrypt and obtain the same amount information, and allows the regulatory agency to accurately obtain transaction information using its private key; on the other hand, for the various "dynamic" transaction amounts involved in aviation business transactions, an identity-based homomorphic encryption scheme is adopted to achieve homomorphic encryption of the group users' unspent amount, payment amount, and change amount. BRIEF DESCRIPTION OF THE DRAWINGS

[0062] 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 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 labor.

[0063] Figure 1 This is a schematic diagram of the structure of the blockchain-based aviation travel consumption privacy protection transaction system of the present invention;

[0064] Figure 2 This is a flow chart of a blockchain-based supervised transaction privacy protection method of the present invention. DETAILED DESCRIPTION

[0065] 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.

[0066] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.

[0067] Embodiment 1

[0068] like Figure 1As shown in the figure, the blockchain-based regulated aviation travel consumption privacy protection transaction system includes five participants, namely airlines, airline group customers (hereinafter referred to as group customers), airline group customers' travelers (hereinafter referred to as users), regulators and blockchain consensus nodes. The system includes 10 steps: 1) Generate the required system public parameters; 2) Users, group customers, airlines, and regulators generate their own private keys and public keys; 3) Users sign consumption data; 4) Regional consensus nodes make consistency judgments on consumption data signature pairs; 5) Group customers perform homomorphic encryption on the payment amount and change amount based on one or more consumption business data signature information and generate corresponding zero-knowledge evidence to prove that the payment amount and change amount are both greater than or equal to zero and the sum of the inputs is equal to the sum of the outputs; 6) Group customers sign transactions; 7) Regional consensus nodes verify the consistency of transaction signatures and homomorphic encrypted amounts; 8) Airlines decrypt the payment amount; 9) Group customers decrypt the change amount; 10) Regulators decrypt the payment amount and change amount and implement supervision.

[0069] It should be noted that in this embodiment, the amount after homomorphic encryption is called the "homomorphic amount".

[0070] Step 1: Initialization. Input security parameter λ and output system common parameters. Select symmetric bilinear group parameters Bilinear Map group The order is n and the generator is G, the hash function H2:{0,1} * →Z n , randomly selected Calculate G1=α·G, then the master key and master public key are: msk=α, MPK=G1.

[0071] Step 2: Key generation. The user, group customer, airline, and regulator each independently run the key generation algorithm to generate the corresponding public key and private key. The user submits his identity ID1 to the system, and the system inputs the master key msk=α to calculate the user's private key

[0072] Identity-based key pairs Used to implement homomorphic encryption and decryption; in addition, the user generates a private key a1∈Z n and public key P1, where Used to implement transaction signature and verification. Public key PK1 = (ID1, P1). Similarly, the private key and public key of the group customer are (SK2, PK2), where PK2=(ID2,P2),P2=a2·G; the airline's private key and public key are (SK3,PK3), where PK3=(ID3,P3),P3=a3·G; the private key and public key of the regulatory agency are (SK4,PK4), where PK4=(ID4,P4),P4=a4·G.

[0073] Step 3: User consumption signature. The user signs the consumption data m. The user enters his private key a1 and selects a random number Perform the following calculations:

[0074]

[0075] If r1≠0,s1≠0, the signature is σ1=(r1,s1); the user broadcasts the consumption data signature pair (m,σ1) to the blockchain system.

[0076] Step 4: Consumption signature verification. The blockchain consensus node makes a consistency judgment on the consumption data signature pair. The blockchain consensus node inputs the consumption data signature pair (m,σ1) and the corresponding public key P1, and makes a consistency judgment as follows:

[0077]

[0078] Verify the correctness of the consumption data signature pair. If r1 = x1', store it in the blockchain system, otherwise reject it.

[0079] Step 5: Amount Homomorphic Encryption: Group customers run the encryption algorithm HEnc to homomorphically encrypt various transaction amounts.

[0080] 1) Payment amount encryption. The payment amount refers to the amount that the group customer pays to the airline. The group customer calculates the payment amount v1 corresponding to this transaction based on one or more consumption data signature pairs (m,σ1). The group customer enters its private key a2, random number γ1, system master public key G1, airline public key P3, regulator public key ID4 and payment amount v1 for homomorphic encryption:

[0081]

[0082] 2) Change amount encryption. The change amount refers to the amount remaining in the account after the group customer pays the airline for this transaction. For the change amount v2, the group customer enters its private key and public key (a2, P2), random number γ2, regulator public key ID4, system master public key G1 and change amount v2 for homomorphic encryption:

[0083]

[0084] 3) Unspent amount encryption. Unspent amount refers to the amount left in the group customer's account after the last transaction and used for this consumption expenditure. The group customer enters its public key, the private key of the previous transaction initiator, the random number γ2 of the previous transaction initiator, the regulatory agency public key ID4, the system master public key G1 and the unspent amount v0 for homomorphic encryption:

[0085]

[0086] Among them, a0 refers to the private key of the initiator of the previous transaction, and P2 is the public key corresponding to the amount v0 received by the group customer. Correspondingly, the public key of the initiator of the previous transaction is P0, where

[0087] 4) Unspent Points Ciphertext. Unspent points refer to the points left in the account of the group customer after the last transaction and used for this consumption expenditure. The group customer spends the account points first, and then spends the account balance after the points are exhausted. The group customer enters its public key, the private key of the initiator of the previous transaction, the random number γ2 of the initiator of the previous transaction, the public key ID4 of the regulatory agency, the system master public key G1 and the unspent points v0' for homomorphic encryption:

[0088]

[0089] Among them, a0' refers to the random number generated by the system, and P2 is the public key corresponding to the group customer receiving the points v0'. When a user completes a consumption, the system will generate a certain number of points, which can be used for expenditures in aviation business travel.

[0090] Group clients generate non-interactive zero-knowledge proofs π1, π2:

[0091]

[0092] They are used to verify that the sum of the transaction inputs is equal to the sum of the outputs, and that the payment amount v1 and the change amount v2 are both greater than or equal to 0. The transaction input refers to the sum of the unspent amount and unspent points in the group's customer account, and the transaction output refers to the sum of the payment amount and the change amount for this consumption.

[0093] Specifically, the spending amount v0 is in the ciphertext C 0,3 In the ciphertext C, the integral v0' 0,3 ', the payment amount v1 is in the ciphertext C 1,3 The change amount v2 is in the ciphertext C 2,3 In. Ciphertext C 0,3 ,C 0,3 ',C 1,3 ,C 2,3 The following equality relationship is satisfied:

[0094]

[0095] If the following discrete logarithm relationship holds true:

[0096]

[0097] Then the following equation holds

[0098]

[0099] It follows that the sum of the transaction inputs is equal to the sum of the outputs

[0100] (v0+v0')-(v1+v2)=0

[0101] Therefore, the group customer needs to prove that it knows that the following discrete logarithm relationship equation holds:

[0102]

[0103] In the discrete logarithm equation Eq. (1), the group customer can directly obtain C from the blockchain 0,3 ,C 0,3 ',C 1,3 ,C 2,3 , and knows ID4, G1, P2, P3, a2; however, since a0 is the private key of the initiator of the previous transaction and a0' is the random number of the system parameter, the group customer does not know a0, a0'. Therefore, the group customer needs to prove that the following equal discrete logarithm relationship equation holds

[0104]

[0105] Among them, P0 is the public key corresponding to the amount of the previous transaction initiator, P0' is the public key corresponding to the points of the initiator of the previous transaction, where The discrete logarithm equation (2) is equivalent to (1):

[0106]

[0107] And the group client knows every parameter in the discrete logarithm equation. Therefore, the group client can use the standard Sigma protocol for zero-knowledge proof. In addition, the group client needs to use the Bulletproofs range proof protocol to prove v1≥0,v2≥0. The state-confidential amount generated by the transaction is recorded as C=(C0',C0,C1,C2,π1,π2).

[0108] Step 6: Transaction signature. The group customer signs the confidential amount. The group customer runs the signature algorithm, enters its private key a2, and selects a random number. Calculate as follows

[0109]

[0110] If r2≠0,s2≠0, the signature is σ2=(r2,s2); the user broadcasts the state-confidential amount signature pair (C,σ2) to the blockchain system.

[0111] Step 7: Transaction verification and confidential amount verification.

[0112] (1) Verify the correctness of the payment signature: The blockchain consensus node inputs the payment signature pair (C, σ2) and the corresponding public key P2, and performs consistency judgment as follows:

[0113]

[0114] If r2=x2', the signature correctness verification of the confidential transaction amount in the transaction is achieved.

[0115] (2) Verification of the correctness of zero-knowledge evidence: The consensus node inputs zero-knowledge evidence π1, π2, verifies the Sigma protocol π1 and the Bulletproofs range proof protocol π2. If the zero-knowledge evidence π1, π2 are verified correctly and there is no double spending problem, they are stored in the blockchain system, otherwise they are rejected.

[0116] Step 8: Decryption of payment amount. The airline decrypts and verifies the payment amount in ciphertext. The airline runs the decryption algorithm and inputs its private key a3, group customer public key P2, master public key G1, regulator identity ID4 and local ciphertext C 1,1 ,C 1,3 , decrypted as follows:

[0117]

[0118] The airline calculates the matching amount v1' based on one or more consumption data signature pairs (m,σ1). If the equation holds, accept; otherwise reject.

[0119] Step 9: Decryption of the change amount. The group customer decrypts and verifies the ciphertext change amount. The group customer runs the decryption algorithm and inputs its private key a2, the group customer public key P2, the master public key G1, the regulatory agency identity ID4 and the local ciphertext C 2,1 ,C 2,3 , decrypted as follows

[0120]

[0121] The group customer calculates the matching amount v1 based on one or more consumption data signature pairs (m,σ1). In addition, the group customer knows the unspent amount v0 and points v0'. If the following equation holds

[0122]

[0123] Accept, otherwise reject.

[0124] Step 10: Transaction supervision. The regulatory agency decrypts the payment amount and change amount. The regulatory agency runs the decryption algorithm HDec and enters its private key and the local ciphertext C 1,2 ,C 1,3 , decrypted as follows

[0125]

[0126] The regulator uses a search method to find v1' so that the following equation holds:

[0127]

[0128] Thus the payment amount v1 is obtained.

[0129] Similarly, the regulator runs the decryption algorithm HDec, inputting its private key and the local ciphertext C 2,2 ,C 2,3 , decrypted as follows:

[0130]

[0131] The regulator uses the search method to directly search for v2', so that the following equation holds:

[0132] Thus, the change amount v2 is obtained. Therefore, the regulator can decrypt all transaction amounts on the entire blockchain, realize the supervision of the entire transaction system, and find out whether the airline provides high-priced services.

[0133] Embodiment 2

[0134] like Figure 2 As shown, this embodiment provides a blockchain-based supervised transaction privacy protection method, including:

[0135] Step 100: The user signs the consumption data to generate a consumption data signature pair;

[0136] Step 200: The blockchain consensus node performs consistency judgment on the consumption data signature pair, and stores the consumption data signature pair that passes the consistency judgment in the blockchain system;

[0137] Step 300: The group customer uses an identity-based homomorphic encryption algorithm to homomorphically encrypt the transaction amount to generate a state-encrypted amount, and signs the state-encrypted amount to generate a state-encrypted amount signature pair; the transaction amount includes the payment amount, the change amount and the unspent amount; the payment amount refers to the amount paid by the group customer to the airline in this transaction, and the payment amount is determined based on one or more consumption data signature pairs stored in the blockchain system; the change amount refers to the amount remaining in the account after the group customer pays the airline in this transaction; the unspent amount refers to the amount left in the group customer's account after the last transaction and used for this transaction expenditure; the identity-based homomorphic encryption algorithm is an algorithm for homomorphically encrypting the transaction amount based on the airline's public key and / or the regulator's public key;

[0138] Step 400: The blockchain consensus node performs consistency judgment on the generated state-confidential amount signature pair, and stores the generated state-confidential amount signature pair that passes the consistency judgment in the blockchain system;

[0139] Step 500: The airline company decrypts and verifies the payment amount stored in the blockchain system, the group company decrypts and verifies the change amount stored in the blockchain system, and the regulatory agency decrypts and verifies the payment amount and change amount stored in the blockchain system.

[0140] Among them, the step in which the user signs the consumption data to generate a consumption data signature pair specifically includes: the user signs the consumption data based on the user's private key to generate a consumption data signature pair, and broadcasts the consumption data signature pair to the blockchain system.

[0141] The transaction amount also includes unspent points; the unspent points refer to the points left in the account of the group customer after the last transaction and used for this consumption expenditure; the group customer spends the account points first, and then spends the account amount after the points are exhausted; the group customer uses the identity-based homomorphic encryption algorithm to homomorphically encrypt the transaction amount to generate a state-encrypted amount, specifically including:

[0142] The group customer homomorphically encrypts the payment amount based on the group customer private key, the airline public key, the regulatory agency public key and the system master public key to generate the payment encrypted amount.

[0143] The group customer homomorphically encrypts the change amount based on the group customer private key, group customer public key, regulatory agency public key and system master public key to generate the change amount.

[0144] The group customer homomorphically encrypts the unspent amount based on the private key of the initiator of the last transaction, the group customer public key, the regulatory agency public key and the system master public key to generate the unspent encrypted amount.

[0145] The group customer performs homomorphic encryption on the unspent points based on the private key of the initiator of the last points transaction, the group customer public key, the regulatory agency public key and the system master public key to generate unspent encrypted points.

[0146] The group customer generates a non-interactive zero-knowledge evidence based on the payment state-encrypted amount, the change state-encrypted amount, the unspent state-encrypted amount and the unspent state-encrypted points; the non-interactive zero-knowledge evidence is used to verify that the sum of the inputs of the transaction is equal to the sum of the outputs, and to verify that the payment amount and the change amount are both greater than or equal to 0; the transaction input refers to the sum of the unspent amount and the unspent points in the group customer account, and the transaction output refers to the sum of the payment amount and the change amount of this transaction.

[0147] The encrypted amount includes the payment encrypted amount, the change encrypted amount, the unspent encrypted amount, the unspent encrypted points and the non-interactive zero-knowledge evidence.

[0148] The step of signing the state-confidential amount to generate a state-confidential amount signature pair specifically includes:

[0149] The group customer signs the state-confidential amount based on the collective customer private key to generate a state-confidential amount signature pair, and broadcasts the generated state-confidential amount signature pair to the blockchain system.

[0150] The airline decrypts and verifies the payment amount stored in the blockchain system, including:

[0151] The airline decrypts the payment amount stored in the blockchain system based on the group customer public key, the system master public key, the airline private key and the regulatory agency public key to generate the payment amount; the airline calculates the consumption amount based on one or more consumption data signatures stored in the blockchain system;

[0152] Determine whether the payment amount matches the consumption amount; if so, store the payment amount.

[0153] The group company decrypts and verifies the change amount stored in the blockchain system, including:

[0154] The group company decrypts the change amount stored in the blockchain system based on the group customer private key, the system master public key, the group customer public key and the regulatory agency public key to generate the change amount; the group company calculates the consumption amount based on one or more consumption data signatures stored in the blockchain system;

[0155] Determine whether the transaction input is equal to the transaction output; the transaction input is the sum of the unspent amount and the unspent points in the group customer account, and the transaction output is the sum of the payment amount and the change amount in this transaction; if so, store the change amount.

[0156] The regulatory agency decrypts and verifies the payment amount and change amount stored in the blockchain system, including:

[0157] The regulatory agency decrypts the payment amount stored in the blockchain system based on the regulatory agency's private key to generate the payment amount; the regulatory agency determines the consumption amount of this transaction based on a search method; and determines whether the payment amount matches the consumption amount. If so, the payment amount is stored.

[0158] The regulatory agency decrypts the change amount stored in the blockchain system based on the regulatory agency's private key to generate the change amount; the regulatory agency determines the remaining amount of the transaction based on a search method; and determines whether the change amount matches the remaining amount. If so, the change amount is stored.

[0159] Embodiment 3

[0160] like Figure 1 As shown, this embodiment provides a blockchain-based supervised transaction privacy protection system, including:

[0161] The user is used to sign the consumption data to generate a consumption data signature pair.

[0162] The blockchain consensus node is used to perform consistency judgment on the consumption data signature pair and store the consumption data signature pair that passes the consistency judgment in the blockchain system.

[0163] Group customers are used to perform homomorphic encryption on the transaction amount using an identity-based homomorphic encryption algorithm to generate a state-encrypted amount, and to sign the state-encrypted amount to generate a state-encrypted amount signature pair; the transaction amount includes the payment amount, the change amount and the unspent amount; the payment amount refers to the amount paid by the group customer to the airline in this transaction, and the payment amount is determined based on one or more consumption data signature pairs stored in the blockchain system; the change amount refers to the amount remaining in the account after the group customer pays the airline in this transaction; the unspent amount refers to the amount left in the group customer's account after the last transaction and used for the expenditure of this transaction; the identity-based homomorphic encryption algorithm is an algorithm for homomorphically encrypting the transaction amount based on the public key of the airline and / or the public key of the regulatory agency.

[0164] The blockchain consensus node is used to perform consistency judgment on the generated state-confidential amount signature pair, and store the generated state-confidential amount signature pair that passes the consistency judgment in the blockchain system.

[0165] Airlines, used to decrypt and verify payment amounts stored in the blockchain system.

[0166] The group company is used to decrypt and verify the change amount stored in the blockchain system.

[0167] Regulators are used to decrypt and verify payment amounts and change amounts stored in the blockchain system.

[0168] The transaction amount also includes unspent points; the unspent points refer to the points left in the account of the group customer after the last transaction and used for this consumption expenditure; the group customer spends the account points first, and then spends the account amount after the points are used up; in terms of using the identity-based homomorphic encryption algorithm to homomorphically encrypt the transaction amount to generate a state-encrypted amount, the group customer is further used for:

[0169] The group customer homomorphically encrypts the payment amount based on the group customer private key, the airline public key, the regulatory agency public key and the system master public key to generate the payment encrypted amount.

[0170] The group customer homomorphically encrypts the change amount based on the group customer private key, group customer public key, regulatory agency public key and system master public key to generate the change amount.

[0171] The group customer homomorphically encrypts the unspent amount based on the private key of the initiator of the last transaction, the group customer public key, the regulatory agency public key and the system master public key to generate the unspent encrypted amount.

[0172] The group customer performs homomorphic encryption on the unspent points based on the private key of the initiator of the last points transaction, the group customer public key, the regulatory agency public key and the system master public key to generate unspent encrypted points.

[0173] The group customer generates a non-interactive zero-knowledge evidence based on the payment state-encrypted amount, the change state-encrypted amount, the unspent state-encrypted amount and the unspent state-encrypted points; the non-interactive zero-knowledge evidence is used to verify that the sum of the inputs of the transaction is equal to the sum of the outputs, and to verify that the payment amount and the change amount are both greater than or equal to 0; the transaction input refers to the sum of the unspent amount and the unspent points in the group customer account, and the transaction output refers to the sum of the payment amount and the change amount of this transaction.

[0174] The encrypted amount includes the payment encrypted amount, the change encrypted amount, the unspent encrypted amount, the unspent encrypted points and the non-interactive zero-knowledge evidence.

[0175] In terms of decrypting and verifying the payment amount stored in the blockchain system, the airline is further used to:

[0176] The airline decrypts the payment amount stored in the blockchain system based on the group customer public key, system master public key, airline private key and regulator public key to generate the payment amount; the airline calculates the consumption amount based on one or more consumption data signatures stored in the blockchain system.

[0177] Determine whether the payment amount matches the consumption amount; if so, store the payment amount.

[0178] From a technical perspective, the present invention adds a recipient's public key to the ciphertext, so that both recipients can independently decrypt and obtain the same plaintext information, thereby achieving independent decryption by the recipient and the regulator. In terms of implementation mechanism, the regulatory agency can decrypt the transaction amount on the chain as needed, monitor whether the various fees of real transactions between airlines and group customers and travelers violate market price laws, whether group customers have non-compliant aviation travel consumption behaviors, and whether there is collusion and cheating in the account information of the two parties to the transaction. At the same time, the present invention embeds a double trapdoor algorithm in the ciphertext, so that the messages received by the recipient and the regulator are strictly consistent, and no additional verification mechanism is required to confirm the consistency of the information, greatly improving efficiency. In terms of implementation mechanism, it reduces the time cost of airlines and group customers, not only improves the review efficiency of travel consumption data, but also improves data accuracy.

[0179] From the perspective of application, the present invention proposes a new business consumption model of distributed transactions and unified payment for air travelers. Based on the decentralized electronic account book model of blockchain, airlines and group customers can each have a distributed transaction account book. For air travelers, there is no need to advance official funds and worry about privacy exposure caused by frequent card swiping. They only need to sign when they consume air business, which greatly improves the travel experience of passengers. For group customers, they can pay centrally and settle accurately, which brings great convenience to their account processing and auditing. For airlines, they don’t have to worry about the arrears and bad debts of group customers. Digital signature technology ensures the non-repudiation of each bill, the blockchain consensus mechanism ensures the traceability of transactions, and the state-confidential transaction ensures the non-modification of transaction data. Therefore, airlines, group customers, and travelers share a distributed transaction and unified payment blockchain network, which provides a safe and efficient solution for business consumption and settlement of air travel.

[0180] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the system disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.

[0181] The principles and implementation methods of the present invention are described in this article using specific examples. The description of the above embodiments is only used to help understand the method and core idea of ​​the present invention. At the same time, for those skilled in the art, according to the idea of ​​the present invention, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as limiting the present invention.

Claims

1. A blockchain-based supervised transaction privacy protection method, characterized in that: include: The user signs the consumption data to generate a consumption data signature pair; The blockchain consensus node performs consistency judgment on the consumption data signature pair, and stores the consumption data signature pair that passes the consistency judgment in the blockchain system; The group customer uses an identity-based homomorphic encryption algorithm to homomorphically encrypt the transaction amount to generate a state-encrypted amount, and signs the state-encrypted amount to generate a state-encrypted amount signature pair; the transaction amount includes the payment amount, the change amount and the unspent amount; the payment amount refers to the amount paid by the group customer to the airline in this transaction, and the payment amount is determined based on one or more consumption data signature pairs stored in the blockchain system; the change amount refers to the amount remaining in the account after the group customer pays the airline in this transaction; the unspent amount refers to the amount left in the group customer's account after the last transaction and used for this transaction expenditure; the identity-based homomorphic encryption algorithm is an algorithm for homomorphically encrypting the transaction amount based on the airline's public key and / or the regulator's public key; The blockchain consensus node performs consistency judgment on the generated state-confidential amount signature pair, and stores the generated state-confidential amount signature pair that passes the consistency judgment in the blockchain system; The airline company decrypts and verifies the payment amount stored in the blockchain system, the group company decrypts and verifies the change amount stored in the blockchain system, and the regulatory agency decrypts and verifies the payment amount and change amount stored in the blockchain system; The transaction amount also includes unspent points; the unspent points refer to the points left in the account of the group customer after the last transaction and used for this consumption expenditure; the group customer spends the account points first, and then spends the account amount after the points are used up; the group customer uses the identity-based homomorphic encryption algorithm to homomorphically encrypt the transaction amount to generate a state-encrypted amount, which specifically includes: The group customer homomorphically encrypts the payment amount based on the group customer private key, airline public key, regulatory agency public key and system master public key to generate the payment encrypted amount; The group customer performs homomorphic encryption on the change amount based on the group customer private key, group customer public key, regulatory agency public key and system master public key to generate the change amount; The group customer performs homomorphic encryption on the unspent amount based on the private key of the last transaction initiator, the group customer public key, the regulatory agency public key, and the system master public key to generate the unspent encrypted amount; The group customer performs homomorphic encryption on the unspent points based on the private key of the initiator of the last points transaction, the group customer public key, the regulatory agency public key and the system master public key to generate unspent encrypted points; The group customer generates a non-interactive zero-knowledge evidence based on the payment state-encrypted amount, the change state-encrypted amount, the unspent state-encrypted amount and the unspent state-encrypted points; the non-interactive zero-knowledge evidence is used to verify that the sum of the transaction inputs is equal to the sum of the outputs, and that the payment amount and the change amount are both greater than or equal to 0; the transaction input refers to the sum of the unspent amount and the unspent points in the group customer account, and the transaction output refers to the sum of the payment amount and the change amount of this transaction; The encrypted amount includes the payment encrypted amount, the change encrypted amount, the unspent encrypted amount, the unspent encrypted points and the non-interactive zero-knowledge evidence.

2. According to a blockchain-based supervised transaction privacy protection method according to claim 1, it is characterized in that: The user signs the consumption data to generate a consumption data signature pair, which specifically includes: The user signs the consumption data based on the user's private key to generate a consumption data signature pair, and broadcasts the consumption data signature pair to the blockchain system.

3. The method for protecting privacy of supervised transactions based on blockchain according to claim 1, characterized in that: The step of signing the state-confidential amount to generate a state-confidential amount signature pair specifically includes: The group customer signs the state-confidential amount based on the collective customer private key to generate a state-confidential amount signature pair, and broadcasts the generated state-confidential amount signature pair to the blockchain system.

4. The method for protecting privacy of supervised transactions based on blockchain according to claim 1, characterized in that: The airline decrypts and verifies the payment amount stored in the blockchain system, including: The airline decrypts the payment amount stored in the blockchain system based on the group customer public key, system master public key, airline private key and regulator public key to generate the payment amount; The airline calculates the consumption amount based on one or more consumption data signatures stored in the blockchain system; Determining whether the payment amount matches the consumption amount; If so, the payment amount is stored.

5. The method for protecting privacy of supervised transactions based on blockchain according to claim 1, characterized in that: The group company decrypts and verifies the change amount stored in the blockchain system, including: The group company decrypts the change amount stored in the blockchain system based on the group customer private key, group customer public key, regulatory agency public key and system master public key to generate the change amount; The group company calculates the consumption amount based on one or more consumption data signatures stored in the blockchain system; Determine whether the transaction input is equal to the transaction output; the transaction input is the sum of the unspent amount and the unspent points in the group customer account, and the transaction output is the sum of the payment amount and the change amount in this transaction; If so, the change amount is stored.

6. The method for protecting privacy of supervised transactions based on blockchain according to claim 1, characterized in that: The regulatory agency decrypts and verifies the payment amount and change amount stored in the blockchain system, including: The regulatory agency decrypts the payment amount stored in the blockchain system based on the regulatory agency's private key to generate the payment amount; The regulatory agency determines the consumption amount of this transaction based on the search method; Determine whether the payment amount matches the consumption amount, and if so, store the payment amount; The regulatory agency decrypts the change amount stored in the blockchain system based on the regulatory agency's private key to generate the change amount; The regulator determines the remaining amount of the transaction based on the search method; Determine whether the change amount matches the remaining amount, and if so, store the change amount.

7. A blockchain-based regulated transaction privacy protection system, characterized in that: include: User, used to sign consumption data to generate a consumption data signature pair; A blockchain consensus node, used to perform consistency judgment on the consumption data signature pair, and store the consumption data signature pair that passes the consistency judgment in the blockchain system; Group customers are used to homomorphically encrypt the transaction amount using an identity-based homomorphic encryption algorithm to generate a state-encrypted amount, and sign the state-encrypted amount to generate a state-encrypted amount signature pair; the transaction amount includes the payment amount, the change amount, and the unspent amount; the payment amount refers to the amount paid by the group customer to the airline in this transaction, and the payment amount is determined based on one or more consumption data signature pairs stored in the blockchain system; the change amount refers to the amount remaining in the account after the group customer pays the airline in this transaction; the unspent amount refers to the amount left in the group customer's account after the last transaction and used for this transaction expenditure; the identity-based homomorphic encryption algorithm is an algorithm for homomorphically encrypting the transaction amount based on the airline's public key and / or the regulator's public key; The blockchain consensus node is used to perform consistency judgment on the generated state-confidential amount signature pair, and store the generated state-confidential amount signature pair that passes the consistency judgment in the blockchain system; Airlines, used to decrypt and verify payment amounts stored in the blockchain system; The group company is used to decrypt and verify the change amount stored in the blockchain system; Regulators, used to decrypt and verify payment amounts and change amounts stored in the blockchain system; The transaction amount also includes unspent points; the unspent points refer to the points left in the account of the group customer after the last transaction and used for this consumption expenditure; the group customer spends the account points first, and then spends the account amount after the points are exhausted; in terms of using the identity-based homomorphic encryption algorithm to homomorphically encrypt the transaction amount to generate a state-encrypted amount, the group customer is further used for: The group customer homomorphically encrypts the payment amount based on the group customer private key, airline public key, regulatory agency public key and system master public key to generate the payment encrypted amount; The group customer performs homomorphic encryption on the change amount based on the group customer private key, group customer public key, regulatory agency public key and system master public key to generate the change amount; The group customer performs homomorphic encryption on the unspent amount based on the private key of the last transaction initiator, the group customer public key, the regulatory agency public key, and the system master public key to generate the unspent encrypted amount; The group customer performs homomorphic encryption on the unspent points based on the private key of the initiator of the last points transaction, the group customer public key, the regulatory agency public key and the system master public key to generate unspent encrypted points; The group customer generates a non-interactive zero-knowledge evidence based on the payment state-encrypted amount, the change state-encrypted amount, the unspent state-encrypted amount and the unspent state-encrypted points; the non-interactive zero-knowledge evidence is used to verify that the sum of the transaction inputs is equal to the sum of the outputs, and that the payment amount and the change amount are both greater than or equal to 0; the transaction input refers to the sum of the unspent amount and the unspent points in the group customer account, and the transaction output refers to the sum of the payment amount and the change amount of this transaction; The encrypted amount includes the payment encrypted amount, the change encrypted amount, the unspent encrypted amount, the unspent encrypted points and the non-interactive zero-knowledge evidence.

8. The blockchain-based regulated transaction privacy protection system according to claim 7, characterized in that: In terms of decrypting and verifying the payment amount stored in the blockchain system, the airline is further used to: The airline decrypts the payment amount stored in the blockchain system based on the group customer public key, system master public key, airline private key and regulator public key to generate the payment amount; The airline calculates the consumption amount based on one or more consumption data signatures stored in the blockchain system; Determining whether the payment amount matches the consumption amount; If so, the payment amount is stored.