Skip to content

Conversation

@ANISH-SR
Copy link
Contributor

@ANISH-SR ANISH-SR commented Jan 1, 2026

Summary of Changes

  • Added a new equality check in process_closeaccount_device to verify that device.contributor_pk == contributor_account.key.
  • If the keys do not match, the function now returns DoubleZeroError::InvalidContributorPubkey.
  • This validation ensures that only the correct contributor is authorized to close a device account.

Testing Verification

  • rust + fmt checks all green!

Fixes #2212

@juan-malbeclabs juan-malbeclabs enabled auto-merge (squash) January 12, 2026 17:48
Copy link
Contributor

@juan-malbeclabs juan-malbeclabs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@juan-malbeclabs juan-malbeclabs merged commit a60ab84 into malbeclabs:main Jan 13, 2026
21 of 24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Verify that device.contributor_pk == contributor_account.key in CloseAccountDevice

2 participants