Skip to content

Add impl of Mul for NonZeroScalar * NonZeroScalar - #857

Merged
tarcieri merged 1 commit into
RustCrypto:masterfrom
fjarri:mul-nonzero-scalars
Jan 3, 2022
Merged

Add impl of Mul for NonZeroScalar * NonZeroScalar#857
tarcieri merged 1 commit into
RustCrypto:masterfrom
fjarri:mul-nonzero-scalars

Conversation

@fjarri

Copy link
Copy Markdown
Contributor

It is convenient to be able to do that without unwraps in the client code. The only problem I see is that it assumes that the scalar operations are modulo a prime - is that always the case?

Comment threadelliptic-curve/src/scalar/nonzero.rs
@tarcieri
tarcieri merged commit 43b46ac into RustCrypto:masterJan 3, 2022
@fjarri
fjarri deleted the mul-nonzero-scalars branch January 4, 2022 05:17
@tarcieritarcieri mentioned this pull request Jan 14, 2022
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@fjarri@tarcieri