isUncompressedPublicKey static method
Check if the public key is 65 bytes, and starts with 4.
Implementation
static bool isUncompressedPublicKey(Uint8List input) {
if (input.length != 65) {
throw Exception("Requires 65 bytes!");
}
if (input[0] != 4) {
throw Exception("First byte should be 4.");
}
return true;
}