Blockchain Random Number Generation via Multi-Source Hashing
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Conventional Proof of Work (PoW) blockchain systems lack unpredictable random seeds for smart contracts, making them vulnerable to prediction and manipulation.
Innovation Solution
A blockchain random number generating system and method that involves two electronic devices and a smart contract, where each device generates and transmits random numbers and hash values to different blocks of the smart contract, which then uses a real-time transaction index to generate a random seed, ensuring that neither party can predict the contract result.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Reliability
If conventional PoW blockchain uses standard random seeds (e.g., time parameters) for smart contracts, then the system operation is simple and efficient, but the random seed becomes predictable and vulnerable to manipulation
Solution Approach 1:
The random seed generation process is segmented into multiple independent components: first random number from first electronic device, second random number from second electronic device, real-time transaction index from external data, and block hash value from blockchain. Each component is generated separately and then combined through hashing to create the final random seed, ensuring no single point of control or prediction
Solution Approach 2:
A smart contract acts as an intermediary that coordinates the collection, verification, and combination of random numbers from multiple electronic devices. The smart contract ensures that all components are properly aggregated and hashed to generate the final random seed, preventing any single device from manipulating the outcome
2Reliability
If multiple electronic devices generate and transmit random numbers to different blocks, then the random seed becomes unpredictable and secure, but the system complexity and communication overhead increase
Solution Approach 1:
Multiple random numbers from different electronic devices, along with the real-time transaction index and block hash value, are merged into a single random seed through the hashing function implemented in the smart contract. This combination ensures that all inputs are necessary for the final output, making the system secure while maintaining operational efficiency
3Reliability
If the smart contract waits for multiple random numbers and hash values before generating the random seed, then the unpredictability is ensured, but the time required for contract execution increases
Solution Approach 1:
Electronic devices perform preliminary actions by generating their random numbers and hash values in advance and transmitting them to the smart contract before the actual contract execution. This allows the smart contract to have all necessary components ready for rapid combination and hashing, reducing the actual execution time while maintaining unpredictability
Data Source
AI summary
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.

