Introduce SecretManagerDto::HexSeed variant
@@ -149,6 +149,8 @@ pub enum SecretManagerDto {
LedgerNanoSimulator,
/// Mnemonic
Mnemonic(String),
+ /// Hex seed
+ HexSeed(String),
/// Placeholder
Placeholder,
}
@@ -184,6 +186,8 @@ impl TryFrom<&SecretManagerDto> for SecretManager {
SecretManagerDto::Mnemonic(mnemonic) => Self::Mnemonic(MnemonicSecretManager::try_from_mnemonic(mnemonic)?),
+ SecretManagerDto::HexSeed(hex_seed) => Self::Mnemonic(MnemonicSecretManager::try_from_hex_seed(hex_seed)?),
+
SecretManagerDto::Placeholder => Self::Placeholder(PlaceholderSecretManager),
})
}
