Skip to content

Commit dc3dd98

Browse files
authored
Merge pull request #181 from tuantran-genetica/fix-fp12
fix(abstract/tower): fix wrong `Fp12` fields
2 parents e9eef8b + 7b56152 commit dc3dd98

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/abstract/tower.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -540,9 +540,9 @@ export function tower12(opts: Tower12Opts): {
540540
const Fp12: mod.IField<Fp12> & Fp12Utils = {
541541
ORDER: Fp2.ORDER, // TODO: unused, but need to verify
542542
isLE: Fp6.isLE,
543-
BITS: 2 * Fp2.BITS,
544-
BYTES: 2 * Fp2.BYTES,
545-
MASK: bitMask(2 * Fp2.BITS),
543+
BITS: 2 * Fp6.BITS,
544+
BYTES: 2 * Fp6.BYTES,
545+
MASK: bitMask(2 * Fp6.BITS),
546546
ZERO: { c0: Fp6.ZERO, c1: Fp6.ZERO },
547547
ONE: { c0: Fp6.ONE, c1: Fp6.ZERO },
548548
create: (num) => num,

0 commit comments

Comments
 (0)