In order to improve the pseudo random number mechanism in blockchain technology, a new pseudo random number generator is designed based on cryptography principle and blockchain hierarchical deterministic wallet (HD wallet) technology and implemented by HD wallet and Rivest Cipher 4 (RC4) technology. Firstly, the wallet public key is updated and performed Hash operation. Secondly, the internal state of RC4 algorithm is replaced by the Hash value in XOR form. Finally, the sum of the RC4 and the Hash operation of the public key is taken as the generated pseudo random number. By use of avalanche test and NIST random test kit, the pseudo random number sequence generated by the scheme is tested. The experimental results show that the scheme can generate the pseudo random number sequence safely and reliably, and the generated pseudo random number has unpredictability, applicability and verifiability. Therefore, it can be used in many fields such as blockchain wallet terminal and information security.
Publications
- Article type
- Year
Year
Open Access
Issue
Journal of Measurement Science and Instrumentation 2023, 14(1): 17-24
Published: 01 March 2023
Downloads:34
Total 1
京公网安备11010802044758号