Expand description
§p47h-engine
Core engine for P47H with cryptographic identity management and local policy evaluation.
This crate provides a complete AuthN/AuthZ solution for web applications. It is designed to be used as a library (rlib) by WASM wrappers.
Re-exports§
pub use vault::VaultCrypto;
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
- Wasm
Identity - WASM wrapper for Identity
- Wasm
Policy - WASM wrapper for Policy
Functions§
- 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