Skip to content

Commit

Permalink
issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Rumata888 committed Mar 15, 2024
1 parent 2022aa0 commit 70f06db
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,7 @@ template <typename Fq_, typename Fr_, typename Params> class alignas(64) affine_
Fq y;

// for serialization: update with new fields
// TODO(https://github.com/AztecProtocol/barretenberg/issues/908) point at inifinty isn't handled
MSGPACK_FIELDS(x, y);
};
} // namespace bb::group_elements
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ template <typename G1> class TestAffineElement : public testing::Test {
*/
static void test_msgpack_roundtrip()
{
// TODO(https://github.com/AztecProtocol/barretenberg/issues/908) point at inifinty isn't handled
auto [actual, expected] = msgpack_roundtrip(affine_element{ 1, 1 });
EXPECT_EQ(actual, expected);
}
Expand Down Expand Up @@ -206,6 +207,7 @@ TYPED_TEST(TestAffineElement, MulWithEndomorphismMatchesMulWithoutEndomorphism)
}
}

// TODO(https://github.com/AztecProtocol/barretenberg/issues/909): These tests are not typed for no reason
// Multiplication of a point at infinity by a scalar should be a point at infinity
TEST(AffineElement, InfinityMulByScalarIsInfinity)
{
Expand Down
1 change: 1 addition & 0 deletions barretenberg/cpp/src/barretenberg/ecc/groups/element.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ template <class Fq, class Fr, class Params> class alignas(32) element {
// return { x, y, Fq::one() };
// }
// for serialization: update with new fields
// TODO(https://github.com/AztecProtocol/barretenberg/issues/908) point at inifinty isn't handled
MSGPACK_FIELDS(x, y, z);

static void conditional_negate_affine(const affine_element<Fq, Fr, Params>& in,
Expand Down

0 comments on commit 70f06db

Please sign in to comment.