isValidPrivateKey method

bool isValidPrivateKey(
  1. String key
)

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

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

Implementation

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