isValidKeyEncoding static method
Checks whether keyBytes is a valid public key of the given type
when interpreted with the given encoding.
Implementation
static bool isValidKeyEncoding(
List<int> keyBytes,
CryptoKeyEncoding encoding,
) {
if (encoding != CryptoKeyEncoding.base) return false;
return isValidBytes(keyBytes);
}