feat: add blockchain explorer settings page for OTS verification
Adds a new "Bitcoin Explorer (OTS)" settings page in App Settings, modeled after the existing Namecoin settings page. Users can configure a custom Mempool-compatible blockchain explorer API URL for OpenTimestamps proof verification. When a custom URL is set it takes priority over the automatic Tor-aware selection (mempool.space when Tor is active, blockstream.info otherwise). Changes: - OtsSettings: immutable data class for explorer config - OtsSharedPreferences: DataStore-backed persistence (global/app-level) - TorAwareOkHttpOtsResolverBuilder: accepts customExplorerUrl lambda - OtsSettingsSection: UI section with active explorer display, URL input, known-explorers reference list, and reset button - OtsSettingsScreen: full screen wrapping the section - Routes.OtsSettings: new navigation route - AllSettingsScreen: new entry under App Settings - AppModules: wires otsPrefs and passes custom URL to resolver builder https://claude.ai/code/session_01GX7k36uepGxU3U1fBKYFrx
This commit is contained in:
@@ -1748,4 +1748,5 @@
|
||||
<string name="select_all">Select All</string>
|
||||
<string name="uptime">%1$d%% uptime</string>
|
||||
<string name="namecoin_settings">Namecoin Settings</string>
|
||||
<string name="ots_explorer_settings">Bitcoin Explorer (OTS)</string>
|
||||
</resources>
|
||||
|
||||
Reference in New Issue
Block a user