@@ -39,7 +39,7 @@ contract BLSApkRegistry is BLSApkRegistryStorage {
39
39
_processQuorumApkUpdate (quorumNumbers, pubkey);
40
40
41
41
// Return pubkeyHash, which will become the operator's unique id
42
- emit OperatorAddedToQuorums (operator, operatorToPubkeyHash[ operator] , quorumNumbers);
42
+ emit OperatorAddedToQuorums (operator, getOperatorId ( operator) , quorumNumbers);
43
43
}
44
44
45
45
/// @inheritdoc IBLSApkRegistry
@@ -52,7 +52,7 @@ contract BLSApkRegistry is BLSApkRegistryStorage {
52
52
53
53
// Update each quorum's aggregate pubkey
54
54
_processQuorumApkUpdate (quorumNumbers, pubkey.negate ());
55
- emit OperatorRemovedFromQuorums (operator, operatorToPubkeyHash[ operator] , quorumNumbers);
55
+ emit OperatorRemovedFromQuorums (operator, getOperatorId ( operator) , quorumNumbers);
56
56
}
57
57
58
58
/// @inheritdoc IBLSApkRegistry
@@ -78,7 +78,7 @@ contract BLSApkRegistry is BLSApkRegistryStorage {
78
78
) external onlyRegistryCoordinator returns (bytes32 operatorId ) {
79
79
bytes32 pubkeyHash = BN254.hashG1Point (params.pubkeyG1);
80
80
require (pubkeyHash != ZERO_PK_HASH, ZeroPubKey ());
81
- require (operatorToPubkeyHash[ operator] == bytes32 (0 ), OperatorAlreadyRegistered ());
81
+ require (getOperatorId ( operator) == bytes32 (0 ), OperatorAlreadyRegistered ());
82
82
require (pubkeyHashToOperator[pubkeyHash] == address (0 ), BLSPubkeyAlreadyRegistered ());
83
83
84
84
// gamma = h(sigma, P, P', H(m))
@@ -167,7 +167,7 @@ contract BLSApkRegistry is BLSApkRegistryStorage {
167
167
address operator
168
168
) public view returns (BN254.G1Point memory , bytes32 ) {
169
169
BN254.G1Point memory pubkey = operatorToPubkey[operator];
170
- bytes32 pubkeyHash = operatorToPubkeyHash[ operator] ;
170
+ bytes32 pubkeyHash = getOperatorId ( operator) ;
171
171
172
172
require (pubkeyHash != bytes32 (0 ), OperatorNotRegistered ());
173
173
0 commit comments