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

♻️ make the challenge offset constant #25

Merged
merged 1 commit into from
Mar 6, 2024

Conversation

qd-qd
Copy link
Member

@qd-qd qd-qd commented Mar 6, 2024

As defined in the specification, the offset of the challenge is constant and equal to 0x24. Instead of passing it as an argument to the function, we hardcoded it in the library.

As defined in the specification, the offset of the challenge is constant
and equal to 0x24. Instead of passing it as an argument to the
function, we hardcoded it in the library.
@qd-qd qd-qd self-assigned this Mar 6, 2024
Copy link

github-actions bot commented Mar 6, 2024

Changes to gas cost

Generated at commit: 02ed80f9c250d96d921300e1c1d309d2a7a51014, compared to commit: da4a03a2de64ce588fff0a2e9b79919bb3d78678

🧾 Summary (20% most significant diffs)

Contract Method Avg (+/-) %
WebAuthnWrapper _generateMessage
verify
+14 ❌
-206 ✅
+0.26%
-0.09%

Full diff report 👇
Contract Deployment Cost (+/-) Method Min (+/-) % Avg (+/-) % Median (+/-) % Max (+/-) % # Calls (+/-)
WebAuthnWrapper 1,456,421 (-7,147) _generateMessage
verify
5,280 (+14)
236,815 (-206)
+0.27%
-0.09%
5,311 (+14)
236,815 (-206)
+0.26%
-0.09%
5,280 (+14)
236,815 (-206)
+0.27%
-0.09%
5,471 (+14)
236,815 (-206)
+0.26%
-0.09%
6 (0)
1 (0)

@qd-qd qd-qd merged commit 1348c81 into main Mar 6, 2024
4 checks passed
@qd-qd qd-qd deleted the refacto/make-challenge-offset-constant branch March 6, 2024 22:10
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