nostr login fetch details and nip05

This commit is contained in:
gitea
2025-11-06 21:07:14 +01:00
parent d68124d975
commit 120a04c69f
10 changed files with 652 additions and 118 deletions
+5 -1
View File
@@ -6,10 +6,14 @@ class NostrRelay {
/// Whether the relay is currently connected.
bool isConnected;
/// Whether the relay is enabled (should be used).
bool isEnabled;
/// Creates a [NostrRelay] instance.
NostrRelay({
required this.url,
this.isConnected = false,
this.isEnabled = true,
});
/// Creates a [NostrRelay] from a URL string.
@@ -19,7 +23,7 @@ class NostrRelay {
@override
String toString() {
return 'NostrRelay(url: $url, connected: $isConnected)';
return 'NostrRelay(url: $url, connected: $isConnected, enabled: $isEnabled)';
}
@override