pub struct ContentHashMismatch {
pub recomputed: String,
pub claimed: String,
}Expand description
Error raised when a ReceiptSigningHandle is consumed against a receipt
body whose claimed content_hash does not match the hash the signer
recomputed over the bound canonical content.
This is the WYSIWYS (“what you see is what you sign”) fail-closed gate: the
signer refuses to bind a signature to a body whose content_hash field was
not derived from the exact content the handle was built over. It closes the
render-A / sign-B class of attacks where a caller renders content A to a
human but submits a body claiming the hash of content B.
Fields§
§recomputed: StringThe hash recomputed by the signer over the handle’s canonical content.
claimed: StringThe content_hash the caller embedded in the receipt body.
Implementations§
Trait Implementations§
Source§impl Clone for ContentHashMismatch
impl Clone for ContentHashMismatch
Source§fn clone(&self) -> ContentHashMismatch
fn clone(&self) -> ContentHashMismatch
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ContentHashMismatch
impl Debug for ContentHashMismatch
impl Eq for ContentHashMismatch
Source§impl PartialEq for ContentHashMismatch
impl PartialEq for ContentHashMismatch
impl StructuralPartialEq for ContentHashMismatch
Auto Trait Implementations§
impl Freeze for ContentHashMismatch
impl RefUnwindSafe for ContentHashMismatch
impl Send for ContentHashMismatch
impl Sync for ContentHashMismatch
impl Unpin for ContentHashMismatch
impl UnsafeUnpin for ContentHashMismatch
impl UnwindSafe for ContentHashMismatch
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more