Repository navigation
feat(prism-id): guardians witness a paper kit's use (replaceRecovery), residual stated exactly - #4
Merged
Merged
Conversation
The Open item said a replayed old recovery kit could only deny the id at hosts. That holds only where the recovery that used the kit is heard: a verifier that hears only the replay, because nothing retains the recovery any more, takes it for a recovery. The item now says so, and gives why no stitch element closes it for a kit of paper shares alone: a recovery after losing every device leaves nothing but the kit that knows it happened, so a later holder of a copy holds everything the person held and only the order of the two uses differs. Guardians are that witness already (they confirm the person out of band before releaseShare); a paper-only kit has none. The Recovery paragraph's "the replay never acts as the person" is scoped to where the recovery is heard. product/contracts.json regenerated. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013Asa3NdLCxdzL1iQw9rg5T
A kit of one paper share has no witness of its use, so a copy of it
replays. Guardians are that witness: each confirms the person out of band
before releaseShare, and one that released its share has none left to give
a replay. replaceRecovery(session, shares, { threshold, guardians }) lets a
member, holding the current recovery device's shares, move the prism to a
new recovery device with fresh shares: the old recovery device (combined
from the shares, never kept by the member) binds the new one through
createRecovery and retires itself through revokeDevice, keeping what it
signed. Nothing else in the log changes; the member's keyring takes up the
rotation. With threshold 2 over a paper share and a guardian, the paper
alone no longer recovers.
The share combination recoverPrism did inline moves to recoverySecret,
which both use; recoverPrism's behaviour is unchanged. No model predicate
is added: thresholdMet, mayAdminister, bindAllowed, recoveryBindAllowed and
revocationCounts decide every step as before.
tests/prism-guardian.test.js: a guardian joins a paper kit and the old
recovery device is retired; the paper share alone is refused below the
threshold; with the guardian's released share recovery succeeds, and the
released share opens only on the device it was released to; a share is
refused to a guardian it was not made for. docs/prism-id.md describes
replaceRecovery and the residual it closes. product/contracts.json
regenerated.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013Asa3NdLCxdzL1iQw9rg5T
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
replaceRecovery(session, shares, { threshold, guardians }): a member uses the current recovery device's shares to move the prism to a new recovery device with fresh shares.createRecovery, then retires itself throughrevokeDevice, keeping what it signed.threshold: 2over a paper share and a guardian's share means the paper alone no longer recovers.recoverySecret: the share combination thatrecoverPrismdid inline now lives here, and both functions use it.recoverPrism's behaviour is unchanged.tests/prism-guardian.test.js(new file, so the retained proof evidence stays valid) checks that:docs/prism-id.md:replaceRecovery.Why
After losing every device, nothing besides the kit knows that a recovery happened. A guardian is a witness that outlasts the person's devices: it confirms the person out of band and releases its share only once. The template frame will offer this quietly, next to the paper kit.
🤖 Generated with Claude Code
https://claude.ai/code/session_013Asa3NdLCxdzL1iQw9rg5T