# Device Layer

The **Device Layer** forms the foundation of the DecentraFit ecosystem.\
It represents the physical interface between human activity and cryptographic verification.\
Both the **DecentraFit Watch** and **DecentraFit Health Ring** operate as trusted hardware oracles, responsible for capturing authentic biometric data and generating zero-knowledge proofs directly on-device.

***

### **Our Watch**

The DecentraFit Watch is an advanced wearable designed for secure, real-time biometric authentication. It transforms raw health signals into encrypted proof statements while maintaining user privacy through local computation.

**Key Specifications:**

* Secure enclave implementing elliptic-curve cryptography (Ed25519) for local signing and encryption.
* Multi-sensor array including heart rate (HR), heart-rate variability (HRV), blood oxygen (SpO₂), body temperature, accelerometer, and GPS.
* Embedded SNARK chip running a zk-WASM runtime for efficient, low-latency proof generation directly on the device.
* Adaptive AI algorithms that detect genuine physiological patterns while filtering synthetic or replayed data.
* Validate spatial data for performance-based metrics and travel-related activity verification. Sensor calibration occurs locally, with noise-reduction filters powered by embedded AI models to ensure signal integrity.
* Machine-learning models embedded within the watch continuously analyze biometric data to distinguish authentic human behavior from artificial or manipulated inputs.
* When reconnected, it performs a mutual-authentication handshake with the DecentraFit App before securely transmitting encrypted ZK-PoA packages via Bluetooth LE or NFC.\
  This guarantees that user data remains protected even in environments with limited connectivity.

The device is capable of fully **offline proof generation**, storing encrypted proofs locally until a trusted connection is established.

**Functional Role:**\
The watch operates as a real-time proof generator.\
It compiles activity statements such as:

> “Heart rate increased by more than 40% and motion entropy exceeded threshold for over 20 minutes.”

This statement is then verified locally using a SNARK circuit, producing a proof that confirms the claim without exposing the underlying biometric data.

***

### **Our Ring**

The DecentraFit Health Ring complements the watch by providing **continuous passive biometric monitoring** and **seamless connectivity** for proof synchronization.

**Key Specifications:**

* Continuous tracking of sleep quality, stress response, blood circulation, and temperature variation.
* Connectivity via NFC and Bluetooth Low Energy (BLE) for efficient data transfer and device pairing.
* Lightweight ZK proof circuits optimized for low-power consumption, enabling 24/7 operation.
* Hardware-accelerated encryption for secure local storage and proof signing.

**Functional Role:**\
The ring is optimized for background proof generation, particularly during rest and recovery cycles. It computes and verifies activity statements like:

> “Average resting heart rate decreased by 10% over 72 hours with consistent sleep intervals.”

Each verified statement is encoded as a **Zero-Knowledge Proof (ZKP)** and passed to the DecentraFit App for aggregation and submission to the Layer-2 verifier.

\
By processing these proofs locally, the Device Layer upholds **DecentraFit’s core principle**: privacy by design, verification at the edge, and trust without exposure.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.decentra.fit/devicelayer.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
