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

feat: Add Email Headers #5

Merged
merged 8 commits into from
Oct 9, 2024
Merged

feat: Add Email Headers #5

merged 8 commits into from
Oct 9, 2024

Conversation

DimiDumo
Copy link
Contributor

@DimiDumo DimiDumo commented Sep 19, 2024

Description

Adds email headers to ParsedEmail.
Moves functionality from ether-email-auth to utils

Fixes # (issue)

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

How Has This Been Tested?

  • Tested in combination with ether-email-auth and email-recovery-ui

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published in downstream modules

@DimiDumo DimiDumo requested a review from Bisht13 September 19, 2024 05:23
@DimiDumo DimiDumo marked this pull request as draft September 19, 2024 05:26
@DimiDumo DimiDumo force-pushed the feat/add_email_headers branch from 387de94 to 0c19631 Compare September 19, 2024 05:27
@DimiDumo DimiDumo marked this pull request as ready for review September 19, 2024 05:34
@Bisht13
Copy link
Member

Bisht13 commented Sep 19, 2024

Can you follow CODING_GUIDELINES.md?

}

// Generated by Github Copilot!
pub fn uint_to_decimal_string(uint: u128, decimal: usize) -> String {
Copy link
Member

Choose a reason for hiding this comment

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

Can you check if this functions exists in converters.rs if not can you shift it there?

src/proof.rs Outdated
Ok((proof, pub_signals))
}

pub fn calculate_default_hash(input: &str) -> String {
Copy link
Member

Choose a reason for hiding this comment

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

Check if exists in cryptos.rs if not add

src/proof.rs Outdated
hash_code.to_string()
}

pub fn calculate_account_salt(email_addr: &str, account_code: &str) -> String {
Copy link
Member

Choose a reason for hiding this comment

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

Check if exists in cryptos.rs if not add

@Bisht13 Bisht13 changed the title Feat/add email headers feat: Add Email Headers Oct 9, 2024
@Bisht13 Bisht13 merged commit 48a80c7 into main Oct 9, 2024
2 checks passed
@Bisht13 Bisht13 deleted the feat/add_email_headers branch October 9, 2024 07:23
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.

2 participants