Skip to content

Add driver SubmitBadge and EnrollRecovery client methods#19

Merged
TeoSlayer merged 1 commit into
mainfrom
feat/badge-driver-methods
Jun 21, 2026
Merged

Add driver SubmitBadge and EnrollRecovery client methods#19
TeoSlayer merged 1 commit into
mainfrom
feat/badge-driver-methods

Conversation

@TeoSlayer

Copy link
Copy Markdown
Contributor

Adds two optional client-side driver methods completing the verified-address badge feature's client layer:

  • Driver.SubmitBadge(badge, badgeSig) — IPC cmd 0x2F/0x30
  • Driver.EnrollRecovery(enrollment, enrollmentSig) — IPC cmd 0x31/0x32

Both forward verifier-produced credentials to the daemon, which signs proof of the current key and calls the matching registry-client method (shipped in v0.5.1). The raw external identity never crosses this layer — only the badge / opaque commitment.

Also allowlists the two new response opcodes in the client readLoop; without that, replies are silently dropped and every call hangs (caught by the new tests).

Tests: go test -race ./driver/ green; gofmt clean.

@TeoSlayer TeoSlayer merged commit 4b9656f into main Jun 21, 2026
1 check passed
@codecov

codecov Bot commented Jun 21, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants