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

bwallet-cli: require account-key if watch-only #15

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

pinheadmz
Copy link
Member

Addresses possible user error and confusion regarding purpose of watch-only wallets. Not passing an xpub results in a wallet with private keys (bcoin wallet will still generate a master private key) but being watch-only, it will refuse to dump private keys or sign transactions.

See bcoin-org/bcoin#636

@pinheadmz
Copy link
Member Author

Note if a user passes an account-key, the wallet is automatically set to watch-only. This seems ok because it still checks that the key is a pubkey in wallet/http.js so a user may be confused about usage but won't generate unrecoverable private keys.

@Kakasipahi
Copy link

i have lost my private key can i derive it by eth address

@pinheadmz
Copy link
Member Author

pinheadmz commented Sep 1, 2021

No. @Kakasipahi

@pinheadmz pinheadmz closed this Sep 1, 2021
@pinheadmz pinheadmz reopened this Sep 1, 2021
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.

2 participants