keyfork-shard: always use highest level of error correction

This commit is contained in:
Ryan Heywood 2024-02-02 01:23:37 -05:00
parent f47d7c92b8
commit 6af5ab663d
Signed by: ryan
GPG Key ID: 8E401478A3FBEF72
2 changed files with 2 additions and 2 deletions

View File

@ -78,7 +78,7 @@ pub fn remote_decrypt(w: &mut impl Write) -> Result<(), Box<dyn std::error::Erro
use keyfork_qrcode::{qrencode, ErrorCorrection};
let mut qrcode_data = nonce_mnemonic.to_bytes();
qrcode_data.extend(key_mnemonic.as_bytes());
if let Ok(qrcode) = qrencode(&smex::encode(&qrcode_data), ErrorCorrection::Medium) {
if let Ok(qrcode) = qrencode(&smex::encode(&qrcode_data), ErrorCorrection::Highest) {
pm.prompt_message(PromptMessage::Data(qrcode))?;
}
}

View File

@ -562,7 +562,7 @@ pub fn decrypt(
use keyfork_qrcode::{qrencode, ErrorCorrection};
let mut qrcode_data = our_pubkey_mnemonic.to_bytes();
qrcode_data.extend(payload_mnemonic.as_bytes());
if let Ok(qrcode) = qrencode(&smex::encode(&qrcode_data), ErrorCorrection::Lowest) {
if let Ok(qrcode) = qrencode(&smex::encode(&qrcode_data), ErrorCorrection::Highest) {
pm.prompt_message(PromptMessage::Data(qrcode))?;
}
}