isValid method
Checks the validity of the key pair represented by this KeyPair instance.
Returns:
trueif the length of the public key is 44 characters and the length of the private key is 88 characters, indicating a valid key pair.falseotherwise, indicating an invalid key pair.
This method is useful for quickly verifying the integrity of the key lengths within the context of the KeyPair instance.
Implementation
bool isValid() {
return publicKey.length == 88 && privateKey.length == 44;
}