isValidPrivateKey method

  1. @override
bool isValidPrivateKey(
  1. String key
)
override

Weither the key is a valid Nostr private key or not.

Nostr.instance.keysService.isValidPrivateKey('something that is not a key'); // false

Implementation

@override
bool isValidPrivateKey(String key) {
  return NostrKeyPairs.isValidPrivateKey(key);
}