validatePubKey static method
Implementation
static void validatePubKey(
List<int> pubKeyBytes,
EllipticCurveTypes curveType,
) {
try {
IPublicKey.fromBytes(pubKeyBytes, curveType);
} catch (_) {
throw AddressConverterException.addressKeyValidationFailed(
reason: "Invalid ${curveType.name} public key.",
);
}
}