Canonical signed summary bytes as they enter the Git tree.
(&self)
| 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> { |