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: Migrate to app_id architecture, remove external phone support & more #61

Merged
merged 11 commits into from
Feb 22, 2023

Conversation

m1guelpf
Copy link
Member

@m1guelpf m1guelpf commented Feb 21, 2023

NOT E2E TESTED YET, BLOCKED BY NEW SIMULATOR

  • Adopt new wld_worldIDVerification spec
  • User now provides app_id, action, and optionally action_description
  • For web2, app_id and action are treated as strings, and the external_nullifier is encoded w/ abi.encodePacked(hashedAppId, action).hashToField()
  • Remove all code/components for external phone verification (we might want to re-introduce this later, pending discussion w/ @paolodamico).
  • For web3, app_id is a string and action is a custom encoding, provided by calling solidityEncode(typesArray, valuesArray) (needs a better name). The external nullifier is encoded w/ abi.encodePacked(hashedAppId, ...action).hashToField().
  • New design & copy (probably outside the scope of this PR).

@m1guelpf m1guelpf self-assigned this Feb 21, 2023
@vercel
Copy link

vercel bot commented Feb 21, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated
idkit-js-example ✅ Ready (Inspect) Visit Preview 💬 Add your feedback Feb 22, 2023 at 0:16AM (UTC)

@m1guelpf m1guelpf changed the title [WIP] Migrate to app_id architecture, remove external phone support & more feat: Migrate to app_id architecture, remove external phone support & more Feb 21, 2023
idkit/src/internal.ts Outdated Show resolved Hide resolved
Copy link
Contributor

@paolodamico paolodamico left a comment

Choose a reason for hiding this comment

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

🚢🚢🚢🚢

@paolodamico paolodamico merged commit 89c7111 into main Feb 22, 2023
@paolodamico paolodamico deleted the feat/idk-how-to-call-it-but-like-full-refactor branch February 22, 2023 01:00
@github-actions github-actions bot mentioned this pull request Nov 23, 2023
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