-
Notifications
You must be signed in to change notification settings - Fork 73
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Optimize WebAuthn Signer Proxy Implementation (#406)
This PR uses assembly to encode the calldata for calling the WebAuthn signer singleton instead of using native Solidity. This has notable improvements to the deployment gas costs: **Before**: ``` SafeWebAuthnSignerProxy ⛽ deployment: 107899 ✔ Benchmark signer deployment cost (867ms) ``` **After**: ``` SafeWebAuthnSignerProxy ⛽ deployment: 92481 ✔ Benchmark signer deployment cost (849ms) ``` This is a result of reduced codesize and not significantly more performant code. --- I also cleaned up some comments in this PR.
- Loading branch information
Showing
4 changed files
with
50 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters