You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When supplying your own entropy to web3.eth.accounts.wallet.create the address returned appears to be random.
Expected behavior
The expectation is that if entropy is supplied that the resulting wallet accounts will always be the same.
Actual behavior
It appears that the accounts created within the wallet are randomly generated despite the fact you are supplying entropy. Either this is designed behavior which is undocumented, or there is a bug here. We either need to fix the bug so the same accounts are created or we need to document what the entropy is supposed to be used for. I have gone through the source code and it appears that consistent entropy should result in consistent accounts...
However eth-lib appears to be inserting random values despite supplied entropy... https://github.com/MaiaVictor/eth-lib/blob/master/src/account.js
Steps to reproduce the behavior
Generate entropy from a consistent source, for example from bip39.js mnemonic to entropy or mnemonic to seed function.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. Thank you for your contributions
Description
When supplying your own entropy to web3.eth.accounts.wallet.create the address returned appears to be random.
Expected behavior
The expectation is that if entropy is supplied that the resulting wallet accounts will always be the same.
Actual behavior
It appears that the accounts created within the wallet are randomly generated despite the fact you are supplying entropy. Either this is designed behavior which is undocumented, or there is a bug here. We either need to fix the bug so the same accounts are created or we need to document what the entropy is supposed to be used for. I have gone through the source code and it appears that consistent entropy should result in consistent accounts...
However eth-lib appears to be inserting random values despite supplied entropy...
https://github.com/MaiaVictor/eth-lib/blob/master/src/account.js
Steps to reproduce the behavior
Versions
beta-37 and beyond
The text was updated successfully, but these errors were encountered: