# US 2025/0379733 A1 · Cryptographic pseudonym mapping method, computer system, computer program and computer-readable medium

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

- Number: US 2025/0379733 A1
- Document ID: US20250379733A1
- Status: Published application
- Kind: A1
- Application number: 18/878,410
- Filed: 2023-06-22
- Published: 2025-12-11
- Earliest claimed: 2022-06-23
- Assignees: Xtendr Zrt.
- Applicants: Xtendr ZRT.
- Inventors: Attila Bágyoni-Szabó; Ferenc Vágujhelyi
- Web page: https://patentgrep.com/patent/US20250379733A1

## CPC

- H04L 9/3013: {involving the discrete logarithm problem, e.g. ElGamal or Diffie-Hellman systems}
- H04L 9/008: {involving homomorphic encryption}
- H04L 9/3066: {involving algebraic varieties, e.g. elliptic or hyper-elliptic curves}
- H04L 2209/08: Randomization, e.g. dummy operations or using noise
- H04L 2209/42: Anonymization, e.g. involving pseudonyms
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

The invention is a cryptographic pseudonym mapping method for an anonymous data sharing system, the method being adapted for generating pseudonymised data from entity data originating from data sources (DSi), wherein the data are identified at the data sources (DSi) by entity identifiers (D) of the respective entities, and wherein the pseudonymised data are identified by pseudonyms assigned to the respective entity identifiers (D) applying a one-to-one mapping. Furthermore, the invention is a computer system implementing the method, and a computer program and a computer-readable medium.

## Claims

### Claim 1

A cryptographic pseudonym mapping method for an anonymous data sharing system, the method being adapted for generating pseudonymised data from entity data originating from data sources (DSi), wherein the data are identified at the data sources (DSi) by entity identifiers (D) of the respective entities, and wherein the pseudonymised data are identified by pseudonyms (P) assigned to the respective entity identifiers (D) applying a one-to-one mapping,
characterised by applying, for a number n of data sources (DSi)
more than one, a number k of mappers (Mj),
with an algebraic group (G) having an order φ, and within that, a generator element (g) of the algebraic group (G) being predetermined with respect to the mappers (Mj) and data sources (DSi), and with a set (H) being also predetermined, said set (H) being a subset of integers being coprime to φ that forms an algebraic group with regard to modulo φ multiplication, furthermore, a mapping (h) assigning an integer value to each entity identifier (D) with respect to the mappers (Mj) and data sources (DSi) being also predetermined, and
for each index j=1, 2, . . . , k:
i. the actual mapper (Mj) selecting for itself, in a random manner, an integer xj and an integer αj,
ii. the actual mapper (Mj) selecting an integer bj from the set (H) in a random manner,
for each index j=1, 2, . . . , k the actual mapper (Mj) generating, cooperating with the other mappers (Mj), such a first ElGamal public key (Rj) that corresponds to the private key x1·x2· . . . ·xk, and storing the generated first ElGamal public key (Rj) by the actual mapper (Mj),
for each index i=1, 2, . . . , n the actual data source (DSi) generating, in cooperation with the mappers (Mj), such a second ElGamal public key (Si) that corresponds to the private key x1·x2· . . . ·xk, and storing the generated second ElGamal public key (Si) by the actual data source (DSi),
and,
in the course of the pseudonymisation of an entity identifier (D) by a data source (DSi), the data source (DSi)
i. calculating an ElGamal cipher (C1) applying one of the following two alternatives:
C
1
=
ElGamalEnc
S
i
(
h
⁡
(
D
)
)
or
C
1
=
(
E
i
)
h
⁡
(
D
)
,
wherein, in the case of the first alternative, the range of the function h is a subset of the set (H), and in the case of the second alternative, for each index i=1, 2, . . . , n the actual data source (DSi) generates, in cooperation with the mappers (Mj), such an ElGamal cipher (Ei) of the value b1·b2· . . . ·bk that can be decrypted utilizing the ElGamal private key x1·x2· . . . ·xk:
ElGamalResolve
⁡
(
ElGamalPartialDec
x
1
·
x
2
·
...
·
x
k
(
E
i
)
)
≡
b
1
·
b
2
·
...
·
b
k
⁢
mod
⁢
φ
ii. selecting a number π1 from the numbers 1, 2, . . . , k in a random manner, and
iii. sending the ElGamal cipher (C1) to the mapper (Mπ1) that corresponds to the number π1,
for each ElGamal cipher (C1) received in the system, the mappers (Mj) carrying out the following operations for each index j=1, 2, . . . , k in the following order:
i. the actual mapper (Mπj) checks if both components of the ElGamal cipher Cj are elements of the set (H), and continues the process only in case the result of the check is positive,
ii. the actual mapper (Mπj) calculates the subsequent ElGamal cipher (Cj+1):
C
j
+
1
=
ElGamalRerand
R
π
j
(
(
C
j
)
α
π
j
)
,
iii. if j<k, then the actual mapper (Mπj) randomly selects from the numbers 1, 2, . . . , k such a number πj+1 that is not among the numbers π1, π2, . . . , πj, and then sends in a message the subsequent ElGamal cipher (Cj+1) to the mapper (Mπj+1) corresponding to the number πj+1,
iv. if j=k, then the actual mapper (Mπj) randomly chooses a number 1 from the numbers 1, 2, . . . , k, and sends in a message to the mapper () corresponding to the number 1 the following information:
Z
1
=
g
K
1
=
R
π
k
U
1
=
C
k
+
1
thereafter the mappers () carrying out, for each index j=1, 2, . . . , k, in this order, the following operations:
i. the actual mapper () checks if both components of the ElGamal cipher Uj are elements of the set (H), and continues the process only in case the result of the check is positive,
ii. the actual mapper () checks if both components of the ElGamal public key Kj are elements of the set (H), and continues the process only in case the result of the check is positive,
iii. the actual mapper () randomly chooses an integer from the set (H) and determines an integer fj such that: ej·fj≡1 mod φ
iv. the actual mapper () calculates the followings:
a
⁢
value
⁢
(
Z
j
+
1
)
:
Z
j
+
1
=
(
Z
j
)
e
j
,
a
⁢
key
⁢
(
K
j
+
1
)
:
K
j
+
1
=
ElGamalKeyRerand
⁡
(
K
j
⊖
x
ϱ
j
)
,
and
a
⁢
cipher
⁢
(
U
j
+
1
)
:
U
j
+
1
=
ElGamalRerand
K
j
+
1
(
ElGamalPartialDec
x
ϱ
j
(
U
j
)
·
f
j
)
,
v. if j<k, then the actual mapper () randomly chooses from the numbers 1, 2, . . . , k such a number j+1 that is not among the numbers 1, 2, . . . , j, and then sends in a message to the mapper () corresponding to the chosen number j+1 the value (Zj+1), the key (Kj+1) and the cipher (Uj+1) generated in the previous step,
vi. and, if j=k, then the actual mapper () generates the pseudonym (P) corresponding to the entity identifier (D):
P
=
(
Z
k
+
1
)
ElGamalResolve
⁡
(
U
j
+
1
)

### Claim 2 (depends on 1)

The method according to claim 1, characterised in that, in the course of generating the first ElGamal public keys (Rj),
for each index j=1, 2, . . . , k:
vii. the actual mapper (Mj) randomly chooses an integer rj from the set (H),
viii. the actual mapper (Mj) randomly chooses an integer number tj,
ix. utilizing the chosen number tj, the actual mapper (Mj) generates an ElGamal public key (Kj,1) corresponding thereto: Kj,1=(rj, (rj)tj mod φ),
x. if j>1, then the actual mapper (Mj) sends to the first mapper (M1) the ElGamal public key (Kj,1) corresponding to the chosen number tj,
xi. for each index τ=1, 2, . . . , k, in this order, the actual mapper (Mτ) checks if both components of the actual ElGamal public key (Kj,τ) are elements of the set (H), and, if the result of the check is positive, it calculates therefrom the subsequent ElGamal public key (Kj,τ+1): Kj,τ+1=ElGamalKeyRerand(Kj,τ⊗xτ), and if τ<k, sends it to the subsequent mapper (Mτ+1),
xii. the last mapper (Mk) sends to the actual mapper (Mj) the subsequent ElGamal public key (Kj,k+1), and
xiii. the actual mapper (Mj) generates and stores the first ElGamal public key (Rj):
R
j
=
K
j
,
k
+
1
⊖
t
j
.

### Claim 3 (depends on 1)

The method according to claim 1, characterised in that, in the course of generating the second ElGamal public keys (Si),
for each index i=1, 2, . . . , n:
i. the actual data source (DSi) randomly chooses an integer number si from the set (H),
ii. the actual data source (DSi) randomly chooses an integer number ui
iii. the actual data source (DSi) generates the ElGamal public key (Li,1) that corresponds to the chosen numbers: Li,1=(si, (si)ui mod φ),
iv. the actual data source (DSi) sends to the first mapper (M1) the ElGamal public key (Li,1) that corresponds to the chosen numbers,
v. for each index τ=1, 2, . . . , k, in this order, the actual mapper (Mτ) checks if both components of the received ElGamal public key (Li,τ) are elements of the set (H), and, if the result of the check is positive, it calculates the subsequent ElGamal public key (Li,τ+1): Li,τ+1=ElGamalKeyRerand(Li,τ⊗xτ), and if τ<k, sends it to the subsequent mapper (Mτ+1),
vi. the last mapper (Mk) sends to the actual data source (DSi) the subsequent ElGamal public key (Li,k+1), and
vii. the actual data source (DSi) generates and stores the second ElGamal public key
(
S
i
)
:
S
i
=
L
i
,
k
+
1
⊖
u
i
.

### Claim 4 (depends on 1)

The method according to claim 1, characterised in that the ElGamal ciphers (Ei) adapted for being decrypted utilizing the ElGamal private key are generated as follows:
For each index i=1, 2, . . . , n:
i. the data source (DSi) randomly chooses a value γi,0 from the set (H).
ii. the data source (DSi) generates the cipher (γi,1) corresponding to the chosen
value
:
γ
i
,
1
=
ElGamalEnc
S
i
(
γ
i
,
0
)
,
iii. the data source (DSi) sends the cipher (γi,1) to the first mapper (M1),
iv. for each index j=1, 2, . . . , k, in this order, the actual mapper (Mj) checks if both components of the actual ElGamal cipher (γi,j) are elements of the set (H), and, if the result of the check is positive, it calculates the subsequent cipher (γi,j+1): γi,j+1=ElGamalRerandRj(γi,j)·bj, and if j<k, it sends the calculated cipher (γi,j+1) to the subsequent mapper (Mj+1),
v. the last mapper (Mk) sends the calculated cipher (γi,k+1) it has received to the data source (DSi), and
vi. the data source (DSi) generates and stores the ElGamal cipher (Ei): Ei=γi,k+1·((γi,0)−1 mod φ).

### Claim 5 (depends on 1)

The method according to claim 1, characterised in that:
for calculating the ElGamal cipher (C1), the first alternative is applied by all data sources (DSi) for each entity identifier (D): C1=ElGamalEncSi(h(D)), where the range of the function h is a subset of the set (H),
or
for calculating the ElGamal cipher (C1), the second alternative is applied by all data sources (DSi) for each entity identifier (D): C1=(Ei)h(D).

### Claim 6 (depends on 1)

The method according to claim 1, characterised in that the random selections are performed according to a uniform distribution.

### Claim 7 (depends on 1)

The method according to claim 1, characterised in that the mapping (h) adapted for assigning an integer value to each entity identifier (D) is a cryptographic hash function that is defined over the space of entity identifiers (D) and maps to an interval [0, φ].

### Claim 8 (depends on 1)

The method according to claim 1, characterised in that the algebraic group (G) is a Schnorr group.

### Claim 9 (depends on 1)

The method according to claim 1, characterised in that the algebraic group (G) is a prime-order elliptic curve defined over a finite field.

### Claim 10 (depends on 1)

The method according to claim 1, characterised in that the set (H) forms a Schnorr group with regard to modulo φ multiplication.

### Claim 11 (depends on 1)

The method according to claim 1, characterised in that the data sources (DSi) share the ElGamal ciphers (C1) with the mappers (Mj) by writing them into a database that operates according to a protocol verified by third parties and provides decentralized authenticity.

### Claim 12 (depends on 11)

The method according to claim 11, characterised in that a blockchain database is applied as the database providing decentralized authenticity.

### Claim 13 (depends on 1)

The method according to claim 1, characterised in that the mappers (Mj) constitute a decentralized network and communicate with each other over encrypted channels.

### Claim 14 (depends on 13)

The method according to claim 13, characterised in that the mappers (Mj) do not immediately send the messages containing the ElGamal ciphers (Cj+1), values (Zj+1), keys (Kj+1), and ciphers (Uj+1) generated by them to the respective subsequent mapper, but instead put them on a waiting list, and, when the size of the waiting list has exceeded a predetermined limit, they send the messages in a random order.

### Claim 15 (depends on 13)

The method according to claim 13, characterised in that the mappers (Mj) do not immediately send the messages containing the ElGamal ciphers (Cj+1), values (Zj+1), keys (Kj+1) and ciphers (Uj+1) generated by them to the respective subsequent mapper, but instead send these messages after a randomly chosen time period has elapsed.

### Claim 16 (depends on 13)

The method according to claim 13, characterised in that the mappers (Mj) do not immediately process the received messages containing ElGamal ciphers (Cj+1), values (Zj+1), keys (Kj+1), and ciphers (Uj+1), but instead put them on a waiting list and, after the size of the waiting list has exceeded a predetermined limit, they randomly choose a message from among the received messages and perform the subsequent mapping step on it.

### Claim 17 (depends on 13)

The method according to claim 13, characterised in that the mappers (Mj) do not immediately process the received messages containing ElGamal ciphers (Cj+1), values (Zj+1), keys (Kj+1), and ciphers (Uj+1), but instead they carry out on each message to the subsequent mapping step after a respective randomly chosen time period has elapsed.

### Claim 18 (depends on 1)

The method according to claim 1, characterised in that each ElGamal cipher (Cj+1), value (Zj+1), key (Kj+1), and cipher (Uj+1) is shared by writing into a database providing decentralized authenticity.

### Claim 19 (depends on 18)

The method according to claim 18, characterised in that a blockchain database is applied as the database providing decentralized authenticity.

### Claim 20 (depends on 1)

The method according to claim 1, characterised in that the algebraic group (G), the generator element (g), and the set (H) are predetermined by the entity or entities responsible for the implementation or the operation of the system.

### Claim 21 (depends on 1)

The method according to claim 1, characterised in that the algebraic group (G), the generator element (g), and the set (H) are predetermined by the mappers (Mj) in a decentralized manner.

### Claim 22 (depends on 1)

The method according to claim 1, characterised in that the algebraic group (G), the generator element (g), and the set (H) are predetermined by the following algorithm:
i. choosing randomly, according to a uniform distribution, a prime number q, the binary representation of which consists of B bits,
ii. searching for an integer r between 2 and B for which it holds true that p=r·q+1 is prime; if no such r can be found, returning to step i,
iii. searching for an integer s between 2 and B for which it holds true that N=s·p+1 is prime; if no such s can be found, returning to step i,
iv. choosing randomly, according to a uniform distribution, integer numbers between 2 and (p−1) until such a number f is found that f is relatively prime to p, and fs≢1 mod N,
v. defining the generator element g as the value fs mod N, and defining the group G as a group of reduced residue classes a over modulo N for which it holds true that as≢1 mod N and ap≡mod N,
vi. defining the set (H) as a set of integers a between 1 and p where a is relatively prime to p, ar≢1 mod P, and aq≡1 mod p.

### Claim 23 (depends on 22)

The method according to claim 22, characterised in that a pseudorandom number generator determined in the following manner is applied in the algorithm utilized for defining the algebraic group (G), the generator element (g), and the set (H):
each mapper (Mj) chooses an integer Nj from a predetermined range,
each mapper (Mj) publishes a commitment value F(Nj), where F is a cryptographic hash function,
each mapper (Mj) waits until all of the values F(Nj) are published,
each mapper (Mj) publishes its own Nj value,
the mappers (Mj) calculate the value N1⊗N2⊗ . . . ⊗Nk, where the symbol ⊗ denotes a bitwise XOR operation,
the value N1⊗N2⊗ . . . ⊗Nk is applied as the seed of the pseudorandom number generator utilized for defining the algebraic group (G), the generator element (g), and the set (H).

### Claim 24 (depends on 1)

The method according to claim 1, characterised in that one or more attributes (A) belong to each entity identifier (D), which attribute/attributes is/are attached in unencrypted form to the ElGamal cipher (C1) calculated as an encrypted entity identifier, to the value calculated in the course of pseudonym calculation, and to the calculated pseudonyms (P), followed by matching and/or collecting the attributes (A) based on the pseudonyms (P).

### Claim 25 (depends on 1)

The method according to claim 1, characterised in that one or more attributes (A) belong to each entity identifier (D), which attribute/attributes is/are attached by the data source (DSi) in encrypted form to the ElGamal cipher (C1) calculated as an encrypted entity identifier,
such that
the attribute (A) corresponding to the entity identifier (D) is encrypted by the data source (DSi) in the following manner:
A
1
,
1
=
ElGamalEncrypt
S
i
(
A
)
then, in addition to the ElGamal cipher (C1), the encrypted attribute (A1,1) is also sent by the data source (DSi) to the mapper (Mλ1) in a message,
for each index j=1, 2, . . . , k:
i. after receiving the encrypted attribute (A1,1) attached to an ElGamal cipher (C1), the actual mapper (Mπj) checks if both components thereof originate from the set (H), and, if the result of the check is positive, it calculates the subsequent value (A1,j+1) of the encrypted attribute in the following manner:
A
1
,
j
+
1
=
ElGamalRerandomize
R
π
j
(
A
1
,
j
)
ii. if j<k, then, in addition to the subsequent ElGamal cipher (Cj+1), the actual mapper (Mπj) also sends the subsequent value (A1,j+1) of the encrypted attribute in a message sent to the subsequent mapper (Mπj+1),
iii. if j=k, then, in addition to the values Z1, K1, U1, the actual mapper (Mπj) sends in a message sent to the mapper () corresponding to the number 1 a value A2,1=A1,j+1 that is calculated as the subsequent value of the encrypted attribute and which corresponds to the first encrypted attribute value (A2,1) of the subsequent order of mappers, and then
for each index j=1, 2, . . . , k:
i. if both components of the encrypted attribute value (A2,j) are elements of the set (H), then the actual mapper () calculates therefrom the subsequent value of the encrypted attribute (A2,j+1) in the following manner:
A
2
,
j
+
1
=
ElGamalRerandomize
R
ϱ
j
(
A
2
,
j
)
ii. if j<k, then the actual mapper () also sends the subsequent value (A2,j+1) of the encrypted attribute to the subsequent mapper () in a message containing the value (Zj+1), key (Kj+1), and cipher (Uj+1),
iii. the final encrypted form (A2,k+1) of the entity attribute is finally obtained.

### Claim 26 (depends on 1)

A computer system implementing the method according to claim 1, the system comprising
data sources (DSi) containing data related to entities,
more than one, a number k of mappers (Mj),
a module adapted for generating the cryptographic keys of the data sources,
a module adapted for storing the cryptographic keys of the data sources,
a module adapted for generating the cryptographic keys of the mappers,
a module adapted for storing the cryptographic keys of the mappers,
a module adapted for encrypting the entity identifiers (D), and
a module adapted for mapping the encrypted entity identifiers (C1) to the pseudonyms (P).

### Claim 27 (depends on 26)

The computer system according to claim 26, characterised by further comprising
databases (DBIi) stored at the data sources (DSi), in which the data are identified applying the entity identifiers (D) of the entities, and
a database (DBP) containing pseudonymised data, in which the pseudonymised data are identified by pseudonyms (P) assigned to the respective entity identifiers (D) applying a one-to-one mapping,

### Claim 28 (depends on 26)

The computer system according to claim 26, characterised by the system further comprising
data streams (SIi) broadcast by the data sources (DSi), wherein the data are identified by the entity identifiers (D) of the entities, and
a data stream (SP) containing pseudonymised data, wherein the pseudonymised data are identified by pseudonyms (P) assigned to the respective entity identifiers (D) applying a one-to-one mapping.

### Claim 29 (depends on 26)

The computer system according to claim 26, characterised by further comprising
a key manager adapted for storing and/or generating the cryptographic keys of the data sources (DSi), and
a key manager adapted for storing and/or generating the cryptographic keys of the mappers (Mj).

### Claim 30 (depends on 1)

A computer program comprising instructions which, when the program is executed by a computer, cause the computer to carry out the steps of any of the methods according to claim 1.

### Claim 31 (depends on 30)

A computer-readable medium adapted for storing the computer program according to claim 30.
