Skip to main content

DeviceSigner

Trait DeviceSigner 

Source
pub trait DeviceSigner: Send + Sync {
    // Required methods
    fn public_jwk(&self, app_tag: &str) -> Result<Value>;
    fn sign(&self, app_tag: &str, challenge: &[u8]) -> Result<Vec<u8>>;
}
Expand description

Host secure-storage bridge for the per-install Ed25519 device key. Private key bytes never enter the OpenRTC runtime.

Required Methods§

Source

fn public_jwk(&self, app_tag: &str) -> Result<Value>

Source

fn sign(&self, app_tag: &str, challenge: &[u8]) -> Result<Vec<u8>>

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§