RelayConnectionKey class
Identifies a single relay connection.
A connection carries at most one authenticated identity, chosen when the connection is opened and immutable for its whole lifetime. Several connections may therefore exist towards the same relay.
Constructors
- RelayConnectionKey.anonymous(String url)
-
key of a connection that never authenticates
factory
- RelayConnectionKey.authenticated(String url, String pubkey)
-
key of a connection authenticated as
pubkeyfactory
Properties
- canonical → String
-
stable representation, for persisted keys and logs
no setter
- hashCode → int
-
The hash code for this object.
no setteroverride
- isAnonymous → bool
-
whether any identity is bound to this connection
no setter
- pubkey → String?
-
lowercase hex pubkey authenticated on this connection, null when anonymous
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- url → String
-
relay url, normalized
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override
Constants
- anonymousMarker → const String
- stands for the absent pubkey in canonical; not a valid pubkey, so it cannot collide with one