Skip to content

refactor: adapt to world-id-protocol authenticator refactor#352

Merged
kilianglas merged 9 commits intomainfrom
kilianglas/adapt-upstream-refactor
Apr 15, 2026
Merged

refactor: adapt to world-id-protocol authenticator refactor#352
kilianglas merged 9 commits intomainfrom
kilianglas/adapt-upstream-refactor

Conversation

@kilianglas
Copy link
Copy Markdown
Contributor

@kilianglas kilianglas commented Apr 14, 2026

Summary

  • Bumps world-id-core dependency to 0.9.0
  • Adapts to renamed/removed APIs: get_packed_account_datarefresh_packed_account_data,
    generate_single_proofgenerate_proof, generate_session_idbuild_session_id
  • Delegates credential selection, session resolution, and per-credential proof generation to the new
    upstream generate_proof API, simplifying the walletkit proof flow
  • Adds explicit error mappings for new AuthenticatorError variants (IndexerError,
    UnfullfilableRequest, ResponseValidationError, SessionIdMismatch)
  • Properly handles load_nullifier_material_from_paths now returning Result

There will be a follow-up PR for the ohttp client integration

Comment on lines 397 to 430
@@ -436,7 +424,7 @@ impl Authenticator {
attribute: "config".to_string(),
reason: "Invalid config".to_string(),
})?;
let authenticator = CoreAuthenticator::init(seed, config).await?;
let authenticator = CoreAuthenticator::init(seed, config.into()).await?;
let (query_material, nullifier_material) = load_cached_materials(paths)?;
let authenticator =
authenticator.with_proof_materials(query_material, nullifier_material);
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Using config.into() to convert into the new AuthenticatorConfig type. Will add ohttp-related config in the follow-up PR.

Comment thread walletkit-core/src/authenticator/mod.rs
@kilianglas kilianglas merged commit 0129670 into main Apr 15, 2026
16 checks passed
@kilianglas kilianglas deleted the kilianglas/adapt-upstream-refactor branch April 15, 2026 16:21
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