nostr_dart library
Classes
- Contact
- A single contact for use with ContactList
- ContactList
- A contact list.
- Event
- A Nostr event
- EventKind
- Nostr
- The base class for a Nostr client.
- Relay
- Represents an individual relay and manages communications to it.
- RelayInfo
- A relay information document
- WebSocketHandler
Enums
Functions
-
generatePrivateKey(
) → String - Generates a random new secret key which is a 32-byte hexadecimal string.
-
getPublicKey(
String privateKey) → String -
Returns the BIP340 public key derived from
privateKey
. -
keyIsValid(
String key) → bool -
Whether
key
is a a 32-byte hexadecimal string.