Skip to content

Commit

Permalink
chore(math): add reference for non residue
Browse files Browse the repository at this point in the history
  • Loading branch information
chokobole authored and ashjeong committed Jul 20, 2024
1 parent fcf35e8 commit 7bf0339
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tachyon/math/finite_fields/baby_bear/internal/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ generate_fp4s(
class_name = "BabyBear4",
is_packed = False,
namespace = "tachyon::math",
# See https://github.com/Plonky3/Plonky3/blob/d9ef3902abcc6a34b75f6820da168460aee26763/baby-bear/src/baby_bear.rs#L80.
non_residue = ["11"],
deps = ["//tachyon/math/finite_fields/baby_bear"],
)
Expand All @@ -22,6 +23,7 @@ generate_fp4s(
class_name = "PackedBabyBear4",
is_packed = True,
namespace = "tachyon::math",
# See https://github.com/Plonky3/Plonky3/blob/d9ef3902abcc6a34b75f6820da168460aee26763/baby-bear/src/baby_bear.rs#L80.
non_residue = ["11"],
deps = ["//tachyon/math/finite_fields/baby_bear:packed_baby_bear"],
)
1 change: 1 addition & 0 deletions tachyon/math/finite_fields/goldilocks/internal/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ generate_fp2s(
class_name = "Goldilocks2",
is_packed = False,
namespace = "tachyon::math",
# See https://github.com/Plonky3/Plonky3/blob/d9ef3902abcc6a34b75f6820da168460aee26763/goldilocks/src/extension.rs#L7-L11.
non_residue = ["7"],
deps = [":goldilocks"],
)
Expand Down
2 changes: 2 additions & 0 deletions tachyon/math/finite_fields/koala_bear/internal/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ generate_fp4s(
class_name = "KoalaBear4",
is_packed = False,
namespace = "tachyon::math",
# See https://github.com/Plonky3/Plonky3/blob/d9ef3902abcc6a34b75f6820da168460aee26763/koala-bear/src/koala_bear.rs#L80.
non_residue = ["3"],
deps = ["//tachyon/math/finite_fields/koala_bear"],
)
Expand All @@ -22,6 +23,7 @@ generate_fp4s(
class_name = "PackeKoalaBear4",
is_packed = True,
namespace = "tachyon::math",
# See https://github.com/Plonky3/Plonky3/blob/d9ef3902abcc6a34b75f6820da168460aee26763/koala-bear/src/koala_bear.rs#L80.
non_residue = ["3"],
deps = ["//tachyon/math/finite_fields/koala_bear:packed_koala_bear"],
)

0 comments on commit 7bf0339

Please sign in to comment.