pub struct EphemeralNonceVault { /* private fields */ }Expand description
Ephemeral, in-memory vault for single-use FROST signing nonces.
Bound to a CSPRNG-generated boot_epoch_id to guarantee rollback immunity.
Implementations§
Source§impl EphemeralNonceVault
impl EphemeralNonceVault
Sourcepub fn boot_epoch_id(&self) -> u128
pub fn boot_epoch_id(&self) -> u128
The 128-bit boot epoch identifier for this vault instance.
Sourcepub fn preprocess_batch(
&mut self,
signing_share: &SigningShare,
count: usize,
) -> Vec<(NonceSlotId, SigningCommitments)>
pub fn preprocess_batch( &mut self, signing_share: &SigningShare, count: usize, ) -> Vec<(NonceSlotId, SigningCommitments)>
Generates count fresh nonces and returns public commitments for the Coordinator.
Sourcepub fn take_once(&mut self, slot: &NonceSlotId) -> Option<SigningNonces>
pub fn take_once(&mut self, slot: &NonceSlotId) -> Option<SigningNonces>
Atomically removes and returns the secret SigningNonces for slot.
Enforces the single-use invariant: once taken, subsequent calls return None.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for EphemeralNonceVault
impl RefUnwindSafe for EphemeralNonceVault
impl Send for EphemeralNonceVault
impl Sync for EphemeralNonceVault
impl Unpin for EphemeralNonceVault
impl UnsafeUnpin for EphemeralNonceVault
impl UnwindSafe for EphemeralNonceVault
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