Skip to content

Wallet's state persistence #2097

Answered by ricmoo
a-ruban-craftsoft asked this question in Q&A
Discussion options

You must be logged in to vote

Depending on what you need to restore from or to (e.g. Do you need the mnemonic? Do you need to derive multiple paths from the HD seed? Does your wallet need to preserve the chain ID?) you can either store the mnemonic or just the privateKey. Either is enough to reconstruct the Wallet object.

If storing the HDNode, a read-only extended key might also be useful if you need to generate all child addresses, but not their private keys.

Much of the decisions depend on how your wallet operates and the functionality you wish to provide.

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@a-ruban-craftsoft
Comment options

@ricmoo
Comment options

Answer selected by a-ruban-craftsoft
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #2096 on September 27, 2021 11:43.