diff --git a/apps/bitcoin/app/src/handlers/mod.rs b/apps/bitcoin/app/src/handlers/mod.rs index 0324db5..a53ba7d 100644 --- a/apps/bitcoin/app/src/handlers/mod.rs +++ b/apps/bitcoin/app/src/handlers/mod.rs @@ -1,8 +1,19 @@ use common::message::ResponseGetMasterFingerprint; +use sdk::curve::Curve; pub fn handle_get_master_fingerprint() -> Result { - // TODO: replace with proper sdk call Ok(ResponseGetMasterFingerprint { - fingerprint: 0xf5acc2fd, + fingerprint: sdk::curve::Secp256k1::get_master_fingerprint(), }) } + +#[cfg(test)] +mod tests { + use super::*; + + #[test] + fn test_handle_get_master_fingerprint() { + let response = handle_get_master_fingerprint().unwrap(); + assert_eq!(response.fingerprint, 0xf5acc2fdu32); + } +}