@@ -55,10 +55,10 @@ contract KeyRegistrar is KeyRegistrarStorage, PermissionControllerMixin, Signatu
5555 require (curveType == CurveType.ECDSA || curveType == CurveType.BN254, InvalidCurveType ());
5656
5757 // Prevent overwriting existing configurations
58- CurveType _curveType = operatorSetCurveTypes [operatorSet.key ()];
58+ CurveType _curveType = _operatorSetCurveTypes [operatorSet.key ()];
5959 require (_curveType == CurveType.NONE, ConfigurationAlreadySet ());
6060
61- operatorSetCurveTypes [operatorSet.key ()] = curveType;
61+ _operatorSetCurveTypes [operatorSet.key ()] = curveType;
6262
6363 emit OperatorSetConfigured (operatorSet, curveType);
6464 }
@@ -70,11 +70,11 @@ contract KeyRegistrar is KeyRegistrarStorage, PermissionControllerMixin, Signatu
7070 bytes calldata keyData ,
7171 bytes calldata signature
7272 ) external checkCanCall (operator) {
73- CurveType curveType = operatorSetCurveTypes [operatorSet.key ()];
73+ CurveType curveType = _operatorSetCurveTypes [operatorSet.key ()];
7474 require (curveType != CurveType.NONE, OperatorSetNotConfigured ());
7575
7676 // Check if the key is already registered
77- require (! operatorKeyInfo [operatorSet.key ()][operator].isRegistered, KeyAlreadyRegistered ());
77+ require (! _operatorKeyInfo [operatorSet.key ()][operator].isRegistered, KeyAlreadyRegistered ());
7878
7979 // Register key based on curve type - both now require signature verification
8080 if (curveType == CurveType.ECDSA) {
@@ -95,25 +95,25 @@ contract KeyRegistrar is KeyRegistrarStorage, PermissionControllerMixin, Signatu
9595 ! allocationManager.isOperatorSlashable (operator, operatorSet), OperatorStillSlashable (operatorSet, operator)
9696 );
9797
98- CurveType curveType = operatorSetCurveTypes [operatorSet.key ()];
98+ CurveType curveType = _operatorSetCurveTypes [operatorSet.key ()];
9999 require (curveType != CurveType.NONE, OperatorSetNotConfigured ());
100100
101- KeyInfo memory keyInfo = operatorKeyInfo [operatorSet.key ()][operator];
101+ KeyInfo memory keyInfo = _operatorKeyInfo [operatorSet.key ()][operator];
102102
103103 require (keyInfo.isRegistered, KeyNotFound (operatorSet, operator));
104104
105105 // Clear key info
106- delete operatorKeyInfo [operatorSet.key ()][operator];
106+ delete _operatorKeyInfo [operatorSet.key ()][operator];
107107
108108 emit KeyDeregistered (operatorSet, operator, curveType);
109109 }
110110
111111 /// @inheritdoc IKeyRegistrar
112112 function checkKey (OperatorSet memory operatorSet , address operator ) external view returns (bool ) {
113- CurveType curveType = operatorSetCurveTypes [operatorSet.key ()];
113+ CurveType curveType = _operatorSetCurveTypes [operatorSet.key ()];
114114 require (curveType != CurveType.NONE, OperatorSetNotConfigured ());
115115
116- KeyInfo memory keyInfo = operatorKeyInfo [operatorSet.key ()][operator];
116+ KeyInfo memory keyInfo = _operatorKeyInfo [operatorSet.key ()][operator];
117117 return keyInfo.isRegistered;
118118 }
119119
@@ -148,7 +148,7 @@ contract KeyRegistrar is KeyRegistrarStorage, PermissionControllerMixin, Signatu
148148 bytes32 keyHash = _getKeyHashForKeyData (keyData, CurveType.ECDSA);
149149
150150 // Check global uniqueness
151- require (! globalKeyRegistry [keyHash], KeyAlreadyRegistered ());
151+ require (! _globalKeyRegistry [keyHash], KeyAlreadyRegistered ());
152152
153153 // Get the signable digest for the ECDSA key registration message
154154 bytes32 signableDigest = getECDSAKeyRegistrationMessageHash (operator, operatorSet, keyAddress);
@@ -203,7 +203,7 @@ contract KeyRegistrar is KeyRegistrarStorage, PermissionControllerMixin, Signatu
203203
204204 // Calculate key hash and check global uniqueness
205205 bytes32 keyHash = _getKeyHashForKeyData (keyData, CurveType.BN254);
206- require (! globalKeyRegistry [keyHash], KeyAlreadyRegistered ());
206+ require (! _globalKeyRegistry [keyHash], KeyAlreadyRegistered ());
207207
208208 // Store key data
209209 _storeKeyData (operatorSet, operator, keyData, keyHash);
@@ -223,10 +223,10 @@ contract KeyRegistrar is KeyRegistrarStorage, PermissionControllerMixin, Signatu
223223 bytes32 keyHash
224224 ) internal {
225225 // Store key data
226- operatorKeyInfo [operatorSet.key ()][operator] = KeyInfo ({isRegistered: true , keyData: pubkey});
226+ _operatorKeyInfo [operatorSet.key ()][operator] = KeyInfo ({isRegistered: true , keyData: pubkey});
227227
228228 // Update global key registry
229- globalKeyRegistry [keyHash] = true ;
229+ _globalKeyRegistry [keyHash] = true ;
230230 }
231231
232232 /**
@@ -254,14 +254,14 @@ contract KeyRegistrar is KeyRegistrarStorage, PermissionControllerMixin, Signatu
254254
255255 /// @inheritdoc IKeyRegistrar
256256 function isRegistered (OperatorSet memory operatorSet , address operator ) external view returns (bool ) {
257- return operatorKeyInfo [operatorSet.key ()][operator].isRegistered;
257+ return _operatorKeyInfo [operatorSet.key ()][operator].isRegistered;
258258 }
259259
260260 /// @inheritdoc IKeyRegistrar
261261 function getOperatorSetCurveType (
262262 OperatorSet memory operatorSet
263263 ) external view returns (CurveType) {
264- return operatorSetCurveTypes [operatorSet.key ()];
264+ return _operatorSetCurveTypes [operatorSet.key ()];
265265 }
266266
267267 /// @inheritdoc IKeyRegistrar
@@ -270,10 +270,10 @@ contract KeyRegistrar is KeyRegistrarStorage, PermissionControllerMixin, Signatu
270270 address operator
271271 ) external view returns (BN254.G1Point memory g1Point , BN254.G2Point memory g2Point ) {
272272 // Validate operator set curve type
273- CurveType curveType = operatorSetCurveTypes [operatorSet.key ()];
273+ CurveType curveType = _operatorSetCurveTypes [operatorSet.key ()];
274274 require (curveType == CurveType.BN254, InvalidCurveType ());
275275
276- KeyInfo memory keyInfo = operatorKeyInfo [operatorSet.key ()][operator];
276+ KeyInfo memory keyInfo = _operatorKeyInfo [operatorSet.key ()][operator];
277277
278278 if (! keyInfo.isRegistered) {
279279 // Create default values for an empty key
@@ -290,10 +290,10 @@ contract KeyRegistrar is KeyRegistrarStorage, PermissionControllerMixin, Signatu
290290 /// @inheritdoc IKeyRegistrar
291291 function getECDSAKey (OperatorSet memory operatorSet , address operator ) public view returns (bytes memory ) {
292292 // Validate operator set curve type
293- CurveType curveType = operatorSetCurveTypes [operatorSet.key ()];
293+ CurveType curveType = _operatorSetCurveTypes [operatorSet.key ()];
294294 require (curveType == CurveType.ECDSA, InvalidCurveType ());
295295
296- KeyInfo memory keyInfo = operatorKeyInfo [operatorSet.key ()][operator];
296+ KeyInfo memory keyInfo = _operatorKeyInfo [operatorSet.key ()][operator];
297297 return keyInfo.keyData; // Returns the 20-byte address as bytes
298298 }
299299
@@ -306,13 +306,13 @@ contract KeyRegistrar is KeyRegistrarStorage, PermissionControllerMixin, Signatu
306306 function isKeyGloballyRegistered (
307307 bytes32 keyHash
308308 ) external view returns (bool ) {
309- return globalKeyRegistry [keyHash];
309+ return _globalKeyRegistry [keyHash];
310310 }
311311
312312 /// @inheritdoc IKeyRegistrar
313313 function getKeyHash (OperatorSet memory operatorSet , address operator ) external view returns (bytes32 ) {
314- KeyInfo memory keyInfo = operatorKeyInfo [operatorSet.key ()][operator];
315- CurveType curveType = operatorSetCurveTypes [operatorSet.key ()];
314+ KeyInfo memory keyInfo = _operatorKeyInfo [operatorSet.key ()][operator];
315+ CurveType curveType = _operatorSetCurveTypes [operatorSet.key ()];
316316
317317 if (! keyInfo.isRegistered) {
318318 return bytes32 (0 );
0 commit comments