Function content_hash
Source pub fn content_hash(value: &JsonValue) -> Result<String, HashError>
Expand description
重导出 tier1 的哈希算法(单一真相源)
所有哈希计算函数均在 evorule_reactor::hash 中实现,
本模块通过 re-export 对外暴露相同的 API。
计算内容的 BLAKE3 哈希
将 JsonValue 序列化为确定性字符串后计算哈希。
使用 tcb_to_serde 进行显式 JSON 序列化,确保格式稳定性。
§返回值
Ok(String): 64 字符的十六进制哈希字符串
Err(HashError): 序列化失败