Update World ID Protocol crates to 0.14 - #485
Merged
Merged
Conversation
Dzejkop
marked this pull request as ready for review
August 28, 2026 14:52
Dzejkop
requested review from
Guardiola31337,
Takaros999,
danielle-tfh,
kilianglas,
murph,
paolodamico and
philsippl
as code owners
August 28, 2026 14:52
Takaros999
approved these changes
Aug 28, 2026
Merged
This was referenced Aug 31, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Rationale
WalletKit still targeted the 0.13 World ID Protocol crates. This updates the generic native and WASM codepaths to the released 0.14 crates so PR #480 can later rebase onto a clean protocol upgrade.
Changes
No browser or WASM POC code, UniFFI downgrade, ubrn patch, example, or temporary world-id Git patch is included.
Dependency resolution caveat
World ID Protocol 0.14 declares taceo-oprf 0.18.1 with a compatible range. Cargo would otherwise select 0.18.2, which moved to Arkworks 0.6 and conflicts with the Arkworks 0.5 types used by World ID Protocol 0.14. The exact =0.18.1 pin keeps one shared Taceo OPRF version. The resolved graph contains taceo-oprf 0.18.1 and no Arkworks 0.6 packages.
Validation
One unrelated local integration test could not start because the anvil executable is not installed: test_authenticator_integration failed with SpawnError / No such file or directory.
Note
High Risk
Touches proof generation, session semantics, and ownership-proof cryptography on upgraded protocol crates; incorrect dependency resolution or API wiring could break proofs or verification.
Overview
Upgrades WalletKit to
world-id-core/world-id-proof0.14 and pinstaceo-oprfto=0.18.1so Cargo does not pull 0.18.2 (Arkworks 0.6), which would conflict with 0.14’s Arkworks 0.5 stack.Cargo.lockreflects the bumped protocol and OPRF crates.Session handling moves from optional
session_idplus a separatecreate-sessionproof type toSessionRef::None/Create/Existing. The CLI and testkit now treat--proof-type sessionwithout--session-idas session creation and with an ID as proving an existing session; legacycreate-sessionis rejected.Ownership proofs (WIP-103) now require a
contextfield end-to-end:prove_credential_sub, CLIproof verify-ownership, and verification helpers. Nullifier generation passes the walletnowtimestamp into the updated upstream API.Error mapping is adjusted for 0.14 (
CreatedAtTooOld/CreatedAtTooFarInFuture,SessionIdCommitmentMismatch→SessionIdMismatch). CI pins Foundry 1.7.1 in lint and test jobs.Reviewed by Cursor Bugbot for commit 3da0273. Bugbot is set up for automated code reviews on this repo. Configure here.