generateKeyPair method
You can use this method to generate a key pair for your end users.
final keyPair = Nostr.instance.keysService.generateKeyPair();
print(keyPair.public); // ...
print(keyPair.private); // ...
Implementation
@override
NostrKeyPairs generateKeyPair() {
final nostrKeyPairs = _generateKeyPair();
utils.log(
"generated key pairs, with it's public key is: ${nostrKeyPairs.public}",
);
return nostrKeyPairs;
}