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

improve usage code #21

Merged
merged 2 commits into from
Oct 8, 2023
Merged

improve usage code #21

merged 2 commits into from
Oct 8, 2023

Conversation

nalinbhardwaj
Copy link
Member

No description provided.

@nalinbhardwaj nalinbhardwaj marked this pull request as ready for review October 3, 2023 01:18
@nalinbhardwaj nalinbhardwaj mentioned this pull request Oct 3, 2023
Copy link
Member

@dcposch dcposch left a comment

Choose a reason for hiding this comment

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

LGreatTM

contract VerifyTest is Test {
uint256[2] public pubKey;

function setUp() public {
Copy link
Member

Choose a reason for hiding this comment

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

recommend CREATE2-deploying P256Verifier in setUp()

two advantages:

  • test reliability: tests run offline, dont rely on fork-url / the public base-goerli endpoint flakes sometimes
  • sanity checks that the hardcoded VERIFIER address and create2-deployed P256Verifier address match

Copy link
Member Author

Choose a reason for hiding this comment

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

seems running CREATE2 in tests generates a different address. Worth investigating in more detail but I suspect it's a Foundry bug as we discussed. Maybe we should just pull this out into its own issue for future?

re public base-goerli endpoint flakes: I've been using a different RPC (locally and in this PR) which hasn't flaked for me since I switched

Copy link
Member Author

Choose a reason for hiding this comment

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

Moved to #22. Merging as-is.

src/Verify.sol Outdated Show resolved Hide resolved
@nalinbhardwaj nalinbhardwaj merged commit 024caa5 into master Oct 8, 2023
3 checks passed
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

2 participants