IP Masking means that we create a temporary account for any user that's editing without being logged in. More details on how temporary account work here, and more details on what to look for when adapting an extension to handle temporary accounts is here
Quick searches for relevant code in the WikibaseMediaInfo extension is here and here
We'll need to decide whether a temp user should get the constraint checks (probably not?)
To enable temporary accounts in your local dev env, add this to LocalSettings.php
$wgAutoCreateTempUser['enabled'] = true;
Before when you edited structured data anonymously the wikibase api calls recorded your IP address (to see this in action edit some SD on a file on commons, then look in RecentChanges to see your IP address). Since T349130 the wikibase api calls that we use create a temp user, and return it in the api response


