Skip to content

feat(verifier): expose WASM export for did:keri KEL state resolution for web resolvers #407

Description

@bordumb

Description

Companion issue to auths-dev/auths-site#32.

To enable web widgets (<auths-verify> and identity resolvers in @auths-dev/verify) to resolve did:keri identities without re-implementing KERI log validation in TypeScript, auths-verifier needs to expose a WASM helper function for resolving active identity public keys from Key Event Logs (KEL).

Proposed Solution

Expose a WASM export function in crates/auths-verifier/src/wasm.rs:

#[wasm_bindgen(js_name = resolveKeriActiveKey)]
pub fn wasm_resolve_keri_active_key(
    kel_json_str: &str,
    sequence: Option<u64>,
) -> Result<String, JsValue>
  • Accepts KEL JSON events array and optional sequence number.
  • Evaluates icp and rot events via auths-keri / auths-id::domain::keri_resolve.
  • Returns active public key hex string or structured error response.

Related Issues

Location

  • crates/auths-verifier/src/wasm.rs

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions