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

Feature/add zk circuits and contracts #3

Merged
merged 8 commits into from Sep 20, 2022
Merged

Conversation

rishotics
Copy link
Collaborator

  • Add ZK circuit for Hash Check using MiMc hash function and Merkle Tree Inclusion
  • Add smart contracts for OTP Validation and Social Recovery
  • Add test for both

Copy link
Collaborator

@danieljcss danieljcss left a comment

Choose a reason for hiding this comment

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

Perfect, thank you!

@danieljcss danieljcss merged commit 125beca into main Sep 20, 2022
Copy link
Owner

@3lLobo 3lLobo left a comment

Choose a reason for hiding this comment

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

  • Should we gitignore the backend/circuits/HashCeck/build folder?

  • Same for backend/circuits/OTPVerification/build

  • Another one backend/typechain-types/

  • Set solidity to latest version?

lastValidatedTimestamp = input[1];
}

function verifyOTP(
Copy link
Owner

Choose a reason for hiding this comment

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

@rishotics should we emit Events here to index with theGraph and notify the user/dapp?

emit RecoveryExecuted(old, owner, recoveryRoundNumber);
}

function cancelRecovery(uint256 recoveryRoundNumber)
Copy link
Owner

Choose a reason for hiding this comment

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

Nice!

verifier = new Verifier();
}

function verifyProofForUserWallet(
Copy link
Owner

@3lLobo 3lLobo Sep 21, 2022

Choose a reason for hiding this comment

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

Comments would be helpful.

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.

None yet

3 participants