Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions roles/mint/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,8 @@ async fn main() -> Result<()> {
pub const HASH_DERIVATION_PATH: u32 = 1337;
const NUM_KEYS: u8 = 64;

// TODO securely import mnemonic
let mnemonic = Mnemonic::generate(12).unwrap();
let mnemonic = Mnemonic::from_str(&mint_settings.info.mnemonic)
.map_err(|e| anyhow::anyhow!("Invalid mnemonic in mint config: {}", e))?;

let hash_currency_unit = CurrencyUnit::Custom(HASH_CURRENCY_UNIT.to_string());

Expand Down Expand Up @@ -372,4 +372,4 @@ async fn delete_key(
tracing::warn!("Failed to delete key '{}': {:?}", key, e);
}
}
}
}
Loading