@@ -9,25 +9,30 @@ import {Initializable} from "@openzeppelin-upgrades/contracts/proxy/utils/Initia
9
9
import {BN254} from "./libraries/BN254.sol " ;
10
10
11
11
abstract contract BLSApkRegistryStorage is Initializable , IBLSApkRegistry {
12
- /// @notice the hash of the zero pubkey aka BN254.G1Point(0,0)
12
+ /// @dev Returns the hash of the zero pubkey aka BN254.G1Point(0,0)
13
13
bytes32 internal constant ZERO_PK_HASH =
14
14
hex "ad3228b676f7d3cd4284a5443f17f1962b36e491b30a40b2405849e597ba5fb5 " ;
15
15
16
- /// @notice the registry coordinator contract
16
+ /// @inheritdoc IBLSApkRegistry
17
17
address public immutable registryCoordinator;
18
18
19
- // storage for individual pubkeys
20
- /// @notice maps operator address to pubkey hash
19
+ /// INDIVIDUAL PUBLIC KEY STORAGE
20
+
21
+ /// @inheritdoc IBLSApkRegistry
21
22
mapping (address operator = > bytes32 operatorId ) public operatorToPubkeyHash;
22
- /// @notice maps pubkey hash to operator address
23
+
24
+ /// @inheritdoc IBLSApkRegistry
23
25
mapping (bytes32 pubkeyHash = > address operator ) public pubkeyHashToOperator;
24
- /// @notice maps operator address to pubkeyG1
26
+
27
+ /// @inheritdoc IBLSApkRegistry
25
28
mapping (address operator = > BN254.G1Point pubkeyG1 ) public operatorToPubkey;
26
29
27
- // storage for aggregate pubkeys (APKs)
28
- /// @notice maps quorumNumber => historical aggregate pubkey updates
30
+ /// AGGREGATE PUBLIC KEY STORAGE
31
+
32
+ /// @inheritdoc IBLSApkRegistry
29
33
mapping (uint8 => IBLSApkRegistryTypes.ApkUpdate[]) public apkHistory;
30
- /// @notice maps quorumNumber => current aggregate pubkey of quorum
34
+
35
+ /// @inheritdoc IBLSApkRegistry
31
36
mapping (uint8 => BN254.G1Point) public currentApk;
32
37
33
38
constructor (
@@ -38,6 +43,5 @@ abstract contract BLSApkRegistryStorage is Initializable, IBLSApkRegistry {
38
43
_disableInitializers ();
39
44
}
40
45
41
- // storage gap for upgradeability
42
46
uint256 [45 ] private __GAP;
43
47
}
0 commit comments