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

Re-add Resolver API for WASM builds #1526

Merged
merged 10 commits into from
Feb 19, 2025

Conversation

wulfraem
Copy link
Contributor

Re-adds examples for did resolution via Resolver API:

  • 0_basic/2_resolve_did.ts
  • 1_advanced/4_custom_resolution.ts

Resolver API is re-added, but the attach_iota_handler and attach_multiple_iota_handlers parts are left out of the WASM build.

The Stardust implementation was already not using those two and was directly using a client with respective traits to resolve the DID. Updated implementation follows the same principle, but uses the new API for this.

@wulfraem wulfraem added the Wasm Related to Wasm bindings. Becomes part of the Wasm changelog label Feb 12, 2025
@wulfraem wulfraem requested a review from a team as a code owner February 12, 2025 14:31
- resolver can be created with read-only and with write capable clients
- `IotaDocument` now serialize to full serialized `IotaDocument` intead of just the `CoreDocument` part when calling `.to_json()`/`.toJSON()`
- this affects the documents resolved via `Resolver` as well
- `Resolver` class now accepts generic type parameter to specify the type of the resolved documents
@wulfraem wulfraem added the Enhancement New feature or improvement to an existing feature label Feb 18, 2025
@wulfraem wulfraem added the Added A new feature that requires a minor release. Part of "Added" section in changelog label Feb 18, 2025
@wulfraem wulfraem merged commit d679051 into feat/wasm32-identity-client Feb 19, 2025
11 of 13 checks passed
@wulfraem wulfraem deleted the feat/re-add-resolver-api branch February 19, 2025 10:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Added A new feature that requires a minor release. Part of "Added" section in changelog Enhancement New feature or improvement to an existing feature Wasm Related to Wasm bindings. Becomes part of the Wasm changelog
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants