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