From b3a05277e8c1f4216916f34e13800d806e64d235 Mon Sep 17 00:00:00 2001 From: ryan Date: Sun, 4 Feb 2024 17:51:38 -0500 Subject: [PATCH] keyfork-shard: increase QR code read timeout from 30 to 60 seconds --- crates/keyfork-shard/src/lib.rs | 9 +++++---- crates/keyfork-shard/src/openpgp.rs | 8 +++----- 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/crates/keyfork-shard/src/lib.rs b/crates/keyfork-shard/src/lib.rs index 614fd97..2b9e26c 100644 --- a/crates/keyfork-shard/src/lib.rs +++ b/crates/keyfork-shard/src/lib.rs @@ -44,6 +44,9 @@ pub struct InvalidData; pub(crate) const HUNK_VERSION: u8 = 1; pub(crate) const HUNK_OFFSET: usize = 2; +const QRCODE_PROMPT: &str = "Press enter, then present QR code to camera."; +const QRCODE_TIMEOUT: u64 = 60; // One minute + /// Establish ECDH transport for remote operators, receive transport-encrypted shares, decrypt the /// shares, and combine them. /// @@ -92,11 +95,9 @@ pub fn remote_decrypt(w: &mut impl Write) -> Result<(), Box