High level Architecture
The DeRec architecture defines a threshold-based recovery system coordinated through explicit protocol flows between an Owner and a set of Helpers. The design separates secret protection, key material distribution, and recovery orchestration into clearly defined responsibilities.
Protection Phase
During protection, the Owner prepares the Secret for recoverability without exposing it to any Helper. The process is local to the Owner environment.
The Owner encrypts the Secret with AES-256-GCM under a fresh key and splits that key into
nshares using a threshold secret-sharing scheme. Each share carries one or more subshares (its Helper's weight, one by default), the ciphertext, and a Merkle commitment over all shares.Each share is transmitted to a different Helper over that Helper's encrypted channel.
Helpers receive and store one share per secret version. The Secret is never transmitted to any Helper in the clear. A split runs only when the paired Helpers' total weight reaches t; below the threshold, Helpers receive nothing for that version.
Recovery Phase
Recovery is an explicit protocol-driven process initiated by the Owner. The Owner requests shares from Helpers and reconstructs the Secret once the threshold condition is satisfied.
The Owner initiates a recovery session.
The Owner requests shares from Helpers.
Helpers validate the request according to protocol rules.
Helpers return their stored share, or refuse (for example, when they do not hold the requested version).
The Owner checks each share against its commitment and sets aside any that fail. Once consistent shares carrying at least
tsubshares are obtained, it rebuilds the key and decrypts the Secret locally.
Recovery succeeds only if the subshares carried by valid, mutually consistent shares sum to at least the version's threshold.
Threshold Model
Let n be the total number of Helpers and t the recovery threshold, counted in subshares. The protocol guarantees that any set of valid shares carrying at least t subshares can reconstruct the key and so the Secret, while any set carrying fewer than t provides no information about the key. With every Helper at weight 1, t is a count of shares. The threshold is chosen by the Owner, recorded with each version, and determines the balance between availability and resistance to collusion. See Threshold and availability model.
Role Separation
The architecture enforces logical separation between roles. The Owner is responsible for encryption, share generation, distribution, and Secret reconstruction. Helpers are responsible only for storing and returning their assigned share in accordance with the protocol. No Helper reconstructs the Secret, and no share alone reveals it.
Trust and Security Boundaries
The Owner's environment is assumed to be trusted during protection and recovery. Helpers are assumed to operate independently. The security guarantee relies on the threshold model: compromise of fewer than t Helpers does not compromise the Secret. The protocol defines message flows and validation rules to ensure deterministic and interoperable behavior across implementations.
Multi-device extension: Replicas
The architecture extends to multi-device deployments through the replica feature. An Owner identity can be backed by more than one device, each holding a copy of the Secret.
The devices form one replica group: a single group channel and a single group key, shared by every member.
Each member holds a persistent role. Exactly one member is the
Source; every other member is aDestination. The role breaks ties during catch-up and passes to a successor when theSourceis removed.Any member that holds the current Secret can publish a new version. The publish sends shares to the Helpers and the full Secret to the other members over the group channel.
Delivery to members is best-effort. A member that does not acknowledge is listed in
behindonReplicaSyncComplete, and does not fail the round. A member that fell behind catches up by runningReplicaDiscovery.From a Helper's perspective, every member is the same Owner — they all hold the same per-Helper keys delivered inside the Secret.
Members share the Owner's trust boundary. The protocol does not separate them cryptographically.
See the Replicas section in the Concepts chapter for the pair handshake, the synchronization mechanics, conflict handling, member removal, and the security implications of sharing one trust boundary across devices.
Last updated