Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,12 @@ template <typename Curve> struct PairingPoints {
}

#ifndef NDEBUG
bb::PairingPoints<typename Curve::NativeCurve> native_pp(P0().get_value(), P1().get_value());
info("Are Pairing Points with tag ", tag_index, " valid? ", native_pp.check() ? "true" : "false");
try {
bb::PairingPoints<typename Curve::NativeCurve> native_pp(P0().get_value(), P1().get_value());
info("Are Pairing Points with tag ", tag_index, " valid? ", native_pp.check() ? "true" : "false");
} catch (const std::exception&) {
info("Are Pairing Points with tag ", tag_index, " valid? false (point not on curve)");
}
#endif
}

Expand Down Expand Up @@ -210,8 +214,13 @@ template <typename Curve> struct PairingPoints {
}

#ifndef NDEBUG
bb::PairingPoints<typename Curve::NativeCurve> native_pp(P0().get_value(), P1().get_value());
info("Are aggregated Pairing Points with tag ", tag_index, " valid? ", native_pp.check() ? "true" : "false");
try {
bb::PairingPoints<typename Curve::NativeCurve> native_pp(P0().get_value(), P1().get_value());
info(
"Are aggregated Pairing Points with tag ", tag_index, " valid? ", native_pp.check() ? "true" : "false");
} catch (const std::exception&) {
info("Are aggregated Pairing Points with tag ", tag_index, " valid? false (point not on curve)");
}
#endif
}

Expand Down
Loading