OpenAgentID documentation
Source referencesRust module referenceopenagent-claude-agent

openagent-claude-agent · hash

Declared module signatures, types, configuration, and source documentation.

Source: openagent-sdk/integrations/claude-agent-sdk/rust/src/hash.rs. SHA-256: 09cb9f60075ccb9fec692f4a351ddb5a0f34500627c339d5985d3ef95d2f2b0c.

This source reference follows declared modules and preserves feature attributes. It includes public declarations and implementation methods in those modules. Private-module exports and trait resolution still require the compiler; not every declaration is a crate-root import. Function bodies and constant values are omitted. Source comments describe their implementation context and are not a production deployment claim.

hash::hash_hex

Hash a byte buffer with BLAKE3 and return lowercase hex.

pub fn hash_hex(bytes: &[u8]) -> String;

Source line: 6.

hash::canonical_json

Stable JSON serialisation (object keys sorted) for canonical hashing.

serde_json orders object keys lexicographically when using serde_json::to_value over a BTreeMap-like structure. We canonicalise by round-tripping through serde_json::Value and re-emitting via a helper that sorts maps.

pub fn canonical_json<T: Serialize>(value: &T) -> Result<String, serde_json::Error>;

Source line: 17.

hash::hash_value

Hash a serialisable value via canonical JSON.

pub fn hash_value<T: Serialize>(value: &T) -> Result<String, serde_json::Error>;

Source line: 24.

On this page