# US 2021/0286595 A1 · Blockchain random number generating system and blockchain random number generating method

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

- Number: US 2021/0286595 A1
- Document ID: US20210286595A1
- Status: Published application
- Kind: A1
- Application number: 16/855,981
- Filed: 2020-04-22
- Published: 2021-09-16
- Earliest claimed: 2020-03-11
- Assignees: Acer Incorporated
- Applicants: Acer Incorporated
- Inventors: Shao-Nung Huang
- Web page: https://patentgrep.com/patent/US20210286595A1

## CPC

- G06F 7/588: {Random number generators, i.e. based on natural stochastic processes}
- G06F 7/582: {Pseudo-random number generators}
- G06F 16/27: Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
- H04L 9/3239: {involving non-keyed hash functions, e.g. modification detection codes [MDCs], MD5, SHA or RIPEMD}
- H04L 9/50: {using hash chains, e.g. blockchains or hash trees}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

The disclosure provides a blockchain random number generating system and blockchain random number generating method. The blockchain random number generating system includes a smart contract. A second electronic device generates a second random number and a second hash value corresponding to the second random number, and transmits the second hash value to a first block of the smart contract. A first electronic device generates a first random number and a first hash value corresponding to the first random number, and transmits the first hash value to a second block of the smart contract. A fifth block of the smart contract receives a real-time transaction index, and generates a random seed according to the real-time transaction index, the first random number and the second random number and calculates a result of the smart contract in the fifth block according to the random seed.

## Claims

### Claim 1

A blockchain random number generating system, comprising:
a first electronic device;
a second electronic device; and
a smart contract, wherein
the second electronic device generates a second random number and a second hash value corresponding to the second random number, and transmits the second hash value to a first block of the smart contract,
the first electronic device generates a first random number and a first hash value corresponding to the first random number, and transmits the first hash value to a second block of the smart contract,
the first electronic device transmits the first random number to a third block of the smart contract and the second electronic device transmits the second random number to the third block,
a fifth block of the smart contract receives a real-time transaction index, and generates a random seed according to the real-time transaction index, the first random number, and the second random number, and calculates a result of the smart contract in the fifth block according to the random seed.

### Claim 2 (depends on 1)

The blockchain random number generating system of claim 1, wherein the smart contract generates a random seed according to a block hash value of a fourth block, the real-time transaction index, the first random number, and the second random number and calculates a result of the smart contract in the fifth block according to the random seed, a block index value of the fourth block is a block index value of the fifth block minus one.

### Claim 3 (depends on 1)

The blockchain random number generating system of claim 1, wherein the smart contract issues a penalty corresponding to the first electronic device when determining that a hash result of the first random number is not equal to the first hash value, the smart contract issues a penalty corresponding to the second electronic device when determining that a hash result of the second random number is not equal to the second hash value.

### Claim 4 (depends on 1)

The blockchain random number generating system of claim 1, wherein when the smart contract receives the first hash value in the second block, the smart contract is in a contract-established state.

### Claim 5 (depends on 1)

The blockchain random number generating system of claim 1, wherein the fifth block of the smart contract receives the real-time transaction index from an external data retrieval function.

### Claim 6

A blockchain random number generating method, adaptable for a first electronic device, a second electronic device, and a smart contract, the blockchain random number generating method comprising:
generating a second random number and a second hash value corresponding to the second random number by the second electronic device, and transmitting the second hash value to a first block of the smart contract;
generating a first random number and a first hash value corresponding to the first random number by the first electronic device, and transmitting the first hash value to a second block of the smart contract;
transmitting the first random number to a third block of the smart contract by the first electronic device and transmitting the second random number to the third block by the second electronic device; and
receiving a real-time transaction index by a fifth block of the smart contract, and generating a random seed according to the real-time transaction index, the first random number and the second random number, and calculating a result of the smart contract in the fifth block according to the random seed.

### Claim 7 (depends on 6)

The blockchain random number generating method of claim 6, wherein the smart contract generates a random seed according to a block hash value of a fourth block, the real-time transaction index, the first random number, and the second random number and calculates a result of the smart contract in the fifth block according to the random seed, a block index value of the fourth block is a block index value of the fifth block minus one.

### Claim 8 (depends on 6)

The blockchain random number generating method of claim 6, wherein the smart contract issues a penalty corresponding to the first electronic device when determining that a hash result of the first random number is not equal to the first hash value, the smart contract issues a penalty corresponding to the second electronic device when determining that a hash result of the second random number is not equal to the second hash value.

### Claim 9 (depends on 6)

The blockchain random number generating method of claim 6, wherein when the smart contract receives the first hash value in the second block, the smart contract is in a contract-established state.

### Claim 10 (depends on 6)

The blockchain random number generating method of claim 6, wherein the fifth block of the smart contract receives the real-time transaction index from an external data retrieval function.
