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
The bcoin API does not have a method to return a wallet's seed phrase once the wallet has been encrypted. That means that if a user creates a wallet and encrypts in the same command (i.e. mkwallet --passphrase=...) they will not be able to back up their seed phrase!
One possible way to do this might be switching the JSON function by this.key instead of this.encrypted:
this.encrypted is a property of the wallet that never changes once a passphrase has been set. this.key is null by default and only contains a value (the wallets unencrypted private key) when the wallet is unlocked.
I tried making this change locally and seems to work as expected:
The bcoin API does not have a method to return a wallet's seed phrase once the wallet has been encrypted. That means that if a user creates a wallet and encrypts in the same command (i.e.
mkwallet --passphrase=...
) they will not be able to back up their seed phrase!One possible way to do this might be switching the JSON function by
this.key
instead ofthis.encrypted
:bcoin/lib/wallet/masterkey.js
Lines 658 to 677 in 0551096
this.encrypted
is a property of the wallet that never changes once a passphrase has been set.this.key
isnull
by default and only contains a value (the wallets unencrypted private key) when the wallet is unlocked.I tried making this change locally and seems to work as expected:
The text was updated successfully, but these errors were encountered: