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

[🔥A1] Modifier.sol Transactions with EIP-712 and EIP-1271 Signature Authentication #137

Merged
merged 41 commits into from
Oct 27, 2023

Conversation

cristovaoth
Copy link
Contributor

@cristovaoth cristovaoth commented Sep 28, 2023

This PR introduces a mechanism for executing Modifier transactions using EIP-712 and EIP-1271 signatures.

Rather than directly dispatching a transaction to a Modifier (msg.sender), an authorized account can now generate a signature for the call. A relayer can then transmit the transaction by appending the generated signature to calldata.

Note: Existing modules can inherit from this version of Modifier.sol and incorporate the new auth transparently, without code changes.

@cristovaoth cristovaoth marked this pull request as draft September 28, 2023 01:09
@cristovaoth cristovaoth changed the title Eip 712 signatures Modifier Authentication using EIP712 sigs Sep 28, 2023
@cristovaoth cristovaoth changed the title Modifier Authentication using EIP712 sigs Enhancing Modifier Transactions with EIP-712 Signature Authentication Sep 28, 2023
@cristovaoth cristovaoth changed the title Enhancing Modifier Transactions with EIP-712 Signature Authentication Modifier.sol Transactions with EIP-712 Signature Authentication Sep 28, 2023
@cristovaoth cristovaoth marked this pull request as ready for review September 28, 2023 09:58
@auryn-macmillan auryn-macmillan changed the title Modifier.sol Transactions with EIP-712 Signature Authentication [🔥A1] Modifier.sol Transactions with EIP-712 Signature Authentication Sep 28, 2023
contracts/signature/Eip712Signature.sol Outdated Show resolved Hide resolved
contracts/signature/Eip712Signature.sol Outdated Show resolved Hide resolved
@github-actions
Copy link

github-actions bot commented Sep 29, 2023

Pull Request Test Coverage Report for Build 6651472581

  • 68 of 69 (98.55%) changed or added relevant lines in 6 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+6.0%) to 99.02%

Changes Missing Coverage Covered Lines Changed/Added Lines %
contracts/core/Modifier.sol 13 14 92.86%
Totals Coverage Status
Change from base Build 6350639740: 6.0%
Covered Lines: 121
Relevant Lines: 122

💛 - Coveralls

@cristovaoth cristovaoth changed the title [🔥A1] Modifier.sol Transactions with EIP-712 Signature Authentication [🔥A1] Modifier.sol Transactions with EIP-712 and EIP-1271 Signature Authentication Sep 30, 2023
@cristovaoth cristovaoth merged commit 94dc31a into master Oct 27, 2023
2 checks passed
@cristovaoth cristovaoth deleted the eip-712-signatures branch October 27, 2023 17:40
@github-actions github-actions bot locked and limited conversation to collaborators Oct 27, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants