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

Dynamic secret manager #1219

Closed
wants to merge 36 commits into from
Closed

Dynamic secret manager #1219

wants to merge 36 commits into from

Conversation

DaughterOfMars
Copy link

@DaughterOfMars DaughterOfMars commented Sep 12, 2023

Description of change

This PR replaces the generic secret manager bounds with trait objects. This helps to clean up a lot of the code, but it also required pretty significant changes to some functionality.

In particular, the wallet builder finish method no longer loads data from the storage. Instead, there is a load_storage fn that will do this part optionally. The reason for this is that otherwise the secret manager type would need to be specified in finish even when no loading is needed or wanted.

@DaughterOfMars DaughterOfMars marked this pull request as ready for review September 28, 2023 14:48
Comment on lines +42 to +61
// #[cfg(feature = "stronghold")]
// WalletMethod::ChangeStrongholdPassword {
// current_password,
// new_password,
// } => {
// wallet
// .change_stronghold_password(current_password, new_password)
// .await?;
// Response::Ok
// }
// #[cfg(feature = "stronghold")]
// WalletMethod::ClearStrongholdPassword => {
// wallet.clear_stronghold_password().await?;
// Response::Ok
// }
// #[cfg(feature = "stronghold")]
// WalletMethod::IsStrongholdPasswordAvailable => {
// let is_available = wallet.is_stronghold_password_available().await?;
// Response::Bool(is_available)
// }
Copy link
Contributor

Choose a reason for hiding this comment

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

Is that still a todo for this PR?

Copy link
Author

Choose a reason for hiding this comment

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

yeah

@DaughterOfMars DaughterOfMars marked this pull request as draft November 30, 2023 17:17
@thibault-martinez thibault-martinez deleted the feat/dyn-secret-manager branch December 6, 2023 15:09
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.

4 participants