pub enum ReceiptSigningError {
KernelKeyMismatch,
ContentHashMismatch {
recomputed: String,
claimed: String,
},
SigningFailed(String),
}Expand description
Errors raised by sign_receipt.
Variants§
KernelKeyMismatch
The receipt body’s kernel_key does not match the signing backend’s
public key. Signing would succeed but verification against the
embedded kernel_key would then fail; we fail early to catch
config drift.
ContentHashMismatch
The body’s claimed content_hash does not match the hash the signer
recomputed over the bound canonical content. WYSIWYS fail-closed gate:
closes render-A / sign-B forgeries. Carries the recomputed and claimed
hashes for audit.
Fields
SigningFailed(String)
The canonical-JSON signing pipeline raised an error (bubbled up
from chio-core-types::crypto::sign_canonical_with_backend).
Trait Implementations§
Source§impl Clone for ReceiptSigningError
impl Clone for ReceiptSigningError
Source§fn clone(&self) -> ReceiptSigningError
fn clone(&self) -> ReceiptSigningError
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 ReceiptSigningError
impl Debug for ReceiptSigningError
impl Eq for ReceiptSigningError
Source§impl PartialEq for ReceiptSigningError
impl PartialEq for ReceiptSigningError
impl StructuralPartialEq for ReceiptSigningError
Auto Trait Implementations§
impl Freeze for ReceiptSigningError
impl RefUnwindSafe for ReceiptSigningError
impl Send for ReceiptSigningError
impl Sync for ReceiptSigningError
impl Unpin for ReceiptSigningError
impl UnsafeUnpin for ReceiptSigningError
impl UnwindSafe for ReceiptSigningError
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