Refactor the underlying representation of the two Tweedle curves
unzvfu opened this issue · comments
The two Tweedle curves have almost identical implementations. There should be a cleaner way to express that; I'm thinking something like a 'Montgomery256' trait that provides Montgomery representation and arithmetic for moduli up to 256 bits.
This issue follows on from #68.