The exact Git-safe blobs of one binding publication, in tree order. Every byte here comes from an allowlisted, separately signed or hash-bound field. Nothing else may be added to a binding tree.
(
binding: &super::codec::GitStateBinding,
summary: Option<&super::summary::SignedAttestationSummary>,
)
| 52 | /// Every byte here comes from an allowlisted, separately signed or |
| 53 | /// hash-bound field. Nothing else may be added to a binding tree. |
| 54 | pub fn binding_tree_entries( |
| 55 | binding: &super::codec::GitStateBinding, |
| 56 | summary: Option<&super::summary::SignedAttestationSummary>, |
| 57 | ) -> Result<Vec<(&'static str, Vec<u8>)>, BindingTreeError> { |
| 58 | let mut entries = vec![(BINDING_BLOB_NAME, binding.encode())]; |
| 59 | if let Some(summary) = summary { |
| 60 | entries.push((ATTESTATION_SUMMARY_BLOB_NAME, summary.encode())); |
| 61 | } |
| 62 | Ok(entries) |
| 63 | } |
| 64 | |
| 65 | /// Select the change objects allowed into the optional `changes.pack`. |
| 66 | /// |
no test coverage detected