pub trait ClientVerify<const HL: usize, const SL: usize> {
// Required method
fn verification_done(
&self,
result: Result<bool, ErrorCode>,
hash: &'static mut [u8; HL],
signature: &'static mut [u8; SL],
);
}
Expand description
This trait provides callbacks for when the verification has completed.
Required Methods§
Sourcefn verification_done(
&self,
result: Result<bool, ErrorCode>,
hash: &'static mut [u8; HL],
signature: &'static mut [u8; SL],
)
fn verification_done( &self, result: Result<bool, ErrorCode>, hash: &'static mut [u8; HL], signature: &'static mut [u8; SL], )
Called when the verification is complete.
If the verification operation encounters an error, result will be a
Result::Err()
specifying the ErrorCode. Otherwise, result will be a
Result::Ok
set to Ok(true)
if the signature was correctly verified
and Ok(false)
otherwise.
If verification operation did encounter errors result
will be Err()
with an appropriate ErrorCode
. Valid ErrorCode
s include:
CANCEL
: the operation was cancelled.FAIL
: an internal failure.