Expand description
§jacs-binding-core
Shared core logic for JACS language bindings (Python, Node.js, etc.).
This crate provides the binding-agnostic business logic that can be used
by any language binding. Each binding implements the BindingError trait
to convert errors to their native format.
Re-exports§
pub use doc_wrapper::DocumentServiceWrapper;pub use simple_wrapper::SimpleAgentWrapper;pub use simple_wrapper::sign_message_json;pub use simple_wrapper::verify_json;pub use jacs;
Modules§
- conversion
- Common type conversion utilities for bindings.
- doc_
wrapper DocumentServiceWrapper— JSON-in/JSON-out adapter for the unified Document API.- simple_
wrapper SimpleAgentWrapper— thin FFI adapter over the narrowSimpleAgentcontract.
Structs§
- Agent
Wrapper - Thread-safe wrapper around a JACS Agent.
- Binding
Core Error - Error type for binding core operations.
- DnsVerification
Result - Re-export DNS verification result for bindings. Result of verifying an agent’s identity via DNS TXT record.
- Verification
Result - Result of verifying a signed JACS document (used by verify_document_standalone).
Enums§
- Error
Kind - Categories of errors for better handling by bindings.
Functions§
- audit
- Run a read-only security audit and health checks.
- build_
jwk_ set_ from_ public_ key - Build a JWK set from a base64-encoded public key using Rust-owned parsing rules.
- create_
agent_ programmatic - Create a JACS agent programmatically (non-interactive).
- create_
config - Create a JACS configuration JSON string.
- diagnostics_
standalone - Returns basic JACS diagnostic info as a pretty-printed JSON string. Does not require a loaded agent.
- ensure_
network_ access - Enforce the Rust-owned network access policy for a named capability.
- fetch_
agent_ card - Fetch an A2A Agent Card JSON object using Rust-owned network policy and HTTP behavior.
- fetch_
remote_ key_ lookup - Fetch a remote key lookup JSON object using Rust-owned network policy and HTTP behavior.
- get_
trusted_ agent - Get a trusted agent’s JSON document.
- handle_
agent_ create - Create agent and config files interactively.
- handle_
agent_ create_ auto - Like
handle_agent_createbut auto-updates config with the agent ID whenauto_update_configis true, skipping the interactive prompt. - handle_
config_ create - Create a jacs.config.json file interactively.
- hash_
public_ key_ base64 - Hash a base64-encoded public key using Rust-owned public-key hashing rules.
- hash_
string - Hash a string using the JACS hash function (SHA-256).
- is_
trusted - Check if an agent is in the trust store.
- list_
trusted_ agents - List all trusted agent IDs.
- quickstart_
private_ key_ password - Resolve an existing password for quickstart, or generate and optionally persist one in Rust.
- resolve_
private_ key_ password - Resolve a private-key password using Rust-owned env, keychain, and filesystem rules.
- trust_
agent - Add an agent to the local trust store.
- trust_
agent_ with_ key - Add an agent to the local trust store using an explicitly provided public key.
- untrust_
agent - Remove an agent from the trust store.
- verify_
agent_ dns - Verify an agent’s DNS TXT record matches its public key hash.
- verify_
document_ standalone - Verify a signed JACS document without loading an agent.
Type Aliases§
- Binding
Result - Result type for binding core operations.