You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As seen on the code of field.rs, inverse() FieldElement function implementation remains unimplemented.
On dusk-network/dusk-zerocaf#12 we've just implemented the Kalinski's Montgomery Modular Inverse algorithm for the Doppio's FieldElement mod 2^252 + 27742317777372353535851937790883648493 (prime of the field).
So maybe I can make a PR with the implementation of the Inverse operation and the proper tests and doc comments if it's useful.
References:
B. S. Kaliski Jr. - The Montgomery inverse and its applica-tions.
IEEE Transactions on Computers, 44(8):1064–1065, August-1995.
The curve25519-dalek source code the field.rs implementation is copied from has an implementation of inversion using a hardcoded addition chain; we were planning to use that implementation, but we didn't get to it yet since we're still working on curve selection (the curve Sean found may not be optimal).
@Bounce23 and I plan to create set inclusion proofs using Doppio - with respect to the search for optimal curves, is that in relation to the optimization for those addition chains? Or for a larger goal of the project?
As seen on the code of
field.rs
,inverse()
FieldElement function implementation remains unimplemented.On dusk-network/dusk-zerocaf#12 we've just implemented the Kalinski's Montgomery Modular Inverse algorithm for the Doppio's FieldElement mod
2^252 + 27742317777372353535851937790883648493
(prime of the field).So maybe I can make a PR with the implementation of the Inverse operation and the proper tests and doc comments if it's useful.
References:
B. S. Kaliski Jr. - The Montgomery inverse and its applica-tions.
IEEE Transactions on Computers, 44(8):1064–1065, August-1995.
Montgomery inversion - Erkay Sava ̧s & Çetin Kaya Koç
J Cryptogr Eng (2018) 8:201–210
https://doi.org/10.1007/s13389-017-0161-x
The text was updated successfully, but these errors were encountered: