Skip to content

Conversation

@ANISH-SR
Copy link
Contributor

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

Summary of Changes

  • Added an explicit check in process_accept_link to enforce link.side_z_pk == *side_z_account.key.
  • The instruction now fails early with DoubleZeroError::InvalidAccountOwner if the Side-Z account does not match the link.
  • Prevents accepting a link with a Side-Z device that differs from the one recorded on-chain.

Testing Verification

  • Existing tests pass.

Closes #2214

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

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 link.side_z_pk == side_z_account.key in AcceptLink

2 participants