generatePrivateKey method
You can use this method to generate a key pair for your end users. it returns the private key of the generated key pair.
final privateKey = Nostr.instance.services.keys.generatePrivateKey();
print(privateKey); // ...
Implementation
String generatePrivateKey() {
return _generateKeyPair().private;
}