pub trait NativeDeviceKeySigner: Send + Sync {
// Required methods
fn public_jwk(&self, app_tag: &str) -> Result<Value, String>;
fn sign(&self, app_tag: &str, challenge: &[u8]) -> Result<Vec<u8>, String>;
fn delete(&self, app_tag: &str) -> Result<(), String>;
}Expand description
Host-owned secure-storage bridge for the OpenRTC 2.0 per-install device proof key. OpenRTC never receives private key bytes: platform code stores the Ed25519 key in Keychain/Keystore/Stronghold and exposes only public JWK export plus signing.
Required Methods§
fn public_jwk(&self, app_tag: &str) -> Result<Value, String>
fn sign(&self, app_tag: &str, challenge: &[u8]) -> Result<Vec<u8>, String>
fn delete(&self, app_tag: &str) -> Result<(), String>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".