Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Position independent operations on different types #722

Open
jaromil opened this issue Aug 27, 2023 · 0 comments
Open

Position independent operations on different types #722

jaromil opened this issue Aug 27, 2023 · 0 comments
Labels
crypto issue related to cryptographic primitives enhancement good first issue

Comments

@jaromil
Copy link
Member

jaromil commented Aug 27, 2023

Overloaded operators like * that take different types (ECP * BIG) should check for the position, for instance, right now ECP multiplication needs to have the BIG number always as the second argument, else an error is returned. Instead of returning an error, we should check the type of both arguments and execute the right operation. In this case, only BIGBIG or ECPBIG is possible, errors would still be returned for ECP*ECP.

@jaromil jaromil added enhancement good first issue crypto issue related to cryptographic primitives labels Aug 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
crypto issue related to cryptographic primitives enhancement good first issue
Projects
None yet
Development

No branches or pull requests

1 participant