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

Draft changes to support modular accounts #26

Closed
wants to merge 1 commit into from

Conversation

JohnGuilding
Copy link
Collaborator

Draft PR to showcase proposed changes to EmailAccountRecovery

@@ -16,6 +16,9 @@ abstract contract EmailAccountRecovery {
address public dkimAddr;
address public emailAuthImplementationAddr;

mapping(address account => string[][]) public acceptanceSubjectTemplates;
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

These could also be stored in a registry. See zkemail/email-recovery#3

Need to think about how these are stored a bit more.

@@ -71,8 +76,7 @@ abstract contract EmailAccountRecovery {

/// @notice Completes the recovery process.
/// @dev This function must be implemented by inheriting contracts to finalize the recovery process.
function completeRecovery() external virtual;

function completeRecovery(address account, bytes memory recoveryCalldata) external virtual;
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Haven't got the calldata construction in solidity working yet. Will aim to remove the recoveryCalldata arg if possible (currently unsure if it is possible). Should have an update on this over the weekend

@JohnGuilding
Copy link
Collaborator Author

Resolved by #28

@JohnGuilding JohnGuilding deleted the feat/modular-email-account-recovery branch July 12, 2024 10:25
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