pub struct InMemoryJournalSigner { /* private fields */ }Expand description
Dev-only signer backed by an in-process SigningKey. Production:
replace with a HW-backed signer (e.g. YubiKeyJournalSigner) so private
key material never enters the process address space
(docs/release-keys.md §3).
Implementations§
Source§impl InMemoryJournalSigner
impl InMemoryJournalSigner
Sourcepub fn new(key: SigningKey) -> Self
pub fn new(key: SigningKey) -> Self
Wrap an in-process SigningKey. Callers must ensure the key material
stays inside the process_protection
boundary (Tier-0 software-kek) or is supplied exclusively via test
fixtures.
Sourcepub fn verifying_key(&self) -> VerifyingKey
pub fn verifying_key(&self) -> VerifyingKey
Verify handle — exposed mostly so tests can assert signature validity without reaching into the crate internals.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for InMemoryJournalSigner
impl RefUnwindSafe for InMemoryJournalSigner
impl Send for InMemoryJournalSigner
impl Sync for InMemoryJournalSigner
impl Unpin for InMemoryJournalSigner
impl UnsafeUnpin for InMemoryJournalSigner
impl UnwindSafe for InMemoryJournalSigner
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