diff --git a/homekit-controller/src/lib.rs b/homekit-controller/src/lib.rs index 5a2badd..0521abd 100644 --- a/homekit-controller/src/lib.rs +++ b/homekit-controller/src/lib.rs @@ -145,7 +145,7 @@ impl DevicePairingData { let ios_device_info = { let mut buf = pubkey.as_bytes().to_vec(); buf.extend_from_slice(self.ios_pairing_id.as_bytes()); - buf.extend_from_slice(pubkey.as_bytes()); + buf.extend_from_slice(response_pubkey); buf }; // 8. Use Ed25519 togenerate iOSDeviceSignature by signing iOSDeviceInfo with its long-term secret key, iOSDeviceLTSK