pub enum ResponseVerificationError {
Show 33 variants
MalformedUrl(String),
MalformedHashTree(String),
MalformedCertificate(String),
MissingTimePathInTree,
IoError(Error),
CertificateTimeTooFarInTheFuture {
certificate_time: u128,
max_certificate_time: u128,
},
CertificateTimeTooFarInThePast {
certificate_time: u128,
min_certificate_time: u128,
},
MalformedCbor(String),
UnexpectedCborNodeType {
node_name: String,
expected_type: String,
found_type: String,
},
IncorrectPrunedDataLength(TryFromSliceError),
LebDecodingOverflow,
Utf8ConversionError(FromUtf8Error),
UnsupportedVerificationVersion {
min_supported_version: u8,
max_supported_version: u8,
requested_version: u8,
},
RequestedVerificationVersionMismatch {
min_requested_verification_version: u8,
requested_version: u8,
},
CelError(CelParserError),
DerKeyLengthMismatch {
expected: usize,
actual: usize,
},
DerPrefixMismatch {
expected: Vec<u8>,
actual: Vec<u8>,
},
CertificateVerificationFailed,
CertificatePrincipalOutOfRange,
CertificateSubnetPublicKeyNotFound,
CertificateSubnetCanisterRangesNotFound,
MalformedCborCanisterRanges,
Base64DecodingError(DecodeError),
ParseIntError(ParseIntError),
InvalidTree,
InvalidExpressionPath,
InvalidResponseBody,
InvalidResponseHashes,
MissingCertificate,
MissingTree,
MissingCertificateExpressionPath,
MissingCertificateExpression,
MissingCertification,
}Expand description
The primary container for response verification errors
Variants§
MalformedUrl(String)
The URL was malformed and could not be parsed correctly
MalformedHashTree(String)
The hash tree was malformed and could not be parsed correctly
MalformedCertificate(String)
The certificate was malformed and could not be parsed correctly
MissingTimePathInTree
The certificate was expected to have a “time” path, but it was missing
IoError(Error)
Error converting UTF-8 string
CertificateTimeTooFarInTheFuture
Fields
The certificate’s time was too far in the future
CertificateTimeTooFarInThePast
Fields
The certificate’s time was too far in the past
MalformedCbor(String)
The CBOR was malformed and could not be parsed correctly
UnexpectedCborNodeType
Fields
The Cbor parser expected a node of a certain type but found a different type
IncorrectPrunedDataLength(TryFromSliceError)
The hash tree pruned data was not the correct length
LebDecodingOverflow
Encountered an overflow error while decoding leb encoded timestamp
Utf8ConversionError(FromUtf8Error)
Error converting UTF-8 string
UnsupportedVerificationVersion
Fields
An unsupported verification version was requested
RequestedVerificationVersionMismatch
Fields
Mismatch between the minimum requested version and the actual requested version
CelError(CelParserError)
Error parsing CEL expression
DerKeyLengthMismatch
Unexpected public key length
DerPrefixMismatch
Unexpected public key prefix
CertificateVerificationFailed
Failed to verify the certificate
CertificatePrincipalOutOfRange
Certificate is for a different canister
CertificateSubnetPublicKeyNotFound
Certificate delegation is missing the required public key
CertificateSubnetCanisterRangesNotFound
Certificate delegation is missing the required canister range
MalformedCborCanisterRanges
Certificate delegation canister range was not correctly CBOR encoded
Base64DecodingError(DecodeError)
Error decoding base64
ParseIntError(ParseIntError)
Error parsing int
InvalidTree
The tree has different root hash from the expected value in the certified variables
InvalidExpressionPath
The CEL expression path is invalid
InvalidResponseBody
The response body was a mismatch from the expected values in the tree
InvalidResponseHashes
The response hashes were a mismatch from the expected values in the tree
MissingCertificate
The certificate was missing from the certification header
MissingTree
The tree was missing from the certification header
MissingCertificateExpressionPath
The certificate expression path was missing from the certification header
MissingCertificateExpression
The certificate expression was missing from the response headers
MissingCertification
The certification values could not be found in the response headers