Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions tinycloud-threshold/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ zeroize = { version = "1.8", features = ["derive"] }
subtle = "2.6"
rand_core = "0.6"
thiserror = "2"
hpke = { version = "=0.12.0", default-features = false, features = ["x25519"] }

[dev-dependencies]
ed25519-dalek = "=2.2.0"
Expand Down
4 changes: 4 additions & 0 deletions tinycloud-threshold/SPEC.md
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,10 @@ Secrets that must become unrecoverable, and when:

Public ciphertext transcripts may be kept once the matching recipient keys are unrecoverable. In memory the crate zeroizes on drop and avoids hidden copies (blst `Copy` types are wiped explicitly where they hold secrets); `ZeroizeOnDrop` is an in-memory operation; durable storage is handled by integration. Durable erasure, snapshots, swap and core dumps are gate A's acceptance (§12).

The `seal` module's lifecycle behavior covers only accessible owned storage. `CeremonyHpkeSecretKey` clears its owned 32-byte array on explicit zeroization or drop. Internal plaintext/candidate buffers use `Zeroizing`, including error paths; a successful seal transfers ciphertext out of that buffer. Opened plaintext is returned in `Zeroizing<Vec<u8>>`. The borrowed sealing input belongs to the caller and is not cleared by the module.

HPKE 0.12's `PrivateKey`, `AeadCtxS` and `AeadCtxR` are opaque dependency-managed values. This owned-buffer description makes no claim about zeroization of their internal storage.

### 3.12 Activation boundary (contract fixed now; durable state record is integration)

An owner signature on a new certificate is **not** an erasure trigger. Transition states:
Expand Down
4 changes: 4 additions & 0 deletions tinycloud-threshold/src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ pub enum Error {
DegenerateRandomness,
#[error("invalid IBE ciphertext")]
InvalidCiphertext,
#[error("invalid HPKE key")]
InvalidHpkeKey,
#[error("invalid sealed dealing")]
InvalidSealedDealing,
#[error("derived key does not match the request")]
InvalidDerivedKey,
#[error("invalid signature")]
Expand Down
9 changes: 9 additions & 0 deletions tinycloud-threshold/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,14 @@ pub mod ibe;
pub mod identity;
pub mod ids;
mod poly;
#[cfg_attr(
not(test),
allow(
dead_code,
reason = "Crate-private dealing helpers await DKG/reshare callers."
)
)]
pub mod seal;

pub use activation::{
activation_preimage, readiness_preimage, verify_activation, ReadinessReceipt, ReadyQuorum,
Expand All @@ -47,6 +55,7 @@ pub use fault::{verify_fault_proof, FaultProof, FaultVerdict, NotAFaultReason};
pub use ibe::*;
pub use identity::IbeIdentity;
pub use ids::*;
pub use seal::{CeremonyHpkePublicKey, CeremonyHpkeSecretKey, SealedDealing};

#[cfg(test)]
mod checkpoint;
Expand Down
Loading
Loading