fix: prove admission in epoch requests - #70
Merged
Merged
Conversation
Mirror of the kithmoot change: a kind 20468 epoch request now carries `admission`, an HMAC under HKDF(epoch-0 room key, "kithmoot/v1/epoch-request-key") over roomId:authority:device:created_at. The creator's recovery responder refuses a request without one before the policy is consulted, so a stranger who reads a room id and its authority off a public rekey event is never answered. The body keeps v:1, so a responder from before this ignores the field and a web desk from after it refuses a client from before it. The vendored vectors file gains only the new epochRequestAdmission group (5 vectors, run by EpochRequestAdmissionVectorsTest); the rosterEvent call-* vectors the web file has since gained are not brought across here. Claude-Session: https://claude.ai/code/session_01TgQJ1LHZjQG6wiKVfZcXPs
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.
Mirror of forgesworn/kithmoot's change: a kind 20468 epoch request now carries
admission, an HMAC under HKDF(epoch-0 room key,kithmoot/v1/epoch-request-key) overroomId:authority:device:created_at. The creator's recovery responder refuses a request without one before the policy is consulted, so a stranger who reads a room id and its authority off a public rekey event is never answered. The body keepsv: 1.The vendored vectors file gains only the new
epochRequestAdmissiongroup (5 vectors, run byEpochRequestAdmissionVectorsTest); therosterEventcall-* vectors the web file has since gained are not brought across here.🤖 Generated with Claude Code
https://claude.ai/code/session_01TgQJ1LHZjQG6wiKVfZcXPs