Skip to main content

Crate p47h_wasm_oss

Crate p47h_wasm_oss 

Source
Expand description

§p47h-wasm-oss

Open Source WASM bindings for p47h governance engine. This is the public cdylib wrapper around p47h-engine.

Modules§

vault
Vault cryptographic operations (encryption/decryption) Vault cryptographic operations.

Structs§

AuthDecision
Authorization decision result
AuthDecisionWithProof
Authorization decision with metadata (simplified - no cryptographic proofs in open-core)
P47hClient
WASM-compatible client managing Identity lifecycle and local policy evaluation.
PolicyDiagnostic
Policy validation diagnostic result
VaultCrypto
Crypto utilities for the Identity Vault
WasmIdentity
WASM wrapper for Identity
WasmPolicy
WASM wrapper for Policy

Functions§

init
Initialize the WASM module (sets panic hook for debugging)
init_engine
Initialize the engine (sets panic hook for debugging). This should be called by the WASM wrapper, not directly.
parse_resource
Helper function to parse resource string into Resource enum
set_panic_hook
Set the console.error panic hook the first time this is called. Subsequent invocations do nothing.
validate_policy
Validates a policy TOML string
validate_policy_detailed
Validates a policy TOML string with precise error reporting