-
Notifications
You must be signed in to change notification settings - Fork 4
chore: signing bug #315
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
chore: signing bug #315
Conversation
Caution Review failedThe pull request is closed. WalkthroughClient app now performs real hardware-backed signing via Tauri crypto APIs, replacing simulated signing. Backend services add a verification step ensuring the submitted publicKey matches the session user’s ename before proceeding with existing signature/message checks. Blind-vote path fetches a hardware public key (stored, not used). Changes
Sequence Diagram(s)sequenceDiagram
autonumber
actor U as User
participant W as Wallet App (scan-qr)
participant HW as Crypto HW (Tauri)
participant API as Signing API
participant US as UserService
U->>W: Initiate sign/submit
W->>HW: exists() / generate() / getPublicKey()
HW-->>W: PublicKey
W->>HW: signPayload(message)
HW-->>W: Signature
W->>API: POST signedPayload {message, signature, publicKey}
API->>US: getUser(session.userId)
US-->>API: User {ename}
API->>API: Assert publicKey matches user ename
alt Mismatch or error
API-->>W: Error (public key does not match / verification failed)
else Match
API->>API: Verify signature/message (existing flow)
API-->>W: Success
end
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Possibly related PRs
Suggested reviewers
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 💡 Knowledge Base configuration:
You can enable these sources in your CodeRabbit configuration. 📒 Files selected for processing (3)
✨ Finishing Touches
🧪 Generate unit tests
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. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. CodeRabbit Commands (Invoked using PR/Issue comments)Type Other keywords and placeholders
CodeRabbit Configuration File (
|
Description of change
Issue Number
Type of change
How the change has been tested
Change checklist
Summary by CodeRabbit
New Features
Security