NostrKeyPairs.generate constructor
NostrKeyPairs.generate()
This class is responsible for generating, handling and signing keys.
It is used by the NostrClient
to sign messages.
Instantiate a NostrKeyPairs from random bytes.
Implementation
factory NostrKeyPairs.generate() {
return NostrKeyPairs(
private: Nostr.instance.utilsService.random64HexChars(),
);
}