MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / encode

Method encode

atomic-repository/src/git_binding/summary.rs:244–249  ·  view source on GitHub ↗

Canonical signed summary bytes as they enter the Git tree.

(&self)

Source from the content-addressed store, hash-verified

242
243 /// Canonical signed summary bytes as they enter the Git tree.
244 pub fn encode(&self) -> Vec<u8> {
245 let mut bytes = Vec::with_capacity(self.summary_bytes.len() + self.signature.len());
246 bytes.extend_from_slice(&self.summary_bytes);
247 bytes.extend_from_slice(&self.signature);
248 bytes
249 }
250
251 /// Verify the summary's own signature against `key`.
252 pub fn verify_signature(&self, key: &PublicKey) -> Result<(), BindingAttestationError> {

Callers

nothing calls this directly

Calls 1

lenMethod · 0.45

Tested by

no test coverage detected