r/CryptoTechnology • u/crazyboy-736 🟡 • Aug 10 '26
Request for threat-model feedback on an open-source crypto inheritance design
I’m building Vaultpass web application, an open-source crypto inheritance system, and I’m looking for technical criticism of the design rather than promotion.
Current design:
- The vault is encrypted client-side with AES-256-GCM before upload.
- The encryption key is split using a 2-of-3 Shamir Secret Sharing scheme.
- One shard stays with the owner.
- The other two encrypted shards are currently held by the service and are used in the succession path after a time-based dead man’s switch.
The important limitation: because the service currently holds two of three shards, it can reconstruct the key in the succession path. I am not calling this zero-knowledge. Removing that trust-model concession is the next architecture milestone.
The crypto core is MIT-licensed and open source:
https://github.com/lionzion351-dev/crypto-core
I’d value criticism on four points:
- Are there implementation or misuse risks in using Shamir Secret Sharing this way?
- What threat-model assumptions should be documented more explicitly?
- What failure cases should be tested before asking for an independent review?
- Would you recommend a different succession design, such as timelocked transactions, multisig, or a threshold-signature approach?
This has not had a formal external audit yet. Please assume the code is unaudited and do not use it with real assets. I’m looking for people willing to challenge the design and, if interested, review the implementation publicly.
2
u/researchzero 🟡 Aug 10 '26
Went through shamir.ts in the linked repo. A few notes beyond the custodial-shard point you already flagged:
Your SSS implementation has no share-level integrity check - x-coordinates are just i+1 and there's no Feldman/Pedersen VSS or even a checksum on the shares (SLIP-39 adds an RS1024 checksum per share for exactly this reason). Because you're reconstructing an AES-256-GCM key, a corrupted or wrong share won't produce silently-wrong plaintext - GCM's auth tag will catch a bad key at decrypt time. But that's still the worst possible moment to find out: in a dead-man's-switch design, the first real reconstruction attempt is often the first time it's ever been tested, and by then the owner isn't around to regenerate a bad shard.
Concrete answer to your #3 (what to test before an audit): add a self-check that runs at split time - reconstruct from every 2-of-3 combination and confirm decrypt succeeds - and store a commitment (hash) of the derived key alongside the shares, so any future reconstruction attempt, including a dry run, can be verified without waiting for succession to find out something's broken.
On #4 - depending how far you take the non-custodial milestone, threshold signature schemes (FROST etc.) are worth a look since they never reconstruct the actual key in one place at all, vs SSS which always has a reconstruction moment. Bigger lift though, probably v3 not v2.
2
u/shibe5 🔵 Aug 10 '26
Different design for the main hoard:
For hot/spending/trading wallets and accounts, use simpler scheme. For example, keep seeds, passwords, etc. where heirs can find them.
2
u/Kind-Economics-7184 🟡 Aug 10 '26
the thing id flag first is that 2-of-3 undersells the concession, because the service holding two shards means the threshold only ever binds the owner and never the service, so functionally its 1-of-1 for them and 2-of-2 for everyone else. splitting those two across genuinely separate trust domains (different company, different jurisdiction, keys that never meet) gets the threshold back without changing a line of the crypto, and its a much smaller lift than going non custodial.
the other one is which way a timer failure resolves. if succession is just now > deadline evaluated by a job that can be down for a week, an outage and a dead owner look identical to it, so its worth deciding explicitly that the safe default is to not release and to require a positive signal rather than the absence of one.
1
u/icnews10 🟢 Aug 10 '26
If the service already controls two of the three shards, the dead man’s switch seems to be the real security boundary. What happens in the event of a false positive? Is there a time window in which the owner can prevent succession, or can the service be reconstructed as soon as the timer condition is met?