Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,11 @@ pub fn process_accept_link(
return Err(DoubleZeroError::InvalidStatus.into());
}

// Validate that the stored side_z_pk matches the provided side_z_account
if link.side_z_pk != *side_z_account.key {
return Err(DoubleZeroError::InvalidAccountOwner.into());
}

// Validate Side Z Device
let side_z_dev = Device::try_from(side_z_account)?;
if side_z_dev.contributor_pk != *contributor_account.key {
Expand Down