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

Reconstruct msmps from disk and archive #30

Merged
merged 6 commits into from
Aug 7, 2023

Conversation

Sword-Smith
Copy link
Member

No description provided.

This is done to allow the user to reconstruct the mutator set membership
proofs in case the wallet database is corrupted or lost. The
reconstruction of MS membership proofs have not yet been programmed.

Cf. #23.
It might not be a good idea to store any path in `WalletSecret`. It
could create some serious porting issues, as all values are JSON
encoded. Can we avoid storing this path there?
Also moves the functions to recover MUTXOs from wallet secret to wallet
state.

The problem with storing a directory in a wallet secret file is that it
would make porting the wallet to another directory (e.g. across
operating systems) error-prone.
This function was leaking test-handling which could and ought to be
contained to the `tests/shared.rs` module. This commit achieves that.

Also changes the name of the wallet db to be in line with the other
database names.
@Sword-Smith Sword-Smith force-pushed the reconstruct-msmps-from-disk-and-archive branch from efbd991 to 51469a9 Compare August 7, 2023 16:06
@Sword-Smith Sword-Smith merged commit e132763 into master Aug 7, 2023
6 checks passed
@Sword-Smith Sword-Smith deleted the reconstruct-msmps-from-disk-and-archive branch August 7, 2023 16:11
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.

1 participant