ethresearch / sharding-p2p-poc

Proof of Concept of Ethereum Serenity Peer-to-Peer Layer on libp2p PubSub System
40 stars 19 forks source link

Fix the generation process of private key #100

Closed mhchia closed 5 years ago

mhchia commented 5 years ago

What is wrong?

With a fixed seed, we don't always get the same private key, due to the randomness added in the process of generating RSA private key. We need this process to be deterministic for easier testing. This is discovered by @NIC619

How can it be fixed?

Use seed directly as the private key for testing