Nip5 class
Mapping Nostr keys to DNS-based internet identifiers
Constructors
- Nip5()
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
decode(
Event event) → Future< DNS?> - decode setmetadata event { "pubkey": "b0635d6a9851d3aed0cd6c495b282167acf761729078d975fc341b22650b07b9", "kind": 0, "content": "{"name": "bob", "nip05": "bob@example.com"}" }
-
encode(
String name, String domain, List< String> relays, String privkey) → Event - encode set metadata event
-
generateContent(
String name, String domain, List< String> relays) → String -
isValidDomain(
String domain) → bool -
isValidName(
String input) → bool