Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

prevent more than one wallet from using the same seed #138

Closed
wants to merge 2 commits into from

Conversation

hyhydra0
Copy link
Contributor

This adds a feature that prevents more than one wallet from using the same seed.

Fixes #132

// returns an error if there is any
func (mw *MultiWallet) checkForSeedClash(encryptedSeed []byte) error {
for _, wal := range mw.wallets {
if bytes.Equal(wal.EncryptedSeed, encryptedSeed) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

EncryptedSeed cannot be used to compare because the encrypted value is different for every encryption, EncryptedSeed is cleared once a wallet is backed up and EncryptedSeed is only saved for new wallets.

@beansgum
Copy link
Contributor

beansgum commented Nov 7, 2020

Closing this since it's stale and doesn't fix the issue.

@beansgum beansgum closed this Nov 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

prevent adding more than 1 wallet with the same seed
2 participants