pub enum ResponseVerificationError {
Show 28 variants
IoError(String),
UnsupportedVerificationVersion {
min_supported_version: u8,
max_supported_version: u8,
requested_version: u8,
},
RequestedVerificationVersionMismatch {
min_requested_verification_version: u8,
requested_version: u8,
},
CelError(CelParserError),
Base64DecodingError(DecodeError),
ParseIntError(ParseIntError),
InvalidTreeRootHash,
CertificateMissingCertifiedData {
canister_id: String,
},
UnexpectedExpressionPathPrefix {
provided_expr_path: Vec<String>,
},
UnexpectedExpressionPathSuffix {
provided_expr_path: Vec<String>,
},
ExactExpressionPathNotFoundInTree {
provided_expr_path: Vec<String>,
},
ExactExpressionPathMismatch {
provided_expr_path: Vec<String>,
request_path: String,
},
ExactExpressionPathMightExistInTree {
provided_expr_path: Vec<String>,
potential_expr_path: Vec<String>,
request_path: String,
},
WildcardExpressionPathNotFoundInTree {
provided_expr_path: Vec<String>,
request_path: String,
},
WildcardExpressionPathMismatch {
provided_expr_path: Vec<String>,
request_path: String,
},
MoreSpecificWildcardExpressionMightExistInTree {
provided_expr_path: Vec<String>,
more_specific_expr_path: Vec<String>,
request_path: String,
},
InvalidExpressionHash {
provided_expr_path: Vec<String>,
},
InvalidRequestAndResponseHashes {
provided_expr_path: Vec<String>,
},
MissingLeafNode {
provided_expr_path: Vec<String>,
},
InvalidResponseBody,
HeaderMissingCertificate,
HeaderMissingTree,
HeaderMissingCertificateExpressionPath,
HeaderMissingCertificateExpression,
HeaderMissingCertification,
CborDecodingFailed(CborError),
CertificateVerificationFailed(CertificateVerificationError),
HttpCertificationError(HttpCertificationError),
}
Expand description
The primary container for response verification errors
Variants§
IoError(String)
Error converting UTF-8 string
UnsupportedVerificationVersion
An unsupported verification version was requested
Fields
RequestedVerificationVersionMismatch
Mismatch between the minimum requested version and the actual requested version
Fields
CelError(CelParserError)
Error parsing CEL expression
Base64DecodingError(DecodeError)
Error decoding base64
ParseIntError(ParseIntError)
Error parsing int
InvalidTreeRootHash
The tree has different root hash from the expected value in the certified variables
CertificateMissingCertifiedData
The certificate provided by the “IC-Certificate” response header is missing the certified data witness for the canister
UnexpectedExpressionPathPrefix
The expression path provided by the “IC-Certificate” response header has an unexpected suffix and should end with “<$>” or “<*>”
UnexpectedExpressionPathSuffix
The expression path provided by the “IC-Certificate” response header has an unexpected suffix and should end with “<$>” or “<*>”
ExactExpressionPathNotFoundInTree
The exact expression path provided by the “IC-Certificate” response header was not found in the tree
ExactExpressionPathMismatch
The exact expression path provided by the “IC-Certificate” response header is not valid for the request path
Fields
ExactExpressionPathMightExistInTree
A wildcard expression path was provided by the “IC-Certificate” response header but a potential exact expression path is valid for the request path and might exist in the tree
Fields
WildcardExpressionPathNotFoundInTree
The wildcard expression path provided by the “IC-Certificate” response was not found in the tree
Fields
WildcardExpressionPathMismatch
The wildcard expression path provided by the “IC-Certificate” response header is not valid for the request path
Fields
MoreSpecificWildcardExpressionMightExistInTree
A more specific wildcard expression path than the one provided by the “IC-Certificate” response header that is valid for the request path might exist in the tree
Fields
InvalidExpressionHash
The hash of the CEL expression provided by the “IC-Certificate-Expression” response header does not exist at the expression path provided by the “IC-Certificate” response header
Fields
InvalidRequestAndResponseHashes
The hash of the request and response was not found in the tree at the expression path provided by the “IC-Certificate” response header
Fields
MissingLeafNode
The required empty leaf node was not found in the tree at the expression path provided by the “IC-Certificate” response header
Fields
InvalidResponseBody
The response body was a mismatch from the expected values in the tree
HeaderMissingCertificate
The certificate was missing from the certification header
HeaderMissingTree
The tree was missing from the certification header
HeaderMissingCertificateExpressionPath
The certificate expression path was missing from the certification header
HeaderMissingCertificateExpression
The certificate expression was missing from the response headers
HeaderMissingCertification
The certification values could not be found in the response headers
CborDecodingFailed(CborError)
Failed to decode CBOR
CertificateVerificationFailed(CertificateVerificationError)
Failed to verify certificate
HttpCertificationError(HttpCertificationError)
HTTP Certification error
Trait Implementations§
Source§impl Clone for ResponseVerificationError
impl Clone for ResponseVerificationError
Source§fn clone(&self) -> ResponseVerificationError
fn clone(&self) -> ResponseVerificationError
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more