Open tzubcic-tolar opened 4 years ago
https://github.com/ethereum/aleth/blob/a3b93200d2e88cbf2c1a2c15f0e8973f8454c8bc/libethcore/KeyManager.cpp#L357
There are multiple issues with this method:
KeyPair p = KeyPair::create();
NewKeyType::NoVanity
p
KeyPair
Until this is fixed, I suggest using KeyPair::create() directly instead of KeyManager::newKeyPair.
KeyPair::create()
KeyManager::newKeyPair
Personally, I would not use the key related code for anything. This is barely maintained for long time. We can integrate a fix if you want to propose one.
https://github.com/ethereum/aleth/blob/a3b93200d2e88cbf2c1a2c15f0e8973f8454c8bc/libethcore/KeyManager.cpp#L357
There are multiple issues with this method:
KeyPair p = KeyPair::create();
-- this value is completely ignoredNewKeyType::NoVanity
is set, starting threads is pointless and a waste of resources, thep
mentioned above can be simply returned immediately.KeyPair
(i.e. where public key does not match private key).Until this is fixed, I suggest using
KeyPair::create()
directly instead ofKeyManager::newKeyPair
.