Whether these bytes exactly match the previously verified source, including unhashed notes/signatures. A change in any byte requires a new checked decode, not a timestamp-based cache hit.
(&self, bytes: &[u8])
| 66 | /// including unhashed notes/signatures. A change in any byte requires a |
| 67 | /// new checked decode, not a timestamp-based cache hit. |
| 68 | pub fn matches_source_bytes(&self, bytes: &[u8]) -> bool { |
| 69 | self.source_digest |
| 70 | .is_some_and(|digest| digest == Hash::of(bytes)) |
| 71 | } |
| 72 | } |
| 73 | |
| 74 | #[derive(Debug, thiserror::Error)] |
no outgoing calls
no test coverage detected