isValidBytes static method
Static method to check the validity of a byte array as a public key for a specific elliptic curve type.
Implementation
static bool isValidBytes(List<int> bytes) {
try {
MuSig2AggregatePublicKey.fromBytes(bytes);
return true;
} catch (_) {
return false;
}
}