pub struct FileSigner(/* private fields */);Expand description
Persistent software signer, with no OS keychain prompt. Supports Unix
private directories (including macOS/Linux and native mobile sandboxes).
Other hosts can implement DeviceSigner / OfflineSigner with their store.
Use separate paths for device proof, authority signing and endpoint keys. Never copy these files to provision another device: copied software keys can impersonate their owner. This is not hardware-backed clone resistance. The signer intentionally has no serialization, clone or private-key API.
Implementations§
Source§impl FileSigner
impl FileSigner
pub fn load_or_create(path: impl AsRef<Path>) -> Result<Self>
Trait Implementations§
Source§impl DeviceSigner for FileSigner
impl DeviceSigner for FileSigner
Source§impl OfflineSigner for FileSigner
impl OfflineSigner for FileSigner
Auto Trait Implementations§
impl Freeze for FileSigner
impl RefUnwindSafe for FileSigner
impl Send for FileSigner
impl Sync for FileSigner
impl Unpin for FileSigner
impl UnsafeUnpin for FileSigner
impl UnwindSafe for FileSigner
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more