Skip to main content

NativeDeviceKeySigner

Trait NativeDeviceKeySigner 

Source
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§

Source

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

Source

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

Source

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".

Implementors§