# US 2026/0019264 A1 · Zero-knowledge set membership proof method and apparatus

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2026/0019264 A1
- Document ID: US20260019264A1
- Status: Published application
- Kind: A1
- Application number: 19/095,028
- Filed: 2025-03-31
- Published: 2026-01-15
- Earliest claimed: 2024-04-02
- Assignees: Alipay (Hangzhou) Information Technology Co., Ltd.
- Applicants: Alipay (Hangzhou) Information Technology Co., Ltd.
- Inventors: Zhenghao WU; Jinming CUI; Xiaojian LIANG; Pu DUAN
- Web page: https://patentgrep.com/patent/US20260019264A1

## CPC

- H04L 9/3221: {interactive zero-knowledge proofs}
- H04L 9/3066: {involving algebraic varieties, e.g. elliptic or hyper-elliptic curves}
- H04L 9/3218: {using proof of knowledge, e.g. Fiat-Shamir, GQ, Schnorr, ornon-interactive zero-knowledge proofs}
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

Embodiments of this specification provide a zero-knowledge set membership proof method and apparatus. User equipment receives, from a verifier device, a subset S′ whose size is η in a set S; calculates two public values based on a parameter set disclosed by a third party, an element u, and an evidence σ, and sends the two public values to the verifier device to calculate a third public value; calculates η groups of random statements based on η groups of generated random numbers and the three public values, and sends the η groups of random statements to the verifier device; receives a random challenge c from the verifier device; and sends η groups of data proofs. The verifier device verifies whether the random statement, the challenge value, and the proof value satisfy a preset relationship, to determine whether the element u owned by the user equipment belongs to the subset S′.

## Claims

### Claim 1

A zero-knowledge set membership proof method, performed by user equipment, wherein the user equipment owns an element u and an evidence σ issued by a third party to prove that the element u belongs to a set S, and the method comprises:
receiving, from a verifier device, a subset S′ whose size is η in the set S, and determining that the element u is the kth element in the subset S′;
calculating two public values based on a parameter set disclosed by the third party, the element u, and the evidence σ, and sending the two public values to the verifier device, so that the verifier device calculates a third public value based on the sent public values and each element in the subset S′;
calculating η groups of random statements based on η groups of generated random numbers and the above-mentioned three public values, and sending the η groups of random statements to the verifier device;
receiving a random challenge c from the verifier device;
constructing η challenge values based on the η groups of random numbers and the random challenge c, wherein the kth challenge value is calculated in a manner different from that of another challenge value;
constructing η groups of proof values, wherein the kth group of proof values is determined based on the kth group of random numbers, the kth challenge value, and the element u, and another group of proof values is determined based on a corresponding group of random numbers; and
sending η groups of data proofs formed by using η groups of proof values and corresponding challenge values to the verifier device, so that the verifier device verifies whether the η groups of random statements, the η challenge values, and the η group of proof values satisfy a preset relationship, to determine whether the element u owned by the user equipment belongs to the subset S′.

### Claim 2 (depends on 1)

The method according to claim 1, wherein the parameter set comprises a first parameter {tilde over (g)} and a second parameter g1, and calculating the two public values based on the parameter set disclosed by the third party, the element u, and the evidence σ comprises:
selecting a random number e;
calculating a first public value based on a random number e and a first parameter {tilde over (g)}; and
calculating a second public value based on the random number e, the first parameter {tilde over (g)}, a second parameter g1, the element u, and the evidence σ.

### Claim 3 (depends on 2)

The method according to claim 2, wherein the parameter set further comprises a third parameter p, and selecting the random number e comprises:
randomly selecting an element from an integer multiplication group p whose modulus is the third parameter p, to obtain a random number e.

### Claim 4 (depends on 3)

The method according to claim 3, wherein the first parameter {tilde over (g)} is a group generator in an elliptic curve group 1, and calculating the first public value based on the random number e and the first parameter {tilde over (g)} comprises:
performing an exponential operation by using the first parameter {tilde over (g)} as a base and by using the random number e as an exponent, to obtain the first public value.

### Claim 5 (depends on 3)

The method according to claim 3, wherein the first parameter {tilde over (g)} and the second parameter g1 are two group generators in an elliptic curve group 1, the evidence σ comprises an encryption value A and a random number r, and calculating the second public value based on the random number e, the first parameter {tilde over (g)}, the second parameter g1, the element u, and the evidence σ comprises:
performing an exponential operation by using the second parameter g1 as a base and using the random number e as an exponent, to obtain a first intermediate value;
performing an exponential operation by using the first parameter {tilde over (g)} as a base and using a product of the random number e and the element u as an exponent, to obtain a second intermediate value;
performing an exponential operation by using the encryption value A as a base and using an opposite number of a product of the random number e and the random number r as an exponent, to obtain a third intermediate value; and
performing a multiplication operation on the first intermediate value, the second intermediate value, and the third intermediate value, to obtain the second open value.

### Claim 6 (depends on 3)

The method according to claim 3, wherein the third public value is η exponential operation result obtained by performing an exponential operation by using the first public value as a base and using each element in the subset S′ as an exponent.

### Claim 7 (depends on 3)

The method according to claim 3, wherein the first parameter {tilde over (g)} and the second parameter g1 are two group generators in an elliptic curve group 1, and calculating the η groups of random statements based on the η groups of generated random numbers and the above-mentioned three public values comprises:
calculating a first statement value in a target group of random statements based on the second public value, the first parameter {tilde over (g)}, the second parameter g1, the evidence σ, the random number e, and a target group of random numbers;
calculating a second statement value in the target group of random statements based on the first public value, the first parameter {tilde over (g)}, and the target group of random numbers; and
calculating a third statement value in the target group of random statements based on the third public value, the first parameter {tilde over (g)}, and the target group of random numbers.

### Claim 8 (depends on 7)

The method according to claim 7, wherein the evidence σ comprises an encryption value A and a random number r, and calculating the first statement value in the target group of random statements comprises:
performing an exponential operation by using the second public value as a base and using a random number wj in the jth group of random numbers as an exponent, to obtain a first multiplier;
performing an exponential operation by using the second parameter g1 as a base and using a random number xj in the jth group of random numbers as an exponent, to obtain a second multiplier;
performing an exponential operation by using the first parameter {tilde over (g)} as a base and using a random number yj in the jth group of random numbers as an exponent, to obtain a third multiplier;
performing an exponential operation by using the encryption value A as a base and using a product of the random number e and a random number zj in the jth group of random numbers as an exponent, to obtain a fourth multiplier; and
performing a multiplication operation on the first multiplier, the second multiplier, the third multiplier, and the fourth multiplier, wherein an obtained multiplication result is used as a first statement value in the jth group of random statements.

### Claim 9 (depends on 7)

The method according to claim 7, wherein calculating the second statement value in the target group of random statements comprises:
performing an exponential operation by using the first public value as a base and using a random number wj in the jth group of random numbers as an exponent, to obtain a first exponential result;
performing an exponential operation by using the first parameter {tilde over (g)} as a base and using a random number xj in the jth group of random numbers as an exponent, to obtain a second exponential result; and
performing a multiplication operation on the first exponential result and the second exponential result, wherein an obtained multiplication result is used as the second statement value in the jth group of random statements.

### Claim 10 (depends on 7)

The method according to claim 7, wherein calculating the third statement value in the target group of random statements comprises:
performing an exponential operation by using the jth value in η values comprised in the third public value as a base and using a random number wj in the jth group of random numbers as an exponent, to obtain a first intermediate result;
performing an exponential operation by using the first parameter {tilde over (g)} as a base and using a random number yj in the jth group of random numbers as an exponent, to obtain a second intermediate result; and
performing a multiplication operation on the first intermediate result and the second intermediate result, wherein an obtained multiplication result is used as the third statement value in the jth group of random statements.

### Claim 11 (depends on 3)

The method according to claim 3, wherein the random challenge c is obtained by randomly selecting an element from the integer multiplication group p whose modulus is p.

### Claim 12 (depends on 1)

The method according to claim 1, wherein constructing the η challenge values comprises:
subtracting the sum of random numbers wj in the η groups of random numbers from the random challenge c, to obtain the kth challenge value, wherein j represents the jth group of random numbers; and
using each random number wj in a group of random numbers other than the kth group of random numbers in the η groups of random numbers as the jth challenge value.

### Claim 13 (depends on 1)

The method according to claim 1, wherein the evidence σ comprises an encryption value A and a random number r, and constructing the η groups of proof values comprises:
for the kth group of proof values, obtaining a first proof value by using a random number xk comprised in the kth group of random numbers as a minuend and using a product of the kth challenge value and a random number e as a subtrahend; obtaining a second proof value by using a random number yk comprised in the kth group of random numbers as a minuend and using a product of the kth challenge value, a random number e, and the element u as a subtrahend; and obtaining a third proof value by using a random number zk comprised in the kth group of random numbers as an addend and using a product of the kth challenge value and the random number r as another addend; and
for the jth group of proof values when j is unequal to k, using a random number xj comprised in the jth group of random numbers as the first proof value, using a random number yj comprised in the jth group of random numbers as a second proof value, and using a random number zj comprised in the jth group of random numbers as a third proof value.

### Claim at position 14

14-20. (canceled)

### Claim 21

A non-transitory computer-readable storage medium, wherein the non-transitory computer-readable storage medium stores a computer program, which when executed by a processor causes the processor to:
receive, from a verifier device, a subset S′ whose size is η in the set S, and determine that the element u is the kth element in the subset S′;
calculate two public values based on a parameter set disclosed by the third party, the element u, and the evidence σ, and send the two public values to the verifier device, so that the verifier device calculates a third public value based on the sent public values and each element in the subset S′;
calculate η groups of random statements based on η groups of generated random numbers and the above-mentioned three public values, and send the η groups of random statements to the verifier device;
receive a random challenge c from the verifier device;
construct η challenge values based on the η groups of random numbers and the random challenge c, wherein the kth challenge value is calculated in a manner different from that of another challenge value;
construct η groups of proof values, wherein the kth group of proof values is determined based on the kth group of random numbers, the kth challenge value, and the element u, and another group of proof values is determined based on a corresponding group of random numbers; and
send η groups of data proofs formed by using η groups of proof values and corresponding challenge values to the verifier device, so that the verifier device verifies whether the η groups of random statements, the η challenge values, and the η group of proof values satisfy a preset relationship, to determine whether the element u owned by the user equipment belongs to the subset S′.

### Claim 22

A computing device, comprising a memory and a processor, wherein the memory stores executable code, and when the processor executes the executable code, the computing device is caused to:
receive, from a verifier device, a subset S′ whose size is η in the set S, and determine that the element u is the kth element in the subset S′;
calculate two public values based on a parameter set disclosed by the third party, the element u, and the evidence σ, and send the two public values to the verifier device, so that the verifier device calculates a third public value based on the sent public values and each element in the subset S′;
calculate η groups of random statements based on η groups of generated random numbers and the above-mentioned three public values, and send the η groups of random statements to the verifier device;
receive a random challenge c from the verifier device;
construct η challenge values based on the η groups of random numbers and the random challenge c, wherein the kth challenge value is calculated in a manner different from that of another challenge value;
construct η groups of proof values, wherein the kth group of proof values is determined based on the kth group of random numbers, the kth challenge value, and the element u, and another group of proof values is determined based on a corresponding group of random numbers; and
send η groups of data proofs formed by using η groups of proof values and corresponding challenge values to the verifier device, so that the verifier device verifies whether the η groups of random statements, the η challenge values, and the η group of proof values satisfy a preset relationship, to determine whether the element u owned by the user equipment belongs to the subset S′.

### Claim 23 (depends on 21)

The non-transitory computer-readable storage medium according to claim 21, wherein the parameter set comprises a first parameter {tilde over (g)} and a second parameter g1, and the processor being caused to calculate the two public values based on the parameter set disclosed by the third party, the element u, and the evidence σ comprises being caused to:
select a random number e;
calculate a first public value based on a random number e and a first parameter {tilde over (g)}; and
calculate a second public value based on the random number e, the first parameter {tilde over (g)}, a second parameter g1, the element u, and the evidence σ.

### Claim 24 (depends on 23)

The non-transitory computer-readable storage medium according to claim 23, wherein the parameter set further comprises a third parameter p, and the processor being caused to select the random number e comprises being caused to:
randomly select an element from an integer multiplication group p whose modulus is the third parameter p, to obtain a random number e.

### Claim 25 (depends on 24)

The non-transitory computer-readable storage medium according to claim 24, wherein the first parameter {tilde over (g)} is a group generator in an elliptic curve group 1, and the processor being caused to calculate the first public value based on the random number e and the first parameter {tilde over (g)} comprises being caused to:
perform an exponential operation by using the first parameter {tilde over (g)} as a base and by using the random number e as an exponent, to obtain the first public value.

### Claim 26 (depends on 22)

The computing device according to claim 22, wherein the parameter set comprises a first parameter {tilde over (g)} and a second parameter g1, and the computing device being caused to calculate the two public values based on the parameter set disclosed by the third party, the element u, and the evidence σ comprises being caused to:
select a random number e;
calculate a first public value based on a random number e and a first parameter {tilde over (g)}; and
calculate a second public value based on the random number e, the first parameter {tilde over (g)}, a second parameter g1, the element u, and the evidence σ.

### Claim 27 (depends on 26)

The computing device according to claim 26, wherein the parameter set further comprises a third parameter p, and the computing device being caused to select the random number e comprises being caused to:
randomly select an element from an integer multiplication group p whose modulus is the third parameter p, to obtain a random number e.
