Skip to main content

Crate warrant_core

Crate warrant_core 

Source
Expand description

Core engine for Warrant signed capability policies.

This crate is intentionally UI/framework neutral: it parses, verifies, and evaluates policies, and provides lock/elevation state primitives. Interactive prompting belongs in higher-level integration crates.

Structs§

CheckContext
ElevationOptions
LockOptions
LockResult
LockReview
ParsedWarrant
ReviewDiffEntry
SignatureBlock
ToolId
ToolPaths
WarrantMeta

Enums§

Decision
DenyReason
Error
ReviewDiffKind

Functions§

canonical_json_bytes
Produce deterministic canonical JSON bytes.
check
clear_elevation_session
create_elevation_session
is_elevated
load_installed_warrant
load_installed_warrant_for_tool
lock_warrant_from_draft_path
parse_toml_warrant
review_lock_from_draft_path
verify_ed25519_signature
verify_toml_warrant
Parse and verify a warrant TOML document in one step.

Type Aliases§

Result