Commit ca14014 1 parent ab4ad82 commit ca14014 Copy full SHA for ca14014
File tree 2 files changed +4
-1
lines changed
2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -93,6 +93,8 @@ impl LogEntry for AddAssociation {
93
93
) -> Result < AssociationState , AssociationError > {
94
94
let existing_state = maybe_existing_state. ok_or ( AssociationError :: NotCreated ) ?;
95
95
96
+ // Catch replays per-association
97
+ // The real hash function should probably just be the signature text, but since that's stubbed out I have some more inputs
96
98
let association_hash = self . hash ( ) ;
97
99
if existing_state. has_seen ( & association_hash) {
98
100
return Err ( AssociationError :: Replay ) ;
@@ -110,7 +112,7 @@ impl LogEntry for AddAssociation {
110
112
}
111
113
}
112
114
113
- // Get the current version of the entity that added this new entry. If it has been revoked and added back, it will now be unrevoked
115
+ // Find the existing entity that authorized this add
114
116
let existing_entity = existing_state
115
117
. get ( & existing_member_address)
116
118
. ok_or ( AssociationError :: MissingExistingMember ) ?;
Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ pub enum SignatureError {
8
8
9
9
#[ derive( Clone , Debug , PartialEq ) ]
10
10
pub enum SignatureKind {
11
+ // We might want to have some sort of LegacyErc191 Signature Kind for the `CreateIdentity` signatures only
11
12
Erc191 ,
12
13
Erc1271 ,
13
14
InstallationKey ,
You can’t perform that action at this time.
0 commit comments