generateKeyPairFromExistingPrivateKey method

NostrKeyPairs generateKeyPairFromExistingPrivateKey(
  1. String privateKey
)

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.services.keys.generateKeyPairFromExistingPrivateKey(yourPrivateKey);
print(keyPair.public); // ...
print(keyPair.private); // ...

Implementation

NostrKeyPairs generateKeyPairFromExistingPrivateKey(
  String privateKey,
) {
  return _keyPairFrom(privateKey);
}