@@ -64,12 +64,6 @@ abstract contract IdentityRegistryAadhaarStorageV1 is ImplRoot {
6464
6565 /// @notice Current name and year of birth OFAC root.
6666 uint256 internal _nameAndYobOfacRoot;
67-
68- /// @notice Current name and date of birth reverse OFAC root.
69- uint256 internal _nameAndDobReverseOfacRoot;
70-
71- /// @notice Current name and year of birth reverse OFAC root.
72- uint256 internal _nameAndYobReverseOfacRoot;
7367}
7468
7569/**
@@ -253,33 +247,15 @@ contract IdentityRegistryAadhaarImplV1 is IdentityRegistryAadhaarStorageV1, IIde
253247 return _nameAndYobOfacRoot;
254248 }
255249
256- /// @notice Retrieves the current name and date of birth reverse OFAC root.
257- /// @return The current name and date of birth reverse OFAC root value.
258- function getNameAndDobReverseOfacRoot () external view virtual onlyProxy returns (uint256 ) {
259- return _nameAndDobReverseOfacRoot;
260- }
261-
262- /// @notice Retrieves the current name and year of birth reverse OFAC root.
263- /// @return The current name and year of birth reverse OFAC root value.
264- function getNameAndYobReverseOfacRoot () external view virtual onlyProxy returns (uint256 ) {
265- return _nameAndYobReverseOfacRoot;
266- }
267-
268250 /// @notice Validates whether the provided OFAC roots match the stored values.
269251 /// @param nameAndDobRoot The name and date of birth OFAC root to validate.
270252 /// @param nameAndYobRoot The name and year of birth OFAC root to validate.
271253 /// @return True if all provided roots match the stored values, false otherwise.
272254 function checkOfacRoots (
273255 uint256 nameAndDobRoot ,
274- uint256 nameAndYobRoot ,
275- uint256 nameAndDobReverseRoot ,
276- uint256 nameAndYobReverseRoot
256+ uint256 nameAndYobRoot
277257 ) external view virtual onlyProxy returns (bool ) {
278- return
279- _nameAndDobOfacRoot == nameAndDobRoot &&
280- _nameAndYobOfacRoot == nameAndYobRoot &&
281- _nameAndDobReverseOfacRoot == nameAndDobReverseRoot &&
282- _nameAndYobReverseOfacRoot == nameAndYobReverseRoot;
258+ return _nameAndDobOfacRoot == nameAndDobRoot && _nameAndYobOfacRoot == nameAndYobRoot;
283259 }
284260
285261 /// @notice Checks if the provided UIDAI pubkey is stored in the registry and also if it's not expired.
@@ -337,22 +313,6 @@ contract IdentityRegistryAadhaarImplV1 is IdentityRegistryAadhaarStorageV1, IIde
337313 emit NameAndYobOfacRootUpdated (newNameAndYobOfacRoot);
338314 }
339315
340- /// @notice Updates the name and date of birth reverse OFAC root.
341- /// @dev Callable only via a proxy and restricted to the contract owner.
342- /// @param newNameAndDobReverseOfacRoot The new name and date of birth reverse OFAC root value.
343- function updateNameAndDobReverseOfacRoot (uint256 newNameAndDobReverseOfacRoot ) external onlyProxy onlyOwner {
344- _nameAndDobReverseOfacRoot = newNameAndDobReverseOfacRoot;
345- emit NameAndDobReverseOfacRootUpdated (newNameAndDobReverseOfacRoot);
346- }
347-
348- /// @notice Updates the name and year of birth reverse OFAC root.
349- /// @dev Callable only via a proxy and restricted to the contract owner.
350- /// @param newNameAndYobReverseOfacRoot The new name and year of birth reverse OFAC root value.
351- function updateNameAndYobReverseOfacRoot (uint256 newNameAndYobReverseOfacRoot ) external onlyProxy onlyOwner {
352- _nameAndYobReverseOfacRoot = newNameAndYobReverseOfacRoot;
353- emit NameAndYobReverseOfacRootUpdated (newNameAndYobReverseOfacRoot);
354- }
355-
356316 /// @notice Registers a new UIDAI pubkey commitment.
357317 /// @dev Callable only via a proxy and restricted to the contract owner.
358318 /// @param commitment The UIDAI pubkey commitment to register.
0 commit comments