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§
- Auth
Decision - Authorization decision result
- Auth
Decision With Proof - Authorization decision with metadata (simplified - no cryptographic proofs in open-core)
- P47h
Client - WASM-compatible client managing Identity lifecycle and local policy evaluation.
- Policy
Diagnostic - Policy validation diagnostic result
- Vault
Crypto - Crypto utilities for the Identity Vault
- Wasm
Identity - WASM wrapper for Identity
- Wasm
Policy - 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.errorpanic 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