pub trait SecureElement {
type Error: Debug;
// Required methods
fn sign(&mut self, msg: &[u8]) -> Result<[u8; 64], Self::Error>;
fn pubkey(&self) -> [u8; 32];
}Expand description
A hardware-backed signing key (e.g. ATECC608 / SE050 / Nitrokey).
The private material never leaves the device; signing happens via
sign(msg).
Required Associated Types§
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".