Skip to main content

content_hash

Function content_hash 

Source
pub(crate) fn content_hash(name: &str, instructions: &str) -> String
Expand description

Hashes name + instructions together (not instructions alone) — unlike native memory, where a version’s whole identity IS its content, a bundle’s name is content too (renaming a Global Memory entry without touching its body is a real, meaningful edit an operator or agent might make, and should still produce a new version + a changed hash).