Skip to main content

InMemoryDekShredder

Struct InMemoryDekShredder 

Source
pub struct InMemoryDekShredder { /* private fields */ }
Expand description

In-memory DekShredder — deterministic Ed25519-style placeholder attestation for tests and the Tier-0 harness. All paths emit RuntimeSignatureClass::Ed25519 regardless of compliance tier.

Implementations§

Source§

impl InMemoryDekShredder

Source

pub fn new() -> Self

Construct an empty shredder — no DEKs registered.

Source

pub fn register(&mut self, dek_id: DekId)

Register a DEK the observer will later be asked to shred. The shredder does not store plaintext key material — just the id.

Source

pub fn is_shredded(&self, dek_id: &DekId) -> bool

Check whether a given DEK id was shredded.

Trait Implementations§

Source§

impl Debug for InMemoryDekShredder

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for InMemoryDekShredder

Source§

fn default() -> InMemoryDekShredder

Returns the “default value” for a type. Read more
Source§

impl DekShredder for InMemoryDekShredder

Source§

fn shred(&mut self, dek_id: DekId) -> Result<DekShredAttestation, DekShredError>

Drop plaintext DEK material for dek_id and return an attestation payload the observer folds into the UserErasureCompleted.attestation_bytes field. See the trait- level idempotency contract for replay semantics.
Source§

fn shred_with_regions( &mut self, dek_id: DekId, shred_tick: Tick, ) -> Result<ShredResult, DekShredError>

Multi-region 2PC variant. Real backends override this to drive a multi-KMS / multi-region shred and return the per-region progress entries so the cascade observer can emit matching PerRegionErasureProgress events. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.