G1NativeAffinePoint.fromBytesUnchecked constructor
Creates a G1 affine point from bytes without checking curve or subgroup validity.
Implementation
factory G1NativeAffinePoint.fromBytesUnchecked(List<int> bytes) {
if (bytes.length == 48) {
return G1NativeAffinePoint._fromCompressedBytes(bytes);
} else if (bytes.length == 96) {
return G1NativeAffinePoint._fromUncompressedBytes(bytes);
}
throw ArgumentException.invalidOperationArguments(
"fromBytes",
reason: "Invalid point bytes length.",
);
}