pub enum ChioMobileError {
InvalidJson {
message: String,
},
InvalidHex {
message: String,
},
WeakEntropy {
message: String,
},
InvalidCapability {
message: String,
},
InvalidPassport {
message: String,
},
AttestationUnavailable {
message: String,
},
AttestationRejected {
message: String,
},
KernelKeyMismatch {
message: String,
},
SigningFailed {
message: String,
},
EvaluationDenied {
message: String,
},
Internal {
message: String,
},
}Expand description
Errors raised by the mobile FFI.
The variant names in this enum match the [Error] interface in
chio_kernel_mobile.udl exactly; UniFFI relies on the name match
to produce the right Swift/Kotlin case for each variant.
Variants§
InvalidJson
A JSON argument failed to parse.
InvalidHex
A hex-encoded key or seed failed to decode.
WeakEntropy
A signing seed decoded successfully but is unsafe to use.
InvalidCapability
Capability verification (signature, issuer trust, or time bounds) failed.
InvalidPassport
Portable-passport envelope verification failed.
Mobile attestation verification has not been provisioned for this platform lane yet.
AttestationRejected
Mobile attestation evidence was present but rejected.
KernelKeyMismatch
The receipt body’s kernel_key did not match the derived
public key of the provided signing seed. Fail-fast so a
receipt is never emitted whose embedded key cannot verify
its own signature.
SigningFailed
The canonical-JSON signing pipeline reported an error.
EvaluationDenied
An evaluate() call returned a deny verdict. The message
carries the kernel-core deny_reason().
Internal
An internal invariant was violated (canonical-JSON failure, unexpected kernel-core error, etc.). Treat as fail-closed.
Implementations§
Trait Implementations§
Source§impl Clone for ChioMobileError
impl Clone for ChioMobileError
Source§impl Debug for ChioMobileError
impl Debug for ChioMobileError
Source§impl Display for ChioMobileError
impl Display for ChioMobileError
impl Eq for ChioMobileError
Source§impl Error for ChioMobileError
impl Error for ChioMobileError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()