-
Notifications
You must be signed in to change notification settings - Fork 4
Feat/eid reclaim #349
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feat/eid reclaim #349
Conversation
Caution Review failedThe pull request is closed. WalkthroughAdds a pluggable key management layer (hardware/software) with a factory, refactors onboarding/verify flows to use it, enhances eVault profile creation with retries, and extends provisioning to handle duplicates via linkedEName/w3id with migration and event updates. Adds logging/guards in Cerberus flows and bumps Settings version text. Changes
Sequence Diagram(s)sequenceDiagram
autonumber
actor UI as UI (Onboarding/Verify)
participant KMF as KeyManagerFactory
participant HW as HardwareKeyManager
participant SW as SoftwareKeyManager
UI->>KMF: getKeyManager(config/context)
alt pre-verification
KMF-->>UI: SW instance
else try hardware
KMF->>HW: probe exists(testKey)
alt hardware available
KMF-->>UI: HW instance
else fallback
KMF-->>UI: SW instance
end
end
UI->>KMF: generate/getPublicKey/sign/verify via manager
KMF-->>UI: result or KeyManagerError(code)
sequenceDiagram
autonumber
actor VerifyUI as Verify UI
participant Prov as Provisioner API
participant VC as VerificationController
participant VS as VerificationService
participant EE as EventEmitter
VerifyUI->>Prov: Start verification (SSE/WebSocket)
Prov->>VC: Create session
VC-->>EE: emit { status: pending }
VC->>VS: evaluate documents
alt duplicate detected
VC-->>EE: emit { status: duplicate, w3id }
else approved
VC-->>EE: emit { status: approved }
Prov->>VS: update(verificationId,{ linkedEName: w3id })
Prov-->>VerifyUI: provision eVault with w3id
end
Note over VerifyUI: If duplicate, claim existing eVault using w3id
Estimated code review effort🎯 4 (Complex) | ⏱️ ~60 minutes Possibly related PRs
Suggested reviewers
Poem
✨ Finishing touches
🧪 Generate unit tests
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro ⛔ Files ignored due to path filters (3)
📒 Files selected for processing (17)
Tip 👮 Agentic pre-merge checks are now available in preview!Pro plan users can now enable pre-merge checks in their settings to enforce checklists before merging PRs.
Please see the documentation for more information. Example: reviews:
pre_merge_checks:
custom_checks:
- name: "Undocumented Breaking Changes"
mode: "warning"
instructions: |
Pass/fail criteria: All breaking changes to public APIs, CLI flags, environment variables, configuration keys, database schemas, or HTTP/GraphQL endpoints must be documented in the "Breaking Change" section of the PR description and in CHANGELOG.md. Exclude purely internal or private changes (e.g., code not exported from package entry points or explicitly marked as internal). Please share your feedback with us on this Discord post. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Description of change
Issue Number
Type of change
How the change has been tested
Change checklist
Summary by CodeRabbit
New Features
Improvements
UI
Bug Fixes