Skip to main content

write_public

Function write_public 

Source
pub fn write_public(dir: &Path, name: &str, value: &[u8]) -> Result<()>
Expand description

Write a named public trust artifact to dir atomically (tempfile + rename).

Same atomic-write contract as write_secret, but for non-secret material (public keys, attestations): the resulting file has mode 0644 so other local readers (e.g. a credential-mint unit mounting the directory) can consume it. NEVER pass secret material here.