# US 2022/0294605 A1 · Blockchain-based public parameter generation method against backdoor attacks

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

- Number: US 2022/0294605 A1
- Document ID: US20220294605A1
- Status: Published application
- Kind: A1
- Application number: 17/517,661
- Filed: 2021-11-02
- Published: 2022-09-15
- Earliest claimed: 2021-03-09
- Assignees: University of Electronic Science and Technology of China; Yangtze Delta Region Institute (Huzhou), University of Electronic Science and Technology of China
- Applicants: University of Electronic Science and Technology of China; Yangtze Delta Region Institute (Huzhou), University of Electronic Science and Technology of China
- Inventors: Chunxiang XU; Changsong JIANG; Yicong DU
- Web page: https://patentgrep.com/patent/US20220294605A1

## CPC

- H04L 9/002: {Countermeasures against attacks on cryptographic mechanisms (network architectures or network communication protocols for protection against malicious traffic H04L63/1441)}
- H04L 9/0643: {Hash functions, e.g. MD5, SHA, HMAC or f9 MAC}
- H04L 9/302: {involving the integer factorization problem, e.g. RSA or quadratic sieve [QS] schemes}
- H04L 9/50: {using hash chains, e.g. blockchains or hash trees}
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

A blockchain-based public parameter generation method against backdoor attacks, includes: acquiring the hash values of L latest confirmed blocks on a blockchain, and the hash values of the L blocks and a count variable for generation are mapped to an element in a set G via a specified mapping to obtain the generated public parameter; L≥φ, φ is the minimum number to guarantee blockchains' chain quality property; checking whether the generated parameter meets the condition, if not, discarding the parameter and updating the generated public parameter; if the condition is met, outputting the public parameter to the device that uses the public parameter. In this disclosure, the public parameters are random, since they are based on the latest confirmed blocks on the blockchain and are guaranteed by the computational power of the blockchain; the generation of public parameters is publicly verifiable and random.

## Claims

### Claim 1

A blockchain-based public parameter generation method against backdoor attacks, the method comprising:
1) preparation phase:
determining a range and conditions of public parameters, and generating a set G of the public parameters;
2) generation phase of the public parameters:
setting a generation count variable i and a number of consecutive blocks L; acquiring hash values of latest confirmed L blocks on a blockchain, and mapping the hash values of the L blocks and the generation count variable i to an element in the set G via a specified mapping to obtain the generated public parameter; L≥φ, φ is a minimum number to ensure blockchains' chain quality property; and
3) verification phase of the public parameters:
checking whether the public parameter generated in the generation phase meets a condition; if not, discarding the parameter, updating the generation count variable i=i+1, and returning to 2); if the condition is met, outputting the public parameter to a device that uses the public parameters.

### Claim 2 (depends on 1)

The method of claim 1, wherein in 2), the specific method that acquires the hash values of the latest confirmed L blocks on a blockchain and maps the hash values of the L blocks and the generation count variable i to an element in the set G via the specified mapping to obtain the generated public parameter is as follows:
denoting the hash values of the latest confirmed L blocks on the blockchain, respectively, by HBlock1, HBlock2, . . . , HBlockL in chronological order; denoting the specified mapping by f, and mapping the hash values of the L blocks and the generation count variable i to an element in the set G via the specified mapping, f(HBlock1, HBlock2, . . . , HBlockL, i)→G; and generating the public parameter a=f(HBlock1, HBlock2, . . . , HBlockL, i).

### Claim 3 (depends on 1)

The method of claim 1, wherein in 2), the specific method that acquires the hash values of the latest confirmed L blocks on a blockchain and maps the hash values of the L blocks and the generation count variable i to an element in the set G via the specified mapping to obtain the generated public parameter is as follows:
according to a size comparison between a length pLen of a given parameter p in set G and a length k of output of hash function H: {0,1}*→{0,1}k, using two different strategies to compute the public parameter; if pLen≤k, computing the public parameter a=H(HBlock1∥HBlock2∥ . . . ∥HBlockL∥i) mod p, where mod denotes modulo operation; if pLen>k, first computing the minimum l satisfying pLen≤k×l, then computing the public parameter a=H(HBlock1∥HBlock2∥ . . . ∥HBlockL∥i)∥H(HBlock1∥HBlock2∥ . . . ∥HBlockL∥i+1)∥ . . . ∥H(HBlock1∥HBlock2∥ . . . ∥HBlockL∥i+l−1)mod p, i=0.

### Claim 4 (depends on 1)

The method of claim 1, wherein
in 2), when the public parameter based on the Ethereum blockchain is generated, the minimum number φ to guarantee blockchains' chain quality property is 12; and
in 2) when the public parameter based on the Bitcoin blockchain is generated, the minimum number φ to guarantee blockchains' chain quality property is 6.

### Claim 5 (depends on 2)

The method of claim 2, wherein
in 2), when the public parameter based on the Ethereum blockchain is generated, the minimum number φ to guarantee blockchains' chain quality property is 12; and
in 2) when the public parameter based on the Bitcoin blockchain is generated, the minimum number φ to guarantee blockchains' chain quality property is 6.

### Claim 6 (depends on 3)

The method of claim 3, wherein
in 2), when the public parameter based on the Ethereum blockchain is generated, the minimum number φ to guarantee blockchains' chain quality property is 12; and
in 2) when the public parameter based on the Bitcoin blockchain is generated, the minimum number φ to guarantee blockchains' chain quality property is 6.

### Claim 7 (depends on 2)

The method of claim 2, wherein L=12.

### Claim 8 (depends on 3)

The method of claim 3, wherein L=12.
