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

🐛 fix inlined ec_Dbl in shamir-strauss #48

Merged
merged 1 commit into from
Dec 15, 2023
Merged

🐛 fix inlined ec_Dbl in shamir-strauss #48

merged 1 commit into from
Dec 15, 2023

Conversation

qd-qd
Copy link
Member

@qd-qd qd-qd commented Dec 15, 2023

In the FCL repository, @nlordell pointed out that the mulmuladd function had a bug revealed by the edge cases committed by @rdubois-crypto.

This PR fixes that bug like @nlordell did and adds the relevant edge cases. Link of the initial PR: rdubois-crypto/FreshCryptoLib#5

In the FCL repository, @nlordell pointed out the mulmuladd function had a
bug revealed by the edge cases committed by @rdubois-crypto.
This PR fixes that bug like @nlordell did and add the relevant edge cases.
Link of the initial PR: rdubois-crypto/FreshCryptoLib#5

Co-authored-by: Nicholas Rodrigues Lordello <nick@safe.global>
Co-authored-by: rdubois-crypto <renaud.dubois.fr@gmail.com>
@qd-qd qd-qd self-assigned this Dec 15, 2023
Copy link

Changes to gas cost

Generated at commit: 059de00744760d77560714f5f5423f6170aa8fff, compared to commit: 6736fff592523bcd172bfeb94d938cd56fca96b4

🧾 Summary (20% most significant diffs)

Contract Method Avg (+/-) %
ImplementationECDSA256r1 mulmuladd +81,010 ❌ +293.28%

Full diff report 👇
Contract Deployment Cost (+/-) Method Min (+/-) % Avg (+/-) % Median (+/-) % Max (+/-) % # Calls (+/-)
ImplementationECDSA256r1 1,010,047 (-200) mulmuladd 27,533 (0) 0.00% 108,632 (+81,010) +293.28% 108,605 (+80,983) +293.18% 189,786 (+162,075) +584.88% 4 (+2)

@qd-qd
Copy link
Member Author

qd-qd commented Dec 15, 2023

The CI of this pull request is broken due to the configuration of the code coverage command.
#49 is following with a fix for this issue.
I'm merging this one.

@qd-qd qd-qd merged commit 4a4803b into main Dec 15, 2023
6 of 7 checks passed
@qd-qd qd-qd deleted the fix/edge-cases branch December 15, 2023 16:12
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.

1 participant