Skip to content

Commit db48215

Browse files
committed
Merge branch '04-03-association_log_verification' of github.com:xmtp/libxmtp into 04-03-association_log_verification
2 parents 4995402 + 2bac3c1 commit db48215

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

xmtp_id/src/associations/association_log.rs

+6
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,12 @@ impl IdentityAction for AddAssociation {
105105
));
106106
}
107107

108+
if new_member_address.ne(&self.new_member_identifier) {
109+
return Err(AssociationError::Generic(
110+
"new member identifier does not match signature".to_string(),
111+
));
112+
}
113+
108114
// You cannot add yourself
109115
if new_member_address == existing_member_identifier {
110116
return Err(AssociationError::Generic("tried to add self".to_string()));

0 commit comments

Comments
 (0)