generateKeyPairFromExistingPrivateKey method
Generates a key pair from an existing privateKey
, use this if you want to generate a key pair from an existing private key.
final keyPair = Nostr.instance.keysService.generateKeyPairFromExistingPrivateKey(yourPrivateKey);
print(keyPair.public); // ...
print(keyPair.private); // ...
Implementation
@override
NostrKeyPairs generateKeyPairFromExistingPrivateKey(
String privateKey,
) {
return _keyPairFrom(privateKey);
}