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

Removing unused PrivateKey operator*(const bn_t&, const PrivateKey&) #7

Merged
merged 1 commit into from
Jul 20, 2021

Conversation

furszy
Copy link

@furszy furszy commented Jul 8, 2021

The function contains an infinite recursion:
a * k will call internally a * k that will call internally a * k...

… k).

It has an infinite recursion:
a * k will call internally a * k that will call internally a * k...
@furszy furszy self-assigned this Jul 8, 2021
Copy link

@random-zebra random-zebra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch 👍
I think that the original intention was to implement this as k * a, to make the operator commutative.
But agree we can just remove it, as we only use the operator in the form PrivateKey * bn_t for PolyOps<PrivateKey>::Mul.

utACK d06165b

@furszy furszy merged commit 40f9b89 into PIVX-Project:main Jul 20, 2021
Sign up for free to 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