A time-asymmetric encoding method, device and medium capable of batch verification
By adopting a time-asymmetric encoding scheme based on Pierpont primes and the Pohlig-Hellman algorithm, combined with bucket verification and small exponent verification algorithms, the problem of low efficiency in batch verification in existing technologies is solved, and fast and accurate verification of storage files is achieved.
Patent Information
- Application Number
- CN202410169917.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-02-06
- Publication Date
- 2026-11-20
- Estimated Expiration
- 2044-02-06
AI Technical Summary
Existing verifiable deferred coding methods cannot achieve batch verification, especially in the discrete logarithm problem, where they are inefficient and cannot meet the requirements for fast and accurate storage file verification.
A time-asymmetric coding scheme is designed based on the discrete logarithm problem of Pierpont primes and the Pohlig-Hellman algorithm. Combined with the bucket verification algorithm and the small exponent verification algorithm, a fast batch verification is achieved.
By adjusting the value of Pierpont primes, the encoding and verification times can be flexibly controlled, enabling fast and accurate batch verification while reducing computational complexity and time costs.
Smart Images

Figure CN117938317B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of data processing technology, and in particular to a time asymmetric coding method, device and medium that can be verified in batches. Background Technology
[0002] Currently, the commonly used verifiable delay coding methods mainly include: verifiable delay functions based on finding the r-th root over a finite field, constructing verifiable delay functions based on schemes of unknown order groups, and solving the homology problem and pairing of hypersingular elliptic curves as candidate schemes. These schemes do not consider the discrete logarithm problem and are not time-asymmetric coding schemes based on the discrete logarithm problem, so they cannot complete the work of batch verification.
[0003] Chinese invention patent CN116614238A discloses a selective disclosure certificate method based on an aggregator that supports batch verification. When verifying a large number of certificates, traditional certificate methods cannot provide batch proofs. Certificate verification requires bilinear pairing operations, which are costly and impose high computational costs on verifiers when multiple certificates are involved. To enable users to verify a batch of certificates with only a single certificate, this method aggregates the certificate evidence held by the user, allowing a single piece of evidence to verify multiple certificates. It completes certificate verification with low time consumption even when multiple certificates are involved, further extending the functionality of the certificate system and making it suitable for applications with limited computing resources. This invention, based on a bilinear pairing aggregator, extends the functionality of a threshold-based selective disclosure credential system, positively contributing to the development of more feature-rich and practical certificate systems. However, these schemes do not consider the discrete logarithm problem and are not time-asymmetric encoding schemes based on the discrete logarithm problem, resulting in limited efficiency in batch verification. Summary of the Invention
[0004] In view of this, the purpose of this invention is to propose a time asymmetric encoding method that can be verified in batches, which can accurately and quickly verify whether the storage party stores the corresponding file.
[0005] To achieve the above-mentioned technical objectives, the technical solution adopted by this invention is as follows:
[0006] This invention provides a time-asymmetric encoding method capable of batch verification, applied between the storage party and the verifier, comprising the following steps:
[0007] Step 1: The storage provider generates and publishes public parameters;
[0008] Step 2: The verifier sends the file to the storage provider;
[0009] Step 3: The storage provider encodes the file according to the public parameters and sends the encoding result to the verifier;
[0010] Step 4: The verifier verifies the encoding result based on the common parameters and obtains the verification result;
[0011] Step 5: The verifier determines whether the storage provider has saved the file based on the verification result. If the verification is successful, it means that the storage provider has saved the file; if the verification fails, it means that the storage provider has not saved the file.
[0012] Furthermore, step 1 specifically includes:
[0013] Step 11: Set the ratio O between encoding time and verification time, O≈u+v;
[0014] Step 12: Select the values of u and v according to the ratio O, where u and v are positive integers;
[0015] Step 13: Determine the corresponding Pierpont prime number p based on the values of u and v, p = 2 u 3 v +1;
[0016] Step 14: Select the generator g of the multiplicative group modulo p based on the Pierpont prime number p;
[0017] Step 15: Randomly select an initial value y0 from {0,1,2,...,p-2};
[0018] Step 16: Publicize the public parameters p, g, u, v and y0.
[0019] Furthermore, step 3 specifically includes:
[0020] Step 31: Divide the file into Q groups based on its size and the maximum number of elements per group, n. Define the input element of the i-th element in the j-th group as x. ji , where x ji ∈{0,1,2,...,p-2}, j=1,2,3...Q;
[0021] i = 1, 2, 3...n; the number of input elements in the Qth group is less than or equal to n;
[0022] Step 32: Calculate each input element x based on the common parameters, input elements, and the discrete logarithm method. ji The corresponding output element y ji ;
[0023] Step 33: For each pair (x) ji y ji (Send to the verifiers in sequence.)
[0024] Furthermore, step 32 specifically includes:
[0025] Step 321: When j=1, calculate y for the first group of files respectively. i-1 With x i The sum of: (y i-1 +x i );
[0026] Step 322, let X i =(y i-1 +x i )mod(p-1)+1;
[0027] Step 323, Calculate y i =log g (X i -1;
[0028] Step 324: Repeat steps 321-323 multiple times to calculate the output element y for each group of files. i ;
[0029] Step 325: Obtain the relationship between each input element x ji The output element y corresponds one-to-one ji .
[0030] Furthermore, step 4 specifically involves the verifier verifying the encoding result based on the common parameters and using one of the following algorithms: parallel verification algorithm, small exponential verification algorithm, and bucket verification algorithm.
[0031] Furthermore, when using a parallel verification algorithm for verification, the following steps are performed:
[0032] Step 41: The verifier receives each pair (x ji y ji After that, based on each pair (x) ji y ji ) Perform group-by-group verification based on the grouping situation;
[0033] Step 42: For each pair (x) in each group i y i Substitute into the equation:
[0034]
[0035] Step 43: Determine if the equation is true. If it is true, the verification is successful; otherwise, the verification fails.
[0036] Furthermore, when using the small exponential verification algorithm for verification, the following steps are performed:
[0037] Step 44: Obtain generator g, {(x1, y1), (x2, y2), ..., (x n y n )} and safety parameter l;
[0038] Step 45, if any
[0039] Step 46: Randomly select from {0,1} l When selecting r1, r2, ..., r n r represents the range from {0,1} l Select a random number from the given list; calculate and
[0040] Step 47: Determine y = g x If the condition is true, the verification is successful; otherwise, the verification fails.
[0041] Furthermore, when using the bucket validation algorithm for verification, the following steps are performed:
[0042] Step 48: Obtain the multiplicative group G modulo p and its generator g, assuming |G| = p-1, {(x1, y1), (x2, y2), ..., (x... n y n Safety parameter l, safety parameter m, m is an integer and m≥2, M=2 m M represents a set containing 2 m indivual;
[0043] Step 49, if any Calculate the number of iterations
[0044] Step 410: For i = 1, 2, ..., n, randomly select t from {0, 1, 2, ..., M-1}. i ;t i This represents a random number selected from {0, 1, 2, ..., M-1};
[0045] Step 411: For f = 0, 1, ..., M-1, let B f ={i|t i =f}; Calculate B f Indicates intermediate parameters; c f and d f They represent x respectively i and y i The corresponding element after conversion;
[0046] Step 412: Using the safety parameter m, pair {(c0, d0), (c1, d1), ..., (c M-1 d M-1 Conduct a small index test;
[0047] Step 413: Repeat steps 410-412 to complete T tests; if all T tests pass, the verification is successful; otherwise, the verification fails.
[0048] The present invention also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement a batch-verifiable time asymmetric coding method as described above.
[0049] The present invention also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements a batch-verifiable time asymmetric coding method as described above.
[0050] By adopting the above technical solution, the present invention has the following beneficial effects compared with the prior art:
[0051] 1. Based on the discrete logarithm problem with Pierpont primes as the modulus and the Pohlig-Hellman algorithm, a novel time-asymmetric coding scheme is designed. Two batch verification algorithms, bucket verification and small exponent verification, are applied to the verification of the new scheme, which greatly speeds up the verification process.
[0052] 2. The encoding and verification times can be adjusted by changing the Pierpont prime number, offering great flexibility. Attached Figure Description
[0053] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0054] Figure 1 This is an execution flowchart of a time asymmetric coding method that can be verified in batches, provided by an embodiment of the present invention.
[0055] Figure 2 This is a flowchart of the process of calculating the output element using the discrete logarithm method provided in an embodiment of the present invention.
[0056] Figure 3 This is a schematic diagram of an electronic device provided in an embodiment of the present invention.
[0057] Figure 4 This is a schematic diagram of a computer-readable storage medium provided in an embodiment of the present invention. Detailed Implementation
[0058] The present invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be particularly noted that the following embodiments are for illustrative purposes only and do not limit the scope of the invention. Similarly, the following embodiments are only some, not all, embodiments of the present invention, and all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0059] Terminology Explanation:
[0060] Temporal asymmetric coding: Temporal asymmetric coding is a class of cryptographic algorithms that are time-consuming in forward computation but fast in reverse computation. It has the properties of latency, unique output, and verifiability. Because it meets the requirements of slow encoding and fast decoding in the data encapsulation process, it is often used in projects that focus on stored procedure proof technology.
[0061] Batch Validation: Given a relation y = f(x), a series of (x, y) are provided. Quickly verify that all (x, y) satisfy y = f(x).
[0062] Discrete Logarithm Problem: In a cyclic group G, given the generator g of the group, and randomly given elements y in the group, find x such that y = g^x;
[0063] Pohlig-Hellman algorithm (discrete logarithm method): an algorithm for solving the discrete logarithm problem;
[0064] Pierpont primes: A prime number p is called a Pierpont prime if its prime factors are only 2 and 3, i.e., p = 2^u * 3^v + 1.
[0065] Small exponential verification algorithm and bucket verification algorithm: In a cyclic group G, given g and a batch of (x1, y1)(x2, y2)...(x...),... n ,y n These two algorithms can be used to quickly verify y. i =g^x i The bucket test algorithm is an algorithm used for fast verification.
[0066] The main tools used in a batch-verifiable time-asymmetric coding method are the discrete logarithm problem with Pierpont primes as the modulus and the Pohlig-Hellman algorithm. The Pohlig-Hellman algorithm can solve this type of discrete logarithm problem quickly, and the verification of the calculation results can be completed quickly. Therefore, it can be used to construct time-asymmetric coding, with the process of solving the discrete logarithm problem as the coding process, and the verification can be completed quickly.
[0067] Application scenarios of the algorithm: In the context of cloud storage, the storage provider wants to prove to the customer that it has stored multiple copies of the files provided by the customer, which can improve the reliability of the storage. Here, multiple copies do not refer to the same file, but multiple sets of different encoded files of the same file.
[0068] Please see Figure 1 and Figure 2 This invention provides a batch-verifiable time-asymmetric encoding method, applied between the storage party and the verifier, and applicable to blockchain consensus, proof of replication, random number generation, and other fields; it includes the following steps:
[0069] Step 1: The storage provider generates and publishes public parameters;
[0070] In this embodiment, step 1 specifically includes:
[0071] Step 11: Set the ratio O between encoding time and verification time, O≈u+v; the computation time is approximately u+v times the verification time. Since many Pierpont primes can be found, u and v can be adjusted to control the delay ratio. Computation (encoding) time / verification time ≈ O(u+v). Therefore, in the discrete logarithm problem based on Pierpont primes, the ratio of computation time to verification time can be approximated as a constant.
[0072] Step 12: Select the values of u and v according to the ratio O, where u and v are positive integers; by adjusting the values of u and v, the difficulty of solving the discrete logarithm problem in the multiplication group modulo p can be controlled.
[0073] Step 13: Determine the corresponding Pierpont prime number p based on the values of u and v, p = 2 u 3 v +1; If p is a prime number and p = 2 u 3 v +1, if u and v are non-negative integers, then p is called a Pierpont prime;
[0074] Step 14: Select the generator g of the multiplicative group modulo p based on the Pierpont prime number p;
[0075] Step 15: Randomly select an initial value y0 from {0,1,2,...,p-2};
[0076] Step 16: Publicize the public parameters p, g, u, v and y0.
[0077] Step 2: The verifier sends the file to the storage provider;
[0078] Step 3: The storage provider encodes the file according to the public parameters and sends the encoding result to the verifier;
[0079] In this embodiment, step 3 specifically includes:
[0080] Step 31: Divide the file into Q groups based on its size and the maximum number of elements per group, n. Define the input element of the i-th element in the j-th group as x. ji , where x ji ∈{0,1,2,...,p-2}, j=1,2,3...Q;
[0081] i = 1, 2, 3...n; the number of input elements in the Qth group is less than or equal to n;
[0082] Convert the file to a binary file. Based on the size of p, group the binary data into blocks. For example, if p is 100 bits and the binary file is 1000 bits, then the binary file can be converted into 10 groups of 100 bits each. These 10 groups correspond to x1, x2, x3, ..., x... 10 ;
[0083] Step 32: Calculate each input element x based on the common parameters, input elements, and the discrete logarithm method. ji The corresponding output element y ji ;
[0084] In this embodiment, step 32 specifically includes:
[0085] Step 321: When j=1, calculate y for the first group of files respectively. i-1 With x i The sum of: (y i-1 +x i );
[0086] Step 322, let X i =(y i-1 +x i )mod(p-1)+1;
[0087] Step 323, Calculate y i =log g (X i -1;
[0088] Step 324: Repeat steps 321-323 multiple times to calculate the output element y for each group of files. i ;
[0089] Step 325: Obtain the relationship between each input element x ji The output element y corresponds one-to-one ji .
[0090] Step 33: For each pair (x) ji y ji (Send to the verifiers in sequence.)
[0091] In X i =(y i-1 +x i When ) mod(p-1)+1, the time complexity of calculating the discrete logarithm problem is:
[0092] O(u+v+(u+v)(u+v)(u+vlog23))
[0093] This is an acceptable time complexity, while for the general discrete logarithm problem, the time complexity is:
[0094] Here, N is the order of the corresponding group. The time complexity of solving the discrete logarithm problem is much smaller than that of calculating the general discrete logarithm problem.
[0095] Step 4: The verifier verifies the encoding result based on the common parameters and obtains the verification result;
[0096] In this embodiment, step 4 specifically involves the verifier verifying the encoding result based on the common parameters and using one of the following algorithms: parallel verification algorithm, small exponential verification algorithm, and bucket verification algorithm.
[0097] In this embodiment, when a parallel verification algorithm is used for verification, the following steps are performed:
[0098] Step 41: The verifier receives each pair (x ji y ji After that, based on each pair (x) ji y ji ) Perform group-by-group verification based on the grouping situation;
[0099] Step 42: For each pair (x) in each group i y i Substitute into the equation:
[0100]
[0101] Step 43: Determine if the equation is true. If it is true, the verification is successful; otherwise, the verification fails.
[0102] Here, the time complexity of each verification is O(u+vlog23), so the ratio of the time required for computation (encoding) to verification is approximately O(u+v). Parallel verification algorithms can transform the original one-to-one verification into verification of groups, enabling batch verification, significantly shortening the verification time and greatly accelerating the verification speed.
[0103] In this embodiment, when using the small exponential verification algorithm for verification, the following steps are performed:
[0104] Step 44: Obtain generator g, {(x1, y1), (x2, y2), ..., (x n y n )} and safety parameter l;
[0105] Step 45, if any
[0106] Step 46: Randomly select from {0,1} l When selecting r1, r2, ..., r n r represents the range from {0,1} l Select a random number from the given list; calculate and
[0107] Step 47: Determine y = g x If the condition is true, the verification is successful; otherwise, the verification fails.
[0108] Using a small exponent verification algorithm can enable batch verification, which greatly shortens the verification time and speeds up the verification process.
[0109] In this embodiment, when using the bucket validation algorithm for verification, the following steps are performed:
[0110] Step 48: Obtain the multiplicative group G modulo p and its generator g, assuming |G| = p-1, {(x1, y1), (x2, y2), ..., (x... n y n Safety parameter l, safety parameter m, m is an integer and m≥2, M=2 m M represents a set containing 2 m indivual;
[0111] Step 49, if any Calculate the number of iterations
[0112] Step 410: For i = 1, 2, ..., n, randomly select t from {0, 1, 2, ..., M-1}. i ;t i This represents a random number selected from {0, 1, 2, ..., M-1};
[0113] Step 411: For f = 0, 1, ..., M-1, let B f ={i|t i =f}; Calculate c f =∑ i∈Bf x i mod(p-1), d f =∏ i∈Bf y i B f Indicates intermediate parameters; c f and d f They represent x respectively i and y i The corresponding element after conversion;
[0114] Step 412: Using the safety parameter m, pair {(c0, d0), (c1, d1), ..., (c M-1 d M-1 Conduct a small index test;
[0115] Step 413: Repeat steps 410-412 to complete T tests; if all T tests pass, the verification is successful; otherwise, the verification fails.
[0116] The bucket validation algorithm enables batch validation, which greatly shortens the validation time and speeds up the validation process.
[0117] Let the number of bits in p be k. The ratio of the number of multiplications in repeated verification to that in small-exponential verification is approximately k / (l+2). The bucket verification algorithm is faster than the small-exponential verification algorithm, with a time complexity of O(k).
[0118]
[0119] Where ExpCost(k) represents the number of multiplications required to perform a modular multiplication of a number with an exponent of k bits.
[0120] Step 5: The verifier determines whether the storage provider has saved the file based on the verification result. If the verification is successful, it means that the storage provider has saved the file; if the verification fails, it means that the storage provider has not saved the file.
[0121] This scheme can be used for proof of copy. We want a server or cloud storage provider to store multiple copies of a file. The cloud storage service provider claims to have made additional redundant backups to ensure the security of user data, thus requiring users to pay higher service fees. This gives users greater peace of mind that their data is safe. The required steps are to generate multiple sets of public parameters, encoding the original file into multiple sets of y1, y2, y3, y4,...y n Here, users can request the cloud storage provider to provide the encoded result and verify it at any time. Since encoding is slow, if the cloud storage provider has not prepared the encoding in advance, it will not be able to provide the encoded result within a set time. In this case, users will not accept the cloud storage service.
[0122] In the given computational model, the computer is required to solve n discrete logarithm problems, and the solution to the i-th discrete logarithm problem is related to the solution to the (i-1)-th discrete logarithm problem, thus ensuring that the computer cannot accelerate the computation through parallel computing. For the verifier, two strategies can be adopted to accelerate verification: one is to directly use multiple parallel processors to speed up verification, and the other is to use a small exponential verification algorithm or a bucket verification algorithm to complete the batch verification work. The core of this algorithm is solving the discrete logarithm problem; fast batch verification algorithms exist for this type of problem, but traditional verifiable deferred coding does not have such special algorithms.
[0123] like Figure 3 As shown, this embodiment of the invention also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the program, it implements the above-described batch-verifiable time asymmetric coding method.
[0124] like Figure 4 As shown, this embodiment of the invention also provides a computer-readable storage medium storing a computer program thereon, which, when executed by a processor, implements the above-described batch-verifiable time asymmetric coding method.
[0125] Furthermore, the functional units in the various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.
[0126] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) or processor to execute all or part of the steps of the methods of various embodiments of this invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0127] The above description is only a part of the embodiments of the present invention and does not limit the scope of protection of the present invention. Any equivalent device or equivalent process transformation made based on the content of the present invention specification and drawings, or direct or indirect application in other related technical fields, are similarly included within the patent protection scope of the present invention.
Claims
1. A batch-verifiable time asymmetric coding method, characterized in that, Applied between the storage provider and the validator, it includes the following steps: Step 1: The storage provider generates and publishes public parameters; specifically including: Step 11: Set the ratio O between encoding time and verification time, O≈u+v; Step 12: Select the values of u and v according to the ratio O, where u and v are positive integers; Step 13: Determine the corresponding Pierpont prime number p based on the values of u and v, p=2 u 3 v +1; Step 14: Select the generator g of the multiplicative group modulo p based on the Pierpont prime number p; Step 15: Randomly select an initial value y0 from {0,1,2,...,p-2}; Step 16: Publicly disclose the public parameters p, g, u, v, and y0; Step 2: The verifier sends the file to the storage provider; Step 3: The storage provider encodes the file according to the public parameters and sends the encoding result to the verifier; specifically including: Step 31: Divide the file into Q groups based on its size and the maximum number of elements per group, n. Define the input element of the i-th element in the j-th group as x. ji , where x ji ∈{0,1,2,...,p-2}, j=1,2,3……Q; i=1,2,3……n; the number of input elements in the Qth group is less than or equal to n; Step 32: Calculate each input element x based on the common parameters, input elements, and the discrete logarithm method. ji The corresponding output element y ji Specifically, this includes: Step 321: When j=1, calculate y for the first group of files respectively. i-1 With x i The sum of: (y i-1 +x i ); Step 322, let X i =(y i-1 +x i ) mod (p-1) + 1; Step 323, Calculate y i =log g (X) i -1; Step 324: Repeat steps 321-323 multiple times to calculate the output element y for each group of files. i ; Step 325: Obtain the relationship between each input element x ji The output element y corresponds one-to-one ji ; Step 33: For each pair (x) ji y ji ) are sent to the verifiers in sequence; Step 4: The verifier verifies the encoding result based on the common parameters and obtains the verification result; Step 5: The verifier determines whether the storage provider has saved the file based on the verification result. If the verification is successful, it means that the storage provider has saved the file; if the verification fails, it means that the storage provider has not saved the file.
2. The batch-verifiable time asymmetric coding method as described in claim 1, characterized in that, Step 4 specifically involves the verifier verifying the encoding result based on the common parameters and using one of the following algorithms: parallel verification algorithm, small exponential verification algorithm, and bucket verification algorithm.
3. The batch-verifiable time asymmetric coding method as described in claim 2, characterized in that, When using a parallel verification algorithm, the following steps are performed: Step 41: The verifier receives each pair (x ji y ji After that, according to each pair (x) ji y ji ) Perform group-by-group verification based on the grouping situation; Step 42: For each pair (x) in each group i y i Substitute into the equation: g yi+1 =(y i-1 +x i )mod(p-1)+1; Step 43: Determine if the equation is true. If it is true, the verification is successful; otherwise, the verification fails.
4. The batch-verifiable time asymmetric coding method as described in claim 2, characterized in that, When using the small exponential validation algorithm for validation, the following steps are performed: Step 44: Obtain generator g, {(x1, y1), (x2, y2), ..., (x... n y n )} and security parameters l ; Step 45: If for any i∈{1, 2, ..., n}, y i =g xi ; Step 46: Randomly select from {0,1} l When selecting r1, r2, ..., r n r represents the range from {0,1} l Select a random number from the given list; calculate and ; Step 47: Determine y=g x If the condition is true, the verification is successful; otherwise, the verification fails.
5. The batch-verifiable time asymmetric coding method as described in claim 2, characterized in that, When using the bucket validation algorithm for validation, the following steps are performed: Step 48: Obtain the multiplicative group G modulo p and its generator g, assuming |G|=p-1, {(x1, y1), (x2, y2), ..., (x... n y n Safety parameters l The safety parameter m is an integer where m is greater than or equal to 2, and M = 2. m M represents a set containing 2 m indivual; Step 49: If for any i∈{1, 2, ..., n}, y i =g xi ; Calculate the number of iterations ; Step 410: For i = 1, 2, ..., n, randomly select t from {0, 1, 2, ..., M-1}. i ;t i This represents a random number selected from {0, 1, 2, ..., M-1}; Step 411: For f = 0, 1, ..., M-1, let B f ={i|t i =f}; Calculate c f =∑ i∈Bf x i mod(p-1), d f =∏ i∈Bf y i B f Indicates intermediate parameters; c f and d f They represent x respectively i and y i The corresponding element after conversion; Step 412: Using the safety parameter m, pair {(c0, d0), (c1, d1), ..., (c M-1 d M-1 Conduct a small index test; Step 413: Repeat steps 410-412 to complete T tests; if all T tests pass, the verification is successful; otherwise, the verification fails.
6. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the program, it implements a batch-verifiable time asymmetric coding method as described in any one of claims 1 to 5.
7. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the program is executed by the processor, it implements a batch-verifiable time asymmetric coding method as described in any one of claims 1 to 5.
Citation Information
Patent Citations
Efficient cloud storage copy proving method and system supporting public verification and application thereof
CN112769842A
Aggregator-based selective certificate disclosure method supporting batch verification
CN116614238A
