trusted_time library

A Flutter plugin for obtaining a highly-trusted, tamper-proof current time.

TrustedTime provides a virtual clock that remains accurate even if the user manually adjusts the device system clock. This is achieved by synchronizing with multiple network sources (NTP/HTTPS) and anchoring the result to the device's internal monotonic hardware uptime.

Classes

NetworkTimeResult
A data container representing the successful resolution of trusted network time.
TrustedTime
The core orchestration engine for high-integrity timekeeping.
TrustedTimeConfig
Tuning parameters for the TrustedTime engine.
TrustedTimeFormat
A production-grade, platform-agnostic formatting API for TrustedTime.

Exceptions / Errors

TrustedTimeException
Base exception for all errors produced by the TrustedTime library.
TrustedTimeInitializationException
Thrown when the engine cannot establish its initial communication bridge.
TrustedTimeStorageException
Thrown when reading or writing to the device's secure storage fails.
TrustedTimeSyncException
Thrown when the engine fails to achieve a network consensus.