nucypher / DarkIntegers.jl

A modulo arithmetic toolbox for integers and polynomials
https://nucypher.github.io/DarkIntegers.jl
GNU General Public License v3.0
7 stars 2 forks source link

Add conversions between `ModUInt` and `MLUInt`? #9

Open fjarri opened 4 years ago

fjarri commented 4 years ago

Originally they were removed because of combinatorial explosion when new types are added, and currently one has to unpack ModUInt and MgModUInt using value() before conversion.

It may be possible to build a sensible conversion system that won't double in size when, e.g. ModInt and MgModInt are added (see issue #10).