h-REA / hREA

A ValueFlows / REA economic network coordination system implemented on Holochain and with supplied Javascript GraphQL libraries
https://docs.hrea.io
Other
142 stars 15 forks source link

Implement validation to prevent agents claiming already-claimed profiles #310

Open pospi opened 2 years ago

pospi commented 2 years ago

There may be situations where a "foreign" agent not in the network space has had a record created for them by somebody else, and wants to join & claim the profile later.

If we validate agent profile linkage as per https://github.com/h-REA/hREA/issues/303#issuecomment-1164272860 then this situation will fail validation. We can work around this by also allowing claims to be treated as valid if they contain a signed claim from the originally creating agent in the request for linking the profile.

Connoropolous commented 2 years ago

In a sense, this is now achieved, via associateMyAgent. This should be reframed, if it is to stay open, as bringing in sets of validation rules