penumbra-zone / decaf377

decaf377 is a prime-order group designed for use in SNARKs over BLS12-377
https://protocol.penumbra.zone/main/crypto/decaf377.html
12 stars 12 forks source link

to montgomery limbs #103

Closed TalDerei closed 3 weeks ago

TalDerei commented 3 weeks ago

side note, we only publicly expose from_montgomery_limbs in Fq, but not in Fp and Fr. Is this our intention?

exposing from_montgomery_limbs and to_montgomery_limbs in Fq is necessary for https://github.com/penumbra-zone/penumbra/pull/3806 now that it's unblocked by https://github.com/penumbra-zone/decaf377/pull/102.

update: we're able to use the from_bigint and into_bigint arkworks methods instead. closing in favor of using that