The current KeyRegistry.add() function does not prevent regular users from adding a key for fid 0.
It is recommended to make add() to revert when fid == 0, especially if such a key for fid 0 could potentially be exploited in the offchain logic (or in the future).
The current KeyRegistry.add() function does not prevent regular users from adding a key for fid 0.
It is recommended to make add() to revert when fid == 0, especially if such a key for fid 0 could potentially be exploited in the offchain logic (or in the future).