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
Description
Companion issue to auths-dev/auths-site#32.
To enable web widgets (
<auths-verify>and identity resolvers in@auths-dev/verify) to resolvedid:keriidentities without re-implementing KERI log validation in TypeScript,auths-verifierneeds 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:icpandrotevents viaauths-keri/auths-id::domain::keri_resolve.Related Issues
Location
crates/auths-verifier/src/wasm.rs