Confidential Token Docs#756
Conversation
|
Important Review skippedAuto incremental reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
WalkthroughThe PR expands confidential-token documentation with compliance clarifications, a linked user-flows overview, a new end-to-end overview page, and a selective-disclosure specification covering protocol flow, circuit variants, security notes, and implementation guidance. ChangesConfidential token documentation
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 3 | ❌ 2❌ Failed checks (1 warning, 1 inconclusive)
✅ Passed checks (3 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
Actionable comments posted: 5
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@packages/tokens/src/confidential/docs/COMPLIANCE.md`:
- Around line 119-121: Clarify the unregistered-sender example in COMPLIANCE.md
so it matches the intended behavior of the `ComplianceHooks` flow: the current
text says only the registration-dependent freeze check is skipped, but the
example still omits policy screening for `from`. Update the paragraph to either
explicitly include `storage::check_policy(e, from, &config)` for unregistered
senders that must still be screened, or reword it to state that the example
skips both gates; keep the explanation aligned with the unregistered-deposit
scenario.
In `@packages/tokens/src/confidential/docs/OVERVIEW.md`:
- Around line 123-135: The auditing spec is inconsistent: the decryption flow in
the dual-auditor section requires a per-operation salt from the event, but the
transfer/withdrawal/spender payload tables do not list that field. Update the
payload tables in the confidential auditing overview to include the salt for
each relevant operation/event payload, or remove the salt requirement from the
channel sponge decryption description so both sections match. Keep the wording
aligned with the “real-time auditing” and “Each auditor decrypts…” paragraphs to
make the spec unambiguous.
In `@packages/tokens/src/confidential/docs/SELECTIVE_DISCLOSURE.md`:
- Line 209: Fix the typo in the SELECTIVE_DISCLOSURE documentation by replacing
the incorrect “requestor” wording with “requester” in the request/response
description; update the sentence in the event-anchored facts section so the
terminology is consistent with the surrounding verifier/requester flow.
- Around line 420-423: The threshold constraint label is using the acronym THR,
which is triggering the typo checker and reducing readability. Update the label
in the selective disclosure docs to spell out the full identifier as THRESHOLD
(or otherwise align it with the repository’s accepted terminology) in the
section describing the constraint summary and the U1–U3/aggregate-value flow.
- Line 448: The fenced diagram block is missing a language identifier, which
triggers markdownlint. Update the relevant fenced block in
SELECTIVE_DISCLOSURE.md to include an explicit tag such as text while keeping
the diagram content unchanged; locate the fence in the markdown section near the
selective disclosure diagram and adjust only the fence syntax.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: 8bf976ea-6165-46c0-bea8-8364ead96143
📒 Files selected for processing (4)
packages/tokens/src/confidential/docs/COMPLIANCE.mdpackages/tokens/src/confidential/docs/DESIGN.mdpackages/tokens/src/confidential/docs/OVERVIEW.mdpackages/tokens/src/confidential/docs/SELECTIVE_DISCLOSURE.md
Summary by CodeRabbit