|
1 | | -// Copyright (c) 2025 rust-cktap contributors |
| 1 | +// Copyright (c) 2025-2026 rust-cktap contributors |
2 | 2 | // SPDX-License-Identifier: MIT OR Apache-2.0 |
3 | 3 |
|
4 | 4 | use crate::{CardError, CkTapCard, CkTapError, SatsCard, TapSigner}; |
@@ -76,8 +76,8 @@ pub trait Authentication { |
76 | 76 | fn pubkey(&self) -> &PublicKey; |
77 | 77 | fn card_nonce(&self) -> &[u8; 16]; |
78 | 78 | fn set_card_nonce(&mut self, new_nonce: [u8; 16]); |
79 | | - fn auth_delay(&self) -> &Option<usize>; |
80 | | - fn set_auth_delay(&mut self, auth_delay: Option<usize>); |
| 79 | + fn auth_delay(&self) -> &Option<u8>; |
| 80 | + fn set_auth_delay(&mut self, auth_delay: Option<u8>); |
81 | 81 | fn transport(&self) -> Arc<dyn CkTransport>; |
82 | 82 | fn card_ident(&self) -> String { |
83 | 83 | card_pubkey_to_ident(self.pubkey()) |
@@ -244,7 +244,7 @@ pub trait Read: Authentication { |
244 | 244 |
|
245 | 245 | #[async_trait] |
246 | 246 | pub trait Wait: Authentication { |
247 | | - async fn wait(&mut self, cvc: Option<String>) -> Result<Option<usize>, CkTapError> { |
| 247 | + async fn wait(&mut self, cvc: Option<String>) -> Result<Option<u8>, CkTapError> { |
248 | 248 | let epubkey_xcvc = cvc.map(|cvc| { |
249 | 249 | let (_, epubkey, xcvc) = self.calc_ekeys_xcvc(&cvc, WaitCommand::name()); |
250 | 250 | (epubkey, xcvc) |
|
0 commit comments