Trait ClientSign

Source
pub trait ClientSign<const HL: usize, const SL: usize> {
    // Required method
    fn signing_done(
        &self,
        result: Result<(), ErrorCode>,
        hash: &'static mut [u8; HL],
        signature: &'static mut [u8; SL],
    );
}
Expand description

This trait provides callbacks for when the signing has completed.

Required Methods§

Source

fn signing_done( &self, result: Result<(), ErrorCode>, hash: &'static mut [u8; HL], signature: &'static mut [u8; SL], )

Called when the signing is complete.

If the signing operation encounters an error, result will be a Result::Err() specifying the ErrorCode. Otherwise, result will be a Result::Ok(()).

If signing operation did encounter errors result will be Err() with an appropriate ErrorCode. Valid ErrorCodes include:

  • CANCEL: the operation was cancelled.
  • FAIL: an internal failure.

Implementors§